/*
 * Module code.
 *
 * Generated by SIP 4.16.8
 *
 * Copyright (c) 2015 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtGui.h"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 45 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 37 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 43 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 247 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 46 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 202 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 49 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 333 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 52 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 441 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 55 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 430 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 58 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 354 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 61 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 64 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 395 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 67 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 743 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 73 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 76 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 79 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 82 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 85 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 88 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 91 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 100 "sip/QtCore/qurl.sip"
#include <qurl.h>
#line 94 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 97 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 100 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 104 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 103 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 106 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 109 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 112 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 362 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 117 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 120 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 123 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 126 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 132 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 135 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 138 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 141 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 144 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 147 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 150 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 96 "sip/QtCore/qline.sip"
#include <qline.h>
#line 153 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qline.sip"
#include <qline.h>
#line 156 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 178 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 159 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 162 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 165 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 168 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 171 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 174 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 177 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 180 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 183 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 186 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 189 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 46 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 194 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 197 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 200 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 203 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 206 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 209 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 212 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 215 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 218 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 221 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixelformat.sip"
#include <qpixelformat.h>
#line 224 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 330 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 227 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 230 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qquaternion.sip"
#include <qquaternion.h>
#line 233 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 236 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 239 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 242 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 245 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 248 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 251 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 36 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 256 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 259 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 130 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 262 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 172 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 265 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 190 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 268 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 218 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 271 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qdesktopservices.sip"
#include <qdesktopservices.h>
#line 274 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 408 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 277 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 419 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 280 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 479 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 283 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 583 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 286 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 693 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 291 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 294 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 297 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 179 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 300 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 331 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 303 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 483 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 306 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 632 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 309 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 781 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 312 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 927 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 315 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 1073 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 318 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 321 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 324 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 329 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 332 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 335 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 119 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 338 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 341 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 344 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 347 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 350 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 90 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 353 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglpixeltransferoptions.sip"
#include <qopenglpixeltransferoptions.h>
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 359 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 362 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 365 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 368 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 371 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 501 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 376 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 379 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 385 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 388 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 391 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 33 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 396 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 399 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 402 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstatictext.sip"
#include <qstatictext.h>
#line 405 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 408 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 411 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 414 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocumentfragment.sip"
#include <qtextdocumentfragment.h>
#line 417 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 420 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 423 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 426 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 429 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 432 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 435 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 438 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 441 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 446 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 123 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 449 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 82 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 454 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 154 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 459 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 235 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 462 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 259 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 465 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 468 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 471 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 85 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 476 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 479 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 482 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 485 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

/* Define the strings used by this module. */
const char sipStrings_QtGui[] = {
    'Q', 'P', 'a', 'i', 'r', '<', 'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'F', 'i', 'l', 't', 'e', 'r', ',', 'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'F', 'i', 'l', 't', 'e', 'r', '>', 0,
    'Q', 'T', 'e', 'x', 't', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'F', 'o', 'n', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's', 'I', 'n', 'h', 'e', 'r', 'i', 't', 'a', 'n', 'c', 'e', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', '>', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'P', 'a', 'i', 'n', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'A', 'd', 'd', 'S', 'p', 'a', 'c', 'e', 'F', 'o', 'r', 'L', 'i', 'n', 'e', 'A', 'n', 'd', 'P', 'a', 'r', 'a', 'g', 'r', 'a', 'p', 'h', 'S', 'e', 'p', 'a', 'r', 'a', 't', 'o', 'r', 's', 0,
    'Q', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'O', 'p', 'e', 'n', 'G', 'L', 'C', 'o', 'n', 't', 'e', 'x', 't', 'P', 'r', 'o', 'f', 'i', 'l', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'O', 'b', 'j', 'e', 'c', 't', ':', ':', 'A', 't', 't', 'a', 'c', 'h', 'm', 'e', 'n', 't', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'I', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 'E', 'v', 'e', 'n', 't', ':', ':', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', '>', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'F', 'o', 'n', 't', 'D', 'a', 't', 'a', 'b', 'a', 's', 'e', ':', ':', 'W', 'r', 'i', 't', 'i', 'n', 'g', 'S', 'y', 's', 't', 'e', 'm', '>', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'N', 'o', 't', 'S', 'o', 'u', 'r', 'c', 'e', 'A', 'n', 'd', 'N', 'o', 't', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'C', 'o', 'o', 'r', 'd', 'i', 'n', 'a', 't', 'e', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'Q', 'I', 'c', 'o', 'n', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'S', 'i', 'z', 'e', 's', 'A', 'r', 'g', 'u', 'm', 'e', 'n', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'V', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'A', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'N', 'o', 't', 'S', 'o', 'u', 'r', 'c', 'e', 'O', 'r', 'N', 'o', 't', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'T', 'o', 'u', 'c', 'h', 'E', 'v', 'e', 'n', 't', ':', ':', 'T', 'o', 'u', 'c', 'h', 'P', 'o', 'i', 'n', 't', ':', ':', 'I', 'n', 'f', 'o', 'F', 'l', 'a', 'g', 's', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'T', 'e', 'x', 't', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'F', 'o', 'r', 'm', 'a', 't', 'R', 'a', 'n', 'g', 'e', '>', 0,
    'Q', 'T', 'e', 'x', 't', 'B', 'l', 'o', 'c', 'k', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'L', 'i', 'n', 'e', 'H', 'e', 'i', 'g', 'h', 't', 'T', 'y', 'p', 'e', 's', 0,
    'B', 'l', 'o', 'c', 'k', 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', 'H', 'o', 'r', 'i', 'z', 'o', 'n', 't', 'a', 'l', 'R', 'u', 'l', 'e', 'r', 'W', 'i', 'd', 't', 'h', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 'F', 'e', 'a', 't', 'u', 'r', 'e', 's', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'I', 'n', 'n', 'e', 'r', 'T', 'e', 's', 's', 'e', 'l', 'l', 'a', 't', 'i', 'o', 'n', 'L', 'e', 'v', 'e', 'l', 's', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'O', 'u', 't', 'e', 'r', 'T', 'e', 's', 's', 'e', 'l', 'l', 'a', 't', 'i', 'o', 'n', 'L', 'e', 'v', 'e', 'l', 's', 0,
    'Q', 'T', 'o', 'u', 'c', 'h', 'E', 'v', 'e', 'n', 't', ':', ':', 'T', 'o', 'u', 'c', 'h', 'P', 'o', 'i', 'n', 't', ':', ':', 'I', 'n', 'f', 'o', 'F', 'l', 'a', 'g', 0,
    'Q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'T', 'y', 'p', 'e', 'I', 'n', 't', 'e', 'r', 'p', 'r', 'e', 't', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'A', 'l', 'p', 'h', 'a', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 'F', 'e', 'a', 't', 'u', 'r', 'e', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'S', 'o', 'u', 'r', 'c', 'e', 'A', 'n', 'd', 'N', 'o', 't', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'N', 'o', 't', 'S', 'o', 'u', 'r', 'c', 'e', 'A', 'n', 'd', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'N', 'o', 't', 'S', 'o', 'u', 'r', 'c', 'e', 'X', 'o', 'r', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'V', 'e', 'r', 't', 'e', 'x', 'A', 'r', 'r', 'a', 'y', 'O', 'b', 'j', 'e', 'c', 't', ':', ':', 'B', 'i', 'n', 'd', 'e', 'r', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'D', 'e', 'p', 't', 'h', 'S', 't', 'e', 'n', 'c', 'i', 'l', 'M', 'o', 'd', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'S', 'w', 'i', 'z', 'z', 'l', 'e', 'C', 'o', 'm', 'p', 'o', 'n', 'e', 'n', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'U', 'n', 'i', 't', 'R', 'e', 's', 'e', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'M', 'i', 'p', 'M', 'a', 'p', 'G', 'e', 'n', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'C', 'o', 'n', 't', 'e', 'x', 't', ':', ':', 'O', 'p', 'e', 'n', 'G', 'L', 'M', 'o', 'd', 'u', 'l', 'e', 'T', 'y', 'p', 'e', 0,
    'Q', 'I', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 'E', 'v', 'e', 'n', 't', ':', ':', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 'T', 'y', 'p', 'e', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'T', 'e', 'x', 't', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'F', 'o', 'r', 'm', 'a', 't', 'R', 'a', 'n', 'g', 'e', '>', 0,
    'Q', 'T', 'e', 'x', 't', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 'S', 't', 'y', 'l', 'e', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', ':', ':', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', 'M', 'e', 't', 'r', 'i', 'c', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'S', 'o', 'u', 'r', 'c', 'e', 'O', 'r', 'N', 'o', 't', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'N', 'o', 't', 'S', 'o', 'u', 'r', 'c', 'e', 'O', 'r', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 'A', 't', 'o', 'p', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 'O', 'v', 'e', 'r', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', '2', 'D', 'M', 'u', 'l', 't', 'i', 's', 'a', 'm', 'p', 'l', 'e', 'A', 'r', 'r', 'a', 'y', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'L', 'o', 'g', 'g', 'e', 'r', ':', ':', 'L', 'o', 'g', 'g', 'i', 'n', 'g', 'M', 'o', 'd', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'M', 'e', 's', 's', 'a', 'g', 'e', ':', ':', 'S', 'e', 'v', 'e', 'r', 'i', 't', 'i', 'e', 's', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'B', 'u', 'f', 'f', 'e', 'r', ':', ':', 'R', 'a', 'n', 'g', 'e', 'A', 'c', 'c', 'e', 's', 's', 'F', 'l', 'a', 'g', 's', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'T', 'o', 'u', 'c', 'h', 'E', 'v', 'e', 'n', 't', ':', ':', 'T', 'o', 'u', 'c', 'h', 'P', 'o', 'i', 'n', 't', '>', 0,
    'r', 'e', 'p', 'o', 'r', 't', 'C', 'o', 'n', 't', 'e', 'n', 't', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 0,
    'Q', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', ':', ':', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 'T', 'y', 'p', 'e', 0,
    'S', 'h', 'o', 'w', 'L', 'i', 'n', 'e', 'A', 'n', 'd', 'P', 'a', 'r', 'a', 'g', 'r', 'a', 'p', 'h', 'S', 'e', 'p', 'a', 'r', 'a', 't', 'o', 'r', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', ':', ':', 'M', 'e', 't', 'a', 'I', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'R', 'e', 'n', 'd', 'e', 'r', 'a', 'b', 'l', 'e', 'T', 'y', 'p', 'e', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 'O', 'u', 't', 0,
    's', 'e', 't', 'A', 'u', 't', 'o', 'M', 'i', 'p', 'M', 'a', 'p', 'G', 'e', 'n', 'e', 'r', 'a', 't', 'i', 'o', 'n', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'I', 'n', 'n', 'e', 'r', 'T', 'e', 's', 's', 'e', 'l', 'l', 'a', 't', 'i', 'o', 'n', 'L', 'e', 'v', 'e', 'l', 's', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'O', 'u', 't', 'e', 'r', 'T', 'e', 's', 's', 'e', 'l', 'l', 'a', 't', 'i', 'o', 'n', 'L', 'e', 'v', 'e', 'l', 's', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'O', 'b', 'j', 'e', 'c', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'B', 'u', 'f', 'f', 'e', 'r', ':', ':', 'R', 'a', 'n', 'g', 'e', 'A', 'c', 'c', 'e', 's', 's', 'F', 'l', 'a', 'g', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', 'W', 'r', 'i', 't', 'e', 'r', ':', ':', 'I', 'm', 'a', 'g', 'e', 'W', 'r', 'i', 't', 'e', 'r', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', 'R', 'e', 'a', 'd', 'e', 'r', ':', ':', 'I', 'm', 'a', 'g', 'e', 'R', 'e', 'a', 'd', 'e', 'r', 'E', 'r', 'r', 'o', 'r', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'P', 'a', 'i', 'r', '<', 'q', 'r', 'e', 'a', 'l', ',', 'Q', 'C', 'o', 'l', 'o', 'r', '>', ' ', '>', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'r', 'a', 'm', 'e', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', 0,
    'Q', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'F', 'o', 'r', 'm', 'a', 't', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 'D', 'r', 'a', 'w', 'M', 'o', 'd', 'e', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', ':', ':', 'P', 'i', 'x', 'm', 'a', 'p', 'F', 'r', 'a', 'g', 'm', 'e', 'n', 't', 'H', 'i', 'n', 't', 's', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'S', 'o', 'u', 'r', 'c', 'e', 'X', 'o', 'r', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'S', 'o', 'u', 'r', 'c', 'e', 'A', 'n', 'd', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 'I', 'n', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'W', 'i', 'n', 'd', 'o', 'w', ':', ':', 'U', 'p', 'd', 'a', 't', 'e', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
    'i', 's', 'A', 'u', 't', 'o', 'M', 'i', 'p', 'M', 'a', 'p', 'G', 'e', 'n', 'e', 'r', 'a', 't', 'i', 'o', 'n', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'M', 'e', 's', 's', 'a', 'g', 'e', ':', ':', 'S', 'e', 'v', 'e', 'r', 'i', 't', 'y', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', 'A', '8', '8', '8', '8', '_', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'A', 'R', 'G', 'B', '4', '4', '4', '4', '_', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'A', 'R', 'G', 'B', '8', '5', '5', '5', '_', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'A', 'R', 'G', 'B', '6', '6', '6', '6', '_', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'A', 'R', 'G', 'B', '8', '5', '6', '5', '_', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'T', 'h', 'r', 'e', 'a', 'd', 'e', 'd', 'F', 'o', 'n', 't', 'R', 'e', 'n', 'd', 'e', 'r', 'i', 'n', 'g', 0,
    'Q', 'T', 'o', 'u', 'c', 'h', 'D', 'e', 'v', 'i', 'c', 'e', ':', ':', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'y', 'F', 'l', 'a', 'g', 0,
    'W', 'r', 'a', 'p', 'A', 't', 'W', 'o', 'r', 'd', 'B', 'o', 'u', 'n', 'd', 'a', 'r', 'y', 'O', 'r', 'A', 'n', 'y', 'w', 'h', 'e', 'r', 'e', 0,
    'Q', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'S', 'w', 'a', 'p', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
    'Q', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'F', 'o', 'r', 'm', 'a', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'Q', 'S', 't', 'a', 't', 'i', 'c', 'T', 'e', 'x', 't', ':', ':', 'P', 'e', 'r', 'f', 'o', 'r', 'm', 'a', 'n', 'c', 'e', 'H', 'i', 'n', 't', 0,
    'Q', 'S', 'e', 's', 's', 'i', 'o', 'n', 'M', 'a', 'n', 'a', 'g', 'e', 'r', ':', ':', 'R', 'e', 's', 't', 'a', 'r', 't', 'H', 'i', 'n', 't', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', ':', ':', 'P', 'i', 'x', 'm', 'a', 'p', 'F', 'r', 'a', 'g', 'm', 'e', 'n', 't', 'H', 'i', 'n', 't', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'S', 'o', 'u', 'r', 'c', 'e', 'O', 'r', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'S', 'w', 'i', 'z', 'z', 'l', 'e', 'V', 'a', 'l', 'u', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'S', 'h', 'a', 'd', 'e', 'r', ':', ':', 'S', 'h', 'a', 'd', 'e', 'r', 'T', 'y', 'p', 'e', 'B', 'i', 't', 0,
    's', 'e', 't', 'L', 'e', 'a', 's', 't', 'S', 'i', 'g', 'n', 'i', 'f', 'i', 'c', 'a', 'n', 't', 'B', 'y', 't', 'e', 'F', 'i', 'r', 's', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'M', 'e', 's', 's', 'a', 'g', 'e', ':', ':', 'S', 'o', 'u', 'r', 'c', 'e', 's', 0,
    'Q', 'K', 'e', 'y', 'S', 'e', 'q', 'u', 'e', 'n', 'c', 'e', ':', ':', 'S', 'e', 'q', 'u', 'e', 'n', 'c', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', 'I', 'O', 'H', 'a', 'n', 'd', 'l', 'e', 'r', ':', ':', 'I', 'm', 'a', 'g', 'e', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'A', '2', 'R', 'G', 'B', '3', '0', '_', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'A', '2', 'B', 'G', 'R', '3', '0', '_', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'Q', 'F', 'o', 'n', 't', 'D', 'a', 't', 'a', 'b', 'a', 's', 'e', ':', ':', 'W', 'r', 'i', 't', 'i', 'n', 'g', 'S', 'y', 's', 't', 'e', 'm', 0,
    'Q', 'I', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 'E', 'v', 'e', 'n', 't', ':', ':', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 0,
    'P', 'y', 'Q', 't', '5', '.', 'Q', 't', 'C', 'o', 'r', 'e', '.', 'p', 'y', 'q', 't', 'W', 'r', 'a', 'p', 'p', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'Q', 'R', 'e', 'g', 'u', 'l', 'a', 'r', 'E', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 'V', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', 0,
    'c', 'l', 'e', 'a', 'r', 'C', 'o', 'l', 'u', 'm', 'n', 'W', 'i', 'd', 't', 'h', 'C', 'o', 'n', 's', 't', 'r', 'a', 'i', 'n', 't', 's', 0,
    'F', 'o', 'n', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's', 'S', 'p', 'e', 'c', 'i', 'f', 'i', 'e', 'd', 'O', 'n', 'l', 'y', 0,
    'T', 'a', 'b', 'l', 'e', 'C', 'o', 'l', 'u', 'm', 'n', 'W', 'i', 'd', 't', 'h', 'C', 'o', 'n', 's', 't', 'r', 'a', 'i', 'n', 't', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'P', 'a', 'g', 'e', 'B', 'r', 'e', 'a', 'k', 'F', 'l', 'a', 'g', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', ':', ':', 'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', 'T', 'y', 'p', 'e', 0,
    'Q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'A', 'l', 'p', 'h', 'a', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'O', 'b', 'j', 'e', 'c', 't', 'B', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'M', 'o', 'd', 'e', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', 's', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'P', 'a', 'g', 'e', 'd', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', ':', ':', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'I', 'm', 'm', 'u', 't', 'a', 'b', 'l', 'e', 'M', 'u', 'l', 't', 'i', 's', 'a', 'm', 'p', 'l', 'e', 'S', 't', 'o', 'r', 'a', 'g', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'C', 'u', 'b', 'e', 'M', 'a', 'p', 'F', 'a', 'c', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'P', 'i', 'x', 'e', 'l', 'T', 'r', 'a', 'n', 's', 'f', 'e', 'r', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    'h', 'a', 's', 'O', 'p', 'e', 'n', 'G', 'L', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'O', 'b', 'j', 'e', 'c', 't', 's', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'M', 'e', 's', 's', 'a', 'g', 'e', ':', ':', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'B', 'u', 'f', 'f', 'e', 'r', ':', ':', 'U', 's', 'a', 'g', 'e', 'P', 'a', 't', 't', 'e', 'r', 'n', 0,
    'Q', 'K', 'e', 'y', 'S', 'e', 'q', 'u', 'e', 'n', 'c', 'e', ':', ':', 'S', 'e', 'q', 'u', 'e', 'n', 'c', 'e', 'M', 'a', 't', 'c', 'h', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'A', 'R', 'G', 'B', '3', '2', '_', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'Q', 'I', 'c', 'o', 'n', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'I', 'c', 'o', 'n', 'E', 'n', 'g', 'i', 'n', 'e', 'H', 'o', 'o', 'k', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'L', 'a', 'y', 'o', 'u', 't', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'M', 'e', 's', 's', 'a', 'g', 'e', '>', 0,
    'Q', 'D', 'o', 'u', 'b', 'l', 'e', 'V', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', ':', ':', 'N', 'o', 't', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'T', 'o', 'u', 'c', 'h', 'D', 'e', 'v', 'i', 'c', 'e', ':', ':', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'i', 'e', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'r', 'a', 'm', 'e', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'P', 'a', 'g', 'e', 'B', 'r', 'e', 'a', 'k', 'F', 'l', 'a', 'g', 0,
    'Q', 'T', 'e', 'x', 't', 'C', 'u', 'r', 's', 'o', 'r', ':', ':', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 'T', 'y', 'p', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'C', 'u', 'r', 's', 'o', 'r', ':', ':', 'M', 'o', 'v', 'e', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'p', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'D', 'o', 't', 's', 'P', 'e', 'r', 'I', 'n', 'c', 'h', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'Q', 'R', 'a', 'w', 'F', 'o', 'n', 't', ':', ':', 'A', 'n', 't', 'i', 'a', 'l', 'i', 'a', 's', 'i', 'n', 'g', 'T', 'y', 'p', 'e', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'D', 'i', 'f', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'C', 'o', 'l', 'o', 'r', 'D', 'o', 'd', 'g', 'e', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'S', 'o', 'u', 'r', 'c', 'e', 'A', 't', 'o', 'p', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'S', 'o', 'u', 'r', 'c', 'e', 'O', 'v', 'e', 'r', 0,
    'Q', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', ':', ':', 'S', 'i', 'z', 'e', 'M', 'a', 't', 'c', 'h', 'P', 'o', 'l', 'i', 'c', 'y', 0,
    'Q', 'P', 'a', 'g', 'e', 'd', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', ':', ':', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', '2', 'D', 'M', 'u', 'l', 't', 'i', 's', 'a', 'm', 'p', 'l', 'e', 0,
    'i', 's', 'L', 'e', 'a', 's', 't', 'S', 'i', 'g', 'n', 'i', 'f', 'i', 'c', 'a', 'n', 't', 'B', 'i', 't', 'F', 'i', 'r', 's', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'M', 'e', 's', 's', 'a', 'g', 'e', ':', ':', 'T', 'y', 'p', 'e', 's', 0,
    's', 'e', 't', 'D', 'e', 'c', 'i', 'd', 'e', 'F', 'o', 'r', 'm', 'a', 't', 'F', 'r', 'o', 'm', 'C', 'o', 'n', 't', 'e', 'n', 't', 0,
    'a', 'd', 'd', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'F', 'o', 'n', 't', 'F', 'r', 'o', 'm', 'D', 'a', 't', 'a', 0,
    'Q', 'T', 'a', 'b', 'l', 'e', 't', 'E', 'v', 'e', 'n', 't', ':', ':', 'T', 'a', 'b', 'l', 'e', 't', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'c', 'o', 'n', 't', 'e', 'n', 't', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'i', 'n', 'e', ':', ':', 'C', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'C', 'o', 'l', 'u', 'm', 'n', 'W', 'i', 'd', 't', 'h', 'C', 'o', 'n', 's', 't', 'r', 'a', 'i', 'n', 't', 's', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'u', 'r', 's', 'o', 'r', 'M', 'o', 'v', 'e', 'S', 't', 'y', 'l', 'e', 0,
    'm', 'o', 'u', 's', 'e', 'P', 'r', 'e', 's', 's', 'A', 'n', 'd', 'H', 'o', 'l', 'd', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 0,
    's', 'e', 't', 'H', 'o', 'r', 'i', 'z', 'o', 'n', 't', 'a', 'l', 'H', 'e', 'a', 'd', 'e', 'r', 'L', 'a', 'b', 'e', 'l', 's', 0,
    'p', 'r', 'i', 'm', 'a', 'r', 'y', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'l', 'o', 'g', 'i', 'c', 'a', 'l', 'D', 'o', 't', 's', 'P', 'e', 'r', 'I', 'n', 'c', 'h', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', 'P', 'a', 't', 'h', ':', ':', 'E', 'l', 'e', 'm', 'e', 'n', 't', 'T', 'y', 'p', 'e', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'C', 'l', 'e', 'a', 'r', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'E', 'x', 'c', 'l', 'u', 's', 'i', 'o', 'n', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'S', 'o', 'f', 't', 'L', 'i', 'g', 'h', 't', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'H', 'a', 'r', 'd', 'L', 'i', 'g', 'h', 't', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'C', 'o', 'l', 'o', 'r', 'B', 'u', 'r', 'n', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'S', 'o', 'u', 'r', 'c', 'e', 'O', 'u', 't', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', ':', ':', 'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', 0,
    'F', 'l', 'o', 'a', 't', '3', '2', '_', 'D', '3', '2', '_', 'U', 'I', 'n', 't', '3', '2', '_', 'S', '8', '_', 'X', '2', '4', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'P', 'i', 'x', 'e', 'l', 'T', 'y', 'p', 'e', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', 'C', 'u', 'b', 'e', 'M', 'a', 'p', 'A', 'r', 'r', 'a', 'y', 0,
    'm', 'a', 'x', 'G', 'e', 'o', 'm', 'e', 't', 'r', 'y', 'O', 'u', 't', 'p', 'u', 't', 'V', 'e', 'r', 't', 'i', 'c', 'e', 's', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'S', 'h', 'a', 'd', 'e', 'r', ':', ':', 'S', 'h', 'a', 'd', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'M', 'e', 's', 's', 'a', 'g', 'e', ':', ':', 'T', 'y', 'p', 'e', 0,
    'Q', 'K', 'e', 'y', 'S', 'e', 'q', 'u', 'e', 'n', 'c', 'e', ':', ':', 'S', 't', 'a', 'n', 'd', 'a', 'r', 'd', 'K', 'e', 'y', 0,
    's', 'e', 't', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'D', 'i', 's', 'p', 'l', 'a', 'y', 'N', 'a', 'm', 'e', 0,
    's', 'e', 't', 'Q', 'u', 'i', 't', 'O', 'n', 'L', 'a', 's', 't', 'W', 'i', 'n', 'd', 'o', 'w', 'C', 'l', 'o', 's', 'e', 'd', 0,
    'Q', 'F', 'o', 'n', 't', 'D', 'a', 't', 'a', 'b', 'a', 's', 'e', ':', ':', 'S', 'y', 's', 't', 'e', 'm', 'F', 'o', 'n', 't', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'A', 'l', 'l', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'F', 'o', 'n', 't', 's', 0,
    'Q', 'S', 'c', 'r', 'o', 'l', 'l', 'E', 'v', 'e', 'n', 't', ':', ':', 'S', 'c', 'r', 'o', 'l', 'l', 'S', 't', 'a', 't', 'e', 0,
    'Q', 'C', 'o', 'n', 't', 'e', 'x', 't', 'M', 'e', 'n', 'u', 'E', 'v', 'e', 'n', 't', ':', ':', 'R', 'e', 'a', 's', 'o', 'n', 0,
    'Q', 'T', 'a', 'b', 'l', 'e', 't', 'E', 'v', 'e', 'n', 't', ':', ':', 'P', 'o', 'i', 'n', 't', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'Q', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', ':', ':', 'C', 'o', 'o', 'r', 'd', 'i', 'n', 'a', 't', 'e', 'M', 'o', 'd', 'e', 0,
    'c', 'h', 'a', 'n', 'g', 'e', 'P', 'e', 'r', 's', 'i', 's', 't', 'e', 'n', 't', 'I', 'n', 'd', 'e', 'x', 'L', 'i', 's', 't', 0,
    'Q', 'T', 'o', 'u', 'c', 'h', 'D', 'e', 'v', 'i', 'c', 'e', ':', ':', 'D', 'e', 'v', 'i', 'c', 'e', 'T', 'y', 'p', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'F', 'o', 'r', 'm', 'a', 't', 'R', 'a', 'n', 'g', 'e', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'L', 'e', 't', 't', 'e', 'r', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'H', 'i', 'n', 't', 'i', 'n', 'g', 'P', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'O', 'b', 'j', 'e', 'c', 't', 'T', 'y', 'p', 'e', 's', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', ':', ':', 'F', 'i', 'n', 'd', 'F', 'l', 'a', 'g', 's', 0,
    'm', 'o', 'u', 's', 'e', 'D', 'o', 'u', 'b', 'l', 'e', 'C', 'l', 'i', 'c', 'k', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 0,
    's', 'e', 't', 'A', 'c', 'c', 'e', 's', 's', 'i', 'b', 'l', 'e', 'D', 'e', 's', 'c', 'r', 'i', 'p', 't', 'i', 'o', 'n', 0,
    't', 'a', 'k', 'e', 'H', 'o', 'r', 'i', 'z', 'o', 'n', 't', 'a', 'l', 'H', 'e', 'a', 'd', 'e', 'r', 'I', 't', 'e', 'm', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'G', 'e', 'o', 'm', 'e', 't', 'r', 'y', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 'U', 'p', 'd', 'a', 't', 'e', 'M', 'a', 's', 'k', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'V', 'i', 'r', 't', 'u', 'a', 'l', 'G', 'e', 'o', 'm', 'e', 't', 'r', 'y', 0,
    'Q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'A', 'l', 'p', 'h', 'a', 'U', 's', 'a', 'g', 'e', 0,
    'Q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'C', 'o', 'l', 'o', 'r', 'M', 'o', 'd', 'e', 'l', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'D', 'i', 'r', 't', 'y', 'F', 'l', 'a', 'g', 's', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', ':', ':', 'P', 'i', 'x', 'm', 'a', 'p', 'F', 'r', 'a', 'g', 'm', 'e', 'n', 't', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'M', 'u', 'l', 't', 'i', 'p', 'l', 'y', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'S', 'o', 'u', 'r', 'c', 'e', 'I', 'n', 0,
    'Q', 'P', 'a', 'g', 'e', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'V', 'e', 'r', 't', 'e', 'x', 'A', 'r', 'r', 'a', 'y', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'Q', 'A', 'b', 's', 't', 'r', 'a', 'c', 't', 'O', 'p', 'e', 'n', 'G', 'L', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'W', 'r', 'a', 'p', 'M', 'o', 'd', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'F', 'e', 'a', 't', 'u', 'r', 'e', 's', 0,
    's', 'e', 't', 'I', 'n', 't', 'e', 'r', 'n', 'a', 'l', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'h', 'a', 's', 'O', 'p', 'e', 'n', 'G', 'L', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'B', 'l', 'i', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'I', 'n', 's', 'e', 'r', 't', 'P', 'a', 'r', 'a', 'g', 'r', 'a', 'p', 'h', 'S', 'e', 'p', 'a', 'r', 'a', 't', 'o', 'r', 0,
    'k', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'A', 'u', 't', 'o', 'D', 'e', 't', 'e', 'c', 't', 'I', 'm', 'a', 'g', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'G', 'l', 'y', 'p', 'h', 'R', 'u', 'n', ':', ':', 'G', 'l', 'y', 'p', 'h', 'R', 'u', 'n', 'F', 'l', 'a', 'g', 's', 0,
    'Q', 'F', 'o', 'n', 't', ':', ':', 'H', 'i', 'n', 't', 'i', 'n', 'g', 'P', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', ':', ':', 'T', 'a', 'b', '>', 0,
    'C', 'u', 'r', 's', 'o', 'r', 'B', 'e', 't', 'w', 'e', 'e', 'n', 'C', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'C', 'u', 'r', 's', 'o', 'r', 'M', 'o', 'd', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'F', 'o', 'r', 'm', 'a', 't', 'T', 'y', 'p', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', ':', ':', 'F', 'i', 'n', 'd', 'F', 'l', 'a', 'g', 0,
    's', 'e', 't', 'K', 'e', 'e', 'p', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 'O', 'n', 'I', 'n', 's', 'e', 'r', 't', 0,
    's', 'e', 't', 'C', 'u', 'r', 'r', 'e', 'n', 't', 'B', 'l', 'o', 'c', 'k', 'U', 's', 'e', 'r', 'D', 'a', 't', 'a', 0,
    'Q', 'S', 't', 'a', 'n', 'd', 'a', 'r', 'd', 'I', 't', 'e', 'm', ':', ':', 'I', 't', 'e', 'm', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'V', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'H', 'e', 'a', 'd', 'e', 'r', 'L', 'a', 'b', 'e', 'l', 's', 0,
    's', 'e', 't', 'H', 'o', 'r', 'i', 'z', 'o', 'n', 't', 'a', 'l', 'H', 'e', 'a', 'd', 'e', 'r', 'I', 't', 'e', 'm', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'W', 'r', 'i', 't', 'i', 'n', 'g', 'S', 'y', 's', 't', 'e', 'm', 's', 0,
    'a', 'd', 'v', 'a', 'n', 'c', 'e', 's', 'F', 'o', 'r', 'G', 'l', 'y', 'p', 'h', 'I', 'n', 'd', 'e', 'x', 'e', 's', 0,
    'Q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'B', 'y', 't', 'e', 'O', 'r', 'd', 'e', 'r', 0,
    'Q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'Y', 'U', 'V', 'L', 'a', 'y', 'o', 'u', 't', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'D', 'i', 'r', 't', 'y', 'F', 'l', 'a', 'g', 0,
    's', 'e', 't', 'V', 'i', 'e', 'w', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'N', 'o', 't', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'S', 'e', 't', 'D', 'e', 's', 't', 'i', 'n', 'a', 't', 'i', 'o', 'n', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'L', 'i', 'g', 'h', 't', 'e', 'n', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'O', 'v', 'e', 'r', 'l', 'a', 'y', 0,
    'H', 'i', 'g', 'h', 'Q', 'u', 'a', 'l', 'i', 't', 'y', 'A', 'n', 't', 'i', 'a', 'l', 'i', 'a', 's', 'i', 'n', 'g', 0,
    's', 'e', 't', 'F', 'i', 'x', 'e', 'd', 'S', 'a', 'm', 'p', 'l', 'e', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 's', 0,
    's', 'e', 't', 'M', 'a', 'x', 'i', 'm', 'u', 'm', 'L', 'e', 'v', 'e', 'l', 'O', 'f', 'D', 'e', 't', 'a', 'i', 'l', 0,
    's', 'e', 't', 'M', 'i', 'n', 'i', 'm', 'u', 'm', 'L', 'e', 'v', 'e', 'l', 'O', 'f', 'D', 'e', 't', 'a', 'i', 'l', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'F', 'e', 'a', 't', 'u', 'r', 'e', 0,
    'h', 'a', 's', 'O', 'p', 'e', 'n', 'G', 'L', 'S', 'h', 'a', 'd', 'e', 'r', 'P', 'r', 'o', 'g', 'r', 'a', 'm', 's', 0,
    'a', 'd', 'd', 'S', 'h', 'a', 'd', 'e', 'r', 'F', 'r', 'o', 'm', 'S', 'o', 'u', 'r', 'c', 'e', 'F', 'i', 'l', 'e', 0,
    'a', 'd', 'd', 'S', 'h', 'a', 'd', 'e', 'r', 'F', 'r', 'o', 'm', 'S', 'o', 'u', 'r', 'c', 'e', 'C', 'o', 'd', 'e', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'T', 'h', 'i', 'r', 'd', 'P', 'a', 'r', 't', 'y', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'd', 'e', 'c', 'i', 'd', 'e', 'F', 'o', 'r', 'm', 'a', 't', 'F', 'r', 'o', 'm', 'C', 'o', 'n', 't', 'e', 'n', 't', 0,
    'a', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'S', 't', 'a', 't', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'D', 'e', 's', 'k', 't', 'o', 'p', 'S', 'e', 't', 't', 'i', 'n', 'g', 's', 'A', 'w', 'a', 'r', 'e', 0,
    'Q', 'G', 'l', 'y', 'p', 'h', 'R', 'u', 'n', ':', ':', 'G', 'l', 'y', 'p', 'h', 'R', 'u', 'n', 'F', 'l', 'a', 'g', 0,
    'a', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'F', 'o', 'n', 't', 'F', 'a', 'm', 'i', 'l', 'i', 'e', 's', 0,
    'Q', 'T', 'o', 'u', 'c', 'h', 'E', 'v', 'e', 'n', 't', ':', ':', 'T', 'o', 'u', 'c', 'h', 'P', 'o', 'i', 'n', 't', 0,
    'Q', 'W', 'i', 'n', 'd', 'o', 'w', 'S', 't', 'a', 't', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'C', 'o', 'n', 't', 'e', 'x', 't', '*', '>', 0,
    's', 'e', 't', 'K', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 'G', 'r', 'a', 'b', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'p', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'C', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'c', 'l', 'e', 'a', 'r', 'A', 'd', 'd', 'i', 't', 'i', 'o', 'n', 'a', 'l', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    'c', 'o', 'l', 'u', 'm', 'n', 'W', 'i', 'd', 't', 'h', 'C', 'o', 'n', 's', 't', 'r', 'a', 'i', 'n', 't', 's', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'D', 'o', 't', 'D', 'o', 't', 'D', 'a', 's', 'h', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'i', 's', 't', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'S', 't', 'y', 'l', 'e', 0,
    's', 'e', 't', 'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'C', 'o', 'l', 'u', 'm', 'n', 'S', 'p', 'a', 'n', 0,
    'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'B', 'o', 't', 't', 'o', 'm', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'B', 'l', 'o', 'c', 'k', 'N', 'o', 'n', 'B', 'r', 'e', 'a', 'k', 'a', 'b', 'l', 'e', 'L', 'i', 'n', 'e', 's', 0,
    'P', 'a', 'g', 'e', 'B', 'r', 'e', 'a', 'k', '_', 'A', 'l', 'w', 'a', 'y', 's', 'B', 'e', 'f', 'o', 'r', 'e', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'C', 'u', 'r', 's', 'o', 'r', 'M', 'o', 'v', 'e', 'S', 't', 'y', 'l', 'e', 0,
    'Q', 'S', 'u', 'r', 'f', 'a', 'c', 'e', ':', ':', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'C', 'l', 'a', 's', 's', 0,
    's', 'e', 't', 'F', 'o', 'c', 'u', 's', 'O', 'n', 'T', 'o', 'u', 'c', 'h', 'R', 'e', 'l', 'e', 'a', 's', 'e', 0,
    'k', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 'A', 'u', 't', 'o', 'R', 'e', 'p', 'e', 'a', 't', 'R', 'a', 't', 'e', 0,
    't', 'a', 'k', 'e', 'V', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'H', 'e', 'a', 'd', 'e', 'r', 'I', 't', 'e', 'm', 0,
    'a', 'l', 'l', 'o', 'w', 's', 'E', 'r', 'r', 'o', 'r', 'I', 'n', 't', 'e', 'r', 'a', 'c', 't', 'i', 'o', 'n', 0,
    'v', 'i', 'r', 't', 'u', 'a', 'l', 'G', 'e', 'o', 'm', 'e', 't', 'r', 'y', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'P', 'a', 'i', 'n', 't', 'O', 'u', 't', 's', 'i', 'd', 'e', 'P', 'a', 'i', 'n', 't', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'I', 't', 'e', 'm', ':', ':', 'R', 'e', 'n', 'd', 'e', 'r', 'F', 'l', 'a', 'g', 's', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'D', 'a', 'r', 'k', 'e', 'n', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'S', 'c', 'r', 'e', 'e', 'n', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'i', 's', 'F', 'i', 'x', 'e', 'd', 'S', 'a', 'm', 'p', 'l', 'e', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 's', 0,
    's', 'e', 't', 'M', 'a', 'g', 'n', 'i', 'f', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'F', 'i', 'l', 't', 'e', 'r', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'F', 'i', 'l', 't', 'e', 'r', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', ':', ':', 'T', 'a', 'r', 'g', 'e', 't', 0,
    'T', 'e', 's', 's', 'e', 'l', 'l', 'a', 't', 'i', 'o', 'n', 'E', 'v', 'a', 'l', 'u', 'a', 't', 'i', 'o', 'n', 0,
    'D', 'e', 'p', 'r', 'e', 'c', 'a', 't', 'e', 'd', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 'T', 'y', 'p', 'e', 0,
    'c', 'u', 'r', 's', 'o', 'r', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'U', 'n', 's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'F', 'o', 'r', 'm', 'a', 't', 'E', 'r', 'r', 'o', 'r', 0,
    'l', 'a', 'y', 'o', 'u', 't', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'a', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'D', 'i', 's', 'p', 'l', 'a', 'y', 'N', 'a', 'm', 'e', 0,
    'q', 'u', 'i', 't', 'O', 'n', 'L', 'a', 's', 't', 'W', 'i', 'n', 'd', 'o', 'w', 'C', 'l', 'o', 's', 'e', 'd', 0,
    'q', 'u', 'e', 'r', 'y', 'K', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 'M', 'o', 'd', 'i', 'f', 'i', 'e', 'r', 's', 0,
    'Q', 'W', 'h', 'a', 't', 's', 'T', 'h', 'i', 's', 'C', 'l', 'i', 'c', 'k', 'e', 'd', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'I', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 'Q', 'u', 'e', 'r', 'y', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'S', 't', 'a', 'n', 'd', 'a', 'r', 'd', 'I', 't', 'e', 'm', '*', '>', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'S', 'h', 'a', 'd', 'e', 'r', '*', '>', 0,
    'm', 'o', 'u', 's', 'e', 'D', 'o', 'u', 'b', 'l', 'e', 'C', 'l', 'i', 'c', 'k', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'W', 'i', 'n', 'd', 'o', 'w', ':', ':', 'A', 'n', 'c', 'e', 's', 't', 'o', 'r', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'M', 'a', 'x', 'i', 'm', 'u', 'm', 'T', 'o', 'u', 'c', 'h', 'P', 'o', 'i', 'n', 't', 's', 0,
    'I', 'n', 'c', 'l', 'u', 'd', 'e', 'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', 'S', 'p', 'a', 'c', 'e', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', ':', ':', 'W', 'r', 'a', 'p', 'M', 'o', 'd', 'e', 0,
    'i', 's', 'V', 'a', 'l', 'i', 'd', 'C', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'f', 'o', 'n', 't', 'L', 'e', 't', 't', 'e', 'r', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 'T', 'y', 'p', 'e', 0,
    'f', 'o', 'n', 't', 'H', 'i', 'n', 't', 'i', 'n', 'g', 'P', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'C', 'a', 'p', 'i', 't', 'a', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', 0,
    'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'R', 'i', 'g', 'h', 't', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'T', 'e', 'x', 't', 'V', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'A', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', ':', ':', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'P', 'a', 'g', 'e', 'B', 'r', 'e', 'a', 'k', '_', 'A', 'l', 'w', 'a', 'y', 's', 'A', 'f', 't', 'e', 'r', 0,
    'Q', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'F', 'r', 'a', 'g', 'm', 'e', 'n', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', ':', ':', 'S', 't', 'a', 'c', 'k', 's', 0,
    'd', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'L', 'a', 'y', 'o', 'u', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'f', 'i', 'n', 'd', 'B', 'l', 'o', 'c', 'k', 'B', 'y', 'L', 'i', 'n', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'c', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'j', 'o', 'i', 'n', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'E', 'd', 'i', 't', 'B', 'l', 'o', 'c', 'k', 0,
    'Q', 'T', 'e', 'x', 't', 'C', 'u', 'r', 's', 'o', 'r', ':', ':', 'M', 'o', 'v', 'e', 'M', 'o', 'd', 'e', 0,
    'D', 'e', 'f', 'a', 'u', 'l', 't', 'R', 'e', 'n', 'd', 'e', 'r', 'a', 'b', 'l', 'e', 'T', 'y', 'p', 'e', 0,
    'Q', 'S', 'u', 'r', 'f', 'a', 'c', 'e', ':', ':', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'T', 'y', 'p', 'e', 0,
    'p', 'a', 's', 's', 'w', 'o', 'r', 'd', 'M', 'a', 's', 'k', 'C', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 0,
    'k', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 'I', 'n', 'p', 'u', 't', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 0,
    'a', 'c', 'c', 'e', 's', 's', 'i', 'b', 'l', 'e', 'D', 'e', 's', 'c', 'r', 'i', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'V', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'H', 'e', 'a', 'd', 'e', 'r', 'I', 't', 'e', 'm', 0,
    'o', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 'U', 'p', 'd', 'a', 't', 'e', 'M', 'a', 's', 'k', 0,
    'Q', 'R', 'a', 'w', 'F', 'o', 'n', 't', ':', ':', 'L', 'a', 'y', 'o', 'u', 't', 'F', 'l', 'a', 'g', 's', 0,
    'g', 'l', 'y', 'p', 'h', 'I', 'n', 'd', 'e', 'x', 'e', 's', 'F', 'o', 'r', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 'G', 'r', 'a', 'y', 's', 'c', 'a', 'l', 'e', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', 'P', 'a', 't', 'h', ':', ':', 'E', 'l', 'e', 'm', 'e', 'n', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'I', 't', 'e', 'm', ':', ':', 'R', 'e', 'n', 'd', 'e', 'r', 'F', 'l', 'a', 'g', 0,
    's', 'e', 't', 'W', 'o', 'r', 'l', 'd', 'M', 'a', 't', 'r', 'i', 'x', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'C', 'l', 'e', 'a', 'r', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', ':', ':', 'R', 'e', 'n', 'd', 'e', 'r', 'H', 'i', 'n', 't', 's', 0,
    'Q', 't', '4', 'C', 'o', 'm', 'p', 'a', 't', 'i', 'b', 'l', 'e', 'P', 'a', 'i', 'n', 't', 'i', 'n', 'g', 0,
    'N', 'o', 'n', 'C', 'o', 's', 'm', 'e', 't', 'i', 'c', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'P', 'e', 'n', 0,
    'S', 'm', 'o', 'o', 't', 'h', 'P', 'i', 'x', 'm', 'a', 'p', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'F', 'u', 'z', 'z', 'y', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 'M', 'a', 't', 'c', 'h', 0,
    'Q', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', ':', ':', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 'I', 'd', 0,
    's', 'e', 't', 'L', 'e', 'v', 'e', 'l', 'O', 'f', 'D', 'e', 't', 'a', 'i', 'l', 'R', 'a', 'n', 'g', 'e', 0,
    's', 'e', 't', 'M', 'i', 'n', 'i', 'f', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'F', 'i', 'l', 't', 'e', 'r', 0,
    'R', 'G', 'B', '_', 'B', 'P', '_', 'U', 'N', 'S', 'I', 'G', 'N', 'E', 'D', '_', 'F', 'L', 'O', 'A', 'T', 0,
    'd', 'i', 's', 'a', 'b', 'l', 'e', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 'A', 'r', 'r', 'a', 'y', 0,
    'b', 'i', 'n', 'd', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 'L', 'o', 'c', 'a', 't', 'i', 'o', 'n', 0,
    'i', 'n', 't', 'e', 'r', 'n', 'a', 'l', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'U', 'n', 'd', 'e', 'f', 'i', 'n', 'e', 'd', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 'T', 'y', 'p', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'V', 'e', 'r', 's', 'i', 'o', 'n', 'P', 'r', 'o', 'f', 'i', 'l', 'e', 0,
    'R', 'a', 'n', 'g', 'e', 'I', 'n', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'B', 'u', 'f', 'f', 'e', 'r', ':', ':', 'A', 'c', 'c', 'e', 's', 's', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'S', 't', 'a', 'r', 't', 'O', 'f', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'S', 't', 'a', 'r', 't', 'O', 'f', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 0,
    'i', 'n', 'p', 'u', 't', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'I', 'n', 'p', 'u', 't', 'I', 't', 'e', 'm', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 0,
    's', 'e', 't', 'I', 'n', 'p', 'u', 't', 'I', 't', 'e', 'm', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'a', 'u', 't', 'o', 'D', 'e', 't', 'e', 'c', 't', 'I', 'm', 'a', 'g', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'I', 'm', 'a', 'g', 'e', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    'r', 'e', 's', 't', 'o', 'r', 'e', 'O', 'v', 'e', 'r', 'r', 'i', 'd', 'e', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'F', 'o', 'n', 't', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'V', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'H', 'i', 'n', 't', 'i', 'n', 'g', 0,
    'Q', 'F', 'o', 'n', 't', ':', ':', 'C', 'a', 'p', 'i', 't', 'a', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', 0,
    'c', 'h', 'a', 'n', 'g', 'e', 'P', 'e', 'r', 's', 'i', 's', 't', 'e', 'n', 't', 'I', 'n', 'd', 'e', 'x', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'T', 'o', 'u', 'c', 'h', 'D', 'e', 'v', 'i', 'c', 'e', '*', '>', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'T', 'e', 'x', 't', 'L', 'e', 'n', 'g', 't', 'h', '>', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'T', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', '>', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'H', 'e', 'i', 'g', 'h', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'm', 'i', 'n', 'i', 'm', 'u', 'm', 'H', 'e', 'i', 'g', 'h', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'R', 'e', 'g', 'u', 'l', 'a', 'r', 'E', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0,
    't', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'F', 'o', 'r', 'm', 'a', 't', 'I', 'n', 'd', 'e', 'x', 0,
    'Q', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', ':', ':', 'T', 'a', 'b', 'T', 'y', 'p', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'B', 'l', 'o', 'c', 'k', ':', ':', 'i', 't', 'e', 'r', 'a', 't', 'o', 'r', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'r', 'a', 'm', 'e', ':', ':', 'i', 't', 'e', 'r', 'a', 't', 'o', 'r', 0,
    's', 'e', 't', 'A', 'd', 'd', 'i', 't', 'i', 'o', 'n', 'a', 'l', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 't', 'N', 'o', 'n', 'B', 'r', 'e', 'a', 'k', 'a', 'b', 'l', 'e', 'L', 'i', 'n', 'e', 's', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'S', 't', 'y', 'l', 'e', 'S', 't', 'r', 'a', 't', 'e', 'g', 'y', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'L', 'e', 't', 't', 'e', 'r', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    's', 'e', 't', 'V', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'A', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    'l', 'e', 'n', 'g', 't', 'h', 'V', 'e', 'c', 't', 'o', 'r', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'L', 'e', 'f', 't', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'M', 'a', 'x', 'i', 'm', 'u', 'm', 'B', 'l', 'o', 'c', 'k', 'C', 'o', 'u', 'n', 't', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'S', 't', 'y', 'l', 'e', 'S', 'h', 'e', 'e', 't', 0,
    'c', 'o', 'n', 'v', 'e', 'r', 't', 'F', 'r', 'o', 'm', 'P', 'l', 'a', 'i', 'n', 'T', 'e', 'x', 't', 0,
    'k', 'e', 'e', 'p', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 'O', 'n', 'I', 'n', 's', 'e', 'r', 't', 0,
    's', 'e', 't', 'V', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'M', 'o', 'v', 'e', 'm', 'e', 'n', 't', 'X', 0,
    'm', 'e', 'r', 'g', 'e', 'B', 'l', 'o', 'c', 'k', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'B', 'l', 'o', 'c', 'k', 'U', 's', 'e', 'r', 'D', 'a', 't', 'a', 0,
    's', 'e', 't', 'C', 'u', 'r', 'r', 'e', 'n', 't', 'B', 'l', 'o', 'c', 'k', 'S', 't', 'a', 't', 'e', 0,
    's', 'e', 't', 'S', 't', 'e', 'n', 'c', 'i', 'l', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'C', 'o', 'm', 'p', 'a', 't', 'i', 'b', 'i', 'l', 'i', 't', 'y', 'P', 'r', 'o', 'f', 'i', 'l', 'e', 0,
    'h', 'o', 'r', 'i', 'z', 'o', 'n', 't', 'a', 'l', 'H', 'e', 'a', 'd', 'e', 'r', 'I', 't', 'e', 'm', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'V', 'i', 'r', 't', 'u', 'a', 'l', 'S', 'i', 'z', 'e', 0,
    'p', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'D', 'o', 't', 's', 'P', 'e', 'r', 'I', 'n', 'c', 'h', 'Y', 0,
    'p', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'D', 'o', 't', 's', 'P', 'e', 'r', 'I', 'n', 'c', 'h', 'X', 0,
    'Q', 'R', 'a', 'w', 'F', 'o', 'n', 't', ':', ':', 'L', 'a', 'y', 'o', 'u', 't', 'F', 'l', 'a', 'g', 0,
    'S', 'u', 'b', 'P', 'i', 'x', 'e', 'l', 'A', 'n', 't', 'i', 'a', 'l', 'i', 'a', 's', 'i', 'n', 'g', 0,
    's', 'e', 't', 'C', 'u', 'r', 'r', 'e', 'n', 't', 'C', 'o', 'l', 'o', 'r', 'G', 'r', 'o', 'u', 'p', 0,
    'Q', 'P', 'a', 'l', 'e', 't', 't', 'e', ':', ':', 'C', 'o', 'l', 'o', 'r', 'G', 'r', 'o', 'u', 'p', 0,
    's', 'e', 't', 'E', 'l', 'e', 'm', 'e', 'n', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 'A', 't', 0,
    'D', 'i', 'r', 't', 'y', 'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', 0,
    'P', 'e', 'r', 's', 'p', 'e', 'c', 't', 'i', 'v', 'e', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'v', 'i', 'e', 'w', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'P', 'l', 'u', 's', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', ':', ':', 'R', 'e', 'n', 'd', 'e', 'r', 'H', 'i', 'n', 't', 0,
    's', 'e', 't', 'L', 'e', 'v', 'e', 'l', 'o', 'f', 'D', 'e', 't', 'a', 'i', 'l', 'B', 'i', 'a', 's', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'L', 'e', 'v', 'e', 'l', 'O', 'f', 'D', 'e', 't', 'a', 'i', 'l', 0,
    'm', 'i', 'n', 'i', 'm', 'u', 'm', 'L', 'e', 'v', 'e', 'l', 'O', 'f', 'D', 'e', 't', 'a', 'i', 'l', 0,
    's', 'e', 't', 'M', 'a', 'x', 'i', 'm', 'u', 'm', 'A', 'n', 'i', 's', 'o', 't', 'r', 'o', 'p', 'y', 0,
    'N', 'e', 'a', 'r', 'e', 's', 't', 'M', 'i', 'p', 'M', 'a', 'p', 'N', 'e', 'a', 'r', 'e', 's', 't', 0,
    'A', 'n', 'i', 's', 'o', 't', 'r', 'o', 'p', 'i', 'c', 'F', 'i', 'l', 't', 'e', 'r', 'i', 'n', 'g', 0,
    'T', 'e', 'x', 't', 'u', 'r', 'e', 'C', 'u', 'b', 'e', 'M', 'a', 'p', 'A', 'r', 'r', 'a', 'y', 's', 0,
    'L', 'u', 'm', 'i', 'n', 'a', 'n', 'c', 'e', 'A', 'l', 'p', 'h', 'a', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'D', 'o', 'n', 't', 'R', 'e', 's', 'e', 't', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'U', 'n', 'i', 't', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', 'C', 'u', 'b', 'e', 'M', 'a', 'p', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', '2', 'D', 'A', 'r', 'r', 'a', 'y', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', '1', 'D', 'A', 'r', 'r', 'a', 'y', 0,
    's', 'e', 't', 'U', 'n', 'i', 'f', 'o', 'r', 'm', 'V', 'a', 'l', 'u', 'e', 'A', 'r', 'r', 'a', 'y', 0,
    'e', 'n', 'a', 'b', 'l', 'e', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 'A', 'r', 'r', 'a', 'y', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'S', 'h', 'a', 'd', 'e', 'r', 'P', 'r', 'o', 'g', 'r', 'a', 'm', 0,
    'C', 'o', 'm', 'b', 'i', 'n', 'e', 'd', 'D', 'e', 'p', 't', 'h', 'S', 't', 'e', 'n', 'c', 'i', 'l', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'M', 'e', 's', 's', 'a', 'g', 'e', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'N', 'o', 't', 'i', 'f', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'S', 'e', 'v', 'e', 'r', 'i', 't', 'y', 0,
    'S', 'h', 'a', 'd', 'e', 'r', 'C', 'o', 'm', 'p', 'i', 'l', 'e', 'r', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'Q', 'I', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', ':', ':', 'A', 'c', 't', 'i', 'o', 'n', 0,
    'd', 'e', 's', 'k', 't', 'o', 'p', 'S', 'e', 't', 't', 'i', 'n', 'g', 's', 'A', 'w', 'a', 'r', 'e', 0,
    'c', 'h', 'a', 'n', 'g', 'e', 'O', 'v', 'e', 'r', 'r', 'i', 'd', 'e', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'S', 'm', 'a', 'l', 'l', 'e', 's', 't', 'R', 'e', 'a', 'd', 'a', 'b', 'l', 'e', 'F', 'o', 'n', 't', 0,
    's', 'e', 't', 'H', 'i', 'n', 't', 'i', 'n', 'g', 'P', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'H', 'i', 'n', 't', 'i', 'n', 'g', 0,
    'Q', 'F', 'o', 'n', 't', ':', ':', 'S', 't', 'y', 'l', 'e', 'S', 't', 'r', 'a', 't', 'e', 'g', 'y', 0,
    'a', 'c', 'c', 'e', 'p', 't', 'P', 'r', 'o', 'p', 'o', 's', 'e', 'd', 'A', 'c', 't', 'i', 'o', 'n', 0,
    'Q', 'T', 'e', 'x', 't', 'O', 'b', 'j', 'e', 'c', 't', 'I', 'n', 't', 'e', 'r', 'f', 'a', 'c', 'e', 0,
    'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'I', 'n', 'l', 'i', 'n', 'e', 'O', 'b', 'j', 'e', 'c', 't', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'D', 'r', 'a', 'g', 'A', 'c', 't', 'i', 'o', 'n', 's', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'D', 'r', 'o', 'p', 'A', 'c', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'K', 'e', 'y', 'S', 'e', 'q', 'u', 'e', 'n', 'c', 'e', '>', 0,
    'A', 'u', 't', 'o', 'm', 'a', 't', 'i', 'c', 'V', 'i', 's', 'i', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'Q', 'W', 'i', 'n', 'd', 'o', 'w', ':', ':', 'V', 'i', 's', 'i', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'W', 'i', 'd', 't', 'h', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'm', 'i', 'n', 'i', 'm', 'u', 'm', 'W', 'i', 'd', 't', 'h', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'M', 'o', 'u', 's', 'e', 'G', 'r', 'a', 'b', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'f', 'i', 'r', 's', 't', 'C', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'r', 'i', 'g', 'h', 't', 'C', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'l', 'i', 'n', 'e', 'F', 'o', 'r', 'T', 'e', 'x', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'p', 'r', 'e', 'e', 'd', 'i', 't', 'A', 'r', 'e', 'a', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'D', 'o', 't', 'D', 'a', 's', 'h', 0,
    'S', 'p', 'e', 'l', 'l', 'C', 'h', 'e', 'c', 'k', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    's', 'e', 't', 'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'R', 'o', 'w', 'S', 'p', 'a', 'n', 0,
    't', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'C', 'o', 'l', 'u', 'm', 'n', 'S', 'p', 'a', 'n', 0,
    'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'T', 'o', 'p', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'T', 'a', 'b', 'l', 'e', 'H', 'e', 'a', 'd', 'e', 'r', 'R', 'o', 'w', 'C', 'o', 'u', 'n', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'W', 'r', 'i', 't', 'e', 'r', 0,
    'c', 'l', 'e', 'a', 'r', 'U', 'n', 'd', 'o', 'R', 'e', 'd', 'o', 'S', 't', 'a', 'c', 'k', 's', 0,
    'm', 'o', 'd', 'i', 'f', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'U', 's', 'e', 'D', 'e', 's', 'i', 'g', 'n', 'M', 'e', 't', 'r', 'i', 'c', 's', 0,
    'F', 'i', 'n', 'd', 'C', 'a', 's', 'e', 'S', 'e', 'n', 's', 'i', 't', 'i', 'v', 'e', 'l', 'y', 0,
    's', 'e', 't', 'V', 'i', 's', 'u', 'a', 'l', 'N', 'a', 'v', 'i', 'g', 'a', 't', 'i', 'o', 'n', 0,
    'h', 'a', 's', 'C', 'o', 'm', 'p', 'l', 'e', 'x', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'D', 'e', 'f', 'a', 'u', 'l', 't', 'S', 'w', 'a', 'p', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
    'D', 'e', 'p', 'r', 'e', 'c', 'a', 't', 'e', 'd', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 's', 0,
    'p', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'S', 'i', 'z', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'l', 'o', 'g', 'i', 'c', 'a', 'l', 'D', 'o', 't', 's', 'P', 'e', 'r', 'I', 'n', 'c', 'h', 'Y', 0,
    'l', 'o', 'g', 'i', 'c', 'a', 'l', 'D', 'o', 't', 's', 'P', 'e', 'r', 'I', 'n', 'c', 'h', 'X', 0,
    'p', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'D', 'o', 't', 's', 'P', 'e', 'r', 'I', 'n', 'c', 'h', 0,
    'Q', 'R', 'e', 'g', 'i', 'o', 'n', ':', ':', 'R', 'e', 'g', 'i', 'o', 'n', 'T', 'y', 'p', 'e', 0,
    'C', 'u', 'r', 'r', 'e', 'n', 't', 'S', 'y', 's', 't', 'e', 'm', 'E', 'n', 'd', 'i', 'a', 'n', 0,
    'Q', 'P', 'a', 'l', 'e', 't', 't', 'e', ':', ':', 'C', 'o', 'l', 'o', 'r', 'R', 'o', 'l', 'e', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', 'P', 'a', 't', 'h', 'S', 't', 'r', 'o', 'k', 'e', 'r', 0,
    'b', 'r', 'u', 's', 'h', 'N', 'e', 'e', 'd', 's', 'R', 'e', 's', 'o', 'l', 'v', 'i', 'n', 'g', 0,
    'D', 'i', 'r', 't', 'y', 'B', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 'M', 'o', 'd', 'e', 0,
    'C', 'o', 'n', 'i', 'c', 'a', 'l', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', 'F', 'i', 'l', 'l', 0,
    'P', 'd', 'm', 'D', 'e', 'v', 'i', 'c', 'e', 'P', 'i', 'x', 'e', 'l', 'R', 'a', 't', 'i', 'o', 0,
    'd', 'r', 'a', 'w', 'P', 'i', 'x', 'm', 'a', 'p', 'F', 'r', 'a', 'g', 'm', 'e', 'n', 't', 's', 0,
    'b', 'e', 'g', 'i', 'n', 'N', 'a', 't', 'i', 'v', 'e', 'P', 'a', 'i', 'n', 't', 'i', 'n', 'g', 0,
    'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', '_', 'X', 'o', 'r', 0,
    'm', 'a', 'g', 'n', 'i', 'f', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'F', 'i', 'l', 't', 'e', 'r', 0,
    'L', 'i', 'n', 'e', 'a', 'r', 'M', 'i', 'p', 'M', 'a', 'p', 'N', 'e', 'a', 'r', 'e', 's', 't', 0,
    'N', 'e', 'a', 'r', 'e', 's', 't', 'M', 'i', 'p', 'M', 'a', 'p', 'L', 'i', 'n', 'e', 'a', 'r', 0,
    's', 'e', 't', 'D', 'e', 'p', 't', 'h', 'S', 't', 'e', 'n', 'c', 'i', 'l', 'M', 'o', 'd', 'e', 0,
    'R', 'G', 'B', '_', 'B', 'P', '_', 'S', 'I', 'G', 'N', 'E', 'D', '_', 'F', 'L', 'O', 'A', 'T', 0,
    'D', 'o', 'n', 't', 'G', 'e', 'n', 'e', 'r', 'a', 't', 'e', 'M', 'i', 'p', 'M', 'a', 'p', 's', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    's', 'e', 't', 'P', 'a', 't', 'c', 'h', 'V', 'e', 'r', 't', 'e', 'x', 'C', 'o', 'u', 'n', 't', 0,
    'T', 'e', 's', 's', 'e', 'l', 'l', 'a', 't', 'i', 'o', 'n', 'C', 'o', 'n', 't', 'r', 'o', 'l', 0,
    's', 'e', 't', 'S', 'w', 'a', 'p', 'B', 'y', 't', 'e', 's', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'A', 's', 'y', 'n', 'c', 'h', 'r', 'o', 'n', 'o', 'u', 's', 'L', 'o', 'g', 'g', 'i', 'n', 'g', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 'G', 'r', 'o', 'u', 'p', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'C', 'o', 'n', 't', 'e', 'x', 't', 'G', 'r', 'o', 'u', 'p', 0,
    'R', 'a', 'n', 'g', 'e', 'U', 'n', 's', 'y', 'n', 'c', 'h', 'r', 'o', 'n', 'i', 'z', 'e', 'd', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'B', 'u', 'f', 'f', 'e', 'r', ':', ':', 'T', 'y', 'p', 'e', 0,
    'I', 'n', 's', 'e', 'r', 't', 'L', 'i', 'n', 'e', 'S', 'e', 'p', 'a', 'r', 'a', 't', 'o', 'r', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'E', 'n', 'd', 'O', 'f', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'E', 'n', 'd', 'O', 'f', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 0,
    's', 'e', 't', 'D', 'e', 'v', 'i', 'c', 'e', 'P', 'i', 'x', 'e', 'l', 'R', 'a', 't', 'i', 'o', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'M', 'a', 's', 'k', 'F', 'r', 'o', 'm', 'C', 'o', 'l', 'o', 'r', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'H', 'e', 'u', 'r', 'i', 's', 't', 'i', 'c', 'M', 'a', 's', 'k', 0,
    's', 'e', 't', 'T', 'h', 'e', 'm', 'e', 'S', 'e', 'a', 'r', 'c', 'h', 'P', 'a', 't', 'h', 's', 0,
    'f', 'o', 'n', 't', 'D', 'a', 't', 'a', 'b', 'a', 's', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'w', 'r', 'i', 't', 'i', 'n', 'g', 'S', 'y', 's', 't', 'e', 'm', 'S', 'a', 'm', 'p', 'l', 'e', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'S', 'u', 'b', 's', 't', 'i', 't', 'u', 't', 'i', 'o', 'n', 's', 0,
    'i', 'n', 's', 'e', 'r', 't', 'S', 'u', 'b', 's', 't', 'i', 't', 'u', 't', 'i', 'o', 'n', 's', 0,
    'F', 'o', 'r', 'c', 'e', 'I', 'n', 't', 'e', 'g', 'e', 'r', 'M', 'e', 't', 'r', 'i', 'c', 's', 0,
    'N', 'o', 'S', 'u', 'b', 'p', 'i', 'x', 'e', 'l', 'A', 'n', 't', 'i', 'a', 'l', 'i', 'a', 's', 0,
    'Q', 'N', 'a', 't', 'i', 'v', 'e', 'G', 'e', 's', 't', 'u', 'r', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'S', 'c', 'r', 'o', 'l', 'l', 'P', 'r', 'e', 'p', 'a', 'r', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'S', 't', 'r', 'e', 't', 'c', 'h', 'T', 'o', 'D', 'e', 'v', 'i', 'c', 'e', 'M', 'o', 'd', 'e', 0,
    'd', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'S', 'i', 'z', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'p', 'e', 'r', 's', 'i', 's', 't', 'e', 'n', 't', 'I', 'n', 'd', 'e', 'x', 'L', 'i', 's', 't', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'T', 'e', 'x', 't', 'F', 'r', 'a', 'm', 'e', '*', '>', 0,
    'Q', 'P', 'a', 'i', 'r', '<', 'f', 'l', 'o', 'a', 't', ',', 'f', 'l', 'o', 'a', 't', '>', 0,
    'w', 'i', 'n', 'd', 'o', 'w', 'T', 'i', 't', 'l', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'w', 'i', 'n', 'd', 'o', 'w', 'S', 't', 'a', 't', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'T', 'r', 'a', 'n', 's', 'i', 'e', 'n', 't', 'P', 'a', 'r', 'e', 'n', 't', 0,
    'c', 'o', 'n', 't', 'e', 'n', 't', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'T', 'o', 'u', 'c', 'h', 'P', 'o', 'i', 'n', 't', 's', 0,
    'N', 'o', 'r', 'm', 'a', 'l', 'i', 'z', 'e', 'd', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'Q', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', ':', ':', 'F', 'l', 'a', 'g', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'B', 'l', 'o', 'c', 'k', 'U', 's', 'e', 'r', 'D', 'a', 't', 'a', 0,
    'l', 'a', 's', 't', 'C', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'b', 'l', 'o', 'c', 'k', 'F', 'o', 'r', 'm', 'a', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'L', 'e', 'a', 'd', 'i', 'n', 'g', 'I', 'n', 'c', 'l', 'u', 'd', 'e', 'd', 0,
    'l', 'e', 'f', 't', 'C', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'C', 'u', 'r', 's', 'o', 'r', 'M', 'o', 'v', 'e', 'S', 't', 'y', 'l', 'e', 0,
    'n', 'e', 'x', 't', 'C', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'O', 'u', 't', 's', 'e', 't', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'G', 'r', 'o', 'o', 'v', 'e', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'D', 'o', 'u', 'b', 'l', 'e', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'D', 'a', 's', 'h', 'e', 'd', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'D', 'o', 't', 't', 'e', 'd', 0,
    'L', 'i', 'n', 'e', 'D', 'i', 's', 't', 'a', 'n', 'c', 'e', 'H', 'e', 'i', 'g', 'h', 't', 0,
    'P', 'r', 'o', 'p', 'o', 'r', 't', 'i', 'o', 'n', 'a', 'l', 'H', 'e', 'i', 'g', 'h', 't', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'B', 'r', 'e', 'a', 'k', 'P', 'o', 'l', 'i', 'c', 'y', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'W', 'o', 'r', 'd', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'f', 'o', 'n', 't', 'C', 'a', 'p', 'i', 't', 'a', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', 0,
    'B', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 'I', 'm', 'a', 'g', 'e', 'U', 'r', 'l', 0,
    'F', 'u', 'l', 'l', 'W', 'i', 'd', 't', 'h', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'T', 'e', 'x', 't', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 'S', 't', 'y', 'l', 'e', 0,
    'T', 'e', 'x', 't', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 'C', 'o', 'l', 'o', 'r', 0,
    'F', 'o', 'n', 't', 'S', 'i', 'z', 'e', 'A', 'd', 'j', 'u', 's', 't', 'm', 'e', 'n', 't', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'R', 'e', 'd', 'o', 'S', 't', 'e', 'p', 's', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'U', 'n', 'd', 'o', 'S', 't', 'e', 'p', 's', 0,
    'S', 't', 'y', 'l', 'e', 'S', 'h', 'e', 'e', 't', 'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', 0,
    's', 'e', 't', 'M', 'e', 't', 'a', 'I', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'U', 'n', 'd', 'o', 'R', 'e', 'd', 'o', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    's', 'e', 't', 'B', 'l', 'o', 'c', 'k', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 'l', 'e', 'c', 't', 'e', 'd', 'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 's', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'S', 'e', 'l', 'e', 'c', 't', 'e', 'd', 'T', 'e', 'x', 't', 0,
    'd', 'e', 'l', 'e', 't', 'e', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'C', 'h', 'a', 'r', 0,
    'p', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'B', 'l', 'o', 'c', 'k', 'S', 't', 'a', 't', 'e', 0,
    'Q', 'S', 'y', 'n', 't', 'a', 'x', 'H', 'i', 'g', 'h', 'l', 'i', 'g', 'h', 't', 'e', 'r', 0,
    's', 'e', 't', 'A', 'l', 'p', 'h', 'a', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'G', 'r', 'e', 'e', 'n', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'D', 'e', 'p', 't', 'h', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'f', 'o', 'n', 't', 'S', 'm', 'o', 'o', 't', 'h', 'i', 'n', 'g', 'G', 'a', 'm', 'm', 'a', 0,
    's', 'e', 't', 'P', 'e', 'r', 'f', 'o', 'r', 'm', 'a', 'n', 'c', 'e', 'H', 'i', 'n', 't', 0,
    'v', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'H', 'e', 'a', 'd', 'e', 'r', 'I', 't', 'e', 'm', 0,
    'Q', 'S', 't', 'a', 'n', 'd', 'a', 'r', 'd', 'I', 't', 'e', 'm', 'M', 'o', 'd', 'e', 'l', 0,
    's', 'e', 't', 'M', 'a', 'n', 'a', 'g', 'e', 'r', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'R', 'e', 's', 't', 'a', 'r', 't', 'I', 'm', 'm', 'e', 'd', 'i', 'a', 't', 'e', 'l', 'y', 0,
    'r', 'e', 'f', 'r', 'e', 's', 'h', 'R', 'a', 't', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'o', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'p', 'r', 'i', 'm', 'a', 'r', 'y', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'l', 'o', 'g', 'i', 'c', 'a', 'l', 'D', 'o', 't', 's', 'P', 'e', 'r', 'I', 'n', 'c', 'h', 0,
    't', 'y', 'p', 'e', 'I', 'n', 't', 'e', 'r', 'p', 'r', 'e', 't', 'a', 't', 'i', 'o', 'n', 0,
    'C', 'u', 'r', 'v', 'e', 'T', 'o', 'D', 'a', 't', 'a', 'E', 'l', 'e', 'm', 'e', 'n', 't', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', ':', ':', 'T', 'y', 'p', 'e', 0,
    'R', 'a', 'd', 'i', 'a', 'l', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', 'F', 'i', 'l', 'l', 0,
    'L', 'i', 'n', 'e', 'a', 'r', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', 'F', 'i', 'l', 'l', 0,
    'P', 'r', 'i', 'm', 'i', 't', 'i', 'v', 'e', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'w', 'o', 'r', 'l', 'd', 'M', 'a', 't', 'r', 'i', 'x', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    's', 'e', 't', 'C', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', '_', 'N', 'o', 't', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'F', 'a', 'n', 'F', 'o', 'l', 'd', 'G', 'e', 'r', 'm', 'a', 'n', 'L', 'e', 'g', 'a', 'l', 0,
    'P', 'a', 'r', 't', 'i', 'a', 'l', 'U', 'p', 'd', 'a', 't', 'e', 'B', 'l', 'e', 'n', 'd', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'i', 'm', 'e', 'M', 'o', 'n', 'i', 't', 'o', 'r', 0,
    'l', 'e', 'v', 'e', 'l', 'O', 'f', 'D', 'e', 't', 'a', 'i', 'l', 'R', 'a', 'n', 'g', 'e', 0,
    'm', 'i', 'n', 'i', 'f', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'F', 'i', 'l', 't', 'e', 'r', 0,
    'L', 'i', 'n', 'e', 'a', 'r', 'M', 'i', 'p', 'M', 'a', 'p', 'L', 'i', 'n', 'e', 'a', 'r', 0,
    'T', 'e', 'x', 't', 'u', 'r', 'e', 'M', 'u', 'l', 't', 'i', 's', 'a', 'm', 'p', 'l', 'e', 0,
    'U', 'I', 'n', 't', '3', '2', '_', 'R', 'G', 'B', '1', '0', 'A', '2', '_', 'R', 'e', 'v', 0,
    'i', 's', 'S', 't', 'o', 'r', 'a', 'g', 'e', 'A', 'l', 'l', 'o', 'c', 'a', 't', 'e', 'd', 0,
    's', 'e', 't', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'i', 's', 'S', 'w', 'a', 'p', 'B', 'y', 't', 'e', 's', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'e', 'n', 's', 'u', 'r', 'e', 'A', 'c', 't', 'i', 'v', 'e', 'T', 'a', 'r', 'g', 'e', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'S', 'y', 'n', 'c', 'h', 'r', 'o', 'n', 'o', 'u', 's', 'L', 'o', 'g', 'g', 'i', 'n', 'g', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'D', 'e', 'b', 'u', 'g', 'L', 'o', 'g', 'g', 'e', 'r', 0,
    'W', 'i', 'n', 'd', 'o', 'w', 'S', 'y', 's', 't', 'e', 'm', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'o', 'p', 'e', 'n', 'G', 'L', 'M', 'o', 'd', 'u', 'l', 'e', 'H', 'a', 'n', 'd', 'l', 'e', 0,
    'a', 'b', 'o', 'u', 't', 'T', 'o', 'B', 'e', 'D', 'e', 's', 't', 'r', 'o', 'y', 'e', 'd', 0,
    'R', 'a', 'n', 'g', 'e', 'F', 'l', 'u', 's', 'h', 'E', 'x', 'p', 'l', 'i', 'c', 'i', 't', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'F', 'r', 'a', 'm', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'Q', 'M', 'o', 'v', 'i', 'e', ':', ':', 'M', 'o', 'v', 'i', 'e', 'S', 't', 'a', 't', 'e', 0,
    'D', 'e', 'l', 'e', 't', 'e', 'C', 'o', 'm', 'p', 'l', 'e', 't', 'e', 'L', 'i', 'n', 'e', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'S', 't', 'a', 'r', 't', 'O', 'f', 'B', 'l', 'o', 'c', 'k', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'P', 'a', 'g', 'e', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'L', 'i', 'n', 'e', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'W', 'o', 'r', 'd', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'C', 'h', 'a', 'r', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'S', 't', 'a', 'r', 't', 'O', 'f', 'B', 'l', 'o', 'c', 'k', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'P', 'a', 'g', 'e', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'L', 'i', 'n', 'e', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'W', 'o', 'r', 'd', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'C', 'h', 'a', 'r', 0,
    'i', 'n', 'p', 'u', 't', 'I', 't', 'e', 'm', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 0,
    'i', 'n', 'p', 'u', 't', 'I', 't', 'e', 'm', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'M', 'i', 'm', 'e', 'T', 'y', 'p', 'e', 's', 0,
    's', 'e', 't', 'B', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 'C', 'o', 'l', 'o', 'r', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'I', 'm', 'a', 'g', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'I', 'n', 'c', 'r', 'e', 'm', 'e', 'n', 't', 'a', 'l', 'R', 'e', 'a', 'd', 'i', 'n', 'g', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', ':', ':', 'I', 'n', 'v', 'e', 'r', 't', 'M', 'o', 'd', 'e', 0,
    'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'S', 'i', 'z', 'e', 's', 'H', 'o', 'o', 'k', 0,
    'f', 'o', 'c', 'u', 's', 'W', 'i', 'n', 'd', 'o', 'w', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'f', 'o', 'c', 'u', 's', 'O', 'b', 'j', 'e', 'c', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'L', 'a', 'y', 'o', 'u', 't', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'a', 'd', 'd', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'F', 'o', 'n', 't', 0,
    'i', 's', 'S', 'm', 'o', 'o', 't', 'h', 'l', 'y', 'S', 'c', 'a', 'l', 'a', 'b', 'l', 'e', 0,
    'T', 'r', 'a', 'd', 'i', 't', 'i', 'o', 'n', 'a', 'l', 'C', 'h', 'i', 'n', 'e', 's', 'e', 0,
    'Q', 'F', 'o', 'n', 't', ':', ':', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 'T', 'y', 'p', 'e', 0,
    'i', 'n', 's', 'e', 'r', 't', 'S', 'u', 'b', 's', 't', 'i', 't', 'u', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'C', 'o', 'n', 't', 'e', 'n', 't', 'P', 'o', 's', 'R', 'a', 'n', 'g', 'e', 0,
    'r', 'a', 'w', 'S', 'c', 'r', 'e', 'e', 'n', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 's', 0,
    's', 't', 'a', 'r', 't', 'N', 'o', 'r', 'm', 'a', 'l', 'i', 'z', 'e', 'd', 'P', 'o', 's', 0,
    't', 'a', 'n', 'g', 'e', 'n', 't', 'i', 'a', 'l', 'P', 'r', 'e', 's', 's', 'u', 'r', 'e', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'F', 'i', 'n', 'd', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'O', 'b', 'j', 'e', 'c', 't', 'B', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'M', 'o', 'd', 'e', 0,
    'Q', 'C', 'o', 'l', 'o', 'r', ':', ':', 'N', 'a', 'm', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'r', 'e', 's', 'i', 'z', 'e', 'I', 'n', 'l', 'i', 'n', 'e', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'S', 'c', 'i', 'e', 'n', 't', 'i', 'f', 'i', 'c', 'N', 'o', 't', 'a', 't', 'i', 'o', 'n', 0,
    'b', 'e', 'g', 'i', 'n', 'R', 'e', 'm', 'o', 'v', 'e', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'b', 'e', 'g', 'i', 'n', 'I', 'n', 's', 'e', 'r', 't', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'T', 'e', 'x', 't', 'B', 'l', 'o', 'c', 'k', '>', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'G', 'L', 'u', 'i', 'n', 't', '6', '4', '>', 0,
    'v', 'i', 's', 'i', 'b', 'i', 'l', 'i', 't', 'y', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'm', 'o', 'u', 's', 'e', 'R', 'e', 'l', 'e', 'a', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'I', 'n', 'c', 'l', 'u', 'd', 'e', 'T', 'r', 'a', 'n', 's', 'i', 'e', 'n', 't', 's', 0,
    'E', 'x', 'c', 'l', 'u', 'd', 'e', 'T', 'r', 'a', 'n', 's', 'i', 'e', 'n', 't', 's', 0,
    'Q', 'V', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', ':', ':', 'S', 't', 'a', 't', 'e', 0,
    'S', 'h', 'o', 'w', 'T', 'a', 'b', 's', 'A', 'n', 'd', 'S', 'p', 'a', 'c', 'e', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', ':', ':', 'F', 'l', 'a', 'g', 0,
    'h', 'o', 'r', 'i', 'z', 'o', 'n', 't', 'a', 'l', 'A', 'd', 'v', 'a', 'n', 'c', 'e', 0,
    'C', 'u', 'r', 's', 'o', 'r', 'O', 'n', 'C', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 0,
    'a', 'd', 'd', 'i', 't', 'i', 'o', 'n', 'a', 'l', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'I', 'n', 'l', 'i', 'n', 'e', 'O', 'b', 'j', 'e', 'c', 't', 0,
    's', 'e', 't', 'H', 'e', 'a', 'd', 'e', 'r', 'R', 'o', 'w', 'C', 'o', 'u', 'n', 't', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'I', 'n', 's', 'e', 't', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'R', 'i', 'd', 'g', 'e', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'S', 'o', 'l', 'i', 'd', 0,
    'n', 'o', 'n', 'B', 'r', 'e', 'a', 'k', 'a', 'b', 'l', 'e', 'L', 'i', 'n', 'e', 's', 0,
    'F', 'o', 'n', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's', 'A', 'l', 'l', 0,
    'f', 'o', 'n', 't', 'S', 't', 'y', 'l', 'e', 'S', 't', 'r', 'a', 't', 'e', 'g', 'y', 0,
    'f', 'o', 'n', 't', 'L', 'e', 't', 't', 'e', 'r', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    's', 'e', 't', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 'S', 't', 'y', 'l', 'e', 0,
    'v', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'A', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'F', 'i', 'x', 'e', 'd', 'P', 'i', 't', 'c', 'h', 0,
    's', 'e', 't', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 'C', 'o', 'l', 'o', 'r', 0,
    't', 'o', 'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'i', 's', 'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'F', 'i', 'r', 's', 't', 'F', 'o', 'n', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'F', 'r', 'a', 'm', 'e', 'B', 'o', 't', 't', 'o', 'm', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'F', 'o', 'n', 't', 'S', 'i', 'z', 'e', 'I', 'n', 'c', 'r', 'e', 'm', 'e', 'n', 't', 0,
    'B', 'l', 'o', 'c', 'k', 'B', 'o', 't', 't', 'o', 'm', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'e', 'n', 'g', 't', 'h', ':', ':', 'T', 'y', 'p', 'e', 0,
    'U', 'n', 'd', 'o', 'A', 'n', 'd', 'R', 'e', 'd', 'o', 'S', 't', 'a', 'c', 'k', 's', 0,
    's', 'e', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'f', 'i', 'n', 'd', 'B', 'l', 'o', 'c', 'k', 'B', 'y', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'B', 'l', 'o', 'c', 'k', 'C', 'o', 'u', 'n', 't', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'S', 't', 'y', 'l', 'e', 'S', 'h', 'e', 'e', 't', 0,
    'b', 'l', 'o', 'c', 'k', 'C', 'o', 'u', 'n', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'm', 'a', 'r', 'k', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 'D', 'i', 'r', 't', 'y', 0,
    's', 'e', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'L', 'a', 'y', 'o', 'u', 't', 0,
    'i', 's', 'U', 'n', 'd', 'o', 'R', 'e', 'd', 'o', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'v', 'e', 'r', 't', 'i', 'c', 'a', 'l', 'M', 'o', 'v', 'e', 'm', 'e', 'n', 't', 'X', 0,
    'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'C', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'B', 'l', 'o', 'c', 'k', 'S', 't', 'a', 't', 'e', 0,
    's', 'e', 't', 'R', 'e', 'n', 'd', 'e', 'r', 'a', 'b', 'l', 'e', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'B', 'l', 'u', 'e', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    's', 't', 'e', 'n', 'c', 'i', 'l', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'p', 'a', 's', 's', 'w', 'o', 'r', 'd', 'M', 'a', 's', 'k', 'D', 'e', 'l', 'a', 'y', 0,
    's', 't', 'a', 'r', 't', 'D', 'r', 'a', 'g', 'V', 'e', 'l', 'o', 'c', 'i', 't', 'y', 0,
    's', 't', 'a', 'r', 't', 'D', 'r', 'a', 'g', 'D', 'i', 's', 't', 'a', 'n', 'c', 'e', 0,
    'A', 'g', 'g', 'r', 'e', 's', 's', 'i', 'v', 'e', 'C', 'a', 'c', 'h', 'i', 'n', 'g', 0,
    's', 'e', 't', 'A', 'c', 'c', 'e', 's', 's', 'i', 'b', 'l', 'e', 'T', 'e', 'x', 't', 0,
    'i', 'n', 'v', 'i', 's', 'i', 'b', 'l', 'e', 'R', 'o', 'o', 't', 'I', 't', 'e', 'm', 0,
    's', 'e', 't', 'D', 'i', 's', 'c', 'a', 'r', 'd', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 0,
    's', 'e', 't', 'R', 'e', 's', 't', 'a', 'r', 't', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 0,
    'a', 'l', 'l', 'o', 'w', 's', 'I', 'n', 't', 'e', 'r', 'a', 'c', 't', 'i', 'o', 'n', 0,
    'n', 'a', 't', 'i', 'v', 'e', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'G', 'e', 'o', 'm', 'e', 't', 'r', 'y', 0,
    'u', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'C', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 0,
    'Q', 'P', 'i', 'x', 'm', 'a', 'p', 'C', 'a', 'c', 'h', 'e', ':', ':', 'K', 'e', 'y', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'C', 'o', 'l', 'o', 'r', 'G', 'r', 'o', 'u', 'p', 0,
    's', 'e', 't', 'C', 'u', 'r', 'v', 'e', 'T', 'h', 'r', 'e', 's', 'h', 'o', 'l', 'd', 0,
    't', 'o', 'S', 'u', 'b', 'p', 'a', 't', 'h', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 's', 0,
    'p', 'e', 'n', 'N', 'e', 'e', 'd', 's', 'R', 'e', 's', 'o', 'l', 'v', 'i', 'n', 'g', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 'S', 't', 'a', 't', 'e', 0,
    'e', 'n', 'd', 'N', 'a', 't', 'i', 'v', 'e', 'P', 'a', 'i', 'n', 't', 'i', 'n', 'g', 0,
    'c', 'o', 'm', 'b', 'i', 'n', 'e', 'd', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    's', 'e', 't', 'W', 'o', 'r', 'l', 'd', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'd', 'r', 'a', 'w', 'C', 'o', 'n', 'v', 'e', 'x', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 0,
    's', 'e', 't', 'B', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'M', 'i', 'n', 'i', 'm', 'u', 'm', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'Q', 'P', 'a', 'g', 'e', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'M', 'o', 'd', 'e', 0,
    'Q', 'P', 'a', 'g', 'e', 'L', 'a', 'y', 'o', 'u', 't', ':', ':', 'U', 'n', 'i', 't', 0,
    'E', 'x', 'e', 'c', 'u', 't', 'i', 'v', 'e', 'S', 't', 'a', 'n', 'd', 'a', 'r', 'd', 0,
    'Q', 'P', 'a', 'g', 'e', 'd', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'P', 'a', 'r', 't', 'i', 'a', 'l', 'U', 'p', 'd', 'a', 't', 'e', 'B', 'l', 'i', 't', 0,
    'i', 's', 'R', 'e', 's', 'u', 'l', 't', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'i', 'm', 'e', 'r', 'Q', 'u', 'e', 'r', 'y', 0,
    'l', 'e', 'v', 'e', 'l', 'o', 'f', 'D', 'e', 't', 'a', 'i', 'l', 'B', 'i', 'a', 's', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'A', 'n', 'i', 's', 'o', 't', 'r', 'o', 'p', 'y', 0,
    'N', 'P', 'O', 'T', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'R', 'e', 'p', 'e', 'a', 't', 0,
    's', 'e', 't', 'C', 'o', 'm', 'p', 'r', 'e', 's', 's', 'e', 'd', 'D', 'a', 't', 'a', 0,
    'U', 'I', 'n', 't', '1', '6', '_', 'R', '5', 'G', '6', 'B', '5', '_', 'R', 'e', 'v', 0,
    'U', 'I', 'n', 't', '1', '6', '_', 'R', 'G', 'B', '5', 'A', '1', '_', 'R', 'e', 'v', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'V', 'i', 'e', 'w', 0,
    's', 'e', 't', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 'A', 'r', 'r', 'a', 'y', 0,
    's', 'e', 't', 'A', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 'V', 'a', 'l', 'u', 'e', 0,
    'a', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 'L', 'o', 'c', 'a', 't', 'i', 'o', 'n', 0,
    'c', 'o', 'm', 'p', 'i', 'l', 'e', 'S', 'o', 'u', 'r', 'c', 'e', 'F', 'i', 'l', 'e', 0,
    'c', 'o', 'm', 'p', 'i', 'l', 'e', 'S', 'o', 'u', 'r', 'c', 'e', 'C', 'o', 'd', 'e', 0,
    'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'P', 'i', 'x', 'e', 'l', 'U', 'n', 'p', 'a', 'c', 'k', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'Q', 'O', 'f', 'f', 's', 'c', 'r', 'e', 'e', 'n', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 0,
    'Q', 'M', 'o', 'v', 'i', 'e', ':', ':', 'C', 'a', 'c', 'h', 'e', 'M', 'o', 'd', 'e', 0,
    'D', 'e', 'l', 'e', 't', 'e', 'S', 't', 'a', 'r', 't', 'O', 'f', 'W', 'o', 'r', 'd', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'S', 't', 'a', 'r', 't', 'O', 'f', 'L', 'i', 'n', 'e', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'S', 't', 'a', 'r', 't', 'O', 'f', 'L', 'i', 'n', 'e', 0,
    'k', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'S', 'u', 'b', 'T', 'y', 'p', 'e', 's', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'A', 'n', 'i', 'm', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'S', 'c', 'a', 'l', 'e', 'd', 'C', 'l', 'i', 'p', 'R', 'e', 'c', 't', 0,
    'F', 'i', 'l', 'e', 'N', 'o', 't', 'F', 'o', 'u', 'n', 'd', 'E', 'r', 'r', 'o', 'r', 0,
    'S', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'S', 'u', 'b', 'T', 'y', 'p', 'e', 's', 0,
    'i', 's', 'S', 'e', 's', 's', 'i', 'o', 'n', 'R', 'e', 's', 't', 'o', 'r', 'e', 'd', 0,
    'c', 'o', 'm', 'm', 'i', 't', 'D', 'a', 't', 'a', 'R', 'e', 'q', 'u', 'e', 's', 't', 0,
    's', 'e', 't', 'O', 'v', 'e', 'r', 'r', 'i', 'd', 'e', 'C', 'u', 'r', 's', 'o', 'r', 0,
    't', 'i', 'g', 'h', 't', 'B', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'c', 't', 0,
    'w', 'r', 'i', 't', 'i', 'n', 'g', 'S', 'y', 's', 't', 'e', 'm', 'N', 'a', 'm', 'e', 0,
    'S', 'i', 'm', 'p', 'l', 'i', 'f', 'i', 'e', 'd', 'C', 'h', 'i', 'n', 'e', 's', 'e', 0,
    'h', 'i', 'n', 't', 'i', 'n', 'g', 'P', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'F', 'u', 'l', 'l', 'H', 'i', 'n', 't', 'i', 'n', 'g', 0,
    's', 'e', 't', 'C', 'a', 'p', 'i', 't', 'a', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', 0,
    'l', 'e', 't', 't', 'e', 'r', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 'T', 'y', 'p', 'e', 0,
    'P', 'e', 'r', 'c', 'e', 'n', 't', 'a', 'g', 'e', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'o', 'v', 'e', 'r', 's', 'h', 'o', 'o', 't', 'D', 'i', 's', 't', 'a', 'n', 'c', 'e', 0,
    'l', 'a', 's', 't', 'N', 'o', 'r', 'm', 'a', 'l', 'i', 'z', 'e', 'd', 'P', 'o', 's', 0,
    'k', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 'M', 'o', 'd', 'i', 'f', 'i', 'e', 'r', 's', 0,
    'r', 'e', 'p', 'l', 'a', 'c', 'e', 'm', 'e', 'n', 't', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'Q', 'I', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'C', 'o', 'n', 't', 'e', 'x', 't', 'M', 'e', 'n', 'u', 'E', 'v', 'e', 'n', 't', 0,
    'f', 'i', 'n', 'd', 'B', 'u', 'f', 'f', 'e', 'r', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'C', 'o', 'o', 'r', 'd', 'i', 'n', 'a', 't', 'e', 'M', 'o', 'd', 'e', 0,
    'Q', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', ':', ':', 'S', 'p', 'r', 'e', 'a', 'd', 0,
    'h', 'a', 's', 'S', 't', 'a', 't', 'i', 'c', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 0,
    's', 'e', 't', 'S', 't', 'a', 't', 'i', 'c', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 0,
    'u', 'n', 'r', 'e', 'g', 'i', 's', 't', 'e', 'r', 'H', 'a', 'n', 'd', 'l', 'e', 'r', 0,
    'b', 'l', 'o', 'c', 'k', 'B', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'c', 't', 0,
    'f', 'r', 'a', 'm', 'e', 'B', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'c', 't', 0,
    'r', 'e', 'g', 'u', 'l', 'a', 'r', 'E', 'x', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0,
    'i', 's', 'S', 'i', 'g', 'n', 'a', 'l', 'C', 'o', 'n', 'n', 'e', 'c', 't', 'e', 'd', 0,
    's', 'e', 'n', 'd', 'e', 'r', 'S', 'i', 'g', 'n', 'a', 'l', 'I', 'n', 'd', 'e', 'x', 0,
    'r', 'e', 's', 'e', 't', 'I', 'n', 't', 'e', 'r', 'n', 'a', 'l', 'D', 'a', 't', 'a', 0,
    's', 'i', 'p', '.', 's', 'i', 'm', 'p', 'l', 'e', 'w', 'r', 'a', 'p', 'p', 'e', 'r', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'G', 'l', 'y', 'p', 'h', 'R', 'u', 'n', '>', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 'F', '>', 0,
    'Q', 'S', 'e', 't', '<', 'Q', 'B', 'y', 't', 'e', 'A', 'r', 'r', 'a', 'y', '>', 0,
    's', 'e', 't', 'M', 'a', 'x', 'i', 'm', 'u', 'm', 'H', 'e', 'i', 'g', 'h', 't', 0,
    's', 'e', 't', 'M', 'i', 'n', 'i', 'm', 'u', 'm', 'H', 'e', 'i', 'g', 'h', 't', 0,
    's', 'e', 't', 'F', 'r', 'a', 'm', 'e', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'S', 'i', 'z', 'e', 'I', 'n', 'c', 'r', 'e', 'm', 'e', 'n', 't', 0,
    't', 'o', 'V', 'e', 'c', 't', 'o', 'r', '3', 'D', 'A', 'f', 'f', 'i', 'n', 'e', 0,
    't', 'o', 'V', 'e', 'c', 't', 'o', 'r', '2', 'D', 'A', 'f', 'f', 'i', 'n', 'e', 0,
    'Q', 'R', 'e', 'g', 'E', 'x', 'p', 'V', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', 0,
    'S', 't', 'a', 'n', 'd', 'a', 'r', 'd', 'N', 'o', 't', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'D', 'o', 'u', 'b', 'l', 'e', 'V', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', 0,
    'Q', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', ':', ':', 'T', 'a', 'b', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'b', 'l', 'o', 'c', 'k', 'F', 'o', 'r', 'm', 'a', 't', 'I', 'n', 'd', 'e', 'x', 0,
    'n', 'a', 't', 'u', 'r', 'a', 'l', 'T', 'e', 'x', 't', 'W', 'i', 'd', 't', 'h', 0,
    's', 'e', 't', 'B', 'o', 't', 't', 'o', 'm', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'Q', 'T', 'e', 'x', 't', 'T', 'a', 'b', 'l', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', '_', 'N', 'o', 'n', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'r', 'a', 'm', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'I', 'm', 'a', 'g', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'B', 'l', 'o', 'c', 'k', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'S', 't', 'y', 'l', 'e', 'H', 'i', 'n', 't', 0,
    't', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'R', 'o', 'w', 'S', 'p', 'a', 'n', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'S', 't', 'r', 'i', 'k', 'e', 'O', 'u', 't', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'P', 'o', 'i', 'n', 't', 'S', 'i', 'z', 'e', 0,
    'A', 'l', 'i', 'g', 'n', 'S', 'u', 'p', 'e', 'r', 'S', 'c', 'r', 'i', 'p', 't', 0,
    'L', 'i', 's', 't', 'N', 'u', 'm', 'b', 'e', 'r', 'S', 'u', 'f', 'f', 'i', 'x', 0,
    'L', 'i', 's', 't', 'N', 'u', 'm', 'b', 'e', 'r', 'P', 'r', 'e', 'f', 'i', 'x', 0,
    'L', 'a', 's', 't', 'F', 'o', 'n', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'F', 'r', 'a', 'm', 'e', 'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', 0,
    'F', 'r', 'a', 'm', 'e', 'B', 'o', 'r', 'd', 'e', 'r', 'B', 'r', 'u', 's', 'h', 0,
    'F', 'r', 'a', 'm', 'e', 'R', 'i', 'g', 'h', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'B', 'l', 'o', 'c', 'k', 'R', 'i', 'g', 'h', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'P', 'e', 'r', 'c', 'e', 'n', 't', 'a', 'g', 'e', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'u', 'n', 'd', 'o', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 'A', 'd', 'd', 'e', 'd', 0,
    'u', 's', 'e', 'D', 'e', 's', 'i', 'g', 'n', 'M', 'e', 't', 'r', 'i', 'c', 's', 0,
    'v', 'i', 's', 'u', 'a', 'l', 'N', 'a', 'v', 'i', 'g', 'a', 't', 'i', 'o', 'n', 0,
    'm', 'e', 'r', 'g', 'e', 'B', 'l', 'o', 'c', 'k', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'B', 'l', 'o', 'c', 'k', 'U', 'n', 'd', 'e', 'r', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'r', 'e', 'h', 'i', 'g', 'h', 'l', 'i', 'g', 'h', 't', 'B', 'l', 'o', 'c', 'k', 0,
    's', 'e', 't', 'R', 'e', 'd', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'u', 's', 'e', 'R', 't', 'l', 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 's', 0,
    's', 'h', 'o', 'w', 'I', 's', 'F', 'u', 'l', 'l', 'S', 'c', 'r', 'e', 'e', 'n', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'A', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    's', 'e', 't', 'I', 't', 'e', 'm', 'P', 'r', 'o', 't', 'o', 't', 'y', 'p', 'e', 0,
    'R', 'e', 's', 't', 'a', 'r', 't', 'I', 'f', 'R', 'u', 'n', 'n', 'i', 'n', 'g', 0,
    't', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'B', 'e', 't', 'w', 'e', 'e', 'n', 0,
    'S', 'e', 'p', 'a', 'r', 'a', 't', 'e', 'A', 'd', 'v', 'a', 'n', 'c', 'e', 's', 0,
    'a', 'l', 'p', 'h', 'a', 'M', 'a', 'p', 'F', 'o', 'r', 'G', 'l', 'y', 'p', 'h', 0,
    'a', 'n', 't', 'i', 'a', 'l', 'i', 'a', 's', 'i', 'n', 'g', 'T', 'y', 'p', 'e', 0,
    'f', 'r', 'o', 'm', 'A', 'x', 'i', 's', 'A', 'n', 'd', 'A', 'n', 'g', 'l', 'e', 0,
    'c', 'o', 'n', 'v', 'e', 'r', 't', 'F', 'r', 'o', 'm', 'I', 'm', 'a', 'g', 'e', 0,
    'q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 'C', 'm', 'y', 'k', 0,
    'q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 'R', 'g', 'b', 'a', 0,
    'N', 'o', 't', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'c', 'o', 'n', 't', 'r', 'o', 'l', 'P', 'o', 'i', 'n', 't', 'R', 'e', 'c', 't', 0,
    'D', 'i', 'r', 't', 'y', 'C', 'l', 'i', 'p', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'D', 'i', 'r', 't', 'y', 'B', 'r', 'u', 's', 'h', 'O', 'r', 'i', 'g', 'i', 'n', 0,
    'P', 'a', 't', 't', 'e', 'r', 'n', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'c', 'l', 'i', 'p', 'B', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'c', 't', 0,
    'T', 'e', 'x', 't', 'A', 'n', 't', 'i', 'a', 'l', 'i', 'a', 's', 'i', 'n', 'g', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'e', 'r', 's', 'o', 'n', 'a', 'l', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 's', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'T', 'i', 'm', 'e', 's', 't', 'a', 'm', 'p', 0,
    's', 'e', 't', 'M', 'i', 'n', 'M', 'a', 'g', 'F', 'i', 'l', 't', 'e', 'r', 's', 0,
    'd', 'e', 'p', 't', 'h', 'S', 't', 'e', 'n', 'c', 'i', 'l', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'M', 'i', 'p', 'L', 'e', 'v', 'e', 'l', 'R', 'a', 'n', 'g', 'e', 0,
    'S', 't', 'e', 'n', 'c', 'i', 'l', 'T', 'e', 'x', 't', 'u', 'r', 'i', 'n', 'g', 0,
    'T', 'e', 'x', 't', 'u', 'r', 'e', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 0,
    'I', 'm', 'm', 'u', 't', 'a', 'b', 'l', 'e', 'S', 't', 'o', 'r', 'a', 'g', 'e', 0,
    'U', 'I', 'n', 't', '3', '2', '_', 'R', 'G', 'B', 'A', '8', '_', 'R', 'e', 'v', 0,
    'U', 'I', 'n', 't', '1', '6', '_', 'R', 'G', 'B', 'A', '4', '_', 'R', 'e', 'v', 0,
    'C', 'u', 'b', 'e', 'M', 'a', 'p', 'N', 'e', 'g', 'a', 't', 'i', 'v', 'e', 'Z', 0,
    'C', 'u', 'b', 'e', 'M', 'a', 'p', 'P', 'o', 's', 'i', 't', 'i', 'v', 'e', 'Z', 0,
    'C', 'u', 'b', 'e', 'M', 'a', 'p', 'N', 'e', 'g', 'a', 't', 'i', 'v', 'e', 'Y', 0,
    'C', 'u', 'b', 'e', 'M', 'a', 'p', 'P', 'o', 's', 'i', 't', 'i', 'v', 'e', 'Y', 0,
    'C', 'u', 'b', 'e', 'M', 'a', 'p', 'N', 'e', 'g', 'a', 't', 'i', 'v', 'e', 'X', 0,
    'C', 'u', 'b', 'e', 'M', 'a', 'p', 'P', 'o', 's', 'i', 't', 'i', 'v', 'e', 'X', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'M', 'i', 'p', 'L', 'e', 'v', 'e', 'l', 's', 0,
    'p', 'a', 't', 'c', 'h', 'V', 'e', 'r', 't', 'e', 'x', 'C', 'o', 'u', 'n', 't', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'A', 'l', 'l', 'S', 'h', 'a', 'd', 'e', 'r', 's', 0,
    'h', 'a', 's', 'O', 'p', 'e', 'n', 'G', 'L', 'S', 'h', 'a', 'd', 'e', 'r', 's', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'T', 'a', 'r', 'g', 'e', 't', 0,
    'T', 'h', 'i', 'r', 'd', 'P', 'a', 'r', 't', 'y', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'o', 'p', 'e', 'n', 'G', 'L', 'M', 'o', 'd', 'u', 'l', 'e', 'T', 'y', 'p', 'e', 0,
    'v', 'e', 'r', 's', 'i', 'o', 'n', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', 's', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'E', 'n', 'd', 'O', 'f', 'B', 'l', 'o', 'c', 'k', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'E', 'n', 'd', 'O', 'f', 'B', 'l', 'o', 'c', 'k', 0,
    'a', 'n', 'i', 'm', 'a', 't', 'i', 'n', 'g', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'q', 'u', 'e', 'r', 'y', 'F', 'o', 'c', 'u', 's', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'D', 'a', 't', 'a', 'E', 'r', 'r', 'o', 'r', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'I', 'm', 'a', 'g', 'e', 'R', 'e', 'c', 't', 0,
    'C', 'o', 'm', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 'R', 'a', 't', 'i', 'o', 0,
    's', 'e', 't', 'D', 'o', 't', 's', 'P', 'e', 'r', 'M', 'e', 't', 'e', 'r', 'Y', 0,
    's', 'e', 't', 'D', 'o', 't', 's', 'P', 'e', 'r', 'M', 'e', 't', 'e', 'r', 'X', 0,
    't', 'h', 'e', 'm', 'e', 'S', 'e', 'a', 'r', 'c', 'h', 'P', 'a', 't', 'h', 's', 0,
    'a', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 'S', 't', 'a', 't', 'e', 0,
    'd', 'e', 'v', 'i', 'c', 'e', 'P', 'i', 'x', 'e', 'l', 'R', 'a', 't', 'i', 'o', 0,
    's', 'a', 'v', 'e', 'S', 't', 'a', 't', 'e', 'R', 'e', 'q', 'u', 'e', 's', 't', 0,
    'l', 'a', 's', 't', 'W', 'i', 'n', 'd', 'o', 'w', 'C', 'l', 'o', 's', 'e', 'd', 0,
    'a', 'v', 'e', 'r', 'a', 'g', 'e', 'C', 'h', 'a', 'r', 'W', 'i', 'd', 't', 'h', 0,
    'b', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'c', 't', 'C', 'h', 'a', 'r', 0,
    'i', 's', 'B', 'i', 't', 'm', 'a', 'p', 'S', 'c', 'a', 'l', 'a', 'b', 'l', 'e', 0,
    's', 'e', 't', 'L', 'e', 't', 't', 'e', 'r', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'l', 'a', 's', 't', 'R', 'e', 's', 'o', 'r', 't', 'F', 'a', 'm', 'i', 'l', 'y', 0,
    's', 'e', 't', 'S', 't', 'y', 'l', 'e', 'S', 't', 'r', 'a', 't', 'e', 'g', 'y', 0,
    'O', 'p', 'e', 'n', 'G', 'L', 'C', 'o', 'm', 'p', 'a', 't', 'i', 'b', 'l', 'e', 0,
    'Q', 'F', 'o', 'n', 't', ':', ':', 'S', 't', 'y', 'l', 'e', 'H', 'i', 'n', 't', 0,
    't', 'o', 'u', 'c', 'h', 'P', 'o', 'i', 'n', 't', 'S', 't', 'a', 't', 'e', 's', 0,
    'r', 'e', 'p', 'l', 'a', 'c', 'e', 'm', 'e', 'n', 't', 'S', 't', 'a', 'r', 't', 0,
    'n', 'a', 't', 'i', 'v', 'e', 'V', 'i', 'r', 't', 'u', 'a', 'l', 'K', 'e', 'y', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 'e', 'd', 'A', 'c', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'D', 'e', 's', 'k', 't', 'o', 'p', 'S', 'e', 'r', 'v', 'i', 'c', 'e', 's', 0,
    'Q', 'C', 'l', 'i', 'p', 'b', 'o', 'a', 'r', 'd', ':', ':', 'M', 'o', 'd', 'e', 0,
    'Q', 'C', 'o', 'n', 'i', 'c', 'a', 'l', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', 0,
    'd', 'r', 'a', 'w', 'I', 'n', 'l', 'i', 'n', 'e', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'p', 'a', 'g', 'e', 'C', 'o', 'u', 'n', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'h', 'a', 'n', 'd', 'l', 'e', 'r', 'F', 'o', 'r', 'O', 'b', 'j', 'e', 'c', 't', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'd', 'i', 's', 'c', 'o', 'n', 'n', 'e', 'c', 't', 'N', 'o', 't', 'i', 'f', 'y', 0,
    'b', 'e', 'g', 'i', 'n', 'M', 'o', 'v', 'e', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'e', 'n', 'd', 'R', 'e', 'm', 'o', 'v', 'e', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'e', 'n', 'd', 'I', 'n', 's', 'e', 'r', 't', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'R', 'e', 'c', 't', 'F', '>', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'P', 'o', 'i', 'n', 't', '>', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'L', 'i', 'n', 'e', 'F', '>', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'S', 'c', 'r', 'e', 'e', 'n', '*', '>', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'W', 'i', 'n', 'd', 'o', 'w', '*', '>', 0,
    'm', 'o', 'u', 's', 'e', 'P', 'r', 'e', 's', 's', 'E', 'v', 'e', 'n', 't', 0,
    'k', 'e', 'y', 'R', 'e', 'l', 'e', 'a', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'm', 'o', 'd', 'a', 'l', 'i', 't', 'y', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'M', 'a', 'x', 'i', 'm', 'u', 'm', 'W', 'i', 'd', 't', 'h', 0,
    's', 'e', 't', 'M', 'i', 'n', 'i', 'm', 'u', 'm', 'W', 'i', 'd', 't', 'h', 0,
    't', 'r', 'a', 'n', 's', 'i', 'e', 'n', 't', 'P', 'a', 'r', 'e', 'n', 't', 0,
    'r', 'e', 'q', 'u', 'e', 's', 't', 'A', 'c', 't', 'i', 'v', 'a', 't', 'e', 0,
    'd', 'i', 's', 't', 'a', 'n', 'c', 'e', 'T', 'o', 'P', 'o', 'i', 'n', 't', 0,
    's', 'e', 't', 'C', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'i', 'e', 's', 0,
    'f', 'i', 'r', 's', 't', 'L', 'i', 'n', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'c', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 'I', 'n', 'd', 'e', 'x', 0,
    'Q', 'T', 'e', 'x', 't', 'B', 'l', 'o', 'c', 'k', 'G', 'r', 'o', 'u', 'p', 0,
    'l', 'e', 'a', 'd', 'i', 'n', 'g', 'I', 'n', 'c', 'l', 'u', 'd', 'e', 'd', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'i', 'n', 'e', ':', ':', 'E', 'd', 'g', 'e', 0,
    'n', 'a', 't', 'u', 'r', 'a', 'l', 'T', 'e', 'x', 't', 'R', 'e', 'c', 't', 0,
    'c', 'u', 'r', 's', 'o', 'r', 'M', 'o', 'v', 'e', 'S', 't', 'y', 'l', 'e', 0,
    's', 'e', 't', 'C', 'a', 'c', 'h', 'e', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'p', 'r', 'e', 'e', 'd', 'i', 't', 'A', 'r', 'e', 'a', 'T', 'e', 'x', 't', 0,
    's', 'e', 't', 'R', 'i', 'g', 'h', 't', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    's', 'e', 't', 'N', 'u', 'm', 'b', 'e', 'r', 'S', 'u', 'f', 'f', 'i', 'x', 0,
    's', 'e', 't', 'N', 'u', 'm', 'b', 'e', 'r', 'P', 'r', 'e', 'f', 'i', 'x', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'i', 's', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 't', 'T', 'a', 'b', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 's', 0,
    'p', 'a', 'g', 'e', 'B', 'r', 'e', 'a', 'k', 'P', 'o', 'l', 'i', 'c', 'y', 0,
    'f', 'o', 'n', 't', 'W', 'o', 'r', 'd', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'S', 'i', 'n', 'g', 'l', 'e', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'O', 'v', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'c', 'l', 'e', 'a', 'r', 'F', 'o', 'r', 'e', 'g', 'r', 'o', 'u', 'n', 'd', 0,
    'c', 'l', 'e', 'a', 'r', 'B', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 0,
    'F', 'r', 'a', 'm', 'e', 'L', 'e', 'f', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'B', 'l', 'o', 'c', 'k', 'L', 'e', 'f', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'F', 'o', 'r', 'e', 'g', 'r', 'o', 'u', 'n', 'd', 'B', 'r', 'u', 's', 'h', 0,
    'B', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 'B', 'r', 'u', 's', 'h', 0,
    'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'c', 'o', 'n', 't', 'e', 'n', 't', 's', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'o', 'b', 'j', 'e', 'c', 't', 'F', 'o', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'm', 'e', 't', 'a', 'I', 'n', 'f', 'o', 'r', 'm', 'a', 't', 'i', 'o', 'n', 0,
    'i', 's', 'R', 'e', 'd', 'o', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0,
    'i', 's', 'U', 'n', 'd', 'o', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0,
    'm', 'i', 'g', 'h', 't', 'B', 'e', 'R', 'i', 'c', 'h', 'T', 'e', 'x', 't', 0,
    'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'I', 'n', 'B', 'l', 'o', 'c', 'k', 0,
    'b', 'l', 'o', 'c', 'k', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'm', 'e', 'r', 'g', 'e', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'L', 'i', 'n', 'e', 'U', 'n', 'd', 'e', 'r', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'W', 'o', 'r', 'd', 'U', 'n', 'd', 'e', 'r', 'C', 'u', 'r', 's', 'o', 'r', 0,
    's', 'e', 't', 'S', 'w', 'a', 'p', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 0,
    's', 'e', 't', 'M', 'i', 'n', 'o', 'r', 'V', 'e', 'r', 's', 'i', 'o', 'n', 0,
    's', 'e', 't', 'M', 'a', 'j', 'o', 'r', 'V', 'e', 'r', 's', 'i', 'o', 'n', 0,
    's', 'e', 't', 'S', 'w', 'a', 'p', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
    'a', 'l', 'p', 'h', 'a', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'g', 'r', 'e', 'e', 'n', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'd', 'e', 'p', 't', 'h', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'R', 'a', 's', 't', 'e', 'r', 'G', 'L', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 0,
    'c', 'u', 'r', 's', 'o', 'r', 'F', 'l', 'a', 's', 'h', 'T', 'i', 'm', 'e', 0,
    'p', 'e', 'r', 'f', 'o', 'r', 'm', 'a', 'n', 'c', 'e', 'H', 'i', 'n', 't', 0,
    'M', 'o', 'd', 'e', 'r', 'a', 't', 'e', 'C', 'a', 'c', 'h', 'i', 'n', 'g', 0,
    'e', 'm', 'i', 't', 'D', 'a', 't', 'a', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'Q', 'S', 'e', 's', 's', 'i', 'o', 'n', 'M', 'a', 'n', 'a', 'g', 'e', 'r', 0,
    'g', 'e', 'o', 'm', 'e', 't', 'r', 'y', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'v', 'i', 'r', 't', 'u', 'a', 'l', 'G', 'e', 'o', 'm', 'e', 't', 'r', 'y', 0,
    'v', 'i', 'r', 't', 'u', 'a', 'l', 'S', 'i', 'b', 'l', 'i', 'n', 'g', 's', 0,
    'f', 'r', 'o', 'm', 'I', 'm', 'a', 'g', 'e', 'R', 'e', 'a', 'd', 'e', 'r', 0,
    'q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 'Y', 'u', 'v', 0,
    'q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 'H', 's', 'v', 0,
    'q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 'H', 's', 'l', 0,
    'U', 'n', 's', 'i', 'g', 'n', 'e', 'd', 'I', 'n', 't', 'e', 'g', 'e', 'r', 0,
    'd', 'e', 'f', 'i', 'n', 'e', 'I', 'O', 'H', 'a', 'n', 'd', 'l', 'e', 'r', 0,
    'h', 'i', 'g', 'h', 'l', 'i', 'g', 'h', 't', 'e', 'd', 'T', 'e', 'x', 't', 0,
    'H', 'i', 'g', 'h', 'l', 'i', 'g', 'h', 't', 'e', 'd', 'T', 'e', 'x', 't', 0,
    'p', 'e', 'r', 'c', 'e', 'n', 't', 'A', 't', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'b', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 'B', 'r', 'u', 's', 'h', 0,
    'D', 'i', 'r', 't', 'y', 'C', 'l', 'i', 'p', 'R', 'e', 'g', 'i', 'o', 'n', 0,
    'D', 'i', 'r', 't', 'y', 'B', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 0,
    'C', 'o', 'n', 's', 't', 'a', 'n', 't', 'O', 'p', 'a', 'c', 'i', 't', 'y', 0,
    'P', 'd', 'm', 'P', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'D', 'p', 'i', 'Y', 0,
    'P', 'd', 'm', 'P', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'D', 'p', 'i', 'X', 0,
    'd', 'r', 'a', 'w', 'R', 'o', 'u', 'n', 'd', 'e', 'd', 'R', 'e', 'c', 't', 0,
    'd', 'e', 'v', 'i', 'c', 'e', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'd', 'r', 'a', 'w', 'T', 'i', 'l', 'e', 'd', 'P', 'i', 'x', 'm', 'a', 'p', 0,
    'c', 'o', 'm', 'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 'M', 'o', 'd', 'e', 0,
    'd', 'e', 'f', 'i', 'n', 'i', 't', 'i', 'o', 'n', 'U', 'n', 'i', 't', 's', 0,
    'Q', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', ':', ':', 'U', 'n', 'i', 't', 0,
    'p', 'a', 'i', 'n', 't', 'R', 'e', 'c', 't', 'P', 'i', 'x', 'e', 'l', 's', 0,
    'p', 'a', 'i', 'n', 't', 'R', 'e', 'c', 't', 'P', 'o', 'i', 'n', 't', 's', 0,
    's', 'e', 't', 'B', 'o', 't', 't', 'o', 'm', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'I', 't', 'a', 'l', 'i', 'a', 'n', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'M', 'o', 'n', 'a', 'r', 'c', 'h', 0,
    'g', 'r', 'a', 'b', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 0,
    'N', 'o', 'P', 'a', 'r', 't', 'i', 'a', 'l', 'U', 'p', 'd', 'a', 't', 'e', 0,
    'r', 'e', 'c', 'o', 'r', 'd', 'T', 'i', 'm', 'e', 's', 't', 'a', 'm', 'p', 0,
    'g', 'e', 'n', 'e', 'r', 'a', 't', 'e', 'M', 'i', 'p', 'M', 'a', 'p', 's', 0,
    's', 'e', 't', 'M', 'i', 'p', 'B', 'a', 's', 'e', 'L', 'e', 'v', 'e', 'l', 0,
    'U', 'I', 'n', 't', '8', '_', 'R', 'G', '3', 'B', '2', '_', 'R', 'e', 'v', 0,
    'U', 'I', 'n', 't', '3', '2', '_', 'R', 'G', '1', '1', 'B', '1', '0', 'F', 0,
    'a', 'l', 'l', 'o', 'c', 'a', 't', 'e', 'S', 't', 'o', 'r', 'a', 'g', 'e', 0,
    'L', 'u', 'm', 'i', 'n', 'a', 'n', 'c', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'S', 'R', 'G', 'B', '_', 'A', 'l', 'p', 'h', 'a', '_', 'D', 'X', 'T', '5', 0,
    'S', 'R', 'G', 'B', '_', 'A', 'l', 'p', 'h', 'a', '_', 'D', 'X', 'T', '3', 0,
    'S', 'R', 'G', 'B', '_', 'A', 'l', 'p', 'h', 'a', '_', 'D', 'X', 'T', '1', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', '3', 'D', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', '2', 'D', 0,
    'B', 'i', 'n', 'd', 'i', 'n', 'g', 'T', 'a', 'r', 'g', 'e', 't', '1', 'D', 0,
    's', 'e', 't', 'U', 'n', 'i', 'f', 'o', 'r', 'm', 'V', 'a', 'l', 'u', 'e', 0,
    'u', 'n', 'i', 'f', 'o', 'r', 'm', 'L', 'o', 'c', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'P', 'a', 'i', 'n', 't', 'F', 'l', 'i', 'p', 'p', 'e', 'd', 0,
    'b', 'l', 'i', 't', 'F', 'r', 'a', 'm', 'e', 'b', 'u', 'f', 'f', 'e', 'r', 0,
    'i', 'n', 't', 'e', 'r', 'n', 'a', 'l', '_', 'f', 'o', 'r', 'm', 'a', 't', 0,
    'd', 'i', 's', 'a', 'b', 'l', 'e', 'M', 'e', 's', 's', 'a', 'g', 'e', 's', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'S', 'e', 'v', 'e', 'r', 'i', 't', 'y', 0,
    'P', 'e', 'r', 'f', 'o', 'r', 'm', 'a', 'n', 'c', 'e', 'T', 'y', 'p', 'e', 0,
    'P', 'o', 'r', 't', 'a', 'b', 'i', 'l', 'i', 't', 'y', 'T', 'y', 'p', 'e', 0,
    'i', 's', 'L', 'e', 'g', 'a', 'c', 'y', 'V', 'e', 'r', 's', 'i', 'o', 'n', 0,
    's', 'e', 't', 'N', 'a', 't', 'i', 'v', 'e', 'H', 'a', 'n', 'd', 'l', 'e', 0,
    's', 'e', 't', 'S', 'h', 'a', 'r', 'e', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'R', 'a', 'n', 'g', 'e', 'I', 'n', 'v', 'a', 'l', 'i', 'd', 'a', 't', 'e', 0,
    's', 'e', 't', 'U', 's', 'a', 'g', 'e', 'P', 'a', 't', 't', 'e', 'r', 'n', 0,
    'P', 'i', 'x', 'e', 'l', 'P', 'a', 'c', 'k', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'r', 'e', 'q', 'u', 'e', 's', 't', 'e', 'd', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'j', 'u', 'm', 'p', 'T', 'o', 'N', 'e', 'x', 't', 'F', 'r', 'a', 'm', 'e', 0,
    'd', 'i', 's', 't', 'a', 'n', 'c', 'e', 'T', 'o', 'P', 'l', 'a', 'n', 'e', 0,
    'D', 'e', 'l', 'e', 't', 'e', 'E', 'n', 'd', 'O', 'f', 'L', 'i', 'n', 'e', 0,
    'D', 'e', 'l', 'e', 't', 'e', 'E', 'n', 'd', 'O', 'f', 'W', 'o', 'r', 'd', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'E', 'n', 'd', 'O', 'f', 'L', 'i', 'n', 'e', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'E', 'n', 'd', 'O', 'f', 'L', 'i', 'n', 'e', 0,
    'c', 'u', 'r', 's', 'o', 'r', 'R', 'e', 'c', 't', 'a', 'n', 'g', 'l', 'e', 0,
    'b', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 'C', 'o', 'l', 'o', 'r', 0,
    'j', 'u', 'm', 'p', 'T', 'o', 'N', 'e', 'x', 't', 'I', 'm', 'a', 'g', 'e', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', 'I', 'O', 'H', 'a', 'n', 'd', 'l', 'e', 'r', 0,
    'a', 's', 'p', 'e', 'c', 't', 'R', 'a', 't', 'i', 'o', 'M', 'o', 'd', 'e', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'A', 'l', 'p', 'h', 'a', 'M', 'a', 's', 'k', 0,
    'h', 'a', 's', 'A', 'l', 'p', 'h', 'a', 'C', 'h', 'a', 'n', 'n', 'e', 'l', 0,
    'c', 'o', 'n', 'v', 'e', 'r', 't', 'T', 'o', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', 'A', '8', '8', '8', '8', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', 'X', '8', '8', '8', '8', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'I', 'n', 'd', 'e', 'x', 'e', 'd', '8', 0,
    'i', 's', 'S', 'a', 'v', 'i', 'n', 'g', 'S', 'e', 's', 's', 'i', 'o', 'n', 0,
    'l', 'a', 'y', 'o', 'u', 't', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 0,
    't', 'o', 'p', 'L', 'e', 'v', 'e', 'l', 'W', 'i', 'n', 'd', 'o', 'w', 's', 0,
    'Q', 'G', 'u', 'i', 'A', 'p', 'p', 'l', 'i', 'c', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'B', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'c', 't', 0,
    's', 'e', 't', 'G', 'l', 'y', 'p', 'h', 'I', 'n', 'd', 'e', 'x', 'e', 's', 0,
    'm', 'i', 'n', 'R', 'i', 'g', 'h', 't', 'B', 'e', 'a', 'r', 'i', 'n', 'g', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'N', 'o', 'H', 'i', 'n', 't', 'i', 'n', 'g', 0,
    'A', 'b', 's', 'o', 'l', 'u', 't', 'e', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'c', 'a', 'c', 'h', 'e', 'S', 't', 'a', 't', 'i', 's', 't', 'i', 'c', 's', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'A', 'n', 't', 'i', 'a', 'l', 'i', 'a', 's', 0,
    's', 'e', 't', 'V', 'i', 'e', 'w', 'p', 'o', 'r', 't', 'S', 'i', 'z', 'e', 0,
    'c', 'o', 'n', 't', 'e', 'n', 't', 'P', 'o', 's', 'R', 'a', 'n', 'g', 'e', 0,
    'Q', 'S', 't', 'a', 't', 'u', 's', 'T', 'i', 'p', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'D', 'r', 'a', 'g', 'L', 'e', 'a', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'D', 'r', 'a', 'g', 'E', 'n', 't', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
    'p', 'o', 's', 's', 'i', 'b', 'l', 'e', 'A', 'c', 't', 'i', 'o', 'n', 's', 0,
    's', 'e', 't', 'C', 'o', 'm', 'm', 'i', 't', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'n', 'a', 't', 'i', 'v', 'e', 'M', 'o', 'd', 'i', 'f', 'i', 'e', 'r', 's', 0,
    'u', 'n', 's', 'e', 't', 'U', 'r', 'l', 'H', 'a', 'n', 'd', 'l', 'e', 'r', 0,
    's', 'e', 't', 'C', 'e', 'n', 't', 'e', 'r', 'R', 'a', 'd', 'i', 'u', 's', 0,
    'Q', 'R', 'a', 'd', 'i', 'a', 'l', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', 0,
    'Q', 'L', 'i', 'n', 'e', 'a', 'r', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', 0,
    'Q', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', ':', ':', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'I', 'm', 'a', 'g', 'e', 0,
    'd', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'c', 'a', 'n', 'D', 'r', 'o', 'p', 'M', 'i', 'm', 'e', 'D', 'a', 't', 'a', 0,
    'b', 'e', 'g', 'i', 'n', 'R', 'e', 's', 'e', 't', 'M', 'o', 'd', 'e', 'l', 0,
    'b', 'e', 'g', 'i', 'n', 'R', 'e', 'm', 'o', 'v', 'e', 'R', 'o', 'w', 's', 0,
    'b', 'e', 'g', 'i', 'n', 'I', 'n', 's', 'e', 'r', 't', 'R', 'o', 'w', 's', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'R', 'e', 'c', 't', '>', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'Q', 'L', 'i', 'n', 'e', '>', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'q', 'r', 'e', 'a', 'l', '>', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'f', 'l', 'o', 'a', 't', '>', 0,
    'o', 'p', 'a', 'c', 'i', 't', 'y', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'm', 'o', 'u', 's', 'e', 'M', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    's', 'h', 'o', 'w', 'F', 'u', 'l', 'l', 'S', 'c', 'r', 'e', 'e', 'n', 0,
    's', 'e', 't', 'M', 'a', 'x', 'i', 'm', 'u', 'm', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'M', 'i', 'n', 'i', 'm', 'u', 'm', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'W', 'i', 'n', 'd', 'o', 'w', 'S', 't', 'a', 't', 'e', 0,
    's', 'e', 't', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'T', 'y', 'p', 'e', 0,
    'd', 'i', 's', 't', 'a', 'n', 'c', 'e', 'T', 'o', 'L', 'i', 'n', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'T', 'a', 'b', 'l', 'e', 'C', 'e', 'l', 'l', 0,
    'S', 'u', 'p', 'p', 'r', 'e', 's', 's', 'C', 'o', 'l', 'o', 'r', 's', 0,
    's', 'e', 't', 'F', 'r', 'a', 'm', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'S', 'k', 'i', 'p', 'C', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 's', 0,
    's', 'e', 't', 'P', 'r', 'e', 'e', 'd', 'i', 't', 'A', 'r', 'e', 'a', 0,
    's', 'e', 't', 'L', 'e', 'f', 't', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'h', 'e', 'a', 'd', 'e', 'r', 'R', 'o', 'w', 'C', 'o', 'u', 'n', 't', 0,
    's', 'e', 't', 'C', 'e', 'l', 'l', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    's', 'e', 't', 'C', 'e', 'l', 'l', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    's', 'e', 't', 'B', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', 0,
    's', 'e', 't', 'B', 'o', 'r', 'd', 'e', 'r', 'B', 'r', 'u', 's', 'h', 0,
    'L', 'i', 's', 't', 'U', 'p', 'p', 'e', 'r', 'R', 'o', 'm', 'a', 'n', 0,
    'L', 'i', 's', 't', 'L', 'o', 'w', 'e', 'r', 'R', 'o', 'm', 'a', 'n', 0,
    'L', 'i', 's', 't', 'U', 'p', 'p', 'e', 'r', 'A', 'l', 'p', 'h', 'a', 0,
    'L', 'i', 's', 't', 'L', 'o', 'w', 'e', 'r', 'A', 'l', 'p', 'h', 'a', 0,
    'l', 'i', 'n', 'e', 'H', 'e', 'i', 'g', 'h', 't', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'S', 't', 'r', 'e', 't', 'c', 'h', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'K', 'e', 'r', 'n', 'i', 'n', 'g', 0,
    's', 'e', 't', 'A', 'n', 'c', 'h', 'o', 'r', 'N', 'a', 'm', 'e', 's', 0,
    'u', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 'S', 't', 'y', 'l', 'e', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'O', 'u', 't', 'l', 'i', 'n', 'e', 0,
    'f', 'o', 'n', 't', 'F', 'i', 'x', 'e', 'd', 'P', 'i', 't', 'c', 'h', 0,
    'u', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 'C', 'o', 'l', 'o', 'r', 0,
    'A', 'l', 'i', 'g', 'n', 'S', 'u', 'b', 'S', 'c', 'r', 'i', 'p', 't', 0,
    'l', 'e', 'n', 'g', 't', 'h', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    's', 't', 'r', 'i', 'n', 'g', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'd', 'o', 'u', 'b', 'l', 'e', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    's', 'e', 't', 'O', 'b', 'j', 'e', 'c', 't', 'I', 'n', 'd', 'e', 'x', 0,
    'L', 'i', 'n', 'e', 'H', 'e', 'i', 'g', 'h', 't', 'T', 'y', 'p', 'e', 0,
    'F', 'r', 'a', 'm', 'e', 'T', 'o', 'p', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'B', 'l', 'o', 'c', 'k', 'T', 'o', 'p', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'B', 'l', 'o', 'c', 'k', 'A', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    'P', 'a', 'g', 'e', 'B', 'r', 'e', 'a', 'k', '_', 'A', 'u', 't', 'o', 0,
    'V', 'a', 'r', 'i', 'a', 'b', 'l', 'e', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'b', 'a', 's', 'e', 'U', 'r', 'l', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 'C', 'o', 'u', 'n', 't', 0,
    'd', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    's', 'e', 't', 'I', 'n', 'd', 'e', 'n', 't', 'W', 'i', 'd', 't', 'h', 0,
    'c', 'o', 'n', 't', 'e', 'n', 't', 's', 'C', 'h', 'a', 'n', 'g', 'e', 0,
    's', 'e', 't', 'D', 'e', 'f', 'a', 'u', 'l', 't', 'F', 'o', 'n', 't', 0,
    'F', 'i', 'n', 'd', 'W', 'h', 'o', 'l', 'e', 'W', 'o', 'r', 'd', 's', 0,
    'd', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'L', 'a', 'y', 'o', 'u', 't', 0,
    'b', 'e', 'g', 'i', 'n', 'E', 'd', 'i', 't', 'B', 'l', 'o', 'c', 'k', 0,
    'i', 'n', 's', 'e', 'r', 't', 'F', 'r', 'a', 'g', 'm', 'e', 'n', 't', 0,
    's', 'e', 't', 'B', 'l', 'o', 'c', 'k', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 'S', 't', 'a', 'r', 't', 0,
    'r', 'e', 'n', 'd', 'e', 'r', 'a', 'b', 'l', 'e', 'T', 'y', 'p', 'e', 0,
    'b', 'l', 'u', 'e', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'Q', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'O', 'p', 'e', 'n', 'G', 'L', 0,
    's', 'e', 't', 'D', 'r', 'o', 'p', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    's', 'e', 't', 'D', 'r', 'a', 'g', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'a', 'c', 'c', 'e', 's', 's', 'i', 'b', 'l', 'e', 'T', 'e', 'x', 't', 0,
    's', 'e', 't', 'C', 'o', 'l', 'u', 'm', 'n', 'C', 'o', 'u', 'n', 't', 0,
    'd', 'i', 's', 'c', 'a', 'r', 'd', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 0,
    'r', 'e', 's', 't', 'a', 'r', 't', 'C', 'o', 'm', 'm', 'a', 'n', 'd', 0,
    's', 'e', 't', 'R', 'e', 's', 't', 'a', 'r', 't', 'H', 'i', 'n', 't', 0,
    'q', 'U', 'n', 'p', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'y', 0,
    'K', 'e', 'r', 'n', 'e', 'd', 'A', 'd', 'v', 'a', 'n', 'c', 'e', 's', 0,
    'b', 'r', 'i', 'g', 'h', 't', 'n', 'e', 's', 's', 'S', 'i', 'z', 'e', 0,
    's', 'a', 't', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'D', 'a', 's', 'h', 'P', 'a', 't', 't', 'e', 'r', 'n', 0,
    'c', 'u', 'r', 'v', 'e', 'T', 'h', 'r', 'e', 's', 'h', 'o', 'l', 'd', 0,
    'a', 'd', 'd', 'R', 'o', 'u', 'n', 'd', 'e', 'd', 'R', 'e', 'c', 't', 0,
    's', 'l', 'o', 'p', 'e', 'A', 't', 'P', 'e', 'r', 'c', 'e', 'n', 't', 0,
    'a', 'n', 'g', 'l', 'e', 'A', 't', 'P', 'e', 'r', 'c', 'e', 'n', 't', 0,
    'p', 'o', 'i', 'n', 't', 'A', 't', 'P', 'e', 'r', 'c', 'e', 'n', 't', 0,
    't', 'o', 'F', 'i', 'l', 'l', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 's', 0,
    'C', 'u', 'r', 'v', 'e', 'T', 'o', 'E', 'l', 'e', 'm', 'e', 'n', 't', 0,
    'D', 'i', 'r', 't', 'y', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'p', 'a', 'i', 'n', 't', 'i', 'n', 'g', 'A', 'c', 't', 'i', 'v', 'e', 0,
    'd', 'r', 'a', 'w', 'S', 't', 'a', 't', 'i', 'c', 'T', 'e', 'x', 't', 0,
    't', 'e', 's', 't', 'R', 'e', 'n', 'd', 'e', 'r', 'H', 'i', 'n', 't', 0,
    'w', 'o', 'r', 'l', 'd', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'r', 'e', 's', 'e', 't', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    's', 'e', 't', 'R', 'e', 'n', 'd', 'e', 'r', 'H', 'i', 'n', 't', 's', 0,
    's', 'e', 't', 'B', 'r', 'u', 's', 'h', 'O', 'r', 'i', 'g', 'i', 'n', 0,
    'b', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 'M', 'o', 'd', 'e', 0,
    'd', 'e', 'f', 'i', 'n', 'i', 't', 'i', 'o', 'n', 'S', 'i', 'z', 'e', 0,
    'f', 'u', 'l', 'l', 'R', 'e', 'c', 't', 'P', 'i', 'x', 'e', 'l', 's', 0,
    'f', 'u', 'l', 'l', 'R', 'e', 'c', 't', 'P', 'o', 'i', 'n', 't', 's', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'm', 'i', 'n', 'i', 'm', 'u', 'm', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    's', 'e', 't', 'R', 'i', 'g', 'h', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    's', 'e', 't', 'O', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'i', 's', 'E', 'q', 'u', 'i', 'v', 'a', 'l', 'e', 'n', 't', 'T', 'o', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'I', 'n', 'v', 'i', 't', 'e', 0,
    'D', 'o', 'u', 'b', 'l', 'e', 'P', 'o', 's', 't', 'c', 'a', 'r', 'd', 0,
    'u', 'p', 'd', 'a', 't', 'e', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'S', 'a', 'm', 'p', 'l', 'e', 's', 0,
    's', 'e', 't', 'S', 'a', 'm', 'p', 'l', 'e', 'C', 'o', 'u', 'n', 't', 0,
    's', 'e', 't', 'B', 'o', 'r', 'd', 'e', 'r', 'C', 'o', 'l', 'o', 'r', 0,
    'M', 'i', 'r', 'r', 'o', 'r', 'e', 'd', 'R', 'e', 'p', 'e', 'a', 't', 0,
    's', 'e', 't', 'S', 'w', 'i', 'z', 'z', 'l', 'e', 'M', 'a', 's', 'k', 0,
    'r', 'e', 's', 'e', 't', 'B', 'a', 's', 'e', 'L', 'e', 'v', 'e', 'l', 0,
    's', 'e', 't', 'M', 'i', 'p', 'M', 'a', 'x', 'L', 'e', 'v', 'e', 'l', 0,
    'U', 'I', 'n', 't', '3', '2', '_', 'R', 'G', 'B', '1', '0', 'A', '2', 0,
    'U', 'I', 'n', 't', '3', '2', '_', 'R', 'G', 'B', '9', '_', 'E', '5', 0,
    'L', 'u', 'm', 'i', 'n', 'a', 'n', 'c', 'e', 'A', 'l', 'p', 'h', 'a', 0,
    'N', 'o', 'S', 'o', 'u', 'r', 'c', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'R', 'G', '_', 'A', 'T', 'I', '2', 'N', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', 'G', '_', 'A', 'T', 'I', '2', 'N', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'b', 'o', 'u', 'n', 'd', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'I', 'd', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'T', 'e', 'x', 't', 'u', 'r', 'e', 0,
    's', 'e', 't', 'I', 'm', 'a', 'g', 'e', 'H', 'e', 'i', 'g', 'h', 't', 0,
    'l', 'o', 'g', 'g', 'e', 'd', 'M', 'e', 's', 's', 'a', 'g', 'e', 's', 0,
    'e', 'n', 'a', 'b', 'l', 'e', 'M', 'e', 's', 's', 'a', 'g', 'e', 's', 0,
    'M', 'e', 'd', 'i', 'u', 'm', 'S', 'e', 'v', 'e', 'r', 'i', 't', 'y', 0,
    'v', 'e', 'r', 's', 'i', 'o', 'n', 'P', 'r', 'o', 'f', 'i', 'l', 'e', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'n', 'e', 'x', 't', 'F', 'r', 'a', 'm', 'e', 'D', 'e', 'l', 'a', 'y', 0,
    'l', 'i', 's', 't', 'F', 'r', 'o', 'm', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'N', 'e', 'x', 't', 'P', 'a', 'g', 'e', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'N', 'e', 'x', 't', 'L', 'i', 'n', 'e', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'N', 'e', 'x', 't', 'W', 'o', 'r', 'd', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'N', 'e', 'x', 't', 'C', 'h', 'a', 'r', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'N', 'e', 'x', 't', 'P', 'a', 'g', 'e', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'N', 'e', 'x', 't', 'L', 'i', 'n', 'e', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'N', 'e', 'x', 't', 'W', 'o', 'r', 'd', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'N', 'e', 'x', 't', 'C', 'h', 'a', 'r', 0,
    'v', 'i', 's', 'i', 'b', 'l', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'i', 'n', 'p', 'u', 't', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'C', 'o', 'm', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0,
    's', 'c', 'a', 'l', 'e', 'd', 'C', 'l', 'i', 'p', 'R', 'e', 'c', 't', 0,
    'n', 'e', 'x', 't', 'I', 'm', 'a', 'g', 'e', 'D', 'e', 'l', 'a', 'y', 0,
    's', 'u', 'p', 'p', 'o', 'r', 't', 's', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'c', 'a', 'l', 'e', 'd', 'T', 'o', 'H', 'e', 'i', 'g', 'h', 't', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'M', 'o', 'n', 'o', 'L', 'S', 'B', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'I', 'n', 'v', 'a', 'l', 'i', 'd', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', ':', ':', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'S', 'i', 'z', 'e', 's', 0,
    'p', 'a', 'l', 'e', 't', 't', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'o', 'v', 'e', 'r', 'r', 'i', 'd', 'e', 'C', 'u', 'r', 's', 'o', 'r', 0,
    's', 'e', 't', 'R', 'i', 'g', 'h', 't', 'T', 'o', 'L', 'e', 'f', 't', 0,
    'm', 'i', 'n', 'L', 'e', 'f', 't', 'B', 'e', 'a', 'r', 'i', 'n', 'g', 0,
    'w', 'r', 'i', 't', 'i', 'n', 'g', 'S', 'y', 's', 't', 'e', 'm', 's', 0,
    'c', 'a', 'p', 'i', 't', 'a', 'l', 'i', 'z', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'W', 'o', 'r', 'd', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'l', 'a', 's', 't', 'R', 'e', 's', 'o', 'r', 't', 'F', 'o', 'n', 't', 0,
    'E', 'x', 't', 'r', 'a', 'C', 'o', 'n', 'd', 'e', 'n', 's', 'e', 'd', 0,
    'U', 'l', 't', 'r', 'a', 'C', 'o', 'n', 'd', 'e', 'n', 's', 'e', 'd', 0,
    'Q', 'F', 'o', 'n', 't', ':', ':', 'S', 't', 'r', 'e', 't', 'c', 'h', 0,
    'S', 'c', 'r', 'o', 'l', 'l', 'F', 'i', 'n', 'i', 's', 'h', 'e', 'd', 0,
    's', 't', 'a', 'r', 't', 'S', 'c', 'r', 'e', 'e', 'n', 'P', 'o', 's', 0,
    'Q', 'S', 'h', 'o', 'r', 't', 'c', 'u', 't', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'F', 'i', 'l', 'e', 'O', 'p', 'e', 'n', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'D', 'r', 'a', 'g', 'M', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'p', 'r', 'o', 'p', 'o', 's', 'e', 'd', 'A', 'c', 't', 'i', 'o', 'n', 0,
    'Q', 'I', 'c', 'o', 'n', 'D', 'r', 'a', 'g', 'E', 'v', 'e', 'n', 't', 0,
    'n', 'a', 't', 'i', 'v', 'e', 'S', 'c', 'a', 'n', 'C', 'o', 'd', 'e', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'P', 'o', 'i', 'n', 't', 'e', 'r', 0,
    'R', 'o', 't', 'a', 't', 'i', 'o', 'n', 'S', 't', 'y', 'l', 'u', 's', 0,
    'o', 'w', 'n', 's', 'F', 'i', 'n', 'd', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    's', 'e', 't', 'F', 'o', 'c', 'a', 'l', 'R', 'a', 'd', 'i', 'u', 's', 0,
    'c', 'o', 'o', 'r', 'd', 'i', 'n', 'a', 't', 'e', 'M', 'o', 'd', 'e', 0,
    'h', 's', 'l', 'S', 'a', 't', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'F', 0,
    'h', 's', 'v', 'S', 'a', 't', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'F', 0,
    's', 't', 'a', 't', 'i', 'c', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 0,
    's', 'e', 't', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'c', 'u', 'r', 's', 'o', 'r', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'c', 'l', 'e', 'a', 'r', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'D', 'e', 's', 'c', 'r', 'i', 'p', 't', 'i', 'o', 'n', 0,
    'e', 'n', 'd', 'M', 'o', 'v', 'e', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'D', 'a', 's', 'h', 'D', 'o', 't', 'D', 'o', 't', 'L', 'i', 'n', 'e', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '<', 'u', 'i', 'n', 't', '>', 0,
    's', 'e', 't', 'V', 'i', 's', 'i', 'b', 'i', 'l', 'i', 't', 'y', 0,
    'k', 'e', 'y', 'P', 'r', 'e', 's', 's', 'E', 'v', 'e', 'n', 't', 0,
    'f', 'o', 'c', 'u', 's', 'O', 'u', 't', 'E', 'v', 'e', 'n', 't', 0,
    'h', 'e', 'i', 'g', 'h', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'h', 'o', 'w', 'M', 'a', 'x', 'i', 'm', 'i', 'z', 'e', 'd', 0,
    's', 'h', 'o', 'w', 'M', 'i', 'n', 'i', 'm', 'i', 'z', 'e', 'd', 0,
    'm', 'a', 'p', 'F', 'r', 'o', 'm', 'G', 'l', 'o', 'b', 'a', 'l', 0,
    'f', 'r', 'a', 'm', 'e', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'f', 'r', 'a', 'm', 'e', 'G', 'e', 'o', 'm', 'e', 't', 'r', 'y', 0,
    's', 'i', 'z', 'e', 'I', 'n', 'c', 'r', 'e', 'm', 'e', 'n', 't', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'H', 'e', 'i', 'g', 'h', 't', 0,
    'm', 'i', 'n', 'i', 'm', 'u', 'm', 'H', 'e', 'i', 'g', 'h', 't', 0,
    'Q', 'I', 'n', 't', 'V', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', 0,
    'f', 'r', 'o', 'm', 'T', 'r', 'a', 'n', 's', 'l', 'a', 't', 'e', 0,
    'i', 's', 'T', 'r', 'a', 'n', 's', 'l', 'a', 't', 'i', 'n', 'g', 0,
    'r', 'o', 't', 'a', 't', 'e', 'R', 'a', 'd', 'i', 'a', 'n', 's', 0,
    'a', 'p', 'p', 'e', 'n', 'd', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'r', 'a', 'g', 'm', 'e', 'n', 't', 0,
    'f', 'i', 'r', 's', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'b', 'l', 'o', 'c', 'k', 'I', 'n', 's', 'e', 'r', 't', 'e', 'd', 0,
    's', 'e', 't', 'N', 'u', 'm', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'b', 'o', 't', 't', 'o', 'm', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    's', 'e', 't', 'T', 'o', 'p', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    's', 'e', 't', 'L', 'i', 'n', 'e', 'H', 'e', 'i', 'g', 'h', 't', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'I', 'n', 'd', 'e', 'n', 't', 0,
    'f', 'o', 'n', 't', 'S', 't', 'y', 'l', 'e', 'H', 'i', 'n', 't', 0,
    'W', 'a', 'v', 'e', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    'D', 'a', 's', 'h', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    's', 'e', 't', 'A', 'n', 'c', 'h', 'o', 'r', 'H', 'r', 'e', 'f', 0,
    'f', 'o', 'n', 't', 'S', 't', 'r', 'i', 'k', 'e', 'O', 'u', 't', 0,
    'f', 'o', 'n', 't', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'I', 't', 'a', 'l', 'i', 'c', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'W', 'e', 'i', 'g', 'h', 't', 0,
    'f', 'o', 'n', 't', 'P', 'o', 'i', 'n', 't', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 'F', 'a', 'm', 'i', 'l', 'y', 0,
    's', 'e', 't', 'O', 'b', 'j', 'e', 'c', 't', 'T', 'y', 'p', 'e', 0,
    't', 'o', 'F', 'r', 'a', 'm', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    't', 'o', 'T', 'a', 'b', 'l', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    't', 'o', 'B', 'l', 'o', 'c', 'k', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'i', 's', 'T', 'a', 'b', 'l', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'i', 's', 'I', 'm', 'a', 'g', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'i', 's', 'F', 'r', 'a', 'm', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'i', 's', 'B', 'l', 'o', 'c', 'k', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'b', 'r', 'u', 's', 'h', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'c', 'o', 'l', 'o', 'r', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'c', 'l', 'e', 'a', 'r', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'F', 'o', 'n', 't', 'P', 'i', 'x', 'e', 'l', 'S', 'i', 'z', 'e', 0,
    'f', 'r', 'o', 'm', 'P', 'l', 'a', 'i', 'n', 'T', 'e', 'x', 't', 0,
    'u', 'n', 'd', 'o', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0,
    'r', 'e', 'd', 'o', 'A', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 0,
    'I', 'm', 'a', 'g', 'e', 'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', 0,
    'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'T', 'i', 't', 'l', 'e', 0,
    'Q', 'T', 'e', 'x', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 0,
    's', 'e', 't', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'N', 'e', 'x', 't', 'C', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 0,
    'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'B', 'l', 'o', 'c', 'k', 0,
    'r', 'e', 'd', 'B', 'u', 'f', 'f', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'S', 't', 'e', 'r', 'e', 'o', 'B', 'u', 'f', 'f', 'e', 'r', 's', 0,
    'O', 'p', 'e', 'n', 'G', 'L', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 0,
    'R', 'a', 's', 't', 'e', 'r', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 0,
    's', 't', 'a', 'r', 't', 'D', 'r', 'a', 'g', 'T', 'i', 'm', 'e', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 't', 'C', 'h', 'e', 'c', 'k', 'S', 't', 'a', 't', 'e', 0,
    's', 'e', 't', 'F', 'o', 'r', 'e', 'g', 'r', 'o', 'u', 'n', 'd', 0,
    'i', 's', 'D', 'r', 'o', 'p', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'i', 's', 'D', 'r', 'a', 'g', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    's', 'e', 't', 'S', 'e', 'l', 'e', 'c', 't', 'a', 'b', 'l', 'e', 0,
    't', 'e', 'x', 't', 'A', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    'Q', 'S', 't', 'a', 'n', 'd', 'a', 'r', 'd', 'I', 't', 'e', 'm', 0,
    'i', 't', 'e', 'm', 'P', 'r', 'o', 't', 'o', 't', 'y', 'p', 'e', 0,
    'i', 'n', 'd', 'e', 'x', 'F', 'r', 'o', 'm', 'I', 't', 'e', 'm', 0,
    'i', 't', 'e', 'm', 'F', 'r', 'o', 'm', 'I', 'n', 'd', 'e', 'x', 0,
    'r', 'e', 'q', 'u', 'e', 's', 't', 'P', 'h', 'a', 's', 'e', '2', 0,
    'R', 'e', 's', 't', 'a', 'r', 't', 'A', 'n', 'y', 'w', 'a', 'y', 0,
    'a', 'v', 'a', 'i', 'l', 'a', 'b', 'l', 'e', 'S', 'i', 'z', 'e', 0,
    'l', 'i', 'n', 'e', 'T', 'h', 'i', 'c', 'k', 'n', 'e', 's', 's', 0,
    'Q', 'R', 'a', 's', 't', 'e', 'r', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'r', 'o', 't', 'a', 't', 'e', 'd', 'V', 'e', 'c', 't', 'o', 'r', 0,
    'l', 'e', 'n', 'g', 't', 'h', 'S', 'q', 'u', 'a', 'r', 'e', 'd', 0,
    'c', 'o', 'n', 't', 'a', 'i', 'n', 's', 'P', 'o', 'i', 'n', 't', 0,
    's', 'e', 't', 'C', 'a', 'c', 'h', 'e', 'L', 'i', 'm', 'i', 't', 0,
    'p', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'i', 'e', 'd', 0,
    'a', 'l', 'p', 'h', 'a', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'l', 'i', 'g', 'h', 't', 'n', 'e', 's', 's', 'S', 'i', 'z', 'e', 0,
    'F', 'l', 'o', 'a', 't', 'i', 'n', 'g', 'P', 'o', 'i', 'n', 't', 0,
    'U', 'n', 's', 'i', 'g', 'n', 'e', 'd', 'S', 'h', 'o', 'r', 't', 0,
    'o', 'u', 't', 'p', 'u', 't', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    'p', 'i', 'c', 't', 'u', 'r', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 't', 'P', 'a', 'r', 'a', 'm', 'e', 't', 'e', 'r', 's', 0,
    'f', 'o', 'r', 'm', 'a', 't', 'V', 'e', 'r', 's', 'i', 'o', 'n', 0,
    's', 'e', 't', 'R', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 0,
    'a', 'l', 't', 'e', 'r', 'n', 'a', 't', 'e', 'B', 'a', 's', 'e', 0,
    's', 'e', 't', 'C', 'o', 'l', 'o', 'r', 'G', 'r', 'o', 'u', 'p', 0,
    'A', 'l', 't', 'e', 'r', 'n', 'a', 't', 'e', 'B', 'a', 's', 'e', 0,
    's', 'e', 't', 'D', 'a', 's', 'h', 'O', 'f', 'f', 's', 'e', 't', 0,
    's', 'e', 't', 'M', 'i', 't', 'e', 'r', 'L', 'i', 'm', 'i', 't', 0,
    't', 'o', 'F', 'i', 'l', 'l', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 0,
    'L', 'i', 'n', 'e', 'T', 'o', 'E', 'l', 'e', 'm', 'e', 'n', 't', 0,
    'M', 'o', 'v', 'e', 'T', 'o', 'E', 'l', 'e', 'm', 'e', 'n', 't', 0,
    'i', 's', 'C', 'l', 'i', 'p', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'c', 'l', 'i', 'p', 'O', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'Q', 'W', 'i', 'n', 'd', 'o', 'w', 'S', 'y', 's', 't', 'e', 'm', 0,
    'D', 'i', 'r', 't', 'y', 'C', 'l', 'i', 'p', 'P', 'a', 't', 'h', 0,
    'R', 'a', 's', 't', 'e', 'r', 'O', 'p', 'M', 'o', 'd', 'e', 's', 0,
    's', 'e', 't', 'R', 'e', 'n', 'd', 'e', 'r', 'H', 'i', 'n', 't', 0,
    's', 'e', 't', 'C', 'l', 'i', 'p', 'R', 'e', 'g', 'i', 'o', 'n', 0,
    's', 'e', 't', 'B', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 0,
    'm', 'a', 'r', 'g', 'i', 'n', 's', 'P', 'i', 'x', 'e', 'l', 's', 0,
    'm', 'a', 'r', 'g', 'i', 'n', 's', 'P', 'o', 'i', 'n', 't', 's', 0,
    's', 'e', 't', 'L', 'e', 'f', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'L', 'a', 'y', 'o', 'u', 't', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 'M', 'M', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '1', '0', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'K', 'a', 'k', 'u', '3', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'K', 'a', 'k', 'u', '2', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', 'h', 'o', 'u', '4', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', 'h', 'o', 'u', '3', 0,
    'F', 'a', 'n', 'F', 'o', 'l', 'd', 'G', 'e', 'r', 'm', 'a', 'n', 0,
    'I', 'm', 'p', 'e', 'r', 'i', 'a', 'l', '1', '5', 'x', '1', '1', 0,
    'I', 'm', 'p', 'e', 'r', 'i', 'a', 'l', '1', '2', 'x', '1', '1', 0,
    'I', 'm', 'p', 'e', 'r', 'i', 'a', 'l', '1', '0', 'x', '1', '4', 0,
    'I', 'm', 'p', 'e', 'r', 'i', 'a', 'l', '1', '0', 'x', '1', '3', 0,
    'I', 'm', 'p', 'e', 'r', 'i', 'a', 'l', '1', '0', 'x', '1', '1', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'w', 'a', 'i', 't', 'F', 'o', 'r', 'R', 'e', 's', 'u', 'l', 't', 0,
    'C', 'l', 'a', 'm', 'p', 'T', 'o', 'B', 'o', 'r', 'd', 'e', 'r', 0,
    'm', 'i', 'n', 'M', 'a', 'g', 'F', 'i', 'l', 't', 'e', 'r', 's', 0,
    'm', 'i', 'p', 'L', 'e', 'v', 'e', 'l', 'R', 'a', 'n', 'g', 'e', 0,
    'T', 'e', 'x', 't', 'u', 'r', 'e', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'T', 'e', 'x', 't', 'u', 'r', 'e', 'A', 'r', 'r', 'a', 'y', 's', 0,
    'U', 'I', 'n', 't', '1', '6', '_', 'R', '5', 'G', '6', 'B', '5', 0,
    'U', 'I', 'n', 't', '1', '6', '_', 'R', 'G', 'B', '5', 'A', '1', 0,
    'i', 's', 'T', 'e', 'x', 't', 'u', 'r', 'e', 'V', 'i', 'e', 'w', 0,
    'S', 'R', 'G', 'B', '_', 'B', 'P', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'R', '_', 'A', 'T', 'I', '1', 'N', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', '_', 'A', 'T', 'I', '1', 'N', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'S', 'h', 'a', 'd', 'e', 'r', 0,
    's', 'e', 't', 'S', 'k', 'i', 'p', 'P', 'i', 'x', 'e', 'l', 's', 0,
    's', 'e', 't', 'S', 'k', 'i', 'p', 'I', 'm', 'a', 'g', 'e', 's', 0,
    't', 'e', 'x', 't', 'u', 'r', 'e', 'T', 'a', 'r', 'g', 'e', 't', 0,
    's', 'e', 't', 'A', 't', 't', 'a', 'c', 'h', 'm', 'e', 'n', 't', 0,
    'm', 'e', 's', 's', 'a', 'g', 'e', 'L', 'o', 'g', 'g', 'e', 'd', 0,
    'G', 'r', 'o', 'u', 'p', 'P', 'u', 's', 'h', 'T', 'y', 'p', 'e', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'Q', 'O', 'p', 'e', 'n', 'G', 'L', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    's', 'c', 'r', 'e', 'e', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'P', 'i', 'x', 'm', 'a', 'p', 0,
    'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'C', 'h', 'i', 'l', 'd', 0,
    'l', 'o', 'c', 'a', 'l', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'S', 'c', 'a', 'l', 'e', 'd', 'S', 'i', 'z', 'e', 0,
    't', 'o', 'I', 'm', 'a', 'g', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    't', 'o', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'b', 'i', 't', 'P', 'l', 'a', 'n', 'e', 'C', 'o', 'u', 'n', 't', 0,
    's', 'e', 't', 'C', 'o', 'l', 'o', 'r', 'C', 'o', 'u', 'n', 't', 0,
    'd', 'o', 't', 's', 'P', 'e', 'r', 'M', 'e', 't', 'e', 'r', 'Y', 0,
    'd', 'o', 't', 's', 'P', 'e', 'r', 'M', 'e', 't', 'e', 'r', 'X', 0,
    's', 'c', 'a', 'l', 'e', 'd', 'T', 'o', 'W', 'i', 'd', 't', 'h', 0,
    't', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'C', 'o', 'l', 'o', 'r', 'T', 'a', 'b', 'l', 'e', 0,
    'c', 'o', 'n', 's', 't', 'S', 'c', 'a', 'n', 'L', 'i', 'n', 'e', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', '4', '4', '4', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', '8', '8', '8', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', '5', '5', '5', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', '6', '6', '6', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'A', 'R', 'G', 'B', '3', '2', 0,
    's', 'c', 'r', 'e', 'e', 'n', 'R', 'e', 'm', 'o', 'v', 'e', 'd', 0,
    's', 'e', 't', 'W', 'i', 'n', 'd', 'o', 'w', 'I', 'c', 'o', 'n', 0,
    'i', 's', 'L', 'e', 'f', 't', 'T', 'o', 'R', 'i', 'g', 'h', 't', 0,
    'p', 'r', 'i', 'm', 'a', 'r', 'y', 'S', 'c', 'r', 'e', 'e', 'n', 0,
    'i', 's', 'R', 'i', 'g', 'h', 't', 'T', 'o', 'L', 'e', 'f', 't', 0,
    'S', 'p', 'l', 'i', 't', 'L', 'i', 'g', 'a', 't', 'u', 'r', 'e', 0,
    's', 'e', 't', 'T', 'o', 'I', 'd', 'e', 'n', 't', 'i', 't', 'y', 0,
    'Q', 'F', 'o', 'n', 't', 'M', 'e', 't', 'r', 'i', 'c', 's', 'F', 0,
    'w', 'r', 'i', 't', 'i', 'n', 'g', 'S', 'y', 's', 't', 'e', 'm', 0,
    's', 't', 'a', 'n', 'd', 'a', 'r', 'd', 'S', 'i', 'z', 'e', 's', 0,
    'Q', 'F', 'o', 'n', 't', 'D', 'a', 't', 'a', 'b', 'a', 's', 'e', 0,
    'l', 'e', 't', 't', 'e', 'r', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'F', 'a', 'm', 'i', 'l', 'y', 0,
    's', 'u', 'b', 's', 't', 'i', 't', 'u', 't', 'i', 'o', 'n', 's', 0,
    's', 't', 'y', 'l', 'e', 'S', 't', 'r', 'a', 't', 'e', 'g', 'y', 0,
    's', 'e', 't', 'F', 'i', 'x', 'e', 'd', 'P', 'i', 't', 'c', 'h', 0,
    's', 'e', 't', 'P', 'o', 'i', 'n', 't', 'S', 'i', 'z', 'e', 'F', 0,
    'U', 'l', 't', 'r', 'a', 'E', 'x', 'p', 'a', 'n', 'd', 'e', 'd', 0,
    'E', 'x', 't', 'r', 'a', 'E', 'x', 'p', 'a', 'n', 'd', 'e', 'd', 0,
    'S', 'e', 'm', 'i', 'C', 'o', 'n', 'd', 'e', 'n', 's', 'e', 'd', 0,
    'Q', 'F', 'o', 'n', 't', ':', ':', 'W', 'e', 'i', 'g', 'h', 't', 0,
    'N', 'o', 'F', 'o', 'n', 't', 'M', 'e', 'r', 'g', 'i', 'n', 'g', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'Q', 'u', 'a', 'l', 'i', 't', 'y', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'O', 'u', 't', 'l', 'i', 'n', 'e', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'D', 'e', 'f', 'a', 'u', 'l', 't', 0,
    'S', 'c', 'r', 'o', 'l', 'l', 'U', 'p', 'd', 'a', 't', 'e', 'd', 0,
    'S', 'c', 'r', 'o', 'l', 'l', 'S', 't', 'a', 'r', 't', 'e', 'd', 0,
    's', 'e', 't', 'C', 'o', 'n', 't', 'e', 'n', 't', 'P', 'o', 's', 0,
    'n', 'o', 'r', 'm', 'a', 'l', 'i', 'z', 'e', 'd', 'P', 'o', 's', 0,
    'l', 'a', 's', 't', 'S', 'c', 'r', 'e', 'e', 'n', 'P', 'o', 's', 0,
    's', 't', 'a', 'r', 't', 'S', 'c', 'e', 'n', 'e', 'P', 'o', 's', 0,
    's', 'e', 't', 'D', 'r', 'o', 'p', 'A', 'c', 't', 'i', 'o', 'n', 0,
    'p', 'r', 'e', 'e', 'd', 'i', 't', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'A', 'c', 't', 'i', 'o', 'n', 0,
    't', 'a', 'r', 'g', 'e', 't', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'a', 'c', 't', 'i', 'o', 'n', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'D', 'r', 'a', 'g', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'o', 'w', 'n', 's', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'o', 'w', 'n', 's', 'C', 'l', 'i', 'p', 'b', 'o', 'a', 'r', 'd', 0,
    's', 'e', 't', 'F', 'o', 'c', 'a', 'l', 'P', 'o', 'i', 'n', 't', 0,
    'R', 'e', 'f', 'l', 'e', 'c', 't', 'S', 'p', 'r', 'e', 'a', 'd', 0,
    'h', 's', 'l', 'S', 'a', 't', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'h', 's', 'v', 'S', 'a', 't', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'N', 'a', 'm', 'e', 'd', 'C', 'o', 'l', 'o', 'r', 0,
    'Q', 'B', 'a', 'c', 'k', 'i', 'n', 'g', 'S', 't', 'o', 'r', 'e', 0,
    'i', 'n', 't', 'r', 'i', 'n', 's', 'i', 'c', 'S', 'i', 'z', 'e', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 't', 'y', 'C', 'o', 'u', 'n', 't', 0,
    't', 'e', 'x', 't', 'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'a', 'c', 't', 'i', 'v', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'e', 'n', 'd', 'R', 'e', 's', 'e', 't', 'M', 'o', 'd', 'e', 'l', 0,
    'b', 'e', 'g', 'i', 'n', 'M', 'o', 'v', 'e', 'R', 'o', 'w', 's', 0,
    'e', 'n', 'd', 'R', 'e', 'm', 'o', 'v', 'e', 'R', 'o', 'w', 's', 0,
    'e', 'n', 'd', 'I', 'n', 's', 'e', 'r', 't', 'R', 'o', 'w', 's', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'i', 'n', 's', 'e', 'r', 't', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    's', 'e', 't', 'H', 'e', 'a', 'd', 'e', 'r', 'D', 'a', 't', 'a', 0,
    'A', 'l', 'i', 'g', 'n', 'B', 'a', 's', 'e', 'l', 'i', 'n', 'e', 0,
    'q', 'F', 'u', 'z', 'z', 'y', 'C', 'o', 'm', 'p', 'a', 'r', 'e', 0,
    'Q', 'L', 'i', 's', 't', '<', 'Q', 'S', 'i', 'z', 'e', '>', 0,
    'f', 'o', 'c', 'u', 's', 'I', 'n', 'E', 'v', 'e', 'n', 't', 0,
    'w', 'i', 'd', 't', 'h', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'f', 'r', 'a', 'm', 'e', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'i', 's', 'A', 'n', 'c', 'e', 's', 't', 'o', 'r', 'O', 'f', 0,
    'c', 'r', 'o', 's', 's', 'P', 'r', 'o', 'd', 'u', 'c', 't', 0,
    'I', 'n', 't', 'e', 'r', 'm', 'e', 'd', 'i', 'a', 't', 'e', 0,
    'i', 's', 'I', 'n', 'v', 'e', 'r', 't', 'i', 'b', 'l', 'e', 0,
    'm', 'a', 'p', 'T', 'o', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 0,
    'q', 'u', 'a', 'd', 'T', 'o', 'S', 'q', 'u', 'a', 'r', 'e', 0,
    's', 'q', 'u', 'a', 'r', 'e', 'T', 'o', 'Q', 'u', 'a', 'd', 0,
    'c', 'a', 'p', 'a', 'b', 'i', 'l', 'i', 't', 'i', 'e', 's', 0,
    'R', 'a', 'w', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'T', 'o', 'u', 'c', 'h', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'D', 'e', 'l', 'i', 'm', 'i', 't', 'e', 'r', 'T', 'a', 'b', 0,
    'W', 'r', 'a', 'p', 'A', 'n', 'y', 'w', 'h', 'e', 'r', 'e', 0,
    's', 'e', 't', 'L', 'i', 'n', 'e', 'C', 'o', 'u', 'n', 't', 0,
    's', 'e', 't', 'U', 's', 'e', 'r', 'S', 't', 'a', 't', 'e', 0,
    'l', 'a', 's', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'b', 'l', 'o', 'c', 'k', 'R', 'e', 'm', 'o', 'v', 'e', 'd', 0,
    's', 'e', 't', 'L', 'i', 'n', 'e', 'W', 'i', 'd', 't', 'h', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'W', 'i', 'd', 't', 'h', 0,
    'm', 'i', 'n', 'i', 'm', 'u', 'm', 'W', 'i', 'd', 't', 'h', 0,
    'c', 'a', 'c', 'h', 'e', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    't', 'e', 'x', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'r', 'i', 'g', 'h', 't', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'n', 'u', 'm', 'b', 'e', 'r', 'S', 'u', 'f', 'f', 'i', 'x', 0,
    'n', 'u', 'm', 'b', 'e', 'r', 'P', 'r', 'e', 'f', 'i', 'x', 0,
    'S', 'i', 'n', 'g', 'l', 'e', 'H', 'e', 'i', 'g', 'h', 't', 0,
    't', 'a', 'b', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 's', 0,
    'f', 'o', 'n', 't', 'O', 'v', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    't', 'o', 'L', 'i', 's', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    't', 'o', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'i', 's', 'L', 'i', 's', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'i', 's', 'C', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'b', 'o', 'o', 'l', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'U', 's', 'e', 'r', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'T', 'a', 'b', 'l', 'e', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'F', 'r', 'a', 'm', 'e', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'd', 'r', 'a', 'w', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 0,
    'l', 'o', 'a', 'd', 'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'U', 's', 'e', 'r', 'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', 0,
    'H', 't', 'm', 'l', 'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', 0,
    'F', 'i', 'n', 'd', 'B', 'a', 'c', 'k', 'w', 'a', 'r', 'd', 0,
    's', 'e', 't', 'P', 'l', 'a', 'i', 'n', 'T', 'e', 'x', 't', 0,
    'e', 'n', 'd', 'E', 'd', 'i', 't', 'B', 'l', 'o', 'c', 'k', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'T', 'a', 'b', 'l', 'e', 0,
    'a', 't', 'B', 'l', 'o', 'c', 'k', 'S', 't', 'a', 'r', 't', 0,
    's', 'e', 'l', 'e', 'c', 't', 'e', 'd', 'T', 'e', 'x', 't', 0,
    's', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 'E', 'n', 'd', 0,
    'm', 'o', 'v', 'e', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'C', 'e', 'l', 'l', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'B', 'l', 'o', 'c', 'k', 0,
    's', 'w', 'a', 'p', 'I', 'n', 't', 'e', 'r', 'v', 'a', 'l', 0,
    's', 'w', 'a', 'p', 'B', 'e', 'h', 'a', 'v', 'i', 'o', 'r', 0,
    'T', 'r', 'i', 'p', 'l', 'e', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'D', 'o', 'u', 'b', 'l', 'e', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'S', 'i', 'n', 'g', 'l', 'e', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'D', 'e', 'b', 'u', 'g', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    's', 'u', 'r', 'f', 'a', 'c', 'e', 'C', 'l', 'a', 's', 's', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'W', 'i', 'd', 't', 'h', 0,
    's', 'e', 't', 'W', 'h', 'a', 't', 's', 'T', 'h', 'i', 's', 0,
    's', 'e', 't', 'S', 't', 'a', 't', 'u', 's', 'T', 'i', 'p', 0,
    's', 'o', 'r', 't', 'C', 'h', 'i', 'l', 'd', 'r', 'e', 'n', 0,
    's', 'e', 't', 'C', 'h', 'e', 'c', 'k', 'a', 'b', 'l', 'e', 0,
    'i', 's', 'S', 'e', 'l', 'e', 'c', 't', 'a', 'b', 'l', 'e', 0,
    'a', 'p', 'p', 'e', 'n', 'd', 'C', 'o', 'l', 'u', 'm', 'n', 0,
    'R', 'e', 's', 't', 'a', 'r', 't', 'N', 'e', 'v', 'e', 'r', 0,
    'a', 'n', 'g', 'l', 'e', 'B', 'e', 't', 'w', 'e', 'e', 'n', 0,
    'p', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'S', 'i', 'z', 'e', 0,
    'q', 'P', 'r', 'e', 'm', 'u', 'l', 't', 'i', 'p', 'l', 'y', 0,
    'l', 'o', 'a', 'd', 'F', 'r', 'o', 'm', 'F', 'i', 'l', 'e', 0,
    'm', 'a', 'x', 'C', 'h', 'a', 'r', 'W', 'i', 'd', 't', 'h', 0,
    'p', 'a', 't', 'h', 'F', 'o', 'r', 'G', 'l', 'y', 'p', 'h', 0,
    'Q', 'P', 'i', 'x', 'm', 'a', 'p', 'C', 'a', 'c', 'h', 'e', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'D', 'e', 'p', 't', 'h', 0,
    'b', 'i', 't', 's', 'P', 'e', 'r', 'P', 'i', 'x', 'e', 'l', 0,
    'c', 'h', 'a', 'n', 'n', 'e', 'l', 'C', 'o', 'u', 'n', 't', 0,
    'U', 'n', 's', 'i', 'g', 'n', 'e', 'd', 'B', 'y', 't', 'e', 0,
    'I', 'g', 'n', 'o', 'r', 'e', 's', 'A', 'l', 'p', 'h', 'a', 0,
    'Q', 'P', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'i', 'n', 'p', 'u', 't', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    'N', 'C', 'o', 'l', 'o', 'r', 'G', 'r', 'o', 'u', 'p', 's', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'S', 't', 'r', 'o', 'k', 'e', 0,
    's', 'e', 't', 'J', 'o', 'i', 'n', 'S', 't', 'y', 'l', 'e', 0,
    'e', 'l', 'e', 'm', 'e', 'n', 't', 'C', 'o', 'u', 'n', 't', 0,
    'c', 'l', 'o', 's', 'e', 'S', 'u', 'b', 'p', 'a', 't', 'h', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', 'P', 'a', 't', 'h', 0,
    'C', 'o', 'r', 'e', 'G', 'r', 'a', 'p', 'h', 'i', 'c', 's', 0,
    'd', 'r', 'a', 'w', 'T', 'e', 'x', 't', 'I', 't', 'e', 'm', 0,
    'P', 'o', 'l', 'y', 'l', 'i', 'n', 'e', 'M', 'o', 'd', 'e', 0,
    'D', 'i', 'r', 't', 'y', 'O', 'p', 'a', 'c', 'i', 't', 'y', 0,
    'P', 'a', 'i', 'n', 't', 'e', 'r', 'P', 'a', 't', 'h', 's', 0,
    'P', 'a', 't', 't', 'e', 'r', 'n', 'B', 'r', 'u', 's', 'h', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 0,
    'p', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'D', 'p', 'i', 'Y', 0,
    'p', 'h', 'y', 's', 'i', 'c', 'a', 'l', 'D', 'p', 'i', 'X', 0,
    'P', 'd', 'm', 'N', 'u', 'm', 'C', 'o', 'l', 'o', 'r', 's', 0,
    'd', 'r', 'a', 'w', 'G', 'l', 'y', 'p', 'h', 'R', 'u', 'n', 0,
    'd', 'r', 'a', 'w', 'P', 'o', 'l', 'y', 'l', 'i', 'n', 'e', 0,
    'b', 'o', 't', 't', 'o', 'm', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    's', 'e', 't', 'T', 'o', 'p', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'F', 'u', 'l', 'l', 'P', 'a', 'g', 'e', 'M', 'o', 'd', 'e', 0,
    'S', 't', 'a', 'n', 'd', 'a', 'r', 'd', 'M', 'o', 'd', 'e', 0,
    'L', 'a', 's', 't', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'Y', 'o', 'u', '4', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '9', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '8', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '7', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '6', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '5', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '4', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '3', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '2', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'P', 'r', 'c', '1', 0,
    'I', 'm', 'p', 'e', 'r', 'i', 'a', 'l', '9', 'x', '1', '2', 0,
    'I', 'm', 'p', 'e', 'r', 'i', 'a', 'l', '9', 'x', '1', '1', 0,
    'I', 'm', 'p', 'e', 'r', 'i', 'a', 'l', '8', 'x', '1', '0', 0,
    'T', 'a', 'b', 'l', 'o', 'i', 'd', 'E', 'x', 't', 'r', 'a', 0,
    'p', 'a', 'i', 'n', 't', 'U', 'n', 'd', 'e', 'r', 'G', 'L', 0,
    'i', 'n', 'i', 't', 'i', 'a', 'l', 'i', 'z', 'e', 'G', 'L', 0,
    'f', 'r', 'a', 'm', 'e', 'S', 'w', 'a', 'p', 'p', 'e', 'd', 0,
    'r', 'e', 'c', 'o', 'r', 'd', 'S', 'a', 'm', 'p', 'l', 'e', 0,
    'S', 'w', 'i', 'z', 'z', 'l', 'e', 'A', 'l', 'p', 'h', 'a', 0,
    'S', 'w', 'i', 'z', 'z', 'l', 'e', 'G', 'r', 'e', 'e', 'n', 0,
    'm', 'i', 'p', 'B', 'a', 's', 'e', 'L', 'e', 'v', 'e', 'l', 0,
    'N', 'P', 'O', 'T', 'T', 'e', 'x', 't', 'u', 'r', 'e', 's', 0,
    'U', 'I', 'n', 't', '3', '2', '_', 'D', '2', '4', 'S', '8', 0,
    'U', 'I', 'n', 't', '3', '2', '_', 'R', 'G', 'B', 'A', '8', 0,
    'U', 'I', 'n', 't', '1', '6', '_', 'R', 'G', 'B', 'A', '4', 0,
    'B', 'G', 'R', 'A', '_', 'I', 'n', 't', 'e', 'g', 'e', 'r', 0,
    'R', 'G', 'B', 'A', '_', 'I', 'n', 't', 'e', 'g', 'e', 'r', 0,
    's', 'e', 't', 'M', 'i', 'p', 'L', 'e', 'v', 'e', 'l', 's', 0,
    'S', 'R', 'G', 'B', '8', '_', 'A', 'l', 'p', 'h', 'a', '8', 0,
    'R', 'G', 'B', 'A', '1', '6', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', 'G', 'B', 'A', '1', '6', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'S', 'h', 'a', 'd', 'e', 'r', 0,
    's', 'e', 't', 'R', 'o', 'w', 'L', 'e', 'n', 'g', 't', 'h', 0,
    's', 'e', 't', 'A', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    'p', 'a', 'i', 'n', 't', 'F', 'l', 'i', 'p', 'p', 'e', 'd', 0,
    'N', 'o', 'A', 't', 't', 'a', 'c', 'h', 'm', 'e', 'n', 't', 0,
    's', 't', 'a', 'r', 't', 'L', 'o', 'g', 'g', 'i', 'n', 'g', 0,
    'H', 'i', 'g', 'h', 'S', 'e', 'v', 'e', 'r', 'i', 't', 'y', 0,
    'G', 'r', 'o', 'u', 'p', 'P', 'o', 'p', 'T', 'y', 'p', 'e', 0,
    'm', 'i', 'n', 'o', 'r', 'V', 'e', 'r', 's', 'i', 'o', 'n', 0,
    'm', 'a', 'j', 'o', 'r', 'V', 'e', 'r', 's', 'i', 'o', 'n', 0,
    'n', 'a', 't', 'i', 'v', 'e', 'H', 'a', 'n', 'd', 'l', 'e', 0,
    'h', 'a', 's', 'E', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 0,
    's', 'h', 'a', 'r', 'e', 'C', 'o', 'n', 't', 'e', 'x', 't', 0,
    'u', 's', 'a', 'g', 'e', 'P', 'a', 't', 't', 'e', 'r', 'n', 0,
    'V', 'e', 'r', 't', 'e', 'x', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    's', 'e', 't', 'C', 'a', 'c', 'h', 'e', 'M', 'o', 'd', 'e', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'I', 'm', 'a', 'g', 'e', 0,
    'n', 'o', 'r', 'm', 'a', 'l', 'M', 'a', 't', 'r', 'i', 'x', 0,
    'l', 'i', 's', 't', 'T', 'o', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'F', 'i', 'n', 'd', 'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 0,
    'H', 'e', 'l', 'p', 'C', 'o', 'n', 't', 'e', 'n', 't', 's', 0,
    'P', 'a', 'r', 't', 'i', 'a', 'l', 'M', 'a', 't', 'c', 'h', 0,
    'P', 'o', 'r', 't', 'a', 'b', 'l', 'e', 'T', 'e', 'x', 't', 0,
    'i', 'n', 'v', 'o', 'k', 'e', 'A', 'c', 't', 'i', 'o', 'n', 0,
    'Q', 'I', 'n', 'p', 'u', 't', 'M', 'e', 't', 'h', 'o', 'd', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', 'W', 'r', 'i', 't', 'e', 'r', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', 'R', 'e', 'a', 'd', 'e', 'r', 0,
    'i', 'n', 'v', 'e', 'r', 't', 'P', 'i', 'x', 'e', 'l', 's', 0,
    'b', 'y', 't', 'e', 's', 'P', 'e', 'r', 'L', 'i', 'n', 'e', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', '3', '0', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'B', 'G', 'R', '3', '0', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', '1', '6', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'R', 'G', 'B', '3', '2', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'I', 'c', 'o', 'n', 'N', 'a', 'm', 'e', 'H', 'o', 'o', 'k', 0,
    's', 'e', 't', 'T', 'h', 'e', 'm', 'e', 'N', 'a', 'm', 'e', 0,
    'h', 'a', 's', 'T', 'h', 'e', 'm', 'e', 'I', 'c', 'o', 'n', 0,
    'Q', 'I', 'c', 'o', 'n', ':', ':', 'S', 't', 'a', 't', 'e', 0,
    'p', 'l', 'a', 't', 'f', 'o', 'r', 'm', 'N', 'a', 'm', 'e', 0,
    's', 'e', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 's', 0,
    'g', 'l', 'y', 'p', 'h', 'I', 'n', 'd', 'e', 'x', 'e', 's', 0,
    's', 't', 'r', 'i', 'k', 'e', 'O', 'u', 't', 'P', 'o', 's', 0,
    'u', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 'P', 'o', 's', 0,
    'b', 'o', 'u', 'n', 'd', 'i', 'n', 'g', 'R', 'e', 'c', 't', 0,
    'r', 'i', 'g', 'h', 't', 'B', 'e', 'a', 'r', 'i', 'n', 'g', 0,
    'Q', 'F', 'o', 'n', 't', 'M', 'e', 't', 'r', 'i', 'c', 's', 0,
    'i', 's', 'F', 'i', 'x', 'e', 'd', 'P', 'i', 't', 'c', 'h', 0,
    's', 'e', 't', 'S', 't', 'y', 'l', 'e', 'N', 'a', 'm', 'e', 0,
    'A', 'l', 'l', 'L', 'o', 'w', 'e', 'r', 'c', 'a', 's', 'e', 0,
    'A', 'l', 'l', 'U', 'p', 'p', 'e', 'r', 'c', 'a', 's', 'e', 0,
    's', 'e', 't', 'S', 't', 'y', 'l', 'e', 'H', 'i', 'n', 't', 0,
    's', 'e', 't', 'S', 't', 'r', 'i', 'k', 'e', 'O', 'u', 't', 0,
    's', 'e', 't', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    's', 'e', 't', 'P', 'i', 'x', 'e', 'l', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'P', 'o', 'i', 'n', 't', 'S', 'i', 'z', 'e', 0,
    'S', 'e', 'm', 'i', 'E', 'x', 'p', 'a', 'n', 'd', 'e', 'd', 0,
    'S', 't', 'y', 'l', 'e', 'O', 'b', 'l', 'i', 'q', 'u', 'e', 0,
    'Q', 'F', 'o', 'n', 't', ':', ':', 'S', 't', 'y', 'l', 'e', 0,
    'F', 'o', 'r', 'c', 'e', 'O', 'u', 't', 'l', 'i', 'n', 'e', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'B', 'i', 't', 'm', 'a', 'p', 0,
    'Q', 'S', 'c', 'r', 'o', 'l', 'l', 'E', 'v', 'e', 'n', 't', 0,
    'v', 'i', 'e', 'w', 'p', 'o', 'r', 't', 'S', 'i', 'z', 'e', 0,
    'Q', 'E', 'x', 'p', 'o', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'l', 'a', 's', 't', 'S', 'c', 'e', 'n', 'e', 'P', 'o', 's', 0,
    'Q', 'A', 'c', 't', 'i', 'o', 'n', 'E', 'v', 'e', 'n', 't', 0,
    'm', 'o', 'u', 's', 'e', 'B', 'u', 't', 't', 'o', 'n', 's', 0,
    'c', 'o', 'm', 'm', 'i', 't', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'Q', 'R', 'e', 's', 'i', 'z', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'i', 's', 'A', 'u', 't', 'o', 'R', 'e', 'p', 'e', 'a', 't', 0,
    'h', 'i', 'R', 'e', 's', 'G', 'l', 'o', 'b', 'a', 'l', 'Y', 0,
    'h', 'i', 'R', 'e', 's', 'G', 'l', 'o', 'b', 'a', 'l', 'X', 0,
    'Q', 'T', 'a', 'b', 'l', 'e', 't', 'E', 'v', 'e', 'n', 't', 0,
    's', 'e', 't', 'T', 'i', 'm', 'e', 's', 't', 'a', 'm', 'p', 0,
    'c', 'e', 'n', 't', 'e', 'r', 'R', 'a', 'd', 'i', 'u', 's', 0,
    's', 'e', 't', 'F', 'i', 'n', 'a', 'l', 'S', 't', 'o', 'p', 0,
    'R', 'e', 'p', 'e', 'a', 't', 'S', 'p', 'r', 'e', 'a', 'd', 0,
    't', 'e', 'x', 't', 'u', 'r', 'e', 'I', 'm', 'a', 'g', 'e', 0,
    'i', 's', 'V', 'a', 'l', 'i', 'd', 'C', 'o', 'l', 'o', 'r', 0,
    'Q', 'C', 'o', 'l', 'o', 'r', ':', ':', 'S', 'p', 'e', 'c', 0,
    'd', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'S', 'i', 'z', 'e', 0,
    'c', 'o', 'l', 'u', 'm', 'n', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'l', 'o', 'a', 'd', 'F', 'r', 'o', 'm', 'D', 'a', 't', 'a', 0,
    'f', 'r', 'a', 'm', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'F', 'r', 'a', 'm', 'e', 0,
    'Q', 'K', 'e', 'y', 'S', 'e', 'q', 'u', 'e', 'n', 'c', 'e', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'E', 'r', 'r', 'o', 'r', 0,
    'h', 'a', 's', 'S', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'L', 'i', 't', 't', 'l', 'e', 'E', 'n', 'd', 'i', 'a', 'n', 0,
    '_', '_', 'c', 'o', 'n', 't', 'a', 'i', 'n', 's', '_', '_', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'C', 'o', 'l', 'u', 'm', 'n', 0,
    'i', 'n', 's', 'e', 'r', 't', 'C', 'o', 'l', 'u', 'm', 'n', 0,
    'c', 'a', 'n', 'F', 'e', 't', 'c', 'h', 'M', 'o', 'r', 'e', 0,
    'd', 'r', 'o', 'p', 'M', 'i', 'm', 'e', 'D', 'a', 't', 'a', 0,
    's', 't', 'a', 't', 'e', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    't', 'a', 'b', 'l', 'e', 't', 'E', 'v', 'e', 'n', 't', 0,
    'u', 'n', 's', 'e', 't', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'm', 'a', 'p', 'T', 'o', 'G', 'l', 'o', 'b', 'a', 'l', 0,
    's', 'e', 't', 'F', 'i', 'l', 'e', 'P', 'a', 't', 'h', 0,
    's', 'e', 't', 'G', 'e', 'o', 'm', 'e', 't', 'r', 'y', 0,
    's', 'e', 't', 'B', 'a', 's', 'e', 'S', 'i', 'z', 'e', 0,
    'm', 'a', 'x', 'i', 'm', 'u', 'm', 'S', 'i', 'z', 'e', 0,
    'm', 'i', 'n', 'i', 'm', 'u', 'm', 'S', 'i', 'z', 'e', 0,
    'w', 'i', 'n', 'd', 'o', 'w', 'S', 't', 'a', 't', 'e', 0,
    's', 'e', 't', 'M', 'o', 'd', 'a', 'l', 'i', 't', 'y', 0,
    's', 'e', 't', 'N', 'o', 't', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'D', 'e', 'c', 'i', 'm', 'a', 'l', 's', 0,
    'T', 'x', 'T', 'r', 'a', 'n', 's', 'l', 'a', 't', 'e', 0,
    'T', 'o', 'u', 'c', 'h', 'S', 'c', 'r', 'e', 'e', 'n', 0,
    's', 'e', 't', 'T', 'a', 'b', 'A', 'r', 'r', 'a', 'y', 0,
    'Q', 'T', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    't', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    's', 'e', 't', 'R', 'e', 'v', 'i', 's', 'i', 'o', 'n', 0,
    's', 'e', 't', 'U', 's', 'e', 'r', 'D', 'a', 't', 'a', 0,
    'p', 'a', 'r', 'e', 'n', 't', 'F', 'r', 'a', 'm', 'e', 0,
    'c', 'h', 'i', 'l', 'd', 'F', 'r', 'a', 'm', 'e', 's', 0,
    'f', 'r', 'a', 'm', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'c', 'l', 'e', 'a', 'r', 'L', 'a', 'y', 'o', 'u', 't', 0,
    'b', 'e', 'g', 'i', 'n', 'L', 'a', 'y', 'o', 'u', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'a', 'y', 'o', 'u', 't', 0,
    'f', 'o', 'r', 'm', 'a', 't', 'I', 'n', 'd', 'e', 'x', 0,
    'l', 'e', 'f', 't', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'c', 'e', 'l', 'l', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'c', 'e', 'l', 'l', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'b', 'o', 'r', 'd', 'e', 'r', 'S', 't', 'y', 'l', 'e', 0,
    'b', 'o', 'r', 'd', 'e', 'r', 'B', 'r', 'u', 's', 'h', 0,
    'L', 'i', 's', 't', 'D', 'e', 'c', 'i', 'm', 'a', 'l', 0,
    'F', 'i', 'x', 'e', 'd', 'H', 'e', 'i', 'g', 'h', 't', 0,
    'f', 'o', 'n', 't', 'S', 't', 'r', 'e', 't', 'c', 'h', 0,
    'f', 'o', 'n', 't', 'K', 'e', 'r', 'n', 'i', 'n', 'g', 0,
    'a', 'n', 'c', 'h', 'o', 'r', 'N', 'a', 'm', 'e', 's', 0,
    'N', 'o', 'U', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    't', 'e', 'x', 't', 'O', 'u', 't', 'l', 'i', 'n', 'e', 0,
    'A', 'l', 'i', 'g', 'n', 'M', 'i', 'd', 'd', 'l', 'e', 0,
    'A', 'l', 'i', 'g', 'n', 'N', 'o', 'r', 'm', 'a', 'l', 0,
    'p', 'e', 'n', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'i', 'n', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'h', 'a', 's', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'T', 'e', 'x', 't', 'T', 'o', 'o', 'l', 'T', 'i', 'p', 0,
    'F', 'r', 'a', 'm', 'e', 'H', 'e', 'i', 'g', 'h', 't', 0,
    'F', 'r', 'a', 'm', 'e', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'F', 'r', 'a', 'm', 'e', 'B', 'o', 'r', 'd', 'e', 'r', 0,
    'B', 'l', 'o', 'c', 'k', 'I', 'n', 'd', 'e', 'n', 't', 0,
    'T', 'a', 'b', 'l', 'e', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'I', 'm', 'a', 'g', 'e', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'F', 'i', 'x', 'e', 'd', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'c', 'h', 'a', 'r', 'a', 'c', 't', 'e', 'r', 'A', 't', 0,
    'i', 'n', 'd', 'e', 'n', 't', 'W', 'i', 'd', 't', 'h', 0,
    's', 'e', 't', 'M', 'o', 'd', 'i', 'f', 'i', 'e', 'd', 0,
    'a', 'd', 'd', 'R', 'e', 's', 'o', 'u', 'r', 'c', 'e', 0,
    'd', 'e', 'f', 'a', 'u', 'l', 't', 'F', 'o', 'n', 't', 0,
    'o', 'b', 'j', 'e', 'c', 't', 'I', 'n', 'd', 'e', 'x', 0,
    't', 'o', 'P', 'l', 'a', 'i', 'n', 'T', 'e', 'x', 't', 0,
    'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 'U', 'r', 'l', 0,
    'b', 'l', 'o', 'c', 'k', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    'i', 'n', 's', 'e', 'r', 't', 'I', 'm', 'a', 'g', 'e', 0,
    'i', 'n', 's', 'e', 'r', 't', 'F', 'r', 'a', 'm', 'e', 0,
    'i', 'n', 's', 'e', 'r', 't', 'T', 'a', 'b', 'l', 'e', 0,
    'c', 'u', 'r', 'r', 'e', 'n', 't', 'L', 'i', 's', 't', 0,
    'i', 'n', 's', 'e', 'r', 't', 'B', 'l', 'o', 'c', 'k', 0,
    'b', 'l', 'o', 'c', 'k', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'P', 'r', 'e', 'v', 'i', 'o', 'u', 's', 'R', 'o', 'w', 0,
    'Q', 'T', 'e', 'x', 't', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'r', 'e', 'h', 'i', 'g', 'h', 'l', 'i', 'g', 'h', 't', 0,
    's', 'e', 't', 'D', 'o', 'c', 'u', 'm', 'e', 'n', 't', 0,
    'C', 'o', 'r', 'e', 'P', 'r', 'o', 'f', 'i', 'l', 'e', 0,
    'Q', 'S', 't', 'y', 'l', 'e', 'H', 'i', 'n', 't', 's', 0,
    'Q', 'S', 't', 'a', 't', 'i', 'c', 'T', 'e', 'x', 't', 0,
    's', 'e', 't', 'S', 'i', 'z', 'e', 'H', 'i', 'n', 't', 0,
    's', 'e', 't', 'T', 'r', 'i', 's', 't', 'a', 't', 'e', 0,
    'i', 's', 'C', 'h', 'e', 'c', 'k', 'a', 'b', 'l', 'e', 0,
    's', 'e', 't', 'E', 'd', 'i', 't', 'a', 'b', 'l', 'e', 0,
    'i', 't', 'e', 'm', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'R', 'o', 'w', 'C', 'o', 'u', 'n', 't', 0,
    'r', 'e', 's', 't', 'a', 'r', 't', 'H', 'i', 'n', 't', 0,
    'r', 'e', 'f', 'r', 'e', 's', 'h', 'R', 'a', 't', 'e', 0,
    'i', 's', 'L', 'a', 'n', 'd', 's', 'c', 'a', 'p', 'e', 0,
    'v', 'i', 'r', 't', 'u', 'a', 'l', 'S', 'i', 'z', 'e', 0,
    'm', 'a', 'g', 'e', 'n', 't', 'a', 'S', 'i', 'z', 'e', 0,
    'A', 't', 'B', 'e', 'g', 'i', 'n', 'n', 'i', 'n', 'g', 0,
    's', 'e', 't', 'I', 'O', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    's', 'e', 't', 'C', 'o', 's', 'm', 'e', 't', 'i', 'c', 0,
    't', 'o', 'o', 'l', 'T', 'i', 'p', 'T', 'e', 'x', 't', 0,
    't', 'o', 'o', 'l', 'T', 'i', 'p', 'B', 'a', 's', 'e', 0,
    'l', 'i', 'n', 'k', 'V', 'i', 's', 'i', 't', 'e', 'd', 0,
    'N', 'C', 'o', 'l', 'o', 'r', 'R', 'o', 'l', 'e', 's', 0,
    'T', 'o', 'o', 'l', 'T', 'i', 'p', 'T', 'e', 'x', 't', 0,
    'T', 'o', 'o', 'l', 'T', 'i', 'p', 'B', 'a', 's', 'e', 0,
    'L', 'i', 'n', 'k', 'V', 'i', 's', 'i', 't', 'e', 'd', 0,
    'd', 'a', 's', 'h', 'P', 'a', 't', 't', 'e', 'r', 'n', 0,
    's', 'e', 't', 'C', 'a', 'p', 'S', 't', 'y', 'l', 'e', 0,
    's', 'e', 't', 'F', 'i', 'l', 'l', 'R', 'u', 'l', 'e', 0,
    'c', 'o', 'n', 'n', 'e', 'c', 't', 'P', 'a', 't', 'h', 0,
    'P', 'a', 'i', 'n', 't', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    'W', 'i', 'n', 'd', 'i', 'n', 'g', 'M', 'o', 'd', 'e', 0,
    'O', 'd', 'd', 'E', 'v', 'e', 'n', 'M', 'o', 'd', 'e', 0,
    'A', 'l', 'l', 'F', 'e', 'a', 't', 'u', 'r', 'e', 's', 0,
    'M', 'a', 's', 'k', 'e', 'd', 'B', 'r', 'u', 's', 'h', 0,
    'B', 'r', 'u', 's', 'h', 'S', 't', 'r', 'o', 'k', 'e', 0,
    'r', 'e', 'n', 'd', 'e', 'r', 'F', 'l', 'a', 'g', 's', 0,
    'e', 'x', 'p', 'o', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'l', 'o', 'g', 'i', 'c', 'a', 'l', 'D', 'p', 'i', 'Y', 0,
    'l', 'o', 'g', 'i', 'c', 'a', 'l', 'D', 'p', 'i', 'X', 0,
    'P', 'd', 'm', 'H', 'e', 'i', 'g', 'h', 't', 'M', 'M', 0,
    'r', 'e', 'n', 'd', 'e', 'r', 'H', 'i', 'n', 't', 's', 0,
    'd', 'r', 'a', 'w', 'P', 'i', 'c', 't', 'u', 'r', 'e', 0,
    'd', 'r', 'a', 'w', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 0,
    'd', 'r', 'a', 'w', 'E', 'l', 'l', 'i', 'p', 's', 'e', 0,
    's', 'e', 't', 'V', 'i', 'e', 'w', 'p', 'o', 'r', 't', 0,
    'h', 'a', 's', 'C', 'l', 'i', 'p', 'p', 'i', 'n', 'g', 0,
    's', 'e', 't', 'C', 'l', 'i', 'p', 'p', 'i', 'n', 'g', 0,
    's', 'e', 't', 'C', 'l', 'i', 'p', 'P', 'a', 't', 'h', 0,
    'b', 'r', 'u', 's', 'h', 'O', 'r', 'i', 'g', 'i', 'n', 0,
    'f', 'o', 'n', 't', 'M', 'e', 't', 'r', 'i', 'c', 's', 0,
    'm', 'a', 't', 'c', 'h', 'P', 'o', 'l', 'i', 'c', 'y', 0,
    'r', 'i', 'g', 'h', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'Q', 'P', 'a', 'g', 'e', 'L', 'a', 'y', 'o', 'u', 't', 0,
    's', 'e', 't', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', '6', '5', 0,
    'I', 'm', 'p', 'e', 'r', 'i', 'a', 'l', '7', 'x', '9', 0,
    'L', 'e', 't', 't', 'e', 'r', 'S', 'm', 'a', 'l', 'l', 0,
    'L', 'e', 't', 't', 'e', 'r', 'E', 'x', 't', 'r', 'a', 0,
    'r', 'e', 's', 'i', 'z', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'p', 'a', 'i', 'n', 't', 'O', 'v', 'e', 'r', 'G', 'L', 0,
    's', 'a', 'm', 'p', 'l', 'e', 'C', 'o', 'u', 'n', 't', 0,
    'b', 'o', 'r', 'd', 'e', 'r', 'C', 'o', 'l', 'o', 'r', 0,
    's', 'e', 't', 'W', 'r', 'a', 'p', 'M', 'o', 'd', 'e', 0,
    'C', 'l', 'a', 'm', 'p', 'T', 'o', 'E', 'd', 'g', 'e', 0,
    's', 'w', 'i', 'z', 'z', 'l', 'e', 'M', 'a', 's', 'k', 0,
    'S', 'w', 'i', 'z', 'z', 'l', 'e', 'B', 'l', 'u', 'e', 0,
    'm', 'i', 'p', 'M', 'a', 'x', 'L', 'e', 'v', 'e', 'l', 0,
    'U', 'I', 'n', 't', '8', '_', 'R', 'G', '3', 'B', '2', 0,
    'N', 'o', 'P', 'i', 'x', 'e', 'l', 'T', 'y', 'p', 'e', 0,
    'B', 'G', 'R', '_', 'I', 'n', 't', 'e', 'g', 'e', 'r', 0,
    'R', 'G', 'B', '_', 'I', 'n', 't', 'e', 'g', 'e', 'r', 0,
    'R', 'e', 'd', '_', 'I', 'n', 't', 'e', 'g', 'e', 'r', 0,
    'D', 'e', 'p', 't', 'h', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'R', 'G', 'B', '1', '6', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', 'G', 'B', 'A', '8', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', 'G', 'B', '1', '6', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'R', 'G', 'B', 'A', '8', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'i', 'm', 'a', 'g', 'e', 'H', 'e', 'i', 'g', 'h', 't', 0,
    's', 'e', 't', 'S', 'k', 'i', 'p', 'R', 'o', 'w', 's', 0,
    't', 'a', 'k', 'e', 'T', 'e', 'x', 't', 'u', 'r', 'e', 0,
    'b', 'i', 'n', 'd', 'D', 'e', 'f', 'a', 'u', 'l', 't', 0,
    's', 't', 'o', 'p', 'L', 'o', 'g', 'g', 'i', 'n', 'g', 0,
    'l', 'o', 'g', 'g', 'i', 'n', 'g', 'M', 'o', 'd', 'e', 0,
    'A', 'n', 'y', 'S', 'e', 'v', 'e', 'r', 'i', 't', 'y', 0,
    'L', 'o', 'w', 'S', 'e', 'v', 'e', 'r', 'i', 't', 'y', 0,
    'I', 'n', 'v', 'a', 'l', 'i', 'd', 'T', 'y', 'p', 'e', 0,
    'O', 't', 'h', 'e', 'r', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'h', 'a', 's', 'P', 'r', 'o', 'f', 'i', 'l', 'e', 's', 0,
    's', 'w', 'a', 'p', 'B', 'u', 'f', 'f', 'e', 'r', 's', 0,
    'd', 'o', 'n', 'e', 'C', 'u', 'r', 'r', 'e', 'n', 't', 0,
    'm', 'a', 'k', 'e', 'C', 'u', 'r', 'r', 'e', 'n', 't', 0,
    'D', 'y', 'n', 'a', 'm', 'i', 'c', 'C', 'o', 'p', 'y', 0,
    'D', 'y', 'n', 'a', 'm', 'i', 'c', 'R', 'e', 'a', 'd', 0,
    'D', 'y', 'n', 'a', 'm', 'i', 'c', 'D', 'r', 'a', 'w', 0,
    'I', 'n', 'd', 'e', 'x', 'B', 'u', 'f', 'f', 'e', 'r', 0,
    's', 'u', 'r', 'f', 'a', 'c', 'e', 'T', 'y', 'p', 'e', 0,
    'j', 'u', 'm', 'p', 'T', 'o', 'F', 'r', 'a', 'm', 'e', 0,
    't', 'o', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'p', 'e', 'r', 's', 'p', 'e', 'c', 't', 'i', 'v', 'e', 0,
    'd', 'e', 't', 'e', 'r', 'm', 'i', 'n', 'a', 'n', 't', 0,
    'k', 'e', 'y', 'B', 'i', 'n', 'd', 'i', 'n', 'g', 's', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'e', 'n', 'c', 'e', 's', 0,
    'i', 's', 'A', 'n', 'i', 'm', 'a', 't', 'i', 'n', 'g', 0,
    'c', 'o', 'm', 'p', 'r', 'e', 's', 's', 'i', 'o', 'n', 0,
    'i', 'm', 'a', 'g', 'e', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 't', 'C', 'l', 'i', 'p', 'R', 'e', 'c', 't', 0,
    'D', 'e', 'v', 'i', 'c', 'e', 'E', 'r', 'r', 'o', 'r', 0,
    'j', 'u', 'm', 'p', 'T', 'o', 'I', 'm', 'a', 'g', 'e', 0,
    'p', 'i', 'x', 'e', 'l', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'p', 'a', 'i', 'n', 't', 'E', 'n', 'g', 'i', 'n', 'e', 0,
    'i', 's', 'G', 'r', 'a', 'y', 's', 'c', 'a', 'l', 'e', 0,
    'F', 'o', 'r', 'm', 'a', 't', '_', 'M', 'o', 'n', 'o', 0,
    'Q', 'I', 'c', 'o', 'n', 'E', 'n', 'g', 'i', 'n', 'e', 0,
    'Q', 'I', 'c', 'o', 'n', ':', ':', 'M', 'o', 'd', 'e', 0,
    'm', 'o', 'd', 'a', 'l', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    's', 'c', 'r', 'e', 'e', 'n', 'A', 'd', 'd', 'e', 'd', 0,
    'f', 'o', 'c', 'u', 's', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'f', 'o', 'c', 'u', 's', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'o', 'v', 'e', 'r', 'l', 'i', 'n', 'e', 'P', 'o', 's', 0,
    'l', 'e', 'f', 't', 'B', 'e', 'a', 'r', 'i', 'n', 'g', 0,
    'l', 'i', 'n', 'e', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    'G', 'e', 'n', 'e', 'r', 'a', 'l', 'F', 'o', 'n', 't', 0,
    's', 't', 'y', 'l', 'e', 'S', 't', 'r', 'i', 'n', 'g', 0,
    's', 'm', 'o', 'o', 't', 'h', 'S', 'i', 'z', 'e', 's', 0,
    'w', 'o', 'r', 'd', 'S', 'p', 'a', 'c', 'i', 'n', 'g', 0,
    's', 'u', 'b', 's', 't', 'i', 't', 'u', 't', 'e', 's', 0,
    's', 'e', 't', 'O', 'v', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    'U', 'n', 's', 't', 'r', 'e', 't', 'c', 'h', 'e', 'd', 0,
    'S', 't', 'y', 'l', 'e', 'I', 't', 'a', 'l', 'i', 'c', 0,
    'S', 't', 'y', 'l', 'e', 'N', 'o', 'r', 'm', 'a', 'l', 0,
    'N', 'o', 'A', 'n', 't', 'i', 'a', 'l', 'i', 'a', 's', 0,
    'P', 'r', 'e', 'f', 'e', 'r', 'M', 'a', 't', 'c', 'h', 0,
    'g', 'e', 's', 't', 'u', 'r', 'e', 'T', 'y', 'p', 'e', 0,
    'Q', 'E', 'n', 't', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
    's', 'c', 'r', 'o', 'l', 'l', 'S', 't', 'a', 't', 'e', 0,
    't', 'o', 'u', 'c', 'h', 'P', 'o', 'i', 'n', 't', 's', 0,
    'Q', 'T', 'o', 'u', 'c', 'h', 'E', 'v', 'e', 'n', 't', 0,
    'i', 's', 'A', 'm', 'b', 'i', 'g', 'u', 'o', 'u', 's', 0,
    'Q', 'C', 'l', 'o', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'F', 'o', 'c', 'u', 's', 'E', 'v', 'e', 'n', 't', 0,
    'p', 'o', 'i', 'n', 't', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'X', 'F', 'r', 'e', 'e', 'E', 'r', 'a', 's', 'e', 'r', 0,
    'Q', 'W', 'h', 'e', 'e', 'l', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'H', 'o', 'v', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'M', 'o', 'u', 's', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'I', 'n', 'p', 'u', 't', 'E', 'v', 'e', 'n', 't', 0,
    's', 'e', 't', 'M', 'i', 'm', 'e', 'D', 'a', 't', 'a', 0,
    'f', 'o', 'c', 'a', 'l', 'R', 'a', 'd', 'i', 'u', 's', 0,
    'L', 'o', 'g', 'i', 'c', 'a', 'l', 'M', 'o', 'd', 'e', 0,
    's', 'a', 't', 'u', 'r', 'a', 't', 'i', 'o', 'n', 'F', 0,
    't', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 'e', 'd', 0,
    'u', 'p', 'd', 'a', 't', 'e', 'B', 'l', 'o', 'c', 'k', 0,
    'p', 'a', 'i', 'n', 't', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    's', 'e', 't', 'P', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'S', 'o', 'r', 't', 'R', 'o', 'l', 'e', 0,
    'c', 'u', 's', 't', 'o', 'm', 'E', 'v', 'e', 'n', 't', 0,
    's', 'e', 't', 'P', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    'e', 'v', 'e', 'n', 't', 'F', 'i', 'l', 't', 'e', 'r', 0,
    'Q', 'Q', 'u', 'a', 't', 'e', 'r', 'n', 'i', 'o', 'n', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'e', 'n', 'g', 't', 'h', 0,
    '_', '_', 'd', 'e', 'l', 'i', 't', 'e', 'm', '_', '_', 0,
    '_', '_', 's', 'e', 't', 'i', 't', 'e', 'm', '_', '_', 0,
    'i', 'n', 't', 'e', 'r', 's', 'e', 'c', 't', 'e', 'd', 0,
    'e', 'r', 'r', 'o', 'r', 'S', 't', 'r', 'i', 'n', 'g', 0,
    's', 'e', 't', 'F', 'i', 'l', 'e', 'N', 'a', 'm', 'e', 0,
    'C', 'o', 'n', 't', 'e', 'x', 't', 'M', 'e', 'n', 'u', 0,
    'd', 'e', 's', 'c', 'r', 'i', 'p', 't', 'i', 'o', 'n', 0,
    'l', 'a', 's', 't', 'I', 'n', 'd', 'e', 'x', 'O', 'f', 0,
    '_', '_', 'g', 'e', 't', 'i', 't', 'e', 'm', '_', '_', 0,
    'e', 'n', 'd', 'M', 'o', 'v', 'e', 'R', 'o', 'w', 's', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'I', 'n', 'd', 'e', 'x', 0,
    'd', 'a', 't', 'a', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    's', 'e', 't', 'I', 't', 'e', 'm', 'D', 'a', 't', 'a', 0,
    'o', 'r', 'i', 'e', 'n', 't', 'a', 't', 'i', 'o', 'n', 0,
    'h', 'a', 's', 'C', 'h', 'i', 'l', 'd', 'r', 'e', 'n', 0,
    'c', 'o', 'l', 'u', 'm', 'n', 'C', 'o', 'u', 'n', 't', 0,
    'u', 'p', 'd', 'a', 't', 'e', 'S', 't', 'a', 't', 'e', 0,
    'D', 'a', 's', 'h', 'D', 'o', 't', 'L', 'i', 'n', 'e', 0,
    'A', 'l', 'i', 'g', 'n', 'B', 'o', 't', 't', 'o', 'm', 0,
    'P', 'y', 'Q', 't', '5', '.', 'Q', 't', 'G', 'u', 'i', 0,
    'v', 'i', 's', 'i', 'b', 'i', 'l', 'i', 't', 'y', 0,
    't', 'o', 'u', 'c', 'h', 'E', 'v', 'e', 'n', 't', 0,
    'w', 'h', 'e', 'e', 'l', 'E', 'v', 'e', 'n', 't', 0,
    's', 'h', 'o', 'w', 'N', 'o', 'r', 'm', 'a', 'l', 0,
    'i', 's', 'T', 'o', 'p', 'L', 'e', 'v', 'e', 'l', 0,
    't', 'o', 'V', 'e', 'c', 't', 'o', 'r', '2', 'D', 0,
    't', 'o', 'V', 'e', 'c', 't', 'o', 'r', '3', 'D', 0,
    'A', 'c', 'c', 'e', 'p', 't', 'a', 'b', 'l', 'e', 0,
    'Q', 'V', 'a', 'l', 'i', 'd', 'a', 't', 'o', 'r', 0,
    'i', 's', 'R', 'o', 't', 'a', 't', 'i', 'n', 'g', 0,
    'q', 'u', 'a', 'd', 'T', 'o', 'Q', 'u', 'a', 'd', 0,
    'm', 'e', 'r', 'g', 'e', 'C', 'e', 'l', 'l', 's', 0,
    'Q', 'T', 'e', 'x', 't', 'T', 'a', 'b', 'l', 'e', 0,
    'c', 'o', 'l', 'u', 'm', 'n', 'S', 'p', 'a', 'n', 0,
    's', 'e', 't', 'T', 'a', 'b', 'S', 't', 'o', 'p', 0,
    'M', 'a', 'n', 'u', 'a', 'l', 'W', 'r', 'a', 'p', 0,
    'Q', 'T', 'e', 'x', 't', 'B', 'l', 'o', 'c', 'k', 0,
    'Q', 'T', 'e', 'x', 't', 'F', 'r', 'a', 'm', 'e', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'I', 't', 'e', 'm', 0,
    'i', 't', 'e', 'm', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    't', 'e', 'x', 't', 'L', 'e', 'n', 'g', 't', 'h', 0,
    'd', 'r', 'a', 'w', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'L', 'i', 'n', 'e', 0,
    's', 'e', 't', 'D', 'e', 's', 'c', 'e', 'n', 't', 0,
    't', 'o', 'p', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    's', 'e', 't', 'C', 'o', 'l', 'u', 'm', 'n', 's', 0,
    's', 'e', 't', 'P', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    'F', 'l', 'o', 'a', 't', 'R', 'i', 'g', 'h', 't', 0,
    'L', 'i', 's', 't', 'S', 'q', 'u', 'a', 'r', 'e', 0,
    'L', 'i', 's', 't', 'C', 'i', 'r', 'c', 'l', 'e', 0,
    'l', 'i', 'n', 'e', 'H', 'e', 'i', 'g', 'h', 't', 0,
    't', 'e', 'x', 't', 'I', 'n', 'd', 'e', 'n', 't', 0,
    'a', 'n', 'c', 'h', 'o', 'r', 'H', 'r', 'e', 'f', 0,
    'f', 'o', 'n', 't', 'I', 't', 'a', 'l', 'i', 'c', 0,
    'f', 'o', 'n', 't', 'W', 'e', 'i', 'g', 'h', 't', 0,
    'f', 'o', 'n', 't', 'F', 'a', 'm', 'i', 'l', 'y', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 't', 'i', 'e', 's', 0,
    'I', 'm', 'a', 'g', 'e', 'W', 'i', 'd', 't', 'h', 0,
    'F', 'r', 'a', 'm', 'e', 'W', 'i', 'd', 't', 'h', 0,
    'L', 'i', 's', 't', 'I', 'n', 'd', 'e', 'n', 't', 0,
    'A', 'n', 'c', 'h', 'o', 'r', 'N', 'a', 'm', 'e', 0,
    'O', 'u', 't', 'l', 'i', 'n', 'e', 'P', 'e', 'n', 0,
    'U', 's', 'e', 'r', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'U', 's', 'e', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    's', 'e', 't', 'B', 'a', 's', 'e', 'U', 'r', 'l', 0,
    'f', 'i', 'r', 's', 't', 'B', 'l', 'o', 'c', 'k', 0,
    'b', 'l', 'o', 'c', 'k', 'C', 'o', 'u', 'n', 't', 0,
    'a', 'd', 'j', 'u', 's', 't', 'S', 'i', 'z', 'e', 0,
    'i', 'd', 'e', 'a', 'l', 'W', 'i', 'd', 't', 'h', 0,
    'a', 'l', 'l', 'F', 'o', 'r', 'm', 'a', 't', 's', 0,
    'i', 's', 'M', 'o', 'd', 'i', 'f', 'i', 'e', 'd', 0,
    'i', 'n', 's', 'e', 'r', 't', 'H', 't', 'm', 'l', 0,
    'c', 'r', 'e', 'a', 't', 'e', 'L', 'i', 's', 't', 0,
    'i', 'n', 's', 'e', 'r', 't', 'L', 'i', 's', 't', 0,
    'a', 't', 'B', 'l', 'o', 'c', 'k', 'E', 'n', 'd', 0,
    'c', 'h', 'a', 'r', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'd', 'e', 'l', 'e', 't', 'e', 'C', 'h', 'a', 'r', 0,
    'i', 'n', 's', 'e', 'r', 't', 'T', 'e', 'x', 't', 0,
    'K', 'e', 'e', 'p', 'A', 'n', 'c', 'h', 'o', 'r', 0,
    'M', 'o', 'v', 'e', 'A', 'n', 'c', 'h', 'o', 'r', 0,
    's', 'e', 't', 'O', 'p', 't', 'i', 'o', 'n', 's', 0,
    't', 'e', 's', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    't', 'e', 'x', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    't', 'e', 'x', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'a', 'p', 'p', 'e', 'n', 'd', 'R', 'o', 'w', 's', 0,
    's', 'e', 't', 'T', 'o', 'o', 'l', 'T', 'i', 'p', 0,
    'i', 's', 'T', 'r', 'i', 's', 't', 'a', 't', 'e', 0,
    'i', 's', 'E', 'd', 'i', 't', 'a', 'b', 'l', 'e', 0,
    'c', 'h', 'e', 'c', 'k', 'S', 't', 'a', 't', 'e', 0,
    't', 'a', 'k', 'e', 'C', 'o', 'l', 'u', 'm', 'n', 0,
    'g', 'r', 'a', 'b', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'i', 's', 'P', 'o', 'r', 't', 'r', 'a', 'i', 't', 0,
    'm', 'a', 'p', 'B', 'e', 't', 'w', 'e', 'e', 'n', 0,
    'u', 'n', 'i', 't', 's', 'P', 'e', 'r', 'E', 'm', 0,
    'f', 'a', 'm', 'i', 'l', 'y', 'N', 'a', 'm', 'e', 0,
    't', 'o', 'V', 'e', 'c', 't', 'o', 'r', '4', 'D', 0,
    'c', 'a', 'c', 'h', 'e', 'L', 'i', 'm', 'i', 't', 0,
    'a', 'l', 'p', 'h', 'a', 'U', 's', 'a', 'g', 'e', 0,
    'y', 'e', 'l', 'l', 'o', 'w', 'S', 'i', 'z', 'e', 0,
    'c', 'o', 'l', 'o', 'r', 'M', 'o', 'd', 'e', 'l', 0,
    's', 'e', 't', 'P', 'i', 'c', 't', 'u', 'r', 'e', 0,
    'p', 'a', 'r', 'a', 'm', 'e', 't', 'e', 'r', 's', 0,
    'Q', 'P', 'i', 'c', 't', 'u', 'r', 'e', 'I', 'O', 0,
    'i', 's', 'C', 'o', 's', 'm', 'e', 't', 'i', 'c', 0,
    's', 'e', 't', 'C', 'r', 'e', 'a', 't', 'o', 'r', 0,
    'Q', 'P', 'd', 'f', 'W', 'r', 'i', 't', 'e', 'r', 0,
    'i', 's', 'B', 'r', 'u', 's', 'h', 'S', 'e', 't', 0,
    'b', 'u', 't', 't', 'o', 'n', 'T', 'e', 'x', 't', 0,
    'b', 'r', 'i', 'g', 'h', 't', 'T', 'e', 'x', 't', 0,
    'w', 'i', 'n', 'd', 'o', 'w', 'T', 'e', 'x', 't', 0,
    'B', 'u', 't', 't', 'o', 'n', 'T', 'e', 'x', 't', 0,
    'B', 'r', 'i', 'g', 'h', 't', 'T', 'e', 'x', 't', 0,
    'W', 'i', 'n', 'd', 'o', 'w', 'T', 'e', 'x', 't', 0,
    'f', 'o', 'r', 'e', 'g', 'r', 'o', 'u', 'n', 'd', 0,
    'd', 'a', 's', 'h', 'O', 'f', 'f', 's', 'e', 't', 0,
    'm', 'i', 't', 'e', 'r', 'L', 'i', 'm', 'i', 't', 0,
    's', 'u', 'b', 't', 'r', 'a', 'c', 't', 'e', 'd', 0,
    't', 'o', 'R', 'e', 'v', 'e', 'r', 's', 'e', 'd', 0,
    'a', 'd', 'd', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 0,
    'a', 'd', 'd', 'E', 'l', 'l', 'i', 'p', 's', 'e', 0,
    'P', 'o', 's', 't', 'S', 'c', 'r', 'i', 'p', 't', 0,
    'M', 'a', 'c', 'P', 'r', 'i', 'n', 't', 'e', 'r', 0,
    'C', 'o', 'n', 'v', 'e', 'x', 'M', 'o', 'd', 'e', 0,
    'D', 'i', 'r', 't', 'y', 'H', 'i', 'n', 't', 's', 0,
    'D', 'i', 'r', 't', 'y', 'B', 'r', 'u', 's', 'h', 0,
    'B', 'l', 'e', 'n', 'd', 'M', 'o', 'd', 'e', 's', 0,
    'P', 'o', 'r', 't', 'e', 'r', 'D', 'u', 'f', 'f', 0,
    'A', 'l', 'p', 'h', 'a', 'B', 'l', 'e', 'n', 'd', 0,
    'P', 'd', 'm', 'W', 'i', 'd', 't', 'h', 'M', 'M', 0,
    'O', 'p', 'a', 'q', 'u', 'e', 'H', 'i', 'n', 't', 0,
    's', 'o', 'u', 'r', 'c', 'e', 'L', 'e', 'f', 't', 0,
    's', 'e', 't', 'O', 'p', 'a', 'c', 'i', 't', 'y', 0,
    'd', 'r', 'a', 'w', 'P', 'i', 'x', 'm', 'a', 'p', 0,
    'd', 'r', 'a', 'w', 'P', 'o', 'i', 'n', 't', 's', 0,
    's', 't', 'r', 'o', 'k', 'e', 'P', 'a', 't', 'h', 0,
    'c', 'l', 'i', 'p', 'R', 'e', 'g', 'i', 'o', 'n', 0,
    'b', 'a', 'c', 'k', 'g', 'r', 'o', 'u', 'n', 'd', 0,
    'r', 'e', 'c', 't', 'P', 'i', 'x', 'e', 'l', 's', 0,
    'r', 'e', 'c', 't', 'P', 'o', 'i', 'n', 't', 's', 0,
    's', 'i', 'z', 'e', 'P', 'i', 'x', 'e', 'l', 's', 0,
    's', 'i', 'z', 'e', 'P', 'o', 'i', 'n', 't', 's', 0,
    'F', 'u', 'z', 'z', 'y', 'M', 'a', 't', 'c', 'h', 0,
    'r', 'e', 's', 'o', 'l', 'u', 't', 'i', 'o', 'n', 0,
    'l', 'e', 'f', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'm', 'i', 'n', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'M', 'i', 'l', 'l', 'i', 'm', 'e', 't', 'e', 'r', 0,
    'p', 'a', 'g', 'e', 'L', 'a', 'y', 'o', 'u', 't', 0,
    's', 'e', 't', 'M', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'p', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 'M', 'M', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', '1', '0', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'D', 'L', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', '5', 0,
    'N', 'P', 'a', 'p', 'e', 'r', 'S', 'i', 'z', 'e', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', '1', '4', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', '1', '2', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', '1', '1', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', '7', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', '6', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', '4', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', '3', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', '2', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', '1', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'C', '0', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'B', '6', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'B', '5', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', 'B', '4', 0,
    'L', 'e', 't', 't', 'e', 'r', 'P', 'l', 'u', 's', 0,
    'L', 'e', 'g', 'a', 'l', 'E', 'x', 't', 'r', 'a', 0,
    'p', 'a', 'i', 'n', 't', 'E', 'v', 'e', 'n', 't', 0,
    'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'R', 0,
    'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'T', 0,
    'D', 'i', 'r', 'e', 'c', 't', 'i', 'o', 'n', 'S', 0,
    'A', 'l', 'p', 'h', 'a', 'V', 'a', 'l', 'u', 'e', 0,
    'G', 'r', 'e', 'e', 'n', 'V', 'a', 'l', 'u', 'e', 0,
    'S', 'w', 'i', 'z', 'z', 'l', 'e', 'R', 'e', 'd', 0,
    'h', 'a', 's', 'F', 'e', 'a', 't', 'u', 'r', 'e', 0,
    'F', 'l', 'o', 'a', 't', '1', '6', 'O', 'E', 'S', 0,
    'R', 'G', '_', 'I', 'n', 't', 'e', 'g', 'e', 'r', 0,
    'R', 'G', 'B', 'A', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'R', 'G', '1', '6', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', 'G', 'B', '8', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', 'G', '1', '6', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'R', 'G', 'B', '8', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'g', 'e', 'n', 'M', 'i', 'p', 'M', 'a', 'p', 's', 0,
    'i', 's', 'C', 'o', 'm', 'p', 'i', 'l', 'e', 'd', 0,
    's', 'o', 'u', 'r', 'c', 'e', 'C', 'o', 'd', 'e', 0,
    's', 'h', 'a', 'd', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    's', 'k', 'i', 'p', 'P', 'i', 'x', 'e', 'l', 's', 0,
    's', 'k', 'i', 'p', 'I', 'm', 'a', 'g', 'e', 's', 0,
    's', 'e', 't', 'S', 'a', 'm', 'p', 'l', 'e', 's', 0,
    'a', 't', 't', 'a', 'c', 'h', 'm', 'e', 'n', 't', 0,
    'l', 'o', 'g', 'M', 'e', 's', 's', 'a', 'g', 'e', 0,
    's', 'e', 'v', 'e', 'r', 'i', 't', 'i', 'e', 's', 0,
    'M', 'a', 'r', 'k', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'P', 'r', 'o', 'f', 'i', 'l', 'e', 0,
    'i', 's', 'O', 'p', 'e', 'n', 'G', 'L', 'E', 'S', 0,
    'e', 'x', 't', 'e', 'n', 's', 'i', 'o', 'n', 's', 0,
    'a', 'r', 'e', 'S', 'h', 'a', 'r', 'i', 'n', 'g', 0,
    's', 'h', 'a', 'r', 'e', 'G', 'r', 'o', 'u', 'p', 0,
    'R', 'a', 'n', 'g', 'e', 'W', 'r', 'i', 't', 'e', 0,
    'S', 't', 'a', 't', 'i', 'c', 'C', 'o', 'p', 'y', 0,
    'S', 't', 'a', 't', 'i', 'c', 'R', 'e', 'a', 'd', 0,
    'S', 't', 'a', 't', 'i', 'c', 'D', 'r', 'a', 'w', 0,
    'S', 't', 'r', 'e', 'a', 'm', 'C', 'o', 'p', 'y', 0,
    'S', 't', 'r', 'e', 'a', 'm', 'R', 'e', 'a', 'd', 0,
    'S', 't', 'r', 'e', 'a', 'm', 'D', 'r', 'a', 'w', 0,
    'f', 'r', 'a', 'm', 'e', 'C', 'o', 'u', 'n', 't', 0,
    'i', 'n', 'v', 'e', 'r', 't', 'i', 'b', 'l', 'e', 0,
    'U', 'n', 'k', 'n', 'o', 'w', 'n', 'K', 'e', 'y', 0,
    'E', 'x', 'a', 'c', 't', 'M', 'a', 't', 'c', 'h', 0,
    'N', 'a', 't', 'i', 'v', 'e', 'T', 'e', 'x', 't', 0,
    's', 'e', 't', 'V', 'i', 's', 'i', 'b', 'l', 'e', 0,
    's', 'e', 't', 'S', 'u', 'b', 'T', 'y', 'p', 'e', 0,
    's', 'e', 't', 'Q', 'u', 'a', 'l', 'i', 't', 'y', 0,
    's', 'c', 'a', 'l', 'e', 'd', 'S', 'i', 'z', 'e', 0,
    'i', 'm', 'a', 'g', 'e', 'C', 'o', 'u', 'n', 't', 0,
    'E', 'n', 'd', 'i', 'a', 'n', 'n', 'e', 's', 's', 0,
    'c', 'o', 'l', 'o', 'r', 'C', 'o', 'u', 'n', 't', 0,
    't', 'r', 'u', 'e', 'M', 'a', 't', 'r', 'i', 'x', 0,
    'r', 'g', 'b', 'S', 'w', 'a', 'p', 'p', 'e', 'd', 0,
    'h', 'o', 'r', 'i', 'z', 'o', 'n', 't', 'a', 'l', 0,
    'p', 'i', 'x', 'e', 'l', 'I', 'n', 'd', 'e', 'x', 0,
    'c', 'o', 'l', 'o', 'r', 'T', 'a', 'b', 'l', 'e', 0,
    'I', 'n', 'v', 'e', 'r', 't', 'R', 'g', 'b', 'a', 0,
    'a', 'c', 't', 'u', 'a', 'l', 'S', 'i', 'z', 'e', 0,
    'w', 'i', 'n', 'd', 'o', 'w', 'I', 'c', 'o', 'n', 0,
    's', 'e', 's', 's', 'i', 'o', 'n', 'K', 'e', 'y', 0,
    's', 'e', 't', 'P', 'a', 'l', 'e', 't', 't', 'e', 0,
    't', 'o', 'p', 'L', 'e', 'v', 'e', 'l', 'A', 't', 0,
    'a', 'l', 'l', 'W', 'i', 'n', 'd', 'o', 'w', 's', 0,
    's', 'e', 't', 'R', 'a', 'w', 'F', 'o', 'n', 't', 0,
    'Q', 'M', 'a', 't', 'r', 'i', 'x', '2', 'x', '2', 0,
    'Q', 'M', 'a', 't', 'r', 'i', 'x', '2', 'x', '3', 0,
    'Q', 'M', 'a', 't', 'r', 'i', 'x', '2', 'x', '4', 0,
    'Q', 'M', 'a', 't', 'r', 'i', 'x', '3', 'x', '2', 0,
    'Q', 'M', 'a', 't', 'r', 'i', 'x', '3', 'x', '3', 0,
    'Q', 'M', 'a', 't', 'r', 'i', 'x', '3', 'x', '4', 0,
    'Q', 'M', 'a', 't', 'r', 'i', 'x', '4', 'x', '2', 0,
    'i', 's', 'I', 'd', 'e', 'n', 't', 'i', 't', 'y', 0,
    'c', 'o', 'p', 'y', 'D', 'a', 't', 'a', 'T', 'o', 0,
    'Q', 'M', 'a', 't', 'r', 'i', 'x', '4', 'x', '3', 0,
    'i', 'n', 'F', 'o', 'n', 't', 'U', 'c', 's', '4', 0,
    'e', 'l', 'i', 'd', 'e', 'd', 'T', 'e', 'x', 't', 0,
    's', 'y', 's', 't', 'e', 'm', 'F', 'o', 'n', 't', 0,
    'i', 's', 'S', 'c', 'a', 'l', 'a', 'b', 'l', 'e', 0,
    'p', 'o', 'i', 'n', 't', 'S', 'i', 'z', 'e', 's', 0,
    'D', 'e', 'v', 'a', 'n', 'a', 'g', 'a', 'r', 'i', 0,
    'C', 'a', 'p', 'i', 't', 'a', 'l', 'i', 'z', 'e', 0,
    'i', 'n', 'i', 't', 'i', 'a', 'l', 'i', 'z', 'e', 0,
    's', 'u', 'b', 's', 't', 'i', 't', 'u', 't', 'e', 0,
    's', 'e', 't', 'R', 'a', 'w', 'N', 'a', 'm', 'e', 0,
    's', 'e', 't', 'R', 'a', 'w', 'M', 'o', 'd', 'e', 0,
    's', 'e', 't', 'S', 't', 'r', 'e', 't', 'c', 'h', 0,
    's', 'e', 't', 'K', 'e', 'r', 'n', 'i', 'n', 'g', 0,
    'f', 'i', 'x', 'e', 'd', 'P', 'i', 't', 'c', 'h', 0,
    'p', 'o', 'i', 'n', 't', 'S', 'i', 'z', 'e', 'F', 0,
    'D', 'e', 'c', 'o', 'r', 'a', 't', 'i', 'v', 'e', 0,
    'O', 'l', 'd', 'E', 'n', 'g', 'l', 'i', 's', 'h', 0,
    'T', 'y', 'p', 'e', 'W', 'r', 'i', 't', 'e', 'r', 0,
    'c', 'o', 'n', 't', 'e', 'n', 't', 'P', 'o', 's', 0,
    's', 'c', 'r', 'e', 'e', 'n', 'R', 'e', 'c', 't', 0,
    's', 'h', 'o', 'r', 't', 'c', 'u', 't', 'I', 'd', 0,
    'Q', 'H', 'e', 'l', 'p', 'E', 'v', 'e', 'n', 't', 0,
    'a', 'n', 's', 'w', 'e', 'r', 'R', 'e', 'c', 't', 0,
    'd', 'r', 'o', 'p', 'A', 'c', 't', 'i', 'o', 'n', 0,
    'Q', 'D', 'r', 'o', 'p', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'H', 'i', 'd', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'S', 'h', 'o', 'w', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'M', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'F', 'o', 'u', 'r', 'D', 'M', 'o', 'u', 's', 'e', 0,
    'g', 'l', 'o', 'b', 'a', 'l', 'P', 'o', 's', 'F', 0,
    'a', 'n', 'g', 'l', 'e', 'D', 'e', 'l', 't', 'a', 0,
    'p', 'i', 'x', 'e', 'l', 'D', 'e', 'l', 't', 'a', 0,
    'd', 'r', 'a', 'g', 'C', 'u', 'r', 's', 'o', 'r', 0,
    's', 'e', 't', 'H', 'o', 't', 'S', 'p', 'o', 't', 0,
    'Q', 'C', 'l', 'i', 'p', 'b', 'o', 'a', 'r', 'd', 0,
    'f', 'o', 'c', 'a', 'l', 'P', 'o', 'i', 'n', 't', 0,
    's', 'e', 't', 'C', 'o', 'l', 'o', 'r', 'A', 't', 0,
    'N', 'o', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 'u', 'r', 'e', 0,
    'l', 'i', 'g', 'h', 't', 'n', 'e', 's', 's', 'F', 0,
    's', 'a', 't', 'u', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'c', 'o', 'l', 'o', 'r', 'N', 'a', 'm', 'e', 's', 0,
    'b', 'e', 'g', 'i', 'n', 'P', 'a', 'i', 'n', 't', 0,
    'd', 'r', 'a', 'w', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'o', 'b', 'j', 'e', 'c', 't', 'T', 'y', 'p', 'e', 0,
    's', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 's', 0,
    'a', 't', 't', 'r', 'i', 'b', 'u', 't', 'e', 's', 0,
    'l', 'i', 'n', 'e', 'N', 'u', 'm', 'b', 'e', 'r', 0,
    's', 'e', 't', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    't', 'r', 'a', 'n', 's', 'p', 'o', 's', 'e', 'd', 0,
    'e', 'x', 'a', 'c', 't', 'M', 'a', 't', 'c', 'h', 0,
    'n', 'o', 'r', 'm', 'a', 'l', 'i', 'z', 'e', 'd', 0,
    'N', 'o', 't', 'R', 'u', 'n', 'n', 'i', 'n', 'g', 0,
    'd', 'o', 't', 'P', 'r', 'o', 'd', 'u', 'c', 't', 0,
    'c', 'h', 'i', 'l', 'd', 'E', 'v', 'e', 'n', 't', 0,
    't', 'i', 'm', 'e', 'r', 'E', 'v', 'e', 'n', 't', 0,
    'Q', 'M', 'a', 't', 'r', 'i', 'x', '4', 'x', '4', 0,
    'Q', 'T', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'V', 'i', 'e', 't', 'n', 'a', 'm', 'e', 's', 'e', 0,
    't', 'r', 'a', 'n', 's', 'l', 'a', 't', 'e', 'd', 0,
    'i', 'n', 't', 'e', 'r', 's', 'e', 'c', 't', 's', 0,
    'f', 'r', 'o', 'm', 'S', 't', 'r', 'i', 'n', 'g', 0,
    's', 'e', 't', 'V', 'e', 'r', 's', 'i', 'o', 'n', 0,
    's', 'i', 'm', 'p', 'l', 'i', 'f', 'i', 'e', 'd', 0,
    '_', '_', 'r', 's', 'h', 'i', 'f', 't', '_', '_', 0,
    '_', '_', 'l', 's', 'h', 'i', 'f', 't', '_', '_', 0,
    'i', 's', 'D', 'e', 't', 'a', 'c', 'h', 'e', 'd', 0,
    'd', 'e', 'c', 'o', 'd', 'e', 'D', 'a', 't', 'a', 0,
    'e', 'n', 'c', 'o', 'd', 'e', 'D', 'a', 't', 'a', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'R', 'o', 'w', 's', 0,
    'i', 'n', 's', 'e', 'r', 't', 'R', 'o', 'w', 's', 0,
    'h', 'e', 'a', 'd', 'e', 'r', 'D', 'a', 't', 'a', 0,
    '_', '_', 'i', 'n', 'v', 'e', 'r', 't', '_', '_', 0,
    'f', 'r', 'o', 'm', 'W', 'i', 'n', 'I', 'd', 0,
    'h', 'i', 'd', 'e', 'E', 'v', 'e', 'n', 't', 0,
    's', 'h', 'o', 'w', 'E', 'v', 'e', 'n', 't', 0,
    'm', 'o', 'v', 'e', 'E', 'v', 'e', 'n', 't', 0,
    'i', 's', 'E', 'x', 'p', 'o', 's', 'e', 'd', 0,
    's', 'e', 't', 'R', 'e', 'g', 'E', 'x', 'p', 0,
    'f', 'r', 'o', 'm', 'S', 'c', 'a', 'l', 'e', 0,
    'i', 's', 'S', 'c', 'a', 'l', 'i', 'n', 'g', 0,
    's', 'e', 't', 'M', 'a', 't', 'r', 'i', 'x', 0,
    'T', 'x', 'P', 'r', 'o', 'j', 'e', 'c', 't', 0,
    's', 'p', 'l', 'i', 't', 'C', 'e', 'l', 'l', 0,
    'd', 'e', 'l', 'i', 'm', 'i', 't', 'e', 'r', 0,
    'C', 'e', 'n', 't', 'e', 'r', 'T', 'a', 'b', 0,
    'u', 's', 'e', 'r', 'S', 't', 'a', 't', 'e', 0,
    'b', 'l', 'o', 'c', 'k', 'L', 'i', 's', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'i', 's', 't', 0,
    't', 'e', 'x', 't', 'S', 't', 'a', 'r', 't', 0,
    'x', 'T', 'o', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'c', 'u', 'r', 's', 'o', 'r', 'T', 'o', 'X', 0,
    'Q', 'T', 'e', 'x', 't', 'L', 'i', 'n', 'e', 0,
    'g', 'l', 'y', 'p', 'h', 'R', 'u', 'n', 's', 0,
    'S', 'k', 'i', 'p', 'W', 'o', 'r', 'd', 's', 0,
    'e', 'n', 'd', 'L', 'a', 'y', 'o', 'u', 't', 0,
    's', 'e', 't', 'A', 's', 'c', 'e', 'n', 't', 0,
    's', 'e', 't', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    's', 'e', 't', 'B', 'o', 'r', 'd', 'e', 'r', 0,
    'F', 'l', 'o', 'a', 't', 'L', 'e', 'f', 't', 0,
    's', 'e', 't', 'I', 'n', 'd', 'e', 'n', 't', 0,
    's', 'e', 't', 'A', 'n', 'c', 'h', 'o', 'r', 0,
    'I', 'm', 'a', 'g', 'e', 'N', 'a', 'm', 'e', 0,
    'L', 'i', 's', 't', 'S', 't', 'y', 'l', 'e', 0,
    'R', 'e', 'd', 'o', 'S', 't', 'a', 'c', 'k', 0,
    'U', 'n', 'd', 'o', 'S', 't', 'a', 'c', 'k', 0,
    'l', 'a', 's', 't', 'B', 'l', 'o', 'c', 'k', 0,
    'f', 'i', 'n', 'd', 'B', 'l', 'o', 'c', 'k', 0,
    'r', 'o', 'o', 't', 'F', 'r', 'a', 'm', 'e', 0,
    'W', 'o', 'r', 'd', 'R', 'i', 'g', 'h', 't', 0,
    'N', 'e', 'x', 't', 'B', 'l', 'o', 'c', 'k', 0,
    's', 'e', 't', 'S', 't', 'e', 'r', 'e', 'o', 0,
    'N', 'o', 'P', 'r', 'o', 'f', 'i', 'l', 'e', 0,
    'O', 'f', 'f', 's', 'c', 'r', 'e', 'e', 'n', 0,
    't', 'e', 'x', 't', 'W', 'i', 'd', 't', 'h', 0,
    't', 'a', 'k', 'e', 'C', 'h', 'i', 'l', 'd', 0,
    'w', 'h', 'a', 't', 's', 'T', 'h', 'i', 's', 0,
    's', 't', 'a', 't', 'u', 's', 'T', 'i', 'p', 0,
    'f', 'i', 'n', 'd', 'I', 't', 'e', 'm', 's', 0,
    'a', 'p', 'p', 'e', 'n', 'd', 'R', 'o', 'w', 0,
    'f', 'o', 'n', 't', 'T', 'a', 'b', 'l', 'e', 0,
    's', 'e', 't', 'V', 'e', 'c', 't', 'o', 'r', 0,
    'c', 'o', 'n', 'j', 'u', 'g', 'a', 't', 'e', 0,
    's', 'e', 't', 'S', 'c', 'a', 'l', 'a', 'r', 0,
    'n', 'o', 'r', 'm', 'a', 'l', 'i', 'z', 'e', 0,
    't', 'o', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 0,
    'p', 'u', 't', 'P', 'o', 'i', 'n', 't', 's', 0,
    'i', 's', 'Q', 'B', 'i', 't', 'm', 'a', 'p', 0,
    'y', 'u', 'v', 'L', 'a', 'y', 'o', 'u', 't', 0,
    'a', 'l', 'p', 'h', 'a', 'S', 'i', 'z', 'e', 0,
    'b', 'l', 'a', 'c', 'k', 'S', 'i', 'z', 'e', 0,
    'g', 'r', 'e', 'e', 'n', 'S', 'i', 'z', 'e', 0,
    'U', 's', 'e', 's', 'A', 'l', 'p', 'h', 'a', 0,
    's', 'e', 't', 'W', 'i', 'd', 't', 'h', 'F', 0,
    'H', 'i', 'g', 'h', 'l', 'i', 'g', 'h', 't', 0,
    'j', 'o', 'i', 'n', 'S', 't', 'y', 'l', 'e', 0,
    'e', 'l', 'e', 'm', 'e', 'n', 't', 'A', 't', 0,
    'a', 'r', 'c', 'M', 'o', 'v', 'e', 'T', 'o', 0,
    'a', 'd', 'd', 'R', 'e', 'g', 'i', 'o', 'n', 0,
    'i', 's', 'C', 'u', 'r', 'v', 'e', 'T', 'o', 0,
    'Q', 'u', 'i', 'c', 'k', 'D', 'r', 'a', 'w', 0,
    'l', 'i', 'n', 'e', 'C', 'o', 'u', 'n', 't', 0,
    'r', 'e', 'c', 't', 'C', 'o', 'u', 'n', 't', 0,
    's', 'e', 't', 'A', 'c', 't', 'i', 'v', 'e', 0,
    'D', 'i', 'r', 't', 'y', 'F', 'o', 'n', 't', 0,
    'Q', 'T', 'e', 'x', 't', 'I', 't', 'e', 'm', 0,
    'P', 'd', 'm', 'H', 'e', 'i', 'g', 'h', 't', 0,
    's', 'o', 'u', 'r', 'c', 'e', 'T', 'o', 'p', 0,
    'd', 'r', 'a', 'w', 'I', 'm', 'a', 'g', 'e', 0,
    'd', 'r', 'a', 'w', 'P', 'o', 'i', 'n', 't', 0,
    'e', 'r', 'a', 's', 'e', 'R', 'e', 'c', 't', 0,
    'd', 'r', 'a', 'w', 'C', 'h', 'o', 'r', 'd', 0,
    'd', 'r', 'a', 'w', 'R', 'e', 'c', 't', 's', 0,
    'd', 'r', 'a', 'w', 'L', 'i', 'n', 'e', 's', 0,
    's', 'e', 't', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'o', 'p', 'e', 'r', 'a', 't', 'i', 'o', 'n', 0,
    'N', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'Q', 'P', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    't', 'o', 'p', 'M', 'a', 'r', 'g', 'i', 'n', 0,
    'E', 'n', 'v', 'e', 'l', 'o', 'p', 'e', '9', 0,
    'F', 'a', 'n', 'F', 'o', 'l', 'd', 'U', 'S', 0,
    'P', 'r', 'c', '3', '2', 'K', 'B', 'i', 'g', 0,
    'S', 't', 'a', 't', 'e', 'm', 'e', 'n', 't', 0,
    'E', 'x', 'e', 'c', 'u', 't', 'i', 'v', 'e', 0,
    'o', 'b', 'j', 'e', 'c', 't', 'I', 'd', 's', 0,
    'D', 'e', 'p', 't', 'h', 'M', 'o', 'd', 'e', 0,
    'Z', 'e', 'r', 'o', 'V', 'a', 'l', 'u', 'e', 0,
    'B', 'l', 'u', 'e', 'V', 'a', 'l', 'u', 'e', 0,
    'T', 'e', 'x', 't', 'u', 'r', 'e', '1', 'D', 0,
    'T', 'e', 'x', 't', 'u', 'r', 'e', '3', 'D', 0,
    'L', 'u', 'm', 'i', 'n', 'a', 'n', 'c', 'e', 0,
    's', 'e', 't', 'L', 'a', 'y', 'e', 'r', 's', 0,
    'm', 'i', 'p', 'L', 'e', 'v', 'e', 'l', 's', 0,
    'R', 'G', 'B', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'S', 'R', 'G', 'B', '_', 'D', 'X', 'T', '1', 0,
    'R', 'G', 'B', 'A', '_', 'D', 'X', 'T', '5', 0,
    'R', 'G', 'B', 'A', '_', 'D', 'X', 'T', '3', 0,
    'R', 'G', 'B', 'A', '_', 'D', 'X', 'T', '1', 0,
    'D', '3', '2', 'F', 'S', '8', 'X', '2', '4', 0,
    'R', '1', '6', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', 'G', '8', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', '1', '6', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'R', 'G', '8', '_', 'U', 'N', 'o', 'r', 'm', 0,
    't', 'e', 'x', 't', 'u', 'r', 'e', 'I', 'd', 0,
    'p', 'r', 'o', 'g', 'r', 'a', 'm', 'I', 'd', 0,
    'a', 'd', 'd', 'S', 'h', 'a', 'd', 'e', 'r', 0,
    'r', 'o', 'w', 'L', 'e', 'n', 'g', 't', 'h', 0,
    's', 'e', 't', 'M', 'i', 'p', 'm', 'a', 'p', 0,
    'p', 'u', 's', 'h', 'G', 'r', 'o', 'u', 'p', 0,
    'i', 's', 'L', 'o', 'g', 'g', 'i', 'n', 'g', 0,
    'O', 't', 'h', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'E', 'r', 'r', 'o', 'r', 'T', 'y', 'p', 'e', 0,
    'A', 'n', 'y', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'A', 'P', 'I', 'S', 'o', 'u', 'r', 'c', 'e', 0,
    'R', 'a', 'n', 'g', 'e', 'R', 'e', 'a', 'd', 0,
    'i', 's', 'C', 'r', 'e', 'a', 't', 'e', 'd', 0,
    's', 'e', 't', 'S', 'c', 'r', 'e', 'e', 'n', 0,
    'c', 'a', 'c', 'h', 'e', 'M', 'o', 'd', 'e', 0,
    'f', 'r', 'a', 'm', 'e', 'R', 'e', 'c', 't', 0,
    'C', 'a', 'c', 'h', 'e', 'N', 'o', 'n', 'e', 0,
    'm', 'a', 'p', 'V', 'e', 'c', 't', 'o', 'r', 0,
    's', 'e', 't', 'C', 'o', 'l', 'u', 'm', 'n', 0,
    'n', 'e', 'a', 'r', 'P', 'l', 'a', 'n', 'e', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'A', 'l', 'l', 0,
    'N', 'e', 'x', 't', 'C', 'h', 'i', 'l', 'd', 0,
    'i', 's', 'V', 'i', 's', 'i', 'b', 'l', 'e', 0,
    's', 'e', 't', 'O', 'p', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'b', 'y', 't', 'e', 'C', 'o', 'u', 'n', 't', 0,
    's', 'e', 't', 'O', 'f', 'f', 's', 'e', 't', 0,
    'c', 'l', 'i', 'p', 'T', 'i', 'g', 'h', 't', 0,
    'c', 'o', 'n', 's', 't', 'B', 'i', 't', 's', 0,
    'I', 'n', 'v', 'e', 'r', 't', 'R', 'g', 'b', 0,
    't', 'h', 'e', 'm', 'e', 'N', 'a', 'm', 'e', 0,
    'f', 'r', 'o', 'm', 'T', 'h', 'e', 'm', 'e', 0,
    'a', 'd', 'd', 'P', 'i', 'x', 'm', 'a', 'p', 0,
    's', 'e', 's', 's', 'i', 'o', 'n', 'I', 'd', 0,
    'c', 'l', 'i', 'p', 'b', 'o', 'a', 'r', 'd', 0,
    'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 's', 0,
    'Q', 'G', 'l', 'y', 'p', 'h', 'R', 'u', 'n', 0,
    'l', 'i', 'n', 'e', 'W', 'i', 'd', 't', 'h', 0,
    'w', 'i', 'd', 't', 'h', 'C', 'h', 'a', 'r', 0,
    'Q', 'F', 'o', 'n', 't', 'I', 'n', 'f', 'o', 0,
    'T', 'i', 't', 'l', 'e', 'F', 'o', 'n', 't', 0,
    'F', 'i', 'x', 'e', 'd', 'F', 'o', 'n', 't', 0,
    's', 't', 'y', 'l', 'e', 'N', 'a', 'm', 'e', 0,
    'S', 'm', 'a', 'l', 'l', 'C', 'a', 'p', 's', 0,
    'M', 'i', 'x', 'e', 'd', 'C', 'a', 's', 'e', 0,
    's', 'e', 't', 'I', 't', 'a', 'l', 'i', 'c', 0,
    's', 't', 'y', 'l', 'e', 'H', 'i', 'n', 't', 0,
    's', 't', 'r', 'i', 'k', 'e', 'O', 'u', 't', 0,
    'u', 'n', 'd', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    's', 'e', 't', 'W', 'e', 'i', 'g', 'h', 't', 0,
    'p', 'i', 'x', 'e', 'l', 'S', 'i', 'z', 'e', 0,
    's', 'e', 't', 'F', 'a', 'm', 'i', 'l', 'y', 0,
    'p', 'o', 'i', 'n', 't', 'S', 'i', 'z', 'e', 0,
    'M', 'o', 'n', 'o', 's', 'p', 'a', 'c', 'e', 0,
    'S', 'a', 'n', 's', 'S', 'e', 'r', 'i', 'f', 0,
    'H', 'e', 'l', 'v', 'e', 't', 'i', 'c', 'a', 0,
    's', 'c', 'e', 'n', 'e', 'R', 'e', 'c', 't', 0,
    'a', 'm', 'b', 'i', 'g', 'u', 'o', 'u', 's', 0,
    'p', 'a', 'i', 'n', 't', 'R', 'e', 'c', 't', 0,
    'l', 'o', 's', 't', 'F', 'o', 'c', 'u', 's', 0,
    'Q', 'K', 'e', 'y', 'E', 'v', 'e', 'n', 't', 0,
    's', 'c', 'r', 'e', 'e', 'n', 'P', 'o', 's', 0,
    'w', 'i', 'n', 'd', 'o', 'w', 'P', 'o', 's', 0,
    'g', 'l', 'o', 'b', 'a', 'l', 'P', 'o', 's', 0,
    't', 'i', 'm', 'e', 's', 't', 'a', 'm', 'p', 0,
    'm', 'o', 'd', 'i', 'f', 'i', 'e', 'r', 's', 0,
    's', 'e', 't', 'P', 'i', 'x', 'm', 'a', 'p', 0,
    's', 'e', 't', 'R', 'a', 'd', 'i', 'u', 's', 0,
    's', 'e', 't', 'C', 'e', 'n', 't', 'e', 'r', 0,
    'f', 'i', 'n', 'a', 'l', 'S', 't', 'o', 'p', 0,
    's', 'e', 't', 'S', 'p', 'r', 'e', 'a', 'd', 0,
    'P', 'a', 'd', 'S', 'p', 'r', 'e', 'a', 'd', 0,
    'Q', 'G', 'r', 'a', 'd', 'i', 'e', 'n', 't', 0,
    't', 'r', 'a', 'n', 's', 'f', 'o', 'r', 'm', 0,
    'l', 'i', 'g', 'h', 't', 'n', 'e', 's', 's', 0,
    'f', 'r', 'o', 'm', 'C', 'm', 'y', 'k', 'F', 0,
    'c', 'o', 'n', 'v', 'e', 'r', 't', 'T', 'o', 0,
    's', 'e', 't', 'G', 'r', 'e', 'e', 'n', 'F', 0,
    's', 'e', 't', 'A', 'l', 'p', 'h', 'a', 'F', 0,
    'f', 'r', 'o', 'm', 'I', 'm', 'a', 'g', 'e', 0,
    'c', 'o', 'm', 'p', 'o', 'n', 'e', 'n', 't', 0,
    'p', 'a', 'g', 'e', 'C', 'o', 'u', 'n', 't', 0,
    'd', 'i', 'r', 'e', 'c', 't', 'o', 'r', 'y', 0,
    'w', 'i', 'n', 'd', 'o', 'w', 's', 'I', 'd', 0,
    'a', 'l', 'i', 'g', 'n', 'm', 'e', 'n', 't', 0,
    'i', 's', 'E', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    's', 'e', 't', 'H', 'e', 'i', 'g', 'h', 't', 0,
    'r', 'e', 'c', 'e', 'i', 'v', 'e', 'r', 's', 0,
    's', 'e', 't', 'P', 'a', 'r', 'e', 'n', 't', 0,
    '_', '_', 'e', 'n', 't', 'e', 'r', '_', '_', 0,
    'Q', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 'F', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '4', 'D', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '3', 'D', 0,
    'Q', 'V', 'e', 'c', 't', 'o', 'r', '2', 'D', 0,
    's', 'e', 't', 'B', 'o', 't', 't', 'o', 'm', 0,
    'M', 'a', 'l', 'a', 'y', 'a', 'l', 'a', 'm', 0,
    's', 'e', 't', 'P', 'o', 'i', 'n', 't', 's', 0,
    'R', 'e', 'a', 'd', 'W', 'r', 'i', 't', 'e', 0,
    'W', 'r', 'i', 't', 'e', 'O', 'n', 'l', 'y', 0,
    'b', 'y', 't', 'e', 'O', 'r', 'd', 'e', 'r', 0,
    's', 'e', 't', 'S', 't', 'a', 't', 'u', 's', 0,
    's', 'e', 't', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'B', 'i', 'g', 'E', 'n', 'd', 'i', 'a', 'n', 0,
    't', 'r', 'a', 'n', 's', 'l', 'a', 't', 'e', 0,
    's', 'e', 't', 'L', 'o', 'c', 'a', 'l', 'e', 0,
    'p', 'r', 'e', 'c', 'i', 's', 'i', 'o', 'n', 0,
    's', 'e', 'l', 'e', 'c', 't', 'i', 'o', 'n', 0,
    'r', 'o', 'l', 'e', 'N', 'a', 'm', 'e', 's', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 'R', 'o', 'w', 0,
    'i', 'n', 's', 'e', 'r', 't', 'R', 'o', 'w', 0,
    'f', 'e', 't', 'c', 'h', 'M', 'o', 'r', 'e', 0,
    'm', 'i', 'm', 'e', 'T', 'y', 'p', 'e', 's', 0,
    's', 'e', 't', 'P', 'a', 'u', 's', 'e', 'd', 0,
    'l', 'o', 'o', 'p', 'C', 'o', 'u', 'n', 't', 0,
    'W', 'i', 'n', 'd', 'o', 'w', 'e', 'd', 0,
    'x', 'C', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    'b', 'a', 's', 'e', 'S', 'i', 'z', 'e', 0,
    'm', 'o', 'd', 'a', 'l', 'i', 't', 'y', 0,
    't', 'o', 'P', 'o', 'i', 'n', 't', 'F', 0,
    'd', 'e', 'c', 'i', 'm', 'a', 'l', 's', 0,
    's', 'e', 't', 'R', 'a', 'n', 'g', 'e', 0,
    'i', 's', 'A', 'f', 'f', 'i', 'n', 'e', 0,
    'T', 'x', 'R', 'o', 't', 'a', 't', 'e', 0,
    'T', 'o', 'u', 'c', 'h', 'P', 'a', 'd', 0,
    'r', 'o', 'w', 'S', 't', 'a', 'r', 't', 0,
    'R', 'i', 'g', 'h', 't', 'T', 'a', 'b', 0,
    'W', 'o', 'r', 'd', 'W', 'r', 'a', 'p', 0,
    'u', 's', 'e', 'r', 'D', 'a', 't', 'a', 0,
    't', 'e', 'x', 't', 'L', 'i', 's', 't', 0,
    'i', 't', 'e', 'm', 'T', 'e', 'x', 't', 0,
    'T', 'r', 'a', 'i', 'l', 'i', 'n', 'g', 0,
    'L', 'i', 's', 't', 'D', 'i', 's', 'c', 0,
    'i', 's', 'A', 'n', 'c', 'h', 'o', 'r', 0,
    'I', 's', 'A', 'n', 'c', 'h', 'o', 'r', 0,
    'C', 's', 's', 'F', 'l', 'o', 'a', 't', 0,
    'N', 'o', 'O', 'b', 'j', 'e', 'c', 't', 0,
    'r', 'a', 'w', 'V', 'a', 'l', 'u', 'e', 0,
    'f', 'r', 'o', 'm', 'H', 't', 'm', 'l', 0,
    'r', 'e', 'v', 'i', 's', 'i', 'o', 'n', 0,
    'r', 'e', 's', 'o', 'u', 'r', 'c', 'e', 0,
    'e', 'n', 'c', 'o', 'd', 'i', 'n', 'g', 0,
    'N', 'e', 'x', 't', 'C', 'e', 'l', 'l', 0,
    'W', 'o', 'r', 'd', 'L', 'e', 'f', 't', 0,
    's', 'e', 't', 'C', 'h', 'i', 'l', 'd', 0,
    's', 'i', 'z', 'e', 'H', 'i', 'n', 't', 0,
    't', 'a', 'k', 'e', 'I', 't', 'e', 'm', 0,
    'i', 's', 'P', 'h', 'a', 's', 'e', '2', 0,
    'g', 'e', 'o', 'm', 'e', 't', 'r', 'y', 0,
    'f', 'r', 'o', 'm', 'F', 'o', 'n', 't', 0,
    'Q', 'R', 'a', 'w', 'F', 'o', 'n', 't', 0,
    'i', 's', 'C', 'l', 'o', 's', 'e', 'd', 0,
    's', 'e', 't', 'P', 'o', 'i', 'n', 't', 0,
    'h', 'a', 's', 'A', 'l', 'p', 'h', 'a', 0,
    'c', 'y', 'a', 'n', 'S', 'i', 'z', 'e', 0,
    'b', 'l', 'u', 'e', 'S', 'i', 'z', 'e', 0,
    'Y', 'U', 'V', '4', '2', '0', 'S', 'P', 0,
    'i', 'o', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'Q', 'P', 'i', 'c', 't', 'u', 'r', 'e', 0,
    's', 'e', 't', 'T', 'i', 't', 'l', 'e', 0,
    'm', 'i', 'd', 'l', 'i', 'g', 'h', 't', 0,
    'M', 'i', 'd', 'l', 'i', 'g', 'h', 't', 0,
    'I', 'n', 'a', 'c', 't', 'i', 'v', 'e', 0,
    'c', 'a', 'p', 'S', 't', 'y', 'l', 'e', 0,
    'i', 's', 'L', 'i', 'n', 'e', 'T', 'o', 0,
    'i', 's', 'M', 'o', 'v', 'e', 'T', 'o', 0,
    'D', 'i', 'r', 'e', 'c', 't', '2', 'D', 0,
    'D', 'i', 'r', 'e', 'c', 't', '3', 'D', 0,
    'f', 'e', 'a', 't', 'u', 'r', 'e', 's', 0,
    'A', 'l', 'l', 'D', 'i', 'r', 't', 'y', 0,
    'D', 'i', 'r', 't', 'y', 'P', 'e', 'n', 0,
    'h', 'e', 'i', 'g', 'h', 't', 'M', 'M', 0,
    'P', 'd', 'm', 'D', 'e', 'p', 't', 'h', 0,
    'P', 'd', 'm', 'W', 'i', 'd', 't', 'h', 0,
    'd', 'r', 'a', 'w', 'R', 'e', 'c', 't', 0,
    'd', 'r', 'a', 'w', 'L', 'i', 'n', 'e', 0,
    'f', 'i', 'l', 'l', 'R', 'e', 'c', 't', 0,
    'd', 'r', 'a', 'w', 'T', 'e', 'x', 't', 0,
    'f', 'i', 'l', 'l', 'R', 'u', 'l', 'e', 0,
    'd', 'r', 'a', 'w', 'P', 'a', 't', 'h', 0,
    'f', 'i', 'l', 'l', 'P', 'a', 't', 'h', 0,
    'c', 'l', 'i', 'p', 'P', 'a', 't', 'h', 0,
    's', 'e', 't', 'B', 'r', 'u', 's', 'h', 0,
    'Q', 'P', 'a', 'i', 'n', 't', 'e', 'r', 0,
    'f', 'u', 'l', 'l', 'R', 'e', 'c', 't', 0,
    's', 'e', 't', 'U', 'n', 'i', 't', 's', 0,
    'p', 'a', 'g', 'e', 'S', 'i', 'z', 'e', 0,
    'r', 'e', 's', 'i', 'z', 'e', 'G', 'L', 0,
    'o', 'b', 'j', 'e', 'c', 't', 'I', 'd', 0,
    'w', 'r', 'a', 'p', 'M', 'o', 'd', 'e', 0,
    'O', 'n', 'e', 'V', 'a', 'l', 'u', 'e', 0,
    'R', 'e', 'd', 'V', 'a', 'l', 'u', 'e', 0,
    'R', '8', '_', 'S', 'N', 'o', 'r', 'm', 0,
    'R', '8', '_', 'U', 'N', 'o', 'r', 'm', 0,
    'N', 'o', 'F', 'o', 'r', 'm', 'a', 't', 0,
    'i', 's', 'L', 'i', 'n', 'k', 'e', 'd', 0,
    's', 'h', 'a', 'd', 'e', 'r', 'I', 'd', 0,
    's', 'k', 'i', 'p', 'R', 'o', 'w', 's', 0,
    'p', 'o', 'p', 'G', 'r', 'o', 'u', 'p', 0,
    's', 'e', 'v', 'e', 'r', 'i', 't', 'y', 0,
    'm', 'a', 'p', 'R', 'a', 'n', 'g', 'e', 0,
    'a', 'l', 'l', 'o', 'c', 'a', 't', 'e', 0,
    'b', 'u', 'f', 'f', 'e', 'r', 'I', 'd', 0,
    'Q', 'S', 'u', 'r', 'f', 'a', 'c', 'e', 0,
    's', 'e', 't', 'S', 'p', 'e', 'e', 'd', 0,
    'C', 'a', 'c', 'h', 'e', 'A', 'l', 'l', 0,
    'v', 'i', 'e', 'w', 'p', 'o', 'r', 't', 0,
    'f', 'a', 'r', 'P', 'l', 'a', 'n', 'e', 0,
    'i', 'n', 'v', 'e', 'r', 't', 'e', 'd', 0,
    'm', 'n', 'e', 'm', 'o', 'n', 'i', 'c', 0,
    'F', 'i', 'n', 'd', 'N', 'e', 'x', 't', 0,
    'c', 'a', 'n', 'W', 'r', 'i', 't', 'e', 0,
    's', 'e', 't', 'G', 'a', 'm', 'm', 'a', 0,
    'c', 'l', 'i', 'p', 'R', 'e', 'c', 't', 0,
    't', 'e', 'x', 't', 'K', 'e', 'y', 's', 0,
    'm', 'i', 'r', 'r', 'o', 'r', 'e', 'd', 0,
    'v', 'e', 'r', 't', 'i', 'c', 'a', 'l', 0,
    's', 'e', 't', 'P', 'i', 'x', 'e', 'l', 0,
    's', 'c', 'a', 'n', 'L', 'i', 'n', 'e', 0,
    'f', 'a', 'l', 'l', 'b', 'a', 'c', 'k', 0,
    'c', 'a', 'c', 'h', 'e', 'K', 'e', 'y', 0,
    'S', 'e', 'l', 'e', 'c', 't', 'e', 'd', 0,
    'D', 'i', 's', 'a', 'b', 'l', 'e', 'd', 0,
    's', 'e', 't', 'F', 'l', 'a', 'g', 's', 0,
    't', 'a', 'b', 'A', 'r', 'r', 'a', 'y', 0,
    't', 'a', 'b', 'S', 't', 'o', 'p', 's', 0,
    'm', 'a', 'x', 'W', 'i', 'd', 't', 'h', 0,
    'f', 'o', 'n', 't', 'I', 'n', 'f', 'o', 0,
    'f', 'a', 'm', 'i', 'l', 'i', 'e', 's', 0,
    'G', 'u', 'r', 'm', 'u', 'k', 'h', 'i', 0,
    'C', 'y', 'r', 'i', 'l', 'l', 'i', 'c', 0,
    'i', 's', 'C', 'o', 'p', 'y', 'O', 'f', 0,
    's', 't', 'r', 'a', 't', 'e', 'g', 'y', 0,
    'o', 'v', 'e', 'r', 'l', 'i', 'n', 'e', 0,
    'D', 'e', 'm', 'i', 'B', 'o', 'l', 'd', 0,
    'A', 'n', 'y', 'S', 't', 'y', 'l', 'e', 0,
    'v', 'e', 'l', 'o', 'c', 'i', 't', 'y', 0,
    's', 'c', 'e', 'n', 'e', 'P', 'o', 's', 0,
    's', 't', 'a', 'r', 't', 'P', 'o', 's', 0,
    'o', 'p', 'e', 'n', 'F', 'i', 'l', 'e', 0,
    'K', 'e', 'y', 'b', 'o', 'a', 'r', 'd', 0,
    'g', 'o', 't', 'F', 'o', 'c', 'u', 's', 0,
    'u', 'n', 'i', 'q', 'u', 'e', 'I', 'd', 0,
    'r', 'o', 't', 'a', 't', 'i', 'o', 'n', 0,
    'p', 'r', 'e', 's', 's', 'u', 'r', 'e', 0,
    'A', 'i', 'r', 'b', 'r', 'u', 's', 'h', 0,
    'N', 'o', 'D', 'e', 'v', 'i', 'c', 'e', 0,
    'l', 'o', 'c', 'a', 'l', 'P', 'o', 's', 0,
    's', 'e', 't', 'S', 'h', 'a', 'p', 'e', 0,
    's', 'e', 't', 'I', 'm', 'a', 'g', 'e', 0,
    's', 'e', 't', 'S', 't', 'a', 'r', 't', 0,
    's', 'e', 't', 'S', 't', 'o', 'p', 's', 0,
    'i', 's', 'O', 'p', 'a', 'q', 'u', 'e', 0,
    's', 'e', 't', 'C', 'o', 'l', 'o', 'r', 0,
    's', 'e', 't', 'S', 't', 'y', 'l', 'e', 0,
    'g', 'r', 'a', 'd', 'i', 'e', 'n', 't', 0,
    'f', 'r', 'o', 'm', 'H', 's', 'l', 'F', 0,
    'f', 'r', 'o', 'm', 'C', 'm', 'y', 'k', 0,
    'f', 'r', 'o', 'm', 'H', 's', 'v', 'F', 0,
    'f', 'r', 'o', 'm', 'R', 'g', 'b', 'F', 0,
    'f', 'r', 'o', 'm', 'R', 'g', 'b', 'a', 0,
    's', 'e', 't', 'C', 'm', 'y', 'k', 'F', 0,
    'g', 'e', 't', 'C', 'm', 'y', 'k', 'F', 0,
    'm', 'a', 'g', 'e', 'n', 't', 'a', 'F', 0,
    's', 'e', 't', 'B', 'l', 'u', 'e', 'F', 0,
    's', 'e', 't', 'G', 'r', 'e', 'e', 'n', 0,
    's', 'e', 't', 'A', 'l', 'p', 'h', 'a', 0,
    'f', 'r', 'o', 'm', 'D', 'a', 't', 'a', 0,
    'e', 'n', 'd', 'P', 'a', 'i', 'n', 't', 0,
    'd', 'o', 'c', 'u', 'm', 'e', 'n', 't', 0,
    'a', 'n', 'c', 'h', 'o', 'r', 'A', 't', 0,
    'U', 's', 'e', 'r', 'T', 'y', 'p', 'e', 0,
    'f', 'r', 'a', 'g', 'm', 'e', 'n', 't', 0,
    'n', 'a', 'm', 'e', 'T', 'y', 'p', 'e', 0,
    'n', 'o', 't', 'a', 't', 'i', 'o', 'n', 0,
    's', 'e', 't', 'C', 'o', 'd', 'e', 'c', 0,
    'p', 'o', 's', 'i', 't', 'i', 'o', 'n', 0,
    's', 'o', 'r', 't', 'R', 'o', 'l', 'e', 0,
    's', 'e', 't', 'V', 'a', 'l', 'u', 'e', 0,
    'o', 'p', 't', 'i', 'm', 'i', 'z', 'e', 0,
    's', 'e', 't', 'W', 'i', 'd', 't', 'h', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 't', 'y', 0,
    '_', '_', 'e', 'x', 'i', 't', '_', '_', 0,
    'i', 'c', 'o', 'n', 'N', 'a', 'm', 'e', 0,
    'Q', 'P', 'o', 'l', 'y', 'g', 'o', 'n', 0,
    'Q', 'P', 'a', 'l', 'e', 't', 't', 'e', 0,
    '_', '_', 'i', 'd', 'i', 'v', '_', '_', 0,
    '_', '_', 'i', 's', 'u', 'b', '_', '_', 0,
    'J', 'a', 'p', 'a', 'n', 'e', 's', 'e', 0,
    'G', 'u', 'j', 'a', 'r', 'a', 't', 'i', 0,
    'G', 'e', 'o', 'r', 'g', 'i', 'a', 'n', 0,
    'A', 'r', 'm', 'e', 'n', 'i', 'a', 'n', 0,
    'L', 'a', 'n', 'g', 'u', 'a', 'g', 'e', 0,
    's', 'e', 't', 'A', 'n', 'g', 'l', 'e', 0,
    'p', 'r', 'e', 'v', 'i', 'o', 'u', 's', 0,
    'D', 'e', 's', 'e', 'l', 'e', 'c', 't', 0,
    'R', 'e', 'a', 'd', 'O', 'n', 'l', 'y', 0,
    'f', 'i', 'l', 'e', 'P', 'a', 't', 'h', 0,
    'f', 'i', 'l', 'e', 'N', 'a', 'm', 'e', 0,
    't', 'o', 'S', 't', 'r', 'i', 'n', 'g', 0,
    'c', 'o', 'n', 't', 'a', 'i', 'n', 's', 0,
    '_', '_', 'i', 'm', 'u', 'l', '_', '_', 0,
    '_', '_', 'r', 'e', 'p', 'r', '_', '_', 0,
    '_', '_', 'i', 'a', 'd', 'd', '_', '_', 0,
    'i', 's', 'A', 'c', 't', 'i', 'v', 'e', 0,
    'm', 'i', 'm', 'e', 'D', 'a', 't', 'a', 0,
    'i', 't', 'e', 'm', 'D', 'a', 't', 'a', 0,
    'r', 'o', 'w', 'C', 'o', 'u', 'n', 't', 0,
    '_', '_', 'h', 'a', 's', 'h', '_', '_', 0,
    'o', 'l', 'd', 'S', 't', 'a', 't', 'e', 0,
    'f', 'i', 'n', 'i', 's', 'h', 'e', 'd', 0,
    'A', 'l', 'i', 'g', 'n', 'T', 'o', 'p', 0,
    '_', '_', 'b', 'o', 'o', 'l', '_', '_', 0,
    '_', '_', 'i', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'a', 'n', 'd', '_', '_', 0,
    'i', 's', 'M', 'o', 'd', 'a', 'l', 0,
    'a', 'd', 'j', 'o', 'i', 'n', 't', 0,
    'T', 'x', 'S', 'h', 'e', 'a', 'r', 0,
    'T', 'x', 'S', 'c', 'a', 'l', 'e', 0,
    'd', 'e', 'v', 'i', 'c', 'e', 's', 0,
    'r', 'o', 'w', 'S', 'p', 'a', 'n', 0,
    's', 'e', 't', 'T', 'a', 'b', 's', 0,
    'L', 'e', 'f', 't', 'T', 'a', 'b', 0,
    't', 'a', 'b', 'S', 't', 'o', 'p', 0,
    'L', 'e', 'a', 'd', 'i', 'n', 'g', 0,
    'p', 'a', 'd', 'd', 'i', 'n', 'g', 0,
    's', 'e', 't', 'N', 'a', 'm', 'e', 0,
    'b', 'a', 's', 'e', 'U', 'r', 'l', 0,
    'a', 't', 'S', 't', 'a', 'r', 't', 0,
    'N', 'e', 'x', 't', 'R', 'o', 'w', 0,
    'p', 'r', 'e', 'p', 'a', 'r', 'e', 0,
    's', 'e', 't', 'I', 'c', 'o', 'n', 0,
    't', 'o', 'o', 'l', 'T', 'i', 'p', 0,
    't', 'a', 'k', 'e', 'R', 'o', 'w', 0,
    's', 'e', 't', 'I', 't', 'e', 'm', 0,
    'c', 'o', 'l', 'u', 'm', 'n', 's', 0,
    'Q', 'S', 'c', 'r', 'e', 'e', 'n', 0,
    'q', 'I', 's', 'G', 'r', 'a', 'y', 0,
    'e', 'x', 'p', 'o', 's', 'e', 'd', 0,
    's', 'e', 't', 'M', 'a', 's', 'k', 0,
    'h', 'u', 'e', 'S', 'i', 'z', 'e', 0,
    'r', 'e', 'd', 'S', 'i', 'z', 'e', 0,
    's', 'u', 'b', 'E', 'n', 'u', 'm', 0,
    'Y', 'U', 'V', '4', '2', '0', 'P', 0,
    'I', 'n', 'd', 'e', 'x', 'e', 'd', 0,
    'i', 's', 'S', 'o', 'l', 'i', 'd', 0,
    'c', 'r', 'e', 'a', 't', 'o', 'r', 0,
    'i', 's', 'E', 'q', 'u', 'a', 'l', 0,
    'a', 'd', 'd', 'T', 'e', 'x', 't', 0,
    'a', 'd', 'd', 'R', 'e', 'c', 't', 0,
    'c', 'u', 'b', 'i', 'c', 'T', 'o', 0,
    'B', 'l', 'i', 't', 't', 'e', 'r', 0,
    'O', 'p', 'e', 'n', 'G', 'L', '2', 0,
    'Q', 'W', 'i', 'n', 'd', 'o', 'w', 0,
    'w', 'i', 'd', 't', 'h', 'M', 'M', 0,
    'P', 'd', 'm', 'D', 'p', 'i', 'Y', 0,
    'P', 'd', 'm', 'D', 'p', 'i', 'X', 0,
    'c', 'o', 'm', 'b', 'i', 'n', 'e', 0,
    'o', 'p', 'a', 'c', 'i', 't', 'y', 0,
    'p', 'i', 'c', 't', 'u', 'r', 'e', 0,
    'd', 'r', 'a', 'w', 'P', 'i', 'e', 0,
    'd', 'r', 'a', 'w', 'A', 'r', 'c', 0,
    'r', 'e', 's', 't', 'o', 'r', 'e', 0,
    's', 'e', 't', 'M', 'o', 'd', 'e', 0,
    'B', '5', 'E', 'x', 't', 'r', 'a', 0,
    'A', '5', 'E', 'x', 't', 'r', 'a', 0,
    'A', '4', 'S', 'm', 'a', 'l', 'l', 0,
    'A', '4', 'E', 'x', 't', 'r', 'a', 0,
    'A', '3', 'E', 'x', 't', 'r', 'a', 0,
    'T', 'a', 'b', 'l', 'o', 'i', 'd', 0,
    'C', 'o', 'm', 'm', '1', '0', 'E', 0,
    'n', 'e', 'w', 'P', 'a', 'g', 'e', 0,
    'p', 'a', 'i', 'n', 't', 'G', 'L', 0,
    'S', 'w', 'i', 'z', 'z', 'l', 'e', 0,
    'F', 'l', 'o', 'a', 't', '3', '2', 0,
    'F', 'l', 'o', 'a', 't', '1', '6', 0,
    'R', 'G', 'B', 'A', '3', '2', 'F', 0,
    'R', 'G', 'B', 'A', '1', '6', 'F', 0,
    'R', 'G', 'B', 'A', '3', '2', 'I', 0,
    'R', 'G', 'B', 'A', '1', '6', 'I', 0,
    'R', 'G', 'B', 'A', '3', '2', 'U', 0,
    'R', 'G', 'B', 'A', '1', '6', 'U', 0,
    's', 'h', 'a', 'd', 'e', 'r', 's', 0,
    'C', 'o', 'm', 'p', 'u', 't', 'e', 0,
    's', 'a', 'm', 'p', 'l', 'e', 's', 0,
    'b', 'u', 'f', 'f', 'e', 'r', 's', 0,
    't', 'o', 'I', 'm', 'a', 'g', 'e', 0,
    'i', 's', 'B', 'o', 'u', 'n', 'd', 0,
    's', 'o', 'u', 'r', 'c', 'e', 's', 0,
    'A', 'n', 'y', 'T', 'y', 'p', 'e', 0,
    'p', 'r', 'o', 'f', 'i', 'l', 'e', 0,
    'L', 'i', 'b', 'G', 'L', 'E', 'S', 0,
    's', 'u', 'r', 'f', 'a', 'c', 'e', 0,
    'd', 'e', 's', 't', 'r', 'o', 'y', 0,
    'u', 'p', 'd', 'a', 't', 'e', 'd', 0,
    'r', 'e', 's', 'i', 'z', 'e', 'd', 0,
    'm', 'a', 'p', 'R', 'e', 'c', 't', 0,
    'f', 'r', 'u', 's', 't', 'u', 'm', 0,
    'R', 'e', 'p', 'l', 'a', 'c', 'e', 0,
    'Z', 'o', 'o', 'm', 'O', 'u', 't', 0,
    'R', 'e', 'f', 'r', 'e', 's', 'h', 0,
    's', 'u', 'b', 'T', 'y', 'p', 'e', 0,
    'c', 'a', 'n', 'R', 'e', 'a', 'd', 0,
    'q', 'u', 'a', 'l', 'i', 't', 'y', 0,
    'a', 'l', 'l', 'G', 'r', 'a', 'y', 0,
    'd', 'e', 'v', 'T', 'y', 'p', 'e', 0,
    'a', 'd', 'd', 'F', 'i', 'l', 'e', 0,
    's', 'e', 't', 'F', 'o', 'n', 't', 0,
    's', 'c', 'r', 'e', 'e', 'n', 's', 0,
    's', 'e', 't', 'F', 'l', 'a', 'g', 0,
    'r', 'a', 'w', 'F', 'o', 'n', 't', 0,
    'x', 'H', 'e', 'i', 'g', 'h', 't', 0,
    'l', 'e', 'a', 'd', 'i', 'n', 'g', 0,
    'd', 'e', 's', 'c', 'e', 'n', 't', 0,
    's', 'e', 't', 'B', 'o', 'l', 'd', 0,
    'c', 'l', 'e', 'a', 'n', 'u', 'p', 0,
    'r', 'a', 'w', 'N', 'a', 'm', 'e', 0,
    's', 't', 'r', 'e', 't', 'c', 'h', 0,
    'k', 'e', 'r', 'n', 'i', 'n', 'g', 0,
    'F', 'a', 'n', 't', 'a', 's', 'y', 0,
    'C', 'u', 'r', 's', 'i', 'v', 'e', 0,
    'C', 'o', 'u', 'r', 'i', 'e', 'r', 0,
    'Q', 'A', 'c', 't', 'i', 'o', 'n', 0,
    'l', 'a', 's', 't', 'P', 'o', 's', 0,
    'q', 'u', 'e', 'r', 'i', 'e', 's', 0,
    'o', 'l', 'd', 'S', 'i', 'z', 'e', 0,
    'a', 'u', 't', 'o', 'r', 'e', 'p', 0,
    'o', 'l', 'd', 'P', 'o', 's', 'F', 0,
    'g', 'l', 'o', 'b', 'a', 'l', 'Y', 0,
    'g', 'l', 'o', 'b', 'a', 'l', 'X', 0,
    'b', 'u', 't', 't', 'o', 'n', 's', 0,
    'o', 'p', 'e', 'n', 'U', 'r', 'l', 0,
    'h', 'o', 't', 'S', 'p', 'o', 't', 0,
    'c', 'h', 'a', 'n', 'g', 'e', 'd', 0,
    't', 'e', 'x', 't', 'u', 'r', 'e', 0,
    'H', 'e', 'x', 'A', 'r', 'g', 'b', 0,
    'f', 'r', 'o', 'm', 'H', 's', 'l', 0,
    's', 'e', 't', 'H', 's', 'l', 'F', 0,
    'g', 'e', 't', 'H', 's', 'l', 'F', 0,
    'h', 's', 'l', 'H', 'u', 'e', 'F', 0,
    'h', 's', 'v', 'H', 'u', 'e', 'F', 0,
    'f', 'r', 'o', 'm', 'H', 's', 'v', 0,
    'f', 'r', 'o', 'm', 'R', 'g', 'b', 0,
    's', 'e', 't', 'C', 'm', 'y', 'k', 0,
    'g', 'e', 't', 'C', 'm', 'y', 'k', 0,
    'y', 'e', 'l', 'l', 'o', 'w', 'F', 0,
    's', 'e', 't', 'H', 's', 'v', 'F', 0,
    'g', 'e', 't', 'H', 's', 'v', 'F', 0,
    's', 'e', 't', 'R', 'g', 'b', 'a', 0,
    's', 'e', 't', 'R', 'g', 'b', 'F', 0,
    'g', 'e', 't', 'R', 'g', 'b', 'F', 0,
    's', 'e', 't', 'R', 'e', 'd', 'F', 0,
    's', 'e', 't', 'B', 'l', 'u', 'e', 0,
    'h', 'i', 't', 'T', 'e', 's', 't', 0,
    'p', 'a', 'i', 'n', 't', 'e', 'r', 0,
    'p', 'a', 'l', 'e', 't', 't', 'e', 0,
    'm', 'a', 't', 'c', 'h', 'e', 's', 0,
    'r', 'e', 'l', 'e', 'a', 's', 'e', 0,
    'N', 'o', 'M', 'a', 't', 'c', 'h', 0,
    's', 'e', 't', 'S', 'i', 'z', 'e', 0,
    's', 't', 'a', 'r', 't', 'e', 'd', 0,
    't', 'o', 'P', 'o', 'i', 'n', 't', 0,
    's', 'e', 't', 'H', 't', 'm', 'l', 0,
    's', 'e', 't', 'T', 'e', 'x', 't', 0,
    'Q', 'C', 'u', 'r', 's', 'o', 'r', 0,
    'Q', 'R', 'e', 'g', 'i', 'o', 'n', 0,
    'Q', 'P', 'i', 'x', 'm', 'a', 'p', 0,
    '_', '_', 'n', 'e', 'g', '_', '_', 0,
    '_', '_', 'd', 'i', 'v', '_', '_', 0,
    '_', '_', 's', 'u', 'b', '_', '_', 0,
    'm', 'a', 'r', 'g', 'i', 'n', 's', 0,
    'M', 'y', 'a', 'n', 'm', 'a', 'r', 0,
    'S', 'i', 'n', 'h', 'a', 'l', 'a', 0,
    'T', 'i', 'b', 'e', 't', 'a', 'n', 0,
    'K', 'a', 'n', 'n', 'a', 'd', 'a', 0,
    'B', 'e', 'n', 'g', 'a', 'l', 'i', 0,
    'r', 'e', 's', 'o', 'l', 'v', 'e', 0,
    'a', 'd', 'd', 'P', 'a', 't', 'h', 0,
    's', 'e', 't', 'T', 'y', 'p', 'e', 0,
    'f', 'i', 'l', 't', 'e', 'r', 's', 0,
    'M', 'a', 'x', 'U', 's', 'e', 'r', 0,
    'e', 'n', 'a', 'b', 'l', 'e', 'd', 0,
    'v', 'e', 'r', 's', 'i', 'o', 'n', 0,
    'c', 'o', 'n', 't', 'e', 'x', 't', 0,
    '_', '_', 'a', 'd', 'd', '_', '_', 0,
    'o', 'p', 't', 'i', 'o', 'n', 's', 0,
    '_', '_', 'm', 'u', 'l', '_', '_', 0,
    'r', 'e', 'p', 'l', 'a', 'c', 'e', 0,
    'p', 'r', 'e', 'p', 'e', 'n', 'd', 0,
    'i', 'n', 'd', 'e', 'x', 'O', 'f', 0,
    'i', 's', 'E', 'm', 'p', 't', 'y', 0,
    '_', '_', 'l', 'e', 'n', '_', '_', 0,
    's', 'e', 't', 'D', 'a', 't', 'a', 0,
    's', 'i', 'b', 'l', 'i', 'n', 'g', 0,
    'i', 's', 'V', 'a', 'l', 'i', 'd', 0,
    'm', 'e', 's', 's', 'a', 'g', 'e', 0,
    'F', 'o', 'r', 'w', 'a', 'r', 'd', 0,
    'm', 'a', 'g', 'e', 'n', 't', 'a', 0,
    '_', '_', 'a', 'n', 'd', '_', '_', 0,
    '_', '_', 'x', 'o', 'r', '_', '_', 0,
    '_', '_', 'i', 'n', 't', '_', '_', 0,
    '_', '_', 'i', 'o', 'r', '_', '_', 0,
    'r', 'a', 'i', 's', 'e', '_', 0,
    'n', 'o', 'r', 'm', 'a', 'l', 0,
    'T', 'x', 'N', 'o', 'n', 'e', 0,
    'r', 'o', 'w', 'E', 'n', 'd', 0,
    'c', 'e', 'l', 'l', 'A', 't', 0,
    'N', 'o', 'W', 'r', 'a', 'p', 0,
    'l', 'i', 'n', 'e', 'A', 't', 0,
    'b', 'o', 'r', 'd', 'e', 'r', 0,
    'I', 'n', 'F', 'l', 'o', 'w', 0,
    'i', 'n', 'd', 'e', 'n', 't', 0,
    's', 't', 'a', 'c', 'k', 's', 0,
    'p', 'r', 'i', 'n', 't', '_', 0,
    't', 'o', 'H', 't', 'm', 'l', 0,
    'N', 'o', 'M', 'o', 'v', 'e', 0,
    'a', 'n', 'c', 'h', 'o', 'r', 0,
    's', 't', 'e', 'r', 'e', 'o', 0,
    'c', 'a', 'n', 'c', 'e', 'l', 0,
    'q', 'A', 'l', 'p', 'h', 'a', 0,
    'q', 'G', 'r', 'e', 'e', 'n', 0,
    's', 'c', 'a', 'l', 'a', 'r', 0,
    'c', 'l', 'o', 's', 'e', 'd', 0,
    'l', 'a', 'y', 'o', 'u', 't', 0,
    'Y', 'U', 'V', '4', '1', '1', 0,
    'Y', 'U', 'V', '4', '2', '2', 0,
    'Y', 'U', 'V', '4', '4', '4', 0,
    'w', 'i', 'd', 't', 'h', 'F', 0,
    's', 'h', 'a', 'd', 'o', 'w', 0,
    'N', 'o', 'R', 'o', 'l', 'e', 0,
    'S', 'h', 'a', 'd', 'o', 'w', 0,
    'B', 'u', 't', 't', 'o', 'n', 0,
    'q', 'u', 'a', 'd', 'T', 'o', 0,
    'l', 'i', 'n', 'e', 'T', 'o', 0,
    'O', 'p', 'e', 'n', 'V', 'G', 0,
    'R', 'a', 's', 't', 'e', 'r', 0,
    's', 'c', 'a', 'l', 'e', 'Y', 0,
    's', 'c', 'a', 'l', 'e', 'X', 0,
    's', 'e', 't', 'P', 'e', 'n', 0,
    'C', 'i', 'c', 'e', 'r', 'o', 0,
    'P', 'r', 'c', '3', '2', 'K', 0,
    'P', 'r', 'c', '1', '6', 'K', 0,
    'S', 'u', 'p', 'e', 'r', 'B', 0,
    'S', 'u', 'p', 'e', 'r', 'A', 0,
    'Q', 'u', 'a', 'r', 't', 'o', 0,
    'J', 'i', 's', 'B', '1', '0', 0,
    'A', '4', 'P', 'l', 'u', 's', 0,
    'L', 'e', 'd', 'g', 'e', 'r', 0,
    'L', 'e', 't', 't', 'e', 'r', 0,
    'r', 'e', 'b', 'i', 'n', 'd', 0,
    'U', 'I', 'n', 't', '3', '2', 0,
    'U', 'I', 'n', 't', '1', '6', 0,
    'l', 'a', 'y', 'e', 'r', 's', 0,
    'R', 'G', 'B', '9', 'E', '5', 0,
    'R', 'G', 'B', '3', '2', 'F', 0,
    'R', 'G', 'B', '1', '6', 'F', 0,
    'R', 'G', 'B', '3', '2', 'I', 0,
    'R', 'G', 'B', '1', '6', 'I', 0,
    'R', 'G', 'B', 'A', '8', 'I', 0,
    'R', 'G', 'B', '3', '2', 'U', 0,
    'R', 'G', 'B', '1', '6', 'U', 0,
    'R', 'G', 'B', 'A', '8', 'U', 0,
    's', 't', 'r', 'i', 'd', 'e', 0,
    'V', 'e', 'r', 't', 'e', 'x', 0,
    'm', 'i', 'p', 'm', 'a', 'p', 0,
    's', 'h', 'a', 'r', 'e', 's', 0,
    'Q', 'M', 'o', 'v', 'i', 'e', 0,
    's', 'e', 't', 'R', 'o', 'w', 0,
    'l', 'o', 'o', 'k', 'A', 't', 0,
    'r', 'o', 't', 'a', 't', 'e', 0,
    'v', 'e', 'c', 't', 'o', 'r', 0,
    'S', 'a', 'v', 'e', 'A', 's', 0,
    'A', 'd', 'd', 'T', 'a', 'b', 0,
    'Z', 'o', 'o', 'm', 'I', 'n', 0,
    'D', 'e', 'l', 'e', 't', 'e', 0,
    'm', 'e', 't', 'r', 'i', 'c', 0,
    'i', 'n', 'F', 'o', 'n', 't', 0,
    'a', 's', 'c', 'e', 'n', 't', 0,
    's', 't', 'y', 'l', 'e', 's', 0,
    'S', 'y', 'm', 'b', 'o', 'l', 0,
    'T', 'h', 'a', 'a', 'n', 'a', 0,
    'i', 't', 'a', 'l', 'i', 'c', 0,
    'w', 'e', 'i', 'g', 'h', 't', 0,
    'f', 'a', 'm', 'i', 'l', 'y', 0,
    'r', 'e', 'a', 's', 'o', 'n', 0,
    'o', 'l', 'd', 'P', 'o', 's', 0,
    'b', 'u', 't', 't', 'o', 'n', 0,
    's', 'e', 't', 'P', 'o', 's', 0,
    'b', 'i', 't', 'm', 'a', 'p', 0,
    'r', 'a', 'd', 'i', 'u', 's', 0,
    's', 'p', 'r', 'e', 'a', 'd', 0,
    'p', 'i', 'x', 'm', 'a', 'p', 0,
    'H', 'e', 'x', 'R', 'g', 'b', 0,
    's', 'e', 't', 'H', 's', 'l', 0,
    'g', 'e', 't', 'H', 's', 'l', 0,
    'h', 's', 'l', 'H', 'u', 'e', 0,
    'h', 's', 'v', 'H', 'u', 'e', 0,
    'd', 'a', 'r', 'k', 'e', 'r', 0,
    't', 'o', 'C', 'm', 'y', 'k', 0,
    'b', 'l', 'a', 'c', 'k', 'F', 0,
    's', 'e', 't', 'H', 's', 'v', 0,
    'g', 'e', 't', 'H', 's', 'v', 0,
    'v', 'a', 'l', 'u', 'e', 'F', 0,
    's', 'e', 't', 'R', 'g', 'b', 0,
    'g', 'e', 't', 'R', 'g', 'b', 0,
    'g', 'r', 'e', 'e', 'n', 'F', 0,
    's', 'e', 't', 'R', 'e', 'd', 0,
    'a', 'l', 'p', 'h', 'a', 'F', 0,
    'm', 'a', 't', 'r', 'i', 'x', 0,
    's', 'c', 'r', 'o', 'l', 'l', 0,
    'r', 'e', 'g', 'i', 'o', 'n', 0,
    'w', 'i', 'n', 'd', 'o', 'w', 0,
    'u', 'p', 'd', 'a', 't', 'e', 0,
    'c', 'u', 'r', 's', 'o', 'r', 0,
    's', 'c', 'a', 'l', 'e', 'd', 0,
    'c', 'r', 'e', 'a', 't', 'e', 0,
    'c', 'o', 'm', 'm', 'i', 't', 0,
    'u', 'n', 'i', 't', 'e', 'd', 0,
    'm', 'o', 'v', 'e', 'T', 'o', 0,
    'c', 'e', 'n', 't', 'e', 'r', 0,
    'p', 'r', 'o', 'p', 'e', 'r', 0,
    's', 'e', 'n', 'd', 'e', 'r', 0,
    'r', 'e', 'g', 'E', 'x', 'p', 0,
    'Q', 'I', 'm', 'a', 'g', 'e', 0,
    'Q', 'C', 'o', 'l', 'o', 'r', 0,
    'Q', 'B', 'r', 'u', 's', 'h', 0,
    'v', 'a', 'l', 'u', 'e', '9', 0,
    'v', 'a', 'l', 'u', 'e', '8', 0,
    'v', 'a', 'l', 'u', 'e', '7', 0,
    'v', 'a', 'l', 'u', 'e', '6', 0,
    'v', 'a', 'l', 'u', 'e', '5', 0,
    'v', 'a', 'l', 'u', 'e', '4', 0,
    'v', 'a', 'l', 'u', 'e', '3', 0,
    'v', 'a', 'l', 'u', 'e', '2', 0,
    'v', 'a', 'l', 'u', 'e', '1', 0,
    'v', 'a', 'l', 'u', 'e', '0', 0,
    'm', 'a', 'r', 'g', 'i', 'n', 0,
    'f', 'a', 'c', 't', 'o', 'r', 0,
    's', 'e', 't', 'T', 'o', 'p', 0,
    'S', 'y', 'r', 'i', 'a', 'c', 0,
    'T', 'e', 'l', 'u', 'g', 'u', 0,
    'K', 'o', 'r', 'e', 'a', 'n', 0,
    'H', 'e', 'b', 'r', 'e', 'w', 0,
    'A', 'r', 'a', 'b', 'i', 'c', 0,
    's', 'y', 'm', 'b', 'o', 'l', 0,
    'h', 'e', 'i', 'g', 'h', 't', 0,
    'b', 'o', 't', 't', 'o', 'm', 0,
    's', 'u', 'f', 'f', 'i', 'x', 0,
    'o', 'f', 'f', 's', 'e', 't', 0,
    'h', 'a', 'n', 'd', 'l', 'e', 0,
    'C', 'u', 's', 't', 'o', 'm', 0,
    'p', 'r', 'e', 'f', 'i', 'x', 0,
    'f', 'i', 'l', 't', 'e', 'r', 0,
    'H', 'i', 'd', 'd', 'e', 'n', 0,
    's', 't', 'a', 't', 'u', 's', 0,
    'd', 'e', 'v', 'i', 'c', 'e', 0,
    'i', 'g', 'n', 'o', 'r', 'e', 0,
    'a', 'c', 'c', 'e', 'p', 't', 0,
    'n', 'o', 't', 'i', 'f', 'y', 0,
    'o', 'p', 't', 'i', 'o', 'n', 0,
    'l', 'o', 'c', 'a', 'l', 'e', 0,
    '_', '_', 'g', 'e', '_', '_', 0,
    '_', '_', 'l', 'e', '_', '_', 0,
    '_', '_', 'g', 't', '_', '_', 0,
    'b', 'e', 'f', 'o', 'r', 'e', 0,
    'r', 'e', 'm', 'o', 'v', 'e', 0,
    'i', 'n', 's', 'e', 'r', 't', 0,
    'a', 'p', 'p', 'e', 'n', 'd', 0,
    'l', 'e', 'n', 'g', 't', 'h', 0,
    'd', 'e', 't', 'a', 'c', 'h', 0,
    'r', 'e', 's', 'i', 'z', 'e', 0,
    'i', 's', 'N', 'u', 'l', 'l', 0,
    't', 'a', 'r', 'g', 'e', 't', 0,
    'r', 'e', 'v', 'e', 'r', 't', 0,
    's', 'u', 'b', 'm', 'i', 't', 0,
    '_', '_', 'l', 't', '_', '_', 0,
    'c', 'o', 'l', 'u', 'm', 'n', 0,
    'o', 'b', 'j', 'e', 'c', 't', 0,
    'p', 'a', 'r', 'e', 'n', 't', 0,
    'y', 'e', 'l', 'l', 'o', 'w', 0,
    '_', '_', 'n', 'e', '_', '_', 0,
    '_', '_', 'e', 'q', '_', '_', 0,
    '_', '_', 'o', 'r', '_', '_', 0,
    'a', 'l', 'e', 'r', 't', 0,
    'l', 'o', 'w', 'e', 'r', 0,
    'w', 'i', 'n', 'I', 'd', 0,
    'f', 'i', 'x', 'u', 'p', 0,
    'd', 'e', 'l', 'i', 'm', 0,
    'p', 'r', 'i', 'n', 't', 0,
    'q', 'G', 'r', 'a', 'y', 0,
    'q', 'R', 'g', 'b', 'a', 0,
    'q', 'B', 'l', 'u', 'e', 0,
    'x', 'o', 'r', 'e', 'd', 0,
    'n', 'l', 'e', 'r', 'p', 0,
    's', 'l', 'e', 'r', 'p', 0,
    'A', 't', 'E', 'n', 'd', 0,
    't', 'i', 't', 'l', 'e', 0,
    'a', 'r', 'c', 'T', 'o', 0,
    'r', 'e', 'c', 't', 's', 0,
    's', 'h', 'e', 'a', 'r', 0,
    'D', 'i', 'd', 'o', 't', 0,
    'u', 'n', 'i', 't', 's', 0,
    'A', 'n', 's', 'i', 'B', 0,
    'A', 'n', 's', 'i', 'A', 0,
    'A', 'r', 'c', 'h', 'E', 0,
    'A', 'r', 'c', 'h', 'D', 0,
    'A', 'r', 'c', 'h', 'C', 0,
    'A', 'r', 'c', 'h', 'B', 0,
    'A', 'r', 'c', 'h', 'A', 0,
    'A', 'n', 's', 'i', 'E', 0,
    'A', 'n', 's', 'i', 'D', 0,
    'A', 'n', 's', 'i', 'C', 0,
    'J', 'i', 's', 'B', '9', 0,
    'J', 'i', 's', 'B', '8', 0,
    'J', 'i', 's', 'B', '7', 0,
    'J', 'i', 's', 'B', '6', 0,
    'J', 'i', 's', 'B', '5', 0,
    'J', 'i', 's', 'B', '4', 0,
    'J', 'i', 's', 'B', '3', 0,
    'J', 'i', 's', 'B', '2', 0,
    'J', 'i', 's', 'B', '1', 0,
    'J', 'i', 's', 'B', '0', 0,
    'F', 'o', 'l', 'i', 'o', 0,
    'b', 'e', 'g', 'i', 'n', 0,
    'U', 'I', 'n', 't', '8', 0,
    'f', 'a', 'c', 'e', 's', 0,
    'S', 'R', 'G', 'B', '8', 0,
    'R', 'G', '3', '2', 'F', 0,
    'R', 'G', '1', '6', 'F', 0,
    'R', 'G', '3', '2', 'I', 0,
    'R', 'G', '1', '6', 'I', 0,
    'R', 'G', 'B', '8', 'I', 0,
    'R', 'G', '3', '2', 'U', 0,
    'R', 'G', '1', '6', 'U', 0,
    'R', 'G', 'B', '8', 'U', 0,
    'L', 'i', 'b', 'G', 'L', 0,
    's', 'p', 'e', 'e', 'd', 0,
    'o', 'r', 't', 'h', 'o', 0,
    'P', 'r', 'i', 'n', 't', 0,
    'P', 'a', 's', 't', 'e', 0,
    'C', 'l', 'i', 'c', 'k', 0,
    'g', 'a', 'm', 'm', 'a', 0,
    'p', 'i', 'x', 'e', 'l', 0,
    'd', 'e', 'p', 't', 'h', 0,
    's', 'i', 'z', 'e', 's', 0,
    'c', 'l', 'o', 'n', 'e', 0,
    'p', 'a', 'i', 'n', 't', 0,
    'R', 'u', 'n', 'i', 'c', 0,
    'O', 'g', 'h', 'a', 'm', 0,
    'B', 'l', 'a', 'c', 'k', 0,
    'T', 'i', 'm', 'e', 's', 0,
    'O', 't', 'h', 'e', 'r', 0,
    'y', 'T', 'i', 'l', 't', 0,
    'x', 'T', 'i', 'l', 't', 0,
    'p', 'h', 'a', 's', 'e', 0,
    'Q', 'D', 'r', 'a', 'g', 0,
    's', 't', 'o', 'p', 's', 0,
    't', 'o', 'H', 's', 'l', 0,
    't', 'o', 'H', 's', 'v', 0,
    't', 'o', 'R', 'g', 'b', 0,
    'c', 'y', 'a', 'n', 'F', 0,
    'b', 'l', 'u', 'e', 'F', 0,
    'a', 'l', 'p', 'h', 'a', 0,
    'b', 'l', 'o', 'c', 'k', 0,
    's', 'h', 'a', 'p', 'e', 0,
    'c', 'o', 'd', 'e', 'c', 0,
    't', 'y', 'p', 'e', 's', 0,
    'c', 'o', 'l', 'o', 'r', 0,
    'i', 'm', 'a', 'g', 'e', 0,
    'Q', 'I', 'c', 'o', 'n', 0,
    'Q', 'F', 'o', 'n', 't', 0,
    's', 't', 'y', 'l', 'e', 0,
    'K', 'h', 'm', 'e', 'r', 0,
    'T', 'a', 'm', 'i', 'l', 0,
    'O', 'r', 'i', 'y', 'a', 0,
    'L', 'a', 't', 'i', 'n', 0,
    'G', 'r', 'e', 'e', 'k', 0,
    'p', 'o', 'i', 'n', 't', 0,
    'h', 'i', 'n', 't', 's', 0,
    'm', 'e', 'r', 'g', 'e', 0,
    'w', 'r', 'i', 't', 'e', 0,
    'u', 'n', 'm', 'a', 'p', 0,
    'e', 'r', 'r', 'o', 'r', 0,
    'r', 'e', 's', 'e', 't', 0,
    'C', 'l', 'o', 's', 'e', 0,
    'e', 'x', 'e', 'c', '_', 0,
    'w', 'i', 'd', 't', 'h', 0,
    'r', 'i', 'g', 'h', 't', 0,
    'a', 't', 'E', 'n', 'd', 0,
    'c', 'l', 'o', 's', 'e', 0,
    'c', 'l', 'e', 'a', 'r', 0,
    'f', 'i', 'r', 's', 't', 0,
    'm', 'a', 't', 'c', 'h', 0,
    'b', 'u', 'd', 'd', 'y', 0,
    'c', 'o', 'u', 'n', 't', 0,
    'v', 'a', 'l', 'u', 'e', 0,
    'i', 'n', 'd', 'e', 'x', 0,
    'm', 'o', 'd', 'e', 'l', 0,
    'c', 'h', 'i', 'l', 'd', 0,
    'f', 'l', 'u', 's', 'h', 0,
    'f', 'l', 'a', 'g', 's', 0,
    'e', 'v', 'e', 'n', 't', 0,
    'm', 's', 'e', 'c', 's', 0,
    's', 't', 'a', 'r', 't', 0,
    'g', 'r', 'e', 'e', 'n', 0,
    'b', 'l', 'a', 'c', 'k', 0,
    's', 'e', 't', 'W', 0,
    'e', 'd', 'g', 'e', 0,
    't', 'a', 'b', 's', 0,
    'r', 'e', 'd', 'o', 0,
    'u', 'n', 'd', 'o', 0,
    'D', 'o', 'w', 'n', 0,
    'r', 'o', 'w', 's', 0,
    'q', 'R', 'g', 'b', 0,
    'q', 'R', 'e', 'd', 0,
    's', 'e', 't', 'Z', 0,
    'a', 'x', 'i', 's', 0,
    'f', 'i', 'n', 'd', 0,
    'I', 'M', 'C', '4', 0,
    'I', 'M', 'C', '3', 0,
    'I', 'M', 'C', '2', 0,
    'I', 'M', 'C', '1', 0,
    'N', 'V', '2', '1', 0,
    'N', 'V', '1', '2', 0,
    'Y', 'U', 'Y', 'V', 0,
    'U', 'Y', 'V', 'Y', 0,
    'Y', 'V', '1', '2', 0,
    'C', 'M', 'Y', 'K', 0,
    'p', 'l', 'a', 'y', 0,
    'j', 'o', 'i', 'n', 0,
    'L', 'i', 'n', 'k', 0,
    'D', 'a', 'r', 'k', 0,
    'd', 'a', 'r', 'k', 0,
    'P', 'i', 'c', 'a', 0,
    'N', 'o', 't', 'e', 0,
    'B', 'G', 'R', 'A', 0,
    'R', 'G', 'B', 'A', 0,
    'D', '3', '2', 'F', 0,
    'R', '3', '2', 'F', 0,
    'R', '1', '6', 'F', 0,
    'R', '3', '2', 'I', 0,
    'R', '1', '6', 'I', 0,
    'R', 'G', '8', 'I', 0,
    'R', '3', '2', 'U', 0,
    'R', '1', '6', 'U', 0,
    'R', 'G', '8', 'U', 0,
    'k', 'e', 'y', '4', 0,
    'k', 'e', 'y', '3', 0,
    'k', 'e', 'y', '2', 0,
    'Q', 'u', 'i', 't', 0,
    'F', 'i', 'n', 'd', 0,
    'B', 'a', 'c', 'k', 0,
    'R', 'e', 'd', 'o', 0,
    'U', 'n', 'd', 'o', 0,
    'S', 'a', 'v', 'e', 0,
    'h', 'i', 'd', 'e', 0,
    's', 'h', 'o', 'w', 0,
    'i', 'c', 'o', 'n', 0,
    'f', 'o', 'n', 't', 0,
    'b', 'o', 'l', 'd', 0,
    'h', 'r', 'e', 'f', 0,
    'R', 'u', 'b', 'y', 0,
    'P', 'u', 'c', 'k', 0,
    'p', 'o', 's', 'F', 0,
    'h', 'o', 't', 'Y', 0,
    'h', 'o', 't', 'X', 0,
    'h', 'u', 'e', 'F', 0,
    'r', 'g', 'b', 'a', 0,
    'r', 'e', 'd', 'F', 0,
    'b', 'i', 't', 's', 0,
    'i', 't', 'e', 'm', 0,
    'r', 'e', 'c', 't', 0,
    'd', 'r', 'a', 'w', 0,
    'c', 'l', 'i', 'p', 0,
    's', 'a', 'v', 'e', 0,
    'O', 'p', 'e', 'n', 0,
    's', 'y', 'n', 'c', 0,
    's', 'e', 't', 'Y', 0,
    's', 'e', 't', 'X', 0,
    'Q', 'P', 'e', 'n', 0,
    'T', 'h', 'a', 'i', 0,
    'l', 'o', 'a', 'd', 0,
    'm', 'o', 'd', 'e', 0,
    'c', 'o', 'p', 'y', 0,
    'l', 'i', 'n', 'k', 0,
    'n', 'e', 'x', 't', 0,
    's', 'p', 'e', 'c', 0,
    'e', 'x', 'e', 'c', 0,
    'n', 'a', 'm', 'e', 0,
    'l', 'e', 'f', 't', 0,
    'f', 'i', 'l', 'l', 0,
    'f', 'r', 'o', 'm', 0,
    'l', 'a', 's', 't', 0,
    's', 'p', 'a', 'n', 0,
    's', 'o', 'r', 't', 0,
    's', 'w', 'a', 'p', 0,
    'd', 'a', 't', 'a', 0,
    'r', 'o', 'l', 'e', 0,
    's', 't', 'o', 'p', 0,
    'c', 'y', 'a', 'n', 0,
    'b', 'l', 'u', 'e', 0,
    'm', 'a', 's', 'k', 0,
    'Y', '1', '6', 0,
    'Y', 'U', 'V', 0,
    'H', 'S', 'V', 0,
    'H', 'S', 'L', 0,
    'M', 'i', 'd', 0,
    'P', 'd', 'f', 0,
    'S', 'V', 'G', 0,
    'X', '1', '1', 0,
    'A', '1', '0', 0,
    'D', 'L', 'E', 0,
    'C', '5', 'E', 0,
    'B', 'G', 'R', 0,
    'R', 'G', 'B', 0,
    'D', '3', '2', 0,
    'D', '2', '4', 0,
    'D', '1', '6', 0,
    'R', '8', 'I', 0,
    'R', '8', 'U', 0,
    'l', 'o', 'g', 0,
    'm', '3', '3', 0,
    'm', '3', '2', 0,
    'm', '3', '1', 0,
    'm', '2', '3', 0,
    'm', '2', '2', 0,
    'm', '2', '1', 0,
    'm', '1', '3', 0,
    'm', '1', '2', 0,
    'm', '1', '1', 0,
    'C', 'u', 't', 0,
    'N', 'e', 'w', 0,
    'O', 'f', 'f', 0,
    'N', 'k', 'o', 0,
    'A', 'n', 'y', 0,
    't', 'i', 'p', 0,
    'h', 'u', 'e', 0,
    'c', 'a', 'p', 0,
    'a', 'd', 'd', 0,
    'u', 'r', 'l', 0,
    'L', 'a', 'o', 0,
    'k', 'e', 'y', 0,
    'm', 'i', 'd', 0,
    'p', 'o', 's', 0,
    'r', 'o', 'w', 0,
    'U', 'p', 0,
    'Y', '8', 0,
    's', 'w', 0,
    's', 'x', 0,
    'A', '9', 0,
    'A', '7', 0,
    'A', '6', 0,
    'A', '5', 0,
    'A', '3', 0,
    'A', '0', 0,
    'R', 'G', 0,
    'O', 'n', 0,
    'd', 'x', 0,
    'Q', 't', 0,
    'z', 0,
};
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 160 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
// Convert an optional Python list to a 0 terminated array of integers on the
// heap.
int *qtgui_tabarray(PyObject *l)
{
    if (!l || l == Py_None)
        return 0;

    int *arr = new int[PyList_GET_SIZE(l) + 1];
    SIP_SSIZE_T i;

    for (i = 0; i < PyList_GET_SIZE(l); ++i)
        arr[i] = SIPLong_AsLong(PyList_GET_ITEM(l, i));

    arr[i] = 0;

    return arr;
}
#line 283 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qguiapplication.sip"
// Imports from QtCore.
pyqt5_qtgui_from_argv_list_t pyqt5_qtgui_from_argv_list;
pyqt5_qtgui_update_argv_list_t pyqt5_qtgui_update_argv_list;
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 216 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
// Convert a list of strings to an array of ASCII strings on the heap.  Used by
// QImage and QPixmap.
const char **QtGui_ListToArray(PyObject *lst)
{
    SIP_SSIZE_T nstr = PyList_Size(lst);
    const char **arr = new const char *[nstr + 1];

    for (SIP_SSIZE_T i = 0; i < nstr; ++i)
    {
        PyObject *ascii_obj = PyList_GetItem(lst, i);
        const char *ascii = sipString_AsASCIIString(&ascii_obj);

        if (!ascii)
        {
            while (i-- > 0)
                delete[] arr[i];

            delete[] arr;

            return 0;
        }

        // Copy the string.
        arr[i] = qstrdup(ascii);

        Py_DECREF(ascii_obj);
    }

    // The sentinal.
    arr[nstr] = 0;

    return arr;
}


// Return a string array created by QtGui_ListToArray() to the heap.
void QtGui_DeleteArray(const char **arr)
{
    for (SIP_SSIZE_T i = 0; arr[i]; ++i)
        delete[] arr[i];

    delete[] arr;
}
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 225 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
// Convert a Python object to a row and column.
sipErrorState qtgui_matrixParseIndex(PyObject *tup, int nr_rows,
        int nr_columns, int *row, int *column)
{
    sipErrorState es = sipErrorContinue;

    if (PyTuple_Check(tup) && PyArg_ParseTuple(tup, "ii", row, column))
        if (*row >= 0 && *row < nr_rows && *column >= 0 && *column < nr_columns)
            es = sipErrorNone;

    if (es == sipErrorContinue)
        PyErr_Format(PyExc_IndexError, "an index must be a row in the range 0 to %d and a column in the range 0 to %d", nr_rows - 1, nr_columns - 1);

    return es;
}


// Convert a Python object to an array of qreals.
sipErrorState qtgui_matrixDataFromSequence(PyObject *seq, int nr_values,
        PYQT_FLOAT *values)
{
    sipErrorState es;

    if (PySequence_Size(seq) == nr_values)
    {
        es = sipErrorNone;

        for (int i = 0; i < nr_values; ++i)
        {
            PyObject *value = PySequence_GetItem(seq, i);

            if (!value)
            {
                es = sipErrorFail;
                break;
            }

            PyErr_Clear();

            double d = PyFloat_AsDouble(value);

            if (PyErr_Occurred())
            {
                Py_DECREF(value);
                es = sipErrorContinue;
                break;
            }

            Py_DECREF(value);

            *values++ = d;
        }
    }
    else
    {
        es = sipErrorContinue;
    }

    if (es == sipErrorContinue)
        PyErr_Format(PyExc_TypeError, "a sequence of %d floats is expected",
                nr_values);

    return es;
}


// Convert an array of qreals to a Python list.
sipErrorState qtgui_matrixDataAsList(int nr_values, const PYQT_FLOAT *values,
        PyObject **list)
{
    PyObject *l = PyList_New(nr_values);

    if (!l)
        return sipErrorFail;

    for (int i = 0; i < nr_values; ++i)
    {
        PyObject *value = PyFloat_FromDouble(*values++);

        if (!value)
        {
            Py_DECREF(l);
            return sipErrorFail;
        }

        PyList_SET_ITEM(l, i, value);
    }

    *list = l;

    return sipErrorNone;
}
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixelformat.sip"
#include <qpixelformat.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qquaternion.sip"
#include <qquaternion.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrgb.sip"
#include <qrgb.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 271 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
// Wrap a QObject and ensure that it's ancestors are all wrapped with the
// correct ownerships.
static PyObject *qtgui_wrap_ancestors_worker(QObject *obj)
{
    if (!obj)
    {
        Py_INCREF(Py_None);
        return Py_None;
    }

    PyObject *py_parent = qtgui_wrap_ancestors_worker(obj->parent());

    if (!py_parent)
        return 0;

    PyObject *py_obj = sipConvertFromType(obj, sipType_QObject,
            (py_parent != Py_None ? py_parent : 0));

    Py_DECREF(py_parent);
    return py_obj;
}

PyObject *qtgui_wrap_ancestors(QObject *obj, const sipTypeDef *td)
{
    PyObject *py_parent = qtgui_wrap_ancestors_worker(obj->parent());

    if (!py_parent)
        return 0;

    PyObject *py_obj = sipConvertFromType(obj, td,
            (py_parent != Py_None ? py_parent : 0));

    Py_DECREF(py_parent);

    return py_obj;
}
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 24 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 4071 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

void sipVH_QtGui_0(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QTabletEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QTabletEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_1(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QTouchEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QTouchEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_2(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QWheelEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QWheelEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_3(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QMouseEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QMouseEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_4(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QKeyEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QKeyEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_5(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QHideEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QHideEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_6(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QShowEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QShowEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_7(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QFocusEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QFocusEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_8(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QMoveEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QMoveEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_9(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QResizeEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QResizeEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_10(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QExposeEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QExposeEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QObject* sipVH_QtGui_11(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QObject* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H0", sipType_QObject, &sipRes);

    return sipRes;
}

QSize sipVH_QtGui_12(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QSize sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QSize, &sipRes);

    return sipRes;
}

QSurfaceFormat sipVH_QtGui_13(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QSurfaceFormat sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QSurfaceFormat, &sipRes);

    return sipRes;
}

QSurface::SurfaceType sipVH_QtGui_14(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QSurface::SurfaceType sipRes = (QSurface::SurfaceType)0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "F", sipType_QSurface_SurfaceType, &sipRes);

    return sipRes;
}

QValidator::State sipVH_QtGui_15(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QString& a0,int& a1)
{
    QValidator::State sipRes = (QValidator::State)0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "Di",&a0,sipType_QString,NULL,a1);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "(FH5i)", sipType_QValidator_State, &sipRes, sipType_QString, &a0, &a1);

    return sipRes;
}

void sipVH_QtGui_16(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, double a0,double a1,int a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "ddi",a0,a1,a2);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_17(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0,int a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "ii",a0,a1);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_18(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QString& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",&a0,sipType_QString,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QString, &a0);
}

void sipVH_QtGui_19(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QTextBlock& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QTextBlock(a0),sipType_QTextBlock,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QVariant sipVH_QtGui_20(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0,const QUrl& a1)
{
    QVariant sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "iN",a0,new QUrl(a1),sipType_QUrl,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QVariant, &sipRes);

    return sipRes;
}

QTextObject* sipVH_QtGui_21(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QTextFormat& a0)
{
    QTextObject* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QTextFormat(a0),sipType_QTextFormat,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H2", sipType_QTextObject, &sipRes);

    return sipRes;
}

void sipVH_QtGui_22(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QString& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QString(a0),sipType_QString,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

bool sipVH_QtGui_23(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QStandardItem& a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",const_cast<QStandardItem *>(&a0),sipType_QStandardItem,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);

    return sipRes;
}

void sipVH_QtGui_24(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QDataStream& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",&a0,sipType_QDataStream,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QStandardItem* sipVH_QtGui_25(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QStandardItem* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H2", sipType_QStandardItem, &sipRes);

    return sipRes;
}

void sipVH_QtGui_26(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QVariant& a0,int a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "Ni",new QVariant(a0),sipType_QVariant,NULL,a1);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QVariant sipVH_QtGui_27(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0)
{
    QVariant sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "i",a0);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QVariant, &sipRes);

    return sipRes;
}

int sipVH_QtGui_28(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPaintDevice::PaintDeviceMetric a0)
{
    int sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "F",a0,sipType_QPaintDevice_PaintDeviceMetric);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "i", &sipRes);

    return sipRes;
}

QPaintEngine* sipVH_QtGui_29(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QPaintEngine* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H0", sipType_QPaintEngine, &sipRes);

    return sipRes;
}

void sipVH_QtGui_30(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const char*a0,uint a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "g",a0,(SIP_SSIZE_T)a1);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_31(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPagedPaintDevice::Margins& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QPagedPaintDevice::Margins(a0),sipType_QPagedPaintDevice_Margins,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_32(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QSizeF& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QSizeF(a0),sipType_QSizeF,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_33(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPagedPaintDevice::PageSize a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "F",a0,sipType_QPagedPaintDevice_PageSize);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QPaintEngine::Type sipVH_QtGui_34(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QPaintEngine::Type sipRes = (QPaintEngine::Type)0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "F", sipType_QPaintEngine_Type, &sipRes);

    return sipRes;
}

void sipVH_QtGui_35(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QRectF& a0,const QImage& a1,const QRectF& a2,Qt::ImageConversionFlags a3)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NNNN",new QRectF(a0),sipType_QRectF,NULL,new QImage(a1),sipType_QImage,NULL,new QRectF(a2),sipType_QRectF,NULL,new Qt::ImageConversionFlags(a3),sipType_Qt_ImageConversionFlags,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_36(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QRectF& a0,const QPixmap& a1,const QPointF& a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NNN",new QRectF(a0),sipType_QRectF,NULL,new QPixmap(a1),sipType_QPixmap,NULL,new QPointF(a2),sipType_QPointF,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_37(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPointF& a0,const QTextItem& a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "ND",new QPointF(a0),sipType_QPointF,NULL,const_cast<QTextItem *>(&a1),sipType_QTextItem,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_38(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QRectF& a0,const QPixmap& a1,const QRectF& a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NNN",new QRectF(a0),sipType_QRectF,NULL,new QPixmap(a1),sipType_QPixmap,NULL,new QRectF(a2),sipType_QRectF,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_39(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPoint*a0,int a1,QPaintEngine::PolygonDrawMode a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "rF",const_cast<QPoint *>(a0),(SIP_SSIZE_T)a1,sipType_QPoint,a2,sipType_QPaintEngine_PolygonDrawMode);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_40(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPointF*a0,int a1,QPaintEngine::PolygonDrawMode a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "rF",const_cast<QPointF *>(a0),(SIP_SSIZE_T)a1,sipType_QPointF,a2,sipType_QPaintEngine_PolygonDrawMode);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_41(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPoint*a0,int a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "r",const_cast<QPoint *>(a0),(SIP_SSIZE_T)a1,sipType_QPoint);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_42(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPointF*a0,int a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "r",const_cast<QPointF *>(a0),(SIP_SSIZE_T)a1,sipType_QPointF);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_43(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPainterPath& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QPainterPath(a0),sipType_QPainterPath,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_44(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QRect& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QRect(a0),sipType_QRect,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_45(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QRectF& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QRectF(a0),sipType_QRectF,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_46(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QLineF*a0,int a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "r",const_cast<QLineF *>(a0),(SIP_SSIZE_T)a1,sipType_QLineF);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_47(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QLine*a0,int a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "r",const_cast<QLine *>(a0),(SIP_SSIZE_T)a1,sipType_QLine);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_48(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QRectF*a0,int a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "r",const_cast<QRectF *>(a0),(SIP_SSIZE_T)a1,sipType_QRectF);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_49(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QRect*a0,int a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "r",const_cast<QRect *>(a0),(SIP_SSIZE_T)a1,sipType_QRect);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_50(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPaintEngineState& a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",const_cast<QPaintEngineState *>(&a0),sipType_QPaintEngineState,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

bool sipVH_QtGui_51(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPaintDevice*a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QPaintDevice,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);

    return sipRes;
}

void sipVH_QtGui_52(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPaintEvent*a0)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QPaintEvent,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QRect sipVH_QtGui_53(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QRect sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QRect, &sipRes);

    return sipRes;
}

bool sipVH_QtGui_54(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QImageIOHandler::ImageOption a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "F",a0,sipType_QImageIOHandler_ImageOption);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);

    return sipRes;
}

void sipVH_QtGui_55(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QImageIOHandler::ImageOption a0,const QVariant& a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "FN",a0,sipType_QImageIOHandler_ImageOption,new QVariant(a1),sipType_QVariant,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QVariant sipVH_QtGui_56(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QImageIOHandler::ImageOption a0)
{
    QVariant sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "F",a0,sipType_QImageIOHandler_ImageOption);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QVariant, &sipRes);

    return sipRes;
}

bool sipVH_QtGui_57(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QImage& a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QImage(a0),sipType_QImage,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);

    return sipRes;
}

bool sipVH_QtGui_58(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QImage*a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QImage,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);

    return sipRes;
}

QList<QSize> sipVH_QtGui_59(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QIcon::Mode a0,QIcon::State a1)
{
    QList<QSize> sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "FF",a0,sipType_QIcon_Mode,a1,sipType_QIcon_State);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QList_0100QSize, &sipRes);

    return sipRes;
}

bool sipVH_QtGui_60(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QDataStream& a0)
{
    bool sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",&a0,sipType_QDataStream,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "b", &sipRes);

    return sipRes;
}

QIconEngine* sipVH_QtGui_61(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QIconEngine* sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H2", sipType_QIconEngine, &sipRes);

    return sipRes;
}

void sipVH_QtGui_62(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QString& a0,const QSize& a1,QIcon::Mode a2,QIcon::State a3)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NNFF",new QString(a0),sipType_QString,NULL,new QSize(a1),sipType_QSize,NULL,a2,sipType_QIcon_Mode,a3,sipType_QIcon_State);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_63(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPixmap& a0,QIcon::Mode a1,QIcon::State a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NFF",new QPixmap(a0),sipType_QPixmap,NULL,a1,sipType_QIcon_Mode,a2,sipType_QIcon_State);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QPixmap sipVH_QtGui_64(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QSize& a0,QIcon::Mode a1,QIcon::State a2)
{
    QPixmap sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NFF",new QSize(a0),sipType_QSize,NULL,a1,sipType_QIcon_Mode,a2,sipType_QIcon_State);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QPixmap, &sipRes);

    return sipRes;
}

QSize sipVH_QtGui_65(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QSize& a0,QIcon::Mode a1,QIcon::State a2)
{
    QSize sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NFF",new QSize(a0),sipType_QSize,NULL,a1,sipType_QIcon_Mode,a2,sipType_QIcon_State);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QSize, &sipRes);

    return sipRes;
}

void sipVH_QtGui_66(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPainter*a0,const QRect& a1,QIcon::Mode a2,QIcon::State a3)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "DNFF",a0,sipType_QPainter,NULL,new QRect(a1),sipType_QRect,NULL,a2,sipType_QIcon_Mode,a3,sipType_QIcon_State);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_67(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPainter*a0,const QRectF& a1,QTextDocument*a2,int a3,const QTextFormat& a4)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "DNDiN",a0,sipType_QPainter,NULL,new QRectF(a1),sipType_QRectF,NULL,a2,sipType_QTextDocument,NULL,a3,new QTextFormat(a4),sipType_QTextFormat,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QSizeF sipVH_QtGui_68(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QTextDocument*a0,int a1,const QTextFormat& a2)
{
    QSizeF sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "DiN",a0,sipType_QTextDocument,NULL,a1,new QTextFormat(a2),sipType_QTextFormat,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QSizeF, &sipRes);

    return sipRes;
}

void sipVH_QtGui_69(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPainter*a0,const QRectF& a1,QTextInlineObject a2,int a3,const QTextFormat& a4)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "DNNiN",a0,sipType_QPainter,NULL,new QRectF(a1),sipType_QRectF,NULL,new QTextInlineObject(a2),sipType_QTextInlineObject,NULL,a3,new QTextFormat(a4),sipType_QTextFormat,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_70(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QTextInlineObject a0,int a1,const QTextFormat& a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NiN",new QTextInlineObject(a0),sipType_QTextInlineObject,NULL,a1,new QTextFormat(a2),sipType_QTextFormat,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

void sipVH_QtGui_71(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, int a0,int a1,int a2)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "iii",a0,a1,a2);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}

QRectF sipVH_QtGui_72(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QTextBlock& a0)
{
    QRectF sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "N",new QTextBlock(a0),sipType_QTextBlock,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QRectF, &sipRes);

    return sipRes;
}

QRectF sipVH_QtGui_73(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QTextFrame*a0)
{
    QRectF sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "D",a0,sipType_QTextFrame,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QRectF, &sipRes);

    return sipRes;
}

QSizeF sipVH_QtGui_74(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod)
{
    QSizeF sipRes;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "");

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "H5", sipType_QSizeF, &sipRes);

    return sipRes;
}

int sipVH_QtGui_75(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, const QPointF& a0,Qt::HitTestAccuracy a1)
{
    int sipRes = 0;
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "NF",new QPointF(a0),sipType_QPointF,NULL,a1,sipType_Qt_HitTestAccuracy);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "i", &sipRes);

    return sipRes;
}

void sipVH_QtGui_76(sip_gilstate_t sipGILState, sipVirtErrorHandlerFunc sipErrorHandler, sipSimpleWrapper *sipPySelf, PyObject *sipMethod, QPainter*a0,const QAbstractTextDocumentLayout::PaintContext& a1)
{
    PyObject *sipResObj = sipCallMethod(0, sipMethod, "DN",a0,sipType_QPainter,NULL,new QAbstractTextDocumentLayout::PaintContext(a1),sipType_QAbstractTextDocumentLayout_PaintContext,NULL);

    sipParseResultEx(sipGILState, sipErrorHandler, sipPySelf, sipMethod, sipResObj, "Z");
}


PyDoc_STRVAR(doc_qUnpremultiply, "qUnpremultiply(int) -> int");

extern "C" {static PyObject *func_qUnpremultiply(PyObject *,PyObject *);}
static PyObject *func_qUnpremultiply(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
            QRgb sipRes;

            sipRes = qUnpremultiply(a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qUnpremultiply, doc_qUnpremultiply);

    return NULL;
}


PyDoc_STRVAR(doc_qPremultiply, "qPremultiply(int) -> int");

extern "C" {static PyObject *func_qPremultiply(PyObject *,PyObject *);}
static PyObject *func_qPremultiply(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
            QRgb sipRes;

            sipRes = qPremultiply(a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qPremultiply, doc_qPremultiply);

    return NULL;
}


PyDoc_STRVAR(doc_qIsGray, "qIsGray(int) -> bool");

extern "C" {static PyObject *func_qIsGray(PyObject *,PyObject *);}
static PyObject *func_qIsGray(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
            bool sipRes;

            sipRes = qIsGray(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qIsGray, doc_qIsGray);

    return NULL;
}


PyDoc_STRVAR(doc_qGray, "qGray(int, int, int) -> int\n"
    "qGray(int) -> int");

extern "C" {static PyObject *func_qGray(PyObject *,PyObject *);}
static PyObject *func_qGray(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "iii", &a0, &a1, &a2))
        {
            int sipRes;

            sipRes = qGray(a0,a1,a2);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        QRgb a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
            int sipRes;

            sipRes = qGray(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qGray, doc_qGray);

    return NULL;
}


PyDoc_STRVAR(doc_qRgba, "qRgba(int, int, int, int) -> int");

extern "C" {static PyObject *func_qRgba(PyObject *,PyObject *);}
static PyObject *func_qRgba(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "iiii", &a0, &a1, &a2, &a3))
        {
            QRgb sipRes;

            sipRes = qRgba(a0,a1,a2,a3);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qRgba, doc_qRgba);

    return NULL;
}


PyDoc_STRVAR(doc_qRgb, "qRgb(int, int, int) -> int");

extern "C" {static PyObject *func_qRgb(PyObject *,PyObject *);}
static PyObject *func_qRgb(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "iii", &a0, &a1, &a2))
        {
            QRgb sipRes;

            sipRes = qRgb(a0,a1,a2);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qRgb, doc_qRgb);

    return NULL;
}


PyDoc_STRVAR(doc_qAlpha, "qAlpha(int) -> int");

extern "C" {static PyObject *func_qAlpha(PyObject *,PyObject *);}
static PyObject *func_qAlpha(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
            int sipRes;

            sipRes = qAlpha(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qAlpha, doc_qAlpha);

    return NULL;
}


PyDoc_STRVAR(doc_qBlue, "qBlue(int) -> int");

extern "C" {static PyObject *func_qBlue(PyObject *,PyObject *);}
static PyObject *func_qBlue(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
            int sipRes;

            sipRes = qBlue(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qBlue, doc_qBlue);

    return NULL;
}


PyDoc_STRVAR(doc_qGreen, "qGreen(int) -> int");

extern "C" {static PyObject *func_qGreen(PyObject *,PyObject *);}
static PyObject *func_qGreen(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
            int sipRes;

            sipRes = qGreen(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qGreen, doc_qGreen);

    return NULL;
}


PyDoc_STRVAR(doc_qRed, "qRed(int) -> int");

extern "C" {static PyObject *func_qRed(PyObject *,PyObject *);}
static PyObject *func_qRed(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
            int sipRes;

            sipRes = qRed(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qRed, doc_qRed);

    return NULL;
}


PyDoc_STRVAR(doc_qPixelFormatYuv, "qPixelFormatYuv(QPixelFormat.YUVLayout, int alphaSize=0, QPixelFormat.AlphaUsage alphaUsage=QPixelFormat.IgnoresAlpha, QPixelFormat.AlphaPosition alphaPosition=QPixelFormat.AtBeginning, QPixelFormat.AlphaPremultiplied premultiplied=QPixelFormat.NotPremultiplied, QPixelFormat.TypeInterpretation typeInterpretation=QPixelFormat.UnsignedByte, QPixelFormat.ByteOrder byteOrder=QPixelFormat.LittleEndian) -> QPixelFormat");

extern "C" {static PyObject *func_qPixelFormatYuv(PyObject *,PyObject *, PyObject *);}
static PyObject *func_qPixelFormatYuv(PyObject *,PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QPixelFormat::YUVLayout a0;
        uchar a1 = 0;
        QPixelFormat::AlphaUsage a2 = QPixelFormat::IgnoresAlpha;
        QPixelFormat::AlphaPosition a3 = QPixelFormat::AtBeginning;
        QPixelFormat::AlphaPremultiplied a4 = QPixelFormat::NotPremultiplied;
        QPixelFormat::TypeInterpretation a5 = QPixelFormat::UnsignedByte;
        QPixelFormat::ByteOrder a6 = QPixelFormat::LittleEndian;

        static const char *sipKwdList[] = {
            NULL,
            sipName_alphaSize,
            sipName_alphaUsage,
            sipName_alphaPosition,
            sipName_premultiplied,
            sipName_typeInterpretation,
            sipName_byteOrder,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "E|MEEEEE", sipType_QPixelFormat_YUVLayout, &a0, &a1, sipType_QPixelFormat_AlphaUsage, &a2, sipType_QPixelFormat_AlphaPosition, &a3, sipType_QPixelFormat_AlphaPremultiplied, &a4, sipType_QPixelFormat_TypeInterpretation, &a5, sipType_QPixelFormat_ByteOrder, &a6))
        {
            QPixelFormat*sipRes;

            sipRes = new QPixelFormat(qPixelFormatYuv(a0,a1,a2,a3,a4,a5,a6));

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qPixelFormatYuv, doc_qPixelFormatYuv);

    return NULL;
}


PyDoc_STRVAR(doc_qPixelFormatHsv, "qPixelFormatHsv(int, int alphaSize=0, QPixelFormat.AlphaUsage alphaUsage=QPixelFormat.IgnoresAlpha, QPixelFormat.AlphaPosition alphaPosition=QPixelFormat.AtBeginning, QPixelFormat.TypeInterpretation typeInterpretation=QPixelFormat.FloatingPoint) -> QPixelFormat");

extern "C" {static PyObject *func_qPixelFormatHsv(PyObject *,PyObject *, PyObject *);}
static PyObject *func_qPixelFormatHsv(PyObject *,PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        uchar a0;
        uchar a1 = 0;
        QPixelFormat::AlphaUsage a2 = QPixelFormat::IgnoresAlpha;
        QPixelFormat::AlphaPosition a3 = QPixelFormat::AtBeginning;
        QPixelFormat::TypeInterpretation a4 = QPixelFormat::FloatingPoint;

        static const char *sipKwdList[] = {
            NULL,
            sipName_alphaSize,
            sipName_alphaUsage,
            sipName_alphaPosition,
            sipName_typeInterpretation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "M|MEEE", &a0, &a1, sipType_QPixelFormat_AlphaUsage, &a2, sipType_QPixelFormat_AlphaPosition, &a3, sipType_QPixelFormat_TypeInterpretation, &a4))
        {
            QPixelFormat*sipRes;

            sipRes = new QPixelFormat(qPixelFormatHsv(a0,a1,a2,a3,a4));

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qPixelFormatHsv, doc_qPixelFormatHsv);

    return NULL;
}


PyDoc_STRVAR(doc_qPixelFormatHsl, "qPixelFormatHsl(int, int alphaSize=0, QPixelFormat.AlphaUsage alphaUsage=QPixelFormat.IgnoresAlpha, QPixelFormat.AlphaPosition alphaPosition=QPixelFormat.AtBeginning, QPixelFormat.TypeInterpretation typeInterpretation=QPixelFormat.FloatingPoint) -> QPixelFormat");

extern "C" {static PyObject *func_qPixelFormatHsl(PyObject *,PyObject *, PyObject *);}
static PyObject *func_qPixelFormatHsl(PyObject *,PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        uchar a0;
        uchar a1 = 0;
        QPixelFormat::AlphaUsage a2 = QPixelFormat::IgnoresAlpha;
        QPixelFormat::AlphaPosition a3 = QPixelFormat::AtBeginning;
        QPixelFormat::TypeInterpretation a4 = QPixelFormat::FloatingPoint;

        static const char *sipKwdList[] = {
            NULL,
            sipName_alphaSize,
            sipName_alphaUsage,
            sipName_alphaPosition,
            sipName_typeInterpretation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "M|MEEE", &a0, &a1, sipType_QPixelFormat_AlphaUsage, &a2, sipType_QPixelFormat_AlphaPosition, &a3, sipType_QPixelFormat_TypeInterpretation, &a4))
        {
            QPixelFormat*sipRes;

            sipRes = new QPixelFormat(qPixelFormatHsl(a0,a1,a2,a3,a4));

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qPixelFormatHsl, doc_qPixelFormatHsl);

    return NULL;
}


PyDoc_STRVAR(doc_qPixelFormatCmyk, "qPixelFormatCmyk(int, int alphaSize=0, QPixelFormat.AlphaUsage alphaUsage=QPixelFormat.IgnoresAlpha, QPixelFormat.AlphaPosition alphaPosition=QPixelFormat.AtBeginning, QPixelFormat.TypeInterpretation typeInterpretation=QPixelFormat.UnsignedInteger) -> QPixelFormat");

extern "C" {static PyObject *func_qPixelFormatCmyk(PyObject *,PyObject *, PyObject *);}
static PyObject *func_qPixelFormatCmyk(PyObject *,PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        uchar a0;
        uchar a1 = 0;
        QPixelFormat::AlphaUsage a2 = QPixelFormat::IgnoresAlpha;
        QPixelFormat::AlphaPosition a3 = QPixelFormat::AtBeginning;
        QPixelFormat::TypeInterpretation a4 = QPixelFormat::UnsignedInteger;

        static const char *sipKwdList[] = {
            NULL,
            sipName_alphaSize,
            sipName_alphaUsage,
            sipName_alphaPosition,
            sipName_typeInterpretation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "M|MEEE", &a0, &a1, sipType_QPixelFormat_AlphaUsage, &a2, sipType_QPixelFormat_AlphaPosition, &a3, sipType_QPixelFormat_TypeInterpretation, &a4))
        {
            QPixelFormat*sipRes;

            sipRes = new QPixelFormat(qPixelFormatCmyk(a0,a1,a2,a3,a4));

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qPixelFormatCmyk, doc_qPixelFormatCmyk);

    return NULL;
}


PyDoc_STRVAR(doc_qPixelFormatGrayscale, "qPixelFormatGrayscale(int, QPixelFormat.TypeInterpretation typeInterpretation=QPixelFormat.UnsignedInteger) -> QPixelFormat");

extern "C" {static PyObject *func_qPixelFormatGrayscale(PyObject *,PyObject *, PyObject *);}
static PyObject *func_qPixelFormatGrayscale(PyObject *,PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        uchar a0;
        QPixelFormat::TypeInterpretation a1 = QPixelFormat::UnsignedInteger;

        static const char *sipKwdList[] = {
            NULL,
            sipName_typeInterpretation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "M|E", &a0, sipType_QPixelFormat_TypeInterpretation, &a1))
        {
            QPixelFormat*sipRes;

            sipRes = new QPixelFormat(qPixelFormatGrayscale(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qPixelFormatGrayscale, doc_qPixelFormatGrayscale);

    return NULL;
}


PyDoc_STRVAR(doc_qPixelFormatRgba, "qPixelFormatRgba(int, int, int, int, QPixelFormat.AlphaUsage, QPixelFormat.AlphaPosition, QPixelFormat.AlphaPremultiplied premultiplied=QPixelFormat.NotPremultiplied, QPixelFormat.TypeInterpretation typeInterpretation=QPixelFormat.UnsignedInteger) -> QPixelFormat");

extern "C" {static PyObject *func_qPixelFormatRgba(PyObject *,PyObject *, PyObject *);}
static PyObject *func_qPixelFormatRgba(PyObject *,PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        uchar a0;
        uchar a1;
        uchar a2;
        uchar a3;
        QPixelFormat::AlphaUsage a4;
        QPixelFormat::AlphaPosition a5;
        QPixelFormat::AlphaPremultiplied a6 = QPixelFormat::NotPremultiplied;
        QPixelFormat::TypeInterpretation a7 = QPixelFormat::UnsignedInteger;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_premultiplied,
            sipName_typeInterpretation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "MMMMEE|EE", &a0, &a1, &a2, &a3, sipType_QPixelFormat_AlphaUsage, &a4, sipType_QPixelFormat_AlphaPosition, &a5, sipType_QPixelFormat_AlphaPremultiplied, &a6, sipType_QPixelFormat_TypeInterpretation, &a7))
        {
            QPixelFormat*sipRes;

            sipRes = new QPixelFormat(qPixelFormatRgba(a0,a1,a2,a3,a4,a5,a6,a7));

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qPixelFormatRgba, doc_qPixelFormatRgba);

    return NULL;
}


PyDoc_STRVAR(doc_qFuzzyCompare, "qFuzzyCompare(QMatrix4x4, QMatrix4x4) -> bool\n"
    "qFuzzyCompare(QQuaternion, QQuaternion) -> bool\n"
    "qFuzzyCompare(QTransform, QTransform) -> bool\n"
    "qFuzzyCompare(QVector2D, QVector2D) -> bool\n"
    "qFuzzyCompare(QVector3D, QVector3D) -> bool\n"
    "qFuzzyCompare(QVector4D, QVector4D) -> bool");

extern "C" {static PyObject *func_qFuzzyCompare(PyObject *,PyObject *);}
static PyObject *func_qFuzzyCompare(PyObject *,PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;
        const QMatrix4x4* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QMatrix4x4, &a0, sipType_QMatrix4x4, &a1))
        {
            bool sipRes;

            sipRes = qFuzzyCompare(*a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QQuaternion* a0;
        const QQuaternion* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QQuaternion, &a0, sipType_QQuaternion, &a1))
        {
            bool sipRes;

            sipRes = qFuzzyCompare(*a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QTransform* a0;
        const QTransform* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QTransform, &a0, sipType_QTransform, &a1))
        {
            bool sipRes;

            sipRes = qFuzzyCompare(*a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QVector2D* a0;
        const QVector2D* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QVector2D, &a0, sipType_QVector2D, &a1))
        {
            bool sipRes;

            sipRes = qFuzzyCompare(*a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QVector3D* a0;
        const QVector3D* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QVector3D, &a0, sipType_QVector3D, &a1))
        {
            bool sipRes;

            sipRes = qFuzzyCompare(*a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QVector4D* a0;
        const QVector4D* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QVector4D, &a0, sipType_QVector4D, &a1))
        {
            bool sipRes;

            sipRes = qFuzzyCompare(*a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_qFuzzyCompare, doc_qFuzzyCompare);

    return NULL;
}


extern "C" {static PyObject *slot___mul__(PyObject *,PyObject *);}
static PyObject *slot___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPoint, &a0, sipType_QMatrix4x4, &a1))
        {
            QPoint*sipRes;

            sipRes = new QPoint((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J9", sipType_QPointF, &a0, &a0State, sipType_QMatrix4x4, &a1))
        {
            QPointF*sipRes;

            sipRes = new QPointF((*a0 * *a1));
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    {
        const QPoint* a0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPoint, &a0, sipType_QTransform, &a1))
        {
            QPoint*sipRes;

            sipRes = new QPoint((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J9", sipType_QPointF, &a0, &a0State, sipType_QTransform, &a1))
        {
            QPointF*sipRes;

            sipRes = new QPointF((*a0 * *a1));
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    {
        const QLineF* a0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QLineF, &a0, sipType_QTransform, &a1))
        {
            QLineF*sipRes;

            sipRes = new QLineF((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QLineF,NULL);
        }
    }

    {
        const QLine* a0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QLine, &a0, sipType_QTransform, &a1))
        {
            QLine*sipRes;

            sipRes = new QLine((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QLine,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot___rshift__(PyObject *,PyObject *);}
static PyObject *slot___rshift__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QDataStream* a0;
        QColor* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QColor, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QBrush* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QBrush, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QCursor* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QCursor, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QFont* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QFont, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QIcon* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QIcon, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QImage* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QImage, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QKeySequence* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QKeySequence, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QMatrix4x4, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QPainterPath* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPainterPath, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QPalette* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPalette, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QPen* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPen, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QPicture* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPicture, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QPixmap* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPixmap, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QPolygonF* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPolygonF, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QPolygon* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPolygon, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QQuaternion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QQuaternion, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QRegion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QRegion, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QStandardItem* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QStandardItem, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QTextLength* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QTextLength, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QTextFormat* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QTextFormat, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QTransform, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QVector2D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QVector2D, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QVector3D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QVector3D, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        QVector4D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QVector4D, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 >> *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot___lshift__(PyObject *,PyObject *);}
static PyObject *slot___lshift__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QDataStream* a0;
        const QColor* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QColor, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QBrush* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QBrush, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QCursor* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QCursor, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QFont* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QFont, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QIcon* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QIcon, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QImage* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QImage, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QKeySequence* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QKeySequence, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QMatrix4x4, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QPainterPath* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPainterPath, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QPalette* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPalette, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QPen* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPen, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QPicture* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPicture, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QPixmap* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPixmap, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QPolygonF* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPolygonF, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QPolygon* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QPolygon, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QQuaternion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QQuaternion, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QRegion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QRegion, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QStandardItem* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QStandardItem, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QTextLength* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QTextLength, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QTextFormat* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QTextFormat, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QTransform, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QVector2D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QVector2D, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QVector3D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QVector3D, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    {
        QDataStream* a0;
        const QVector4D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QDataStream, &a0, sipType_QVector4D, &a1))
        {
            QDataStream*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = &(*a0 << *a1);
            Py_END_ALLOW_THREADS

            return sipConvertFromType(sipRes,sipType_QDataStream,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static void *init_type_QPointF(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPointF(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPointF *sipCpp = 0;

    {
        QPainterPath::Element* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPainterPath_Element, &a0))
        {
            sipCpp = new QPointF(a0->operator QPointF());

            return sipCpp;
        }
    }

    return NULL;
}

static sipInitExtenderDef initExtenders[] = {
    {-1, init_type_QPointF, {170, 0, 0}, NULL},
    {-1, NULL, {0, 0, 0}, NULL}
};

static sipPySlotExtenderDef slotExtenders[] = {
    {(void *)slot___mul__, mul_slot, {0, 0, 0}},
    {(void *)slot___rshift__, rshift_slot, {0, 0, 0}},
    {(void *)slot___lshift__, lshift_slot, {0, 0, 0}},
    {NULL, (sipPySlotType)0, {0, 0, 0}}
};


/* Convert to a sub-class if possible. */
extern "C" {static const sipTypeDef *sipSubClass_QInputEvent(void **);}
static const sipTypeDef *sipSubClass_QInputEvent(void **sipCppRet)
{
    QEvent *sipCpp = reinterpret_cast<QEvent *>(*sipCppRet);
    const sipTypeDef *sipType;

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
    switch (sipCpp->type())
    {
    case QEvent::ActionAdded:
    case QEvent::ActionChanged:
    case QEvent::ActionRemoved:
        sipType = sipType_QActionEvent;
        break;
    
    case QEvent::Close:
        sipType = sipType_QCloseEvent;
        break;
    
    case QEvent::ContextMenu:
        sipType = sipType_QContextMenuEvent;
        break;
    
    case QEvent::DragEnter:
        sipType = sipType_QDragEnterEvent;
        break;
    
    case QEvent::DragLeave:
        sipType = sipType_QDragLeaveEvent;
        break;
    
    case QEvent::DragMove:
        sipType = sipType_QDragMoveEvent;
        break;
    
    case QEvent::Drop:
        sipType = sipType_QDropEvent;
        break;
    
    case QEvent::Enter:
        sipType = sipType_QEnterEvent;
        break;
    
    case QEvent::FileOpen:
        sipType = sipType_QFileOpenEvent;
        break;
    
    case QEvent::FocusIn:
    case QEvent::FocusOut:
        sipType = sipType_QFocusEvent;
        break;
    
    case QEvent::Hide:
        sipType = sipType_QHideEvent;
        break;
    
    case QEvent::HoverEnter:
    case QEvent::HoverLeave:
    case QEvent::HoverMove:
        sipType = sipType_QHoverEvent;
        break;
    
    case QEvent::IconDrag:
        sipType = sipType_QIconDragEvent;
        break;
    
    case QEvent::InputMethod:
        sipType = sipType_QInputMethodEvent;
        break;
    
    case QEvent::KeyPress:
    case QEvent::KeyRelease:
    case QEvent::ShortcutOverride:
        sipType = sipType_QKeyEvent;
        break;
    
    case QEvent::MouseButtonDblClick:
    case QEvent::MouseButtonPress:
    case QEvent::MouseButtonRelease:
    case QEvent::MouseMove:
        sipType = sipType_QMouseEvent;
        break;
    
    case QEvent::Move:
        sipType = sipType_QMoveEvent;
        break;
    
    case QEvent::Paint:
        sipType = sipType_QPaintEvent;
        break;
    
    case QEvent::Resize:
        sipType = sipType_QResizeEvent;
        break;
    
    case QEvent::Shortcut:
        sipType = sipType_QShortcutEvent;
        break;
    
    case QEvent::Show:
        sipType = sipType_QShowEvent;
        break;
    
    case QEvent::StatusTip:
        sipType = sipType_QStatusTipEvent;
        break;
    
    case QEvent::TabletMove:
    case QEvent::TabletPress:
    case QEvent::TabletRelease:
    case QEvent::TabletEnterProximity:
    case QEvent::TabletLeaveProximity:
        sipType = sipType_QTabletEvent;
        break;
    
    case QEvent::ToolTip:
    case QEvent::WhatsThis:
        sipType = sipType_QHelpEvent;
        break;
    
    case QEvent::WhatsThisClicked:
        sipType = sipType_QWhatsThisClickedEvent;
        break;
    
    case QEvent::Wheel:
        sipType = sipType_QWheelEvent;
        break;
    
    case QEvent::WindowStateChange:
        sipType = sipType_QWindowStateChangeEvent;
        break;
    
    case QEvent::TouchBegin:
    case QEvent::TouchUpdate:
    case QEvent::TouchEnd:
        sipType = sipType_QTouchEvent;
        break;
    
    case QEvent::InputMethodQuery:
        sipType = sipType_QInputMethodQueryEvent;
        break;
    
    case QEvent::Expose:
        sipType = sipType_QExposeEvent;
        break;
    
    case QEvent::ScrollPrepare:
        sipType = sipType_QScrollPrepareEvent;
        break;
    
    case QEvent::Scroll:
        sipType = sipType_QScrollEvent;
        break;
    
    #if QT_VERSION >= 0x050200
    case QEvent::NativeGesture:
        sipType = sipType_QNativeGestureEvent;
        break;
    #endif
    
    default:
        sipType = 0;
    }
#line 6429 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipType;
}


/* Convert to a sub-class if possible. */
extern "C" {static const sipTypeDef *sipSubClass_QGuiApplication(void **);}
static const sipTypeDef *sipSubClass_QGuiApplication(void **sipCppRet)
{
    QObject *sipCpp = reinterpret_cast<QObject *>(*sipCppRet);
    const sipTypeDef *sipType;

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qguiapplication.sip"
    static struct class_graph {
        const char *name;
        sipTypeDef **type;
        int yes, no;
    } graph[] = {
    #if QT_VERSION >= 0x050100 && defined(SIP_FEATURE_PyQt_Desktop_OpenGL)
        {sipName_QOpenGLTimeMonitor, &sipType_QOpenGLTimeMonitor, -1, 1},
    #else
        {0, 0, -1, 1},
    #endif
        {sipName_QSyntaxHighlighter, &sipType_QSyntaxHighlighter, -1, 2},
        {sipName_QWindow, &sipType_QWindow, 25, 3},
        {sipName_QPdfWriter, &sipType_QPdfWriter, -1, 4},
        {sipName_QMovie, &sipType_QMovie, -1, 5},
    #if defined(SIP_FEATURE_PyQt_SessionManager)
        {sipName_QSessionManager, &sipType_QSessionManager, -1, 6},
    #else
        {0, 0, -1, 6},
    #endif
        {sipName_QAbstractTextDocumentLayout, &sipType_QAbstractTextDocumentLayout, -1, 7},
        {sipName_QScreen, &sipType_QScreen, -1, 8},
        {sipName_QTextObject, &sipType_QTextObject, 28, 9},
        {sipName_QStandardItemModel, &sipType_QStandardItemModel, -1, 10},
        {sipName_QDrag, &sipType_QDrag, -1, 11},
    #if defined(SIP_FEATURE_PyQt_OpenGL)
        {sipName_QOpenGLContextGroup, &sipType_QOpenGLContextGroup, -1, 12},
    #else
        {0, 0, -1, 12},
    #endif
        {sipName_QValidator, &sipType_QValidator, 32, 13},
        {sipName_QTextDocument, &sipType_QTextDocument, -1, 14},
    #if QT_VERSION >= 0x050100 && defined(SIP_FEATURE_PyQt_OpenGL)
        {sipName_QOpenGLVertexArrayObject, &sipType_QOpenGLVertexArrayObject, -1, 15},
    #else
        {0, 0, -1, 15},
    #endif
    #if QT_VERSION >= 0x050100 && defined(SIP_FEATURE_PyQt_OpenGL)
        {sipName_QOpenGLDebugLogger, &sipType_QOpenGLDebugLogger, -1, 16},
    #else
        {0, 0, -1, 16},
    #endif
        {sipName_QGuiApplication, &sipType_QGuiApplication, -1, 17},
    #if QT_VERSION >= 0x050100 && defined(SIP_FEATURE_PyQt_Desktop_OpenGL)
        {sipName_QOpenGLTimerQuery, &sipType_QOpenGLTimerQuery, -1, 18},
    #else
        {0, 0, -1, 18},
    #endif
    #if QT_VERSION >= 0x050100
        {sipName_QOffscreenSurface, &sipType_QOffscreenSurface, -1, 19},
    #else
        {0, 0, -1, 19},
    #endif
    #if defined(SIP_FEATURE_PyQt_OpenGL)
        {sipName_QOpenGLShaderProgram, &sipType_QOpenGLShaderProgram, -1, 20},
    #else
        {0, 0, -1, 20},
    #endif
        {sipName_QStyleHints, &sipType_QStyleHints, -1, 21},
        {sipName_QClipboard, &sipType_QClipboard, -1, 22},
    #if defined(SIP_FEATURE_PyQt_OpenGL)
        {sipName_QOpenGLShader, &sipType_QOpenGLShader, -1, 23},
    #else
        {0, 0, -1, 23},
    #endif
    #if defined(SIP_FEATURE_PyQt_OpenGL)
        {sipName_QOpenGLContext, &sipType_QOpenGLContext, -1, 24},
    #else
        {0, 0, -1, 24},
    #endif
        {sipName_QInputMethod, &sipType_QInputMethod, -1, -1},
    #if QT_VERSION >= 0x050400
        {sipName_QPaintDeviceWindow, &sipType_QPaintDeviceWindow, 26, -1},
    #else
        {0, 0, 26, -1},
    #endif
    #if QT_VERSION >= 0x050400 && defined(SIP_FEATURE_PyQt_OpenGL)
        {sipName_QOpenGLWindow, &sipType_QOpenGLWindow, -1, 27},
    #else
        {0, 0, -1, 27},
    #endif
    #if QT_VERSION >= 0x050400
        {sipName_QRasterWindow, &sipType_QRasterWindow, -1, -1},
    #else
        {0, 0, -1, -1},
    #endif
        {sipName_QTextBlockGroup, &sipType_QTextBlockGroup, 30, 29},
        {sipName_QTextFrame, &sipType_QTextFrame, 31, -1},
        {sipName_QTextList, &sipType_QTextList, -1, -1},
        {sipName_QTextTable, &sipType_QTextTable, -1, -1},
    #if QT_VERSION >= 0x050100
        {sipName_QRegularExpressionValidator, &sipType_QRegularExpressionValidator, -1, 33},
    #else
        {0, 0, -1, 33},
    #endif
        {sipName_QIntValidator, &sipType_QIntValidator, -1, 34},
        {sipName_QDoubleValidator, &sipType_QDoubleValidator, -1, 35},
        {sipName_QRegExpValidator, &sipType_QRegExpValidator, -1, -1},
    };
    
    int i = 0;
    
    sipType = NULL;
    
    do
    {
        struct class_graph *cg = &graph[i];
    
        if (cg->name != NULL && sipCpp->inherits(cg->name))
        {
            sipType = *cg->type;
            i = cg->yes;
        }
        else
            i = cg->no;
    }
    while (i >= 0);
#line 6559 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipType;
}


/* This defines each external type declared in this module, */
static sipExternalTypeDef externalTypesTable[] = {
    {4, "QAction"},
    {-1, NULL}
};


extern "C" {static PyObject *slot_QTouchDevice_CapabilityFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_CapabilityFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchDevice::CapabilityFlag a0;
        QTouchDevice::Capabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QTouchDevice_CapabilityFlag, &a0, sipType_QTouchDevice_Capabilities, &a1, &a1State))
        {
            QTouchDevice::Capabilities*sipRes;

            sipRes = new QTouchDevice::Capabilities((a0 | *a1));
            sipReleaseType(a1,sipType_QTouchDevice_Capabilities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTouchDevice_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QTouchDevice_CapabilityFlag[] = {
    {(void *)slot_QTouchDevice_CapabilityFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QTextOption_Flag___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextOption::Flag a0;
        QTextOption::Flags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QTextOption_Flag, &a0, sipType_QTextOption_Flags, &a1, &a1State))
        {
            QTextOption::Flags*sipRes;

            sipRes = new QTextOption::Flags((a0 | *a1));
            sipReleaseType(a1,sipType_QTextOption_Flags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextOption_Flags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QTextOption_Flag[] = {
    {(void *)slot_QTextOption_Flag___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QTextFormat_PageBreakFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFormat::PageBreakFlag a0;
        QTextFormat::PageBreakFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QTextFormat_PageBreakFlag, &a0, sipType_QTextFormat_PageBreakFlags, &a1, &a1State))
        {
            QTextFormat::PageBreakFlags*sipRes;

            sipRes = new QTextFormat::PageBreakFlags((a0 | *a1));
            sipReleaseType(a1,sipType_QTextFormat_PageBreakFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextFormat_PageBreakFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QTextFormat_PageBreakFlag[] = {
    {(void *)slot_QTextFormat_PageBreakFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QTextDocument_FindFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument::FindFlag a0;
        QTextDocument::FindFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QTextDocument_FindFlag, &a0, sipType_QTextDocument_FindFlags, &a1, &a1State))
        {
            QTextDocument::FindFlags*sipRes;

            sipRes = new QTextDocument::FindFlags((a0 | *a1));
            sipReleaseType(a1,sipType_QTextDocument_FindFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextDocument_FindFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QTextDocument_FindFlag[] = {
    {(void *)slot_QTextDocument_FindFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QSurfaceFormat_FormatOption___or__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOption___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::FormatOption a0;
        QSurfaceFormat::FormatOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QSurfaceFormat_FormatOption, &a0, sipType_QSurfaceFormat_FormatOptions, &a1, &a1State))
        {
            QSurfaceFormat::FormatOptions*sipRes;

            sipRes = new QSurfaceFormat::FormatOptions((a0 | *a1));
            sipReleaseType(a1,sipType_QSurfaceFormat_FormatOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat_FormatOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QSurfaceFormat_FormatOption[] = {
    {(void *)slot_QSurfaceFormat_FormatOption___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QRawFont_LayoutFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QRawFont::LayoutFlag a0;
        QRawFont::LayoutFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QRawFont_LayoutFlag, &a0, sipType_QRawFont_LayoutFlags, &a1, &a1State))
        {
            QRawFont::LayoutFlags*sipRes;

            sipRes = new QRawFont::LayoutFlags((a0 | *a1));
            sipReleaseType(a1,sipType_QRawFont_LayoutFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QRawFont_LayoutFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QRawFont_LayoutFlag[] = {
    {(void *)slot_QRawFont_LayoutFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeature___or__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeature___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::PaintEngineFeature a0;
        QPaintEngine::PaintEngineFeatures* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QPaintEngine_PaintEngineFeature, &a0, sipType_QPaintEngine_PaintEngineFeatures, &a1, &a1State))
        {
            QPaintEngine::PaintEngineFeatures*sipRes;

            sipRes = new QPaintEngine::PaintEngineFeatures((a0 | *a1));
            sipReleaseType(a1,sipType_QPaintEngine_PaintEngineFeatures,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_PaintEngineFeatures,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QPaintEngine_PaintEngineFeature[] = {
    {(void *)slot_QPaintEngine_PaintEngineFeature___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QTextItem_RenderFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextItem::RenderFlag a0;
        QTextItem::RenderFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QTextItem_RenderFlag, &a0, sipType_QTextItem_RenderFlags, &a1, &a1State))
        {
            QTextItem::RenderFlags*sipRes;

            sipRes = new QTextItem::RenderFlags((a0 | *a1));
            sipReleaseType(a1,sipType_QTextItem_RenderFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextItem_RenderFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QTextItem_RenderFlag[] = {
    {(void *)slot_QTextItem_RenderFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QPainter_RenderHint___or__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHint___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::RenderHint a0;
        QPainter::RenderHints* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QPainter_RenderHint, &a0, sipType_QPainter_RenderHints, &a1, &a1State))
        {
            QPainter::RenderHints*sipRes;

            sipRes = new QPainter::RenderHints((a0 | *a1));
            sipReleaseType(a1,sipType_QPainter_RenderHints,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_RenderHints,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QPainter_RenderHint[] = {
    {(void *)slot_QPainter_RenderHint___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QOpenGLTexture_Feature___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Feature___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Feature a0;
        QOpenGLTexture::Features* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QOpenGLTexture_Feature, &a0, sipType_QOpenGLTexture_Features, &a1, &a1State))
        {
            QOpenGLTexture::Features*sipRes;

            sipRes = new QOpenGLTexture::Features((a0 | *a1));
            sipReleaseType(a1,sipType_QOpenGLTexture_Features,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLTexture_Features,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QOpenGLTexture_Feature[] = {
    {(void *)slot_QOpenGLTexture_Feature___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QOpenGLShader_ShaderTypeBit___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderTypeBit___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader::ShaderTypeBit a0;
        QOpenGLShader::ShaderType* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QOpenGLShader_ShaderTypeBit, &a0, sipType_QOpenGLShader_ShaderType, &a1, &a1State))
        {
            QOpenGLShader::ShaderType*sipRes;

            sipRes = new QOpenGLShader::ShaderType((a0 | *a1));
            sipReleaseType(a1,sipType_QOpenGLShader_ShaderType,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLShader_ShaderType,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QOpenGLShader_ShaderTypeBit[] = {
    {(void *)slot_QOpenGLShader_ShaderTypeBit___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severity___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severity___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Severity a0;
        QOpenGLDebugMessage::Severities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QOpenGLDebugMessage_Severity, &a0, sipType_QOpenGLDebugMessage_Severities, &a1, &a1State))
        {
            QOpenGLDebugMessage::Severities*sipRes;

            sipRes = new QOpenGLDebugMessage::Severities((a0 | *a1));
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Severities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Severities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QOpenGLDebugMessage_Severity[] = {
    {(void *)slot_QOpenGLDebugMessage_Severity___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QOpenGLDebugMessage_Type___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Type___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Type a0;
        QOpenGLDebugMessage::Types* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QOpenGLDebugMessage_Type, &a0, sipType_QOpenGLDebugMessage_Types, &a1, &a1State))
        {
            QOpenGLDebugMessage::Types*sipRes;

            sipRes = new QOpenGLDebugMessage::Types((a0 | *a1));
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Types,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Types,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QOpenGLDebugMessage_Type[] = {
    {(void *)slot_QOpenGLDebugMessage_Type___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QOpenGLDebugMessage_Source___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Source___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Source a0;
        QOpenGLDebugMessage::Sources* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QOpenGLDebugMessage_Source, &a0, sipType_QOpenGLDebugMessage_Sources, &a1, &a1State))
        {
            QOpenGLDebugMessage::Sources*sipRes;

            sipRes = new QOpenGLDebugMessage::Sources((a0 | *a1));
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Sources,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Sources,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QOpenGLDebugMessage_Source[] = {
    {(void *)slot_QOpenGLDebugMessage_Source___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer::RangeAccessFlag a0;
        QOpenGLBuffer::RangeAccessFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QOpenGLBuffer_RangeAccessFlag, &a0, sipType_QOpenGLBuffer_RangeAccessFlags, &a1, &a1State))
        {
            QOpenGLBuffer::RangeAccessFlags*sipRes;

            sipRes = new QOpenGLBuffer::RangeAccessFlags((a0 | *a1));
            sipReleaseType(a1,sipType_QOpenGLBuffer_RangeAccessFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLBuffer_RangeAccessFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QOpenGLBuffer_RangeAccessFlag[] = {
    {(void *)slot_QOpenGLBuffer_RangeAccessFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QKeySequence_StandardKey___eq__(PyObject *,PyObject *);}
static PyObject *slot_QKeySequence_StandardKey___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeySequence::StandardKey sipCpp = static_cast<QKeySequence::StandardKey>(SIPLong_AsLong(sipSelf));

    PyObject *sipParseErr = NULL;

    {
        QKeyEvent* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J8", sipType_QKeyEvent, &a0))
        {
            bool sipRes;

            sipRes = operator==(sipCpp, a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QKeySequence_StandardKey[] = {
    {(void *)slot_QKeySequence_StandardKey___eq__, eq_slot},
    {0, (sipPySlotType)0}
};



extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlag___or__(PyObject *,PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlag___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchEvent::TouchPoint::InfoFlag a0;
        QTouchEvent::TouchPoint::InfoFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EJ1", sipType_QTouchEvent_TouchPoint_InfoFlag, &a0, sipType_QTouchEvent_TouchPoint_InfoFlags, &a1, &a1State))
        {
            QTouchEvent::TouchPoint::InfoFlags*sipRes;

            sipRes = new QTouchEvent::TouchPoint::InfoFlags((a0 | *a1));
            sipReleaseType(a1,sipType_QTouchEvent_TouchPoint_InfoFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTouchEvent_TouchPoint_InfoFlags,NULL);
        }
    }

    {
        QTouchEvent::TouchPoint::InfoFlag a0;
        QTouchEvent::TouchPoint::InfoFlag a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "EE", sipType_QTouchEvent_TouchPoint_InfoFlag, &a0, sipType_QTouchEvent_TouchPoint_InfoFlag, &a1))
        {
            QTouchEvent::TouchPoint::InfoFlags*sipRes;

            sipRes = new QTouchEvent::TouchPoint::InfoFlags((a0 | a1));

            return sipConvertFromNewType(sipRes,sipType_QTouchEvent_TouchPoint_InfoFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}

static sipPySlotDef slots_QTouchEvent_TouchPoint_InfoFlag[] = {
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlag___or__, or_slot},
    {0, (sipPySlotType)0}
};

static sipEnumTypeDef enumTypes[] = {
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QWindow__Visibility, {0}}, sipNameNr_Visibility, 362, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QWindow__AncestorMode, {0}}, sipNameNr_AncestorMode, 362, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QDoubleValidator__Notation, {0}}, sipNameNr_Notation, 20, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QValidator__State, {0}}, sipNameNr_State, 341, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTransform__TransformationType, {0}}, sipNameNr_TransformationType, 339, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTouchDevice__CapabilityFlag, {0}}, sipNameNr_CapabilityFlag, 331, slots_QTouchDevice_CapabilityFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTouchDevice__DeviceType, {0}}, sipNameNr_DeviceType, 331, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextOption__TabType, {0}}, sipNameNr_TabType, 321, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextOption__Flag, {0}}, sipNameNr_Flag, 321, slots_QTextOption_Flag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextOption__WrapMode, {0}}, sipNameNr_WrapMode, 321, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextLine__CursorPosition, {0}}, sipNameNr_CursorPosition, 313, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextLine__Edge, {0}}, sipNameNr_Edge, 313, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextLayout__CursorMode, {0}}, sipNameNr_CursorMode, 308, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFrameFormat__BorderStyle, {0}}, sipNameNr_BorderStyle, 300, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFrameFormat__Position, {0}}, sipNameNr_Position, 300, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextListFormat__Style, {0}}, sipNameNr_Style, 317, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextBlockFormat__LineHeightTypes, {0}}, sipNameNr_LineHeightTypes, 271, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCharFormat__FontPropertiesInheritanceBehavior, {0}}, sipNameNr_FontPropertiesInheritanceBehavior, 275, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCharFormat__UnderlineStyle, {0}}, sipNameNr_UnderlineStyle, 275, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCharFormat__VerticalAlignment, {0}}, sipNameNr_VerticalAlignment, 275, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFormat__Property, {0}}, sipNameNr_Property, 291, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFormat__PageBreakFlag, {0}}, sipNameNr_PageBreakFlag, 291, slots_QTextFormat_PageBreakFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFormat__ObjectTypes, {0}}, sipNameNr_ObjectTypes, 291, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextFormat__FormatType, {0}}, sipNameNr_FormatType, 291, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextLength__Type, {0}}, sipNameNr_Type, 311, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextDocument__Stacks, {0}}, sipNameNr_Stacks, 283, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextDocument__ResourceType, {0}}, sipNameNr_ResourceType, 283, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextDocument__FindFlag, {0}}, sipNameNr_FindFlag, 283, slots_QTextDocument_FindFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextDocument__MetaInformation, {0}}, sipNameNr_MetaInformation, 283, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCursor__SelectionType, {0}}, sipNameNr_SelectionType, 279, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCursor__MoveOperation, {0}}, sipNameNr_MoveOperation, 279, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextCursor__MoveMode, {0}}, sipNameNr_MoveMode, 279, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurfaceFormat__OpenGLContextProfile, {0}}, sipNameNr_OpenGLContextProfile, 259, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurfaceFormat__RenderableType, {0}}, sipNameNr_RenderableType, 259, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurfaceFormat__SwapBehavior, {0}}, sipNameNr_SwapBehavior, 259, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurfaceFormat__FormatOption, {0}}, sipNameNr_FormatOption, 259, slots_QSurfaceFormat_FormatOption},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurface__SurfaceType, {0}}, sipNameNr_SurfaceType, 256, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSurface__SurfaceClass, {0}}, sipNameNr_SurfaceClass, 256, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QStaticText__PerformanceHint, {0}}, sipNameNr_PerformanceHint, 252, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QStandardItem__ItemType, {0}}, sipNameNr_ItemType, 249, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QSessionManager__RestartHint, {0}}, sipNameNr_RestartHint, 244, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QRegion__RegionType, {0}}, sipNameNr_RegionType, 236, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QRawFont__LayoutFlag, {0}}, sipNameNr_LayoutFlag, 231, slots_QRawFont_LayoutFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QRawFont__AntialiasingType, {0}}, sipNameNr_AntialiasingType, 231, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__ByteOrder, {0}}, sipNameNr_ByteOrder, 215, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__YUVLayout, {0}}, sipNameNr_YUVLayout, 215, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__TypeInterpretation, {0}}, sipNameNr_TypeInterpretation, 215, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__AlphaPremultiplied, {0}}, sipNameNr_AlphaPremultiplied, 215, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__AlphaPosition, {0}}, sipNameNr_AlphaPosition, 215, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__AlphaUsage, {0}}, sipNameNr_AlphaUsage, 215, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPixelFormat__ColorModel, {0}}, sipNameNr_ColorModel, 215, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPalette__ColorRole, {0}}, sipNameNr_ColorRole, 208, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPalette__ColorGroup, {0}}, sipNameNr_ColorGroup, 208, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPainterPath__ElementType, {0}}, sipNameNr_ElementType, 202, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintEngine__Type, {0}}, sipNameNr_Type, 186, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintEngine__PolygonDrawMode, {0}}, sipNameNr_PolygonDrawMode, 186, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintEngine__DirtyFlag, {0}}, sipNameNr_DirtyFlag, 186, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintEngine__PaintEngineFeature, {0}}, sipNameNr_PaintEngineFeature, 186, slots_QPaintEngine_PaintEngineFeature},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTextItem__RenderFlag, {0}}, sipNameNr_RenderFlag, 305, slots_QTextItem_RenderFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPaintDevice__PaintDeviceMetric, {0}}, sipNameNr_PaintDeviceMetric, 183, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPainter__PixmapFragmentHint, {0}}, sipNameNr_PixmapFragmentHint, 195, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPainter__CompositionMode, {0}}, sipNameNr_CompositionMode, 195, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPainter__RenderHint, {0}}, sipNameNr_RenderHint, 195, slots_QPainter_RenderHint},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageSize__SizeMatchPolicy, {0}}, sipNameNr_SizeMatchPolicy, 176, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageSize__Unit, {0}}, sipNameNr_Unit, 176, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageSize__PageSizeId, {0}}, sipNameNr_PageSizeId, 176, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageLayout__Mode, {0}}, sipNameNr_Mode, 172, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageLayout__Orientation, {0}}, sipNameNr_Orientation, 172, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPageLayout__Unit, {0}}, sipNameNr_Unit, 172, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QPagedPaintDevice__PageSize, {0}}, sipNameNr_PageSize, 180, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLWindow__UpdateBehavior, {0}}, sipNameNr_UpdateBehavior, 170, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__CoordinateDirection, {0}}, sipNameNr_CoordinateDirection, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__WrapMode, {0}}, sipNameNr_WrapMode, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__Filter, {0}}, sipNameNr_Filter, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__DepthStencilMode, {0}}, sipNameNr_DepthStencilMode, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__SwizzleValue, {0}}, sipNameNr_SwizzleValue, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__SwizzleComponent, {0}}, sipNameNr_SwizzleComponent, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__Feature, {0}}, sipNameNr_Feature, 148, slots_QOpenGLTexture_Feature},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__PixelType, {0}}, sipNameNr_PixelType, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__PixelFormat, {0}}, sipNameNr_PixelFormat, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__CubeMapFace, {0}}, sipNameNr_CubeMapFace, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__TextureFormat, {0}}, sipNameNr_TextureFormat, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__TextureUnitReset, {0}}, sipNameNr_TextureUnitReset, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__MipMapGeneration, {0}}, sipNameNr_MipMapGeneration, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__BindingTarget, {0}}, sipNameNr_BindingTarget, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLTexture__Target, {0}}, sipNameNr_Target, 148, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLShader__ShaderTypeBit, {0}}, sipNameNr_ShaderTypeBit, 144, slots_QOpenGLShader_ShaderTypeBit},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLFramebufferObject__Attachment, {0}}, sipNameNr_Attachment, 139, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLDebugLogger__LoggingMode, {0}}, sipNameNr_LoggingMode, 130, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLDebugMessage__Severity, {0}}, sipNameNr_Severity, 132, slots_QOpenGLDebugMessage_Severity},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLDebugMessage__Type, {0}}, sipNameNr_Type, 132, slots_QOpenGLDebugMessage_Type},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLDebugMessage__Source, {0}}, sipNameNr_Source, 132, slots_QOpenGLDebugMessage_Source},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLContext__OpenGLModuleType, {0}}, sipNameNr_OpenGLModuleType, 127, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLBuffer__RangeAccessFlag, {0}}, sipNameNr_RangeAccessFlag, 121, slots_QOpenGLBuffer_RangeAccessFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLBuffer__Access, {0}}, sipNameNr_Access, 121, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLBuffer__UsagePattern, {0}}, sipNameNr_UsagePattern, 121, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QOpenGLBuffer__Type, {0}}, sipNameNr_Type, 121, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QMovie__CacheMode, {0}}, sipNameNr_CacheMode, 116, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QMovie__MovieState, {0}}, sipNameNr_MovieState, 116, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QKeySequence__StandardKey, {0}}, sipNameNr_StandardKey, 82, slots_QKeySequence_StandardKey},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QKeySequence__SequenceMatch, {0}}, sipNameNr_SequenceMatch, 82, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QKeySequence__SequenceFormat, {0}}, sipNameNr_SequenceFormat, 82, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QInputMethod__Action, {0}}, sipNameNr_Action, 74, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImageWriter__ImageWriterError, {0}}, sipNameNr_ImageWriterError, 71, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImageReader__ImageReaderError, {0}}, sipNameNr_ImageReaderError, 69, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImageIOHandler__ImageOption, {0}}, sipNameNr_ImageOption, 67, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImage__Format, {0}}, sipNameNr_Format, 64, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QImage__InvertMode, {0}}, sipNameNr_InvertMode, 64, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QIconEngine__IconEngineHook, {0}}, sipNameNr_IconEngineHook, 61, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QIcon__State, {0}}, sipNameNr_State, 57, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QIcon__Mode, {0}}, sipNameNr_Mode, 57, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QGlyphRun__GlyphRunFlag, {0}}, sipNameNr_GlyphRunFlag, 46, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFontDatabase__SystemFont, {0}}, sipNameNr_SystemFont, 40, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFontDatabase__WritingSystem, {0}}, sipNameNr_WritingSystem, 40, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__HintingPreference, {0}}, sipNameNr_HintingPreference, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__SpacingType, {0}}, sipNameNr_SpacingType, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__Capitalization, {0}}, sipNameNr_Capitalization, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__Stretch, {0}}, sipNameNr_Stretch, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__Style, {0}}, sipNameNr_Style, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__Weight, {0}}, sipNameNr_Weight, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__StyleStrategy, {0}}, sipNameNr_StyleStrategy, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QFont__StyleHint, {0}}, sipNameNr_StyleHint, 31, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QScrollEvent__ScrollState, {0}}, sipNameNr_ScrollState, 241, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTouchEvent__TouchPoint__InfoFlag, {0}}, sipNameNr_InfoFlag, 336, slots_QTouchEvent_TouchPoint_InfoFlag},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QInputMethodEvent__AttributeType, {0}}, sipNameNr_AttributeType, 76, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QContextMenuEvent__Reason, {0}}, sipNameNr_Reason, 16, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTabletEvent__PointerType, {0}}, sipNameNr_PointerType, 266, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QTabletEvent__TabletDevice, {0}}, sipNameNr_TabletDevice, 266, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QClipboard__Mode, {0}}, sipNameNr_Mode, 9, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QGradient__Spread, {0}}, sipNameNr_Spread, 49, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QGradient__Type, {0}}, sipNameNr_Type, 49, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QGradient__CoordinateMode, {0}}, sipNameNr_CoordinateMode, 49, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QColor__NameFormat, {0}}, sipNameNr_NameFormat, 12, NULL},
    {{-1, 0, 0, SIP_TYPE_ENUM, sipNameNr_QColor__Spec, {0}}, sipNameNr_Spec, 12, NULL},
};


/*
 * This defines each type in this module.
 */
static sipTypeDef *typesTable[] = {
    &sipTypeDef_QtGui_QAbstractOpenGLFunctions.super.ctd_base,
    &sipTypeDef_QtGui_QAbstractTextDocumentLayout.super.ctd_base,
    &sipTypeDef_QtGui_QAbstractTextDocumentLayout_PaintContext.super.ctd_base,
    &sipTypeDef_QtGui_QAbstractTextDocumentLayout_Selection.super.ctd_base,
    0,
    &sipTypeDef_QtGui_QActionEvent.super.ctd_base,
    &sipTypeDef_QtGui_QBackingStore.super.ctd_base,
    &sipTypeDef_QtGui_QBitmap.super.ctd_base,
    &sipTypeDef_QtGui_QBrush.super.ctd_base,
    &sipTypeDef_QtGui_QClipboard.super.ctd_base,
    &enumTypes[128].etd_base,
    &sipTypeDef_QtGui_QCloseEvent.super.ctd_base,
    &sipTypeDef_QtGui_QColor.super.ctd_base,
    &enumTypes[132].etd_base,
    &enumTypes[133].etd_base,
    &sipTypeDef_QtGui_QConicalGradient.super.ctd_base,
    &sipTypeDef_QtGui_QContextMenuEvent.super.ctd_base,
    &enumTypes[125].etd_base,
    &sipTypeDef_QtGui_QCursor.super.ctd_base,
    &sipTypeDef_QtGui_QDesktopServices.super.ctd_base,
    &sipTypeDef_QtGui_QDoubleValidator.super.ctd_base,
    &enumTypes[2].etd_base,
    &sipTypeDef_QtGui_QDrag.super.ctd_base,
    &sipTypeDef_QtGui_QDragEnterEvent.super.ctd_base,
    &sipTypeDef_QtGui_QDragLeaveEvent.super.ctd_base,
    &sipTypeDef_QtGui_QDragMoveEvent.super.ctd_base,
    &sipTypeDef_QtGui_QDropEvent.super.ctd_base,
    &sipTypeDef_QtGui_QEnterEvent.super.ctd_base,
    &sipTypeDef_QtGui_QExposeEvent.super.ctd_base,
    &sipTypeDef_QtGui_QFileOpenEvent.super.ctd_base,
    &sipTypeDef_QtGui_QFocusEvent.super.ctd_base,
    &sipTypeDef_QtGui_QFont.super.ctd_base,
    &enumTypes[116].etd_base,
    &enumTypes[114].etd_base,
    &enumTypes[115].etd_base,
    &enumTypes[117].etd_base,
    &enumTypes[118].etd_base,
    &enumTypes[121].etd_base,
    &enumTypes[120].etd_base,
    &enumTypes[119].etd_base,
    &sipTypeDef_QtGui_QFontDatabase.super.ctd_base,
    &enumTypes[112].etd_base,
    &enumTypes[113].etd_base,
    &sipTypeDef_QtGui_QFontInfo.super.ctd_base,
    &sipTypeDef_QtGui_QFontMetrics.super.ctd_base,
    &sipTypeDef_QtGui_QFontMetricsF.super.ctd_base,
    &sipTypeDef_QtGui_QGlyphRun.super.ctd_base,
    &enumTypes[111].etd_base,
    &sipTypeDef_QtGui_QGlyphRun_GlyphRunFlags.super.ctd_base,
    &sipTypeDef_QtGui_QGradient.super.ctd_base,
    &enumTypes[131].etd_base,
    &enumTypes[129].etd_base,
    &enumTypes[130].etd_base,
    &sipTypeDef_QtGui_QGuiApplication.super.ctd_base,
    &sipTypeDef_QtGui_QHelpEvent.super.ctd_base,
    &sipTypeDef_QtGui_QHideEvent.super.ctd_base,
    &sipTypeDef_QtGui_QHoverEvent.super.ctd_base,
    &sipTypeDef_QtGui_QIcon.super.ctd_base,
    &enumTypes[110].etd_base,
    &enumTypes[109].etd_base,
    &sipTypeDef_QtGui_QIconDragEvent.super.ctd_base,
    &sipTypeDef_QtGui_QIconEngine.super.ctd_base,
    &sipTypeDef_QtGui_QIconEngine_AvailableSizesArgument.super.ctd_base,
    &enumTypes[108].etd_base,
    &sipTypeDef_QtGui_QImage.super.ctd_base,
    &enumTypes[106].etd_base,
    &enumTypes[107].etd_base,
    &sipTypeDef_QtGui_QImageIOHandler.super.ctd_base,
    &enumTypes[105].etd_base,
    &sipTypeDef_QtGui_QImageReader.super.ctd_base,
    &enumTypes[104].etd_base,
    &sipTypeDef_QtGui_QImageWriter.super.ctd_base,
    &enumTypes[103].etd_base,
    &sipTypeDef_QtGui_QInputEvent.super.ctd_base,
    &sipTypeDef_QtGui_QInputMethod.super.ctd_base,
    &enumTypes[102].etd_base,
    &sipTypeDef_QtGui_QInputMethodEvent.super.ctd_base,
    &sipTypeDef_QtGui_QInputMethodEvent_Attribute.super.ctd_base,
    &enumTypes[124].etd_base,
    &sipTypeDef_QtGui_QInputMethodQueryEvent.super.ctd_base,
    &sipTypeDef_QtGui_QIntValidator.super.ctd_base,
    &sipTypeDef_QtGui_QKeyEvent.super.ctd_base,
    &sipTypeDef_QtGui_QKeySequence.super.ctd_base,
    &enumTypes[101].etd_base,
    &enumTypes[100].etd_base,
    &enumTypes[99].etd_base,
    &sipTypeDef_QtGui_QLinearGradient.super.ctd_base,
    &sipTypeDef_QtGui_QList_0100QFontDatabase_WritingSystem.mtd_base,
    &sipTypeDef_QtGui_QList_0100QGlyphRun.mtd_base,
    &sipTypeDef_QtGui_QList_0100QInputMethodEvent_Attribute.mtd_base,
    &sipTypeDef_QtGui_QList_0100QKeySequence.mtd_base,
    &sipTypeDef_QtGui_QList_0101QOpenGLContext.mtd_base,
    &sipTypeDef_QtGui_QList_0100QOpenGLDebugMessage.mtd_base,
    &sipTypeDef_QtGui_QList_0101QOpenGLShader.mtd_base,
    &sipTypeDef_QtGui_QList_0100QPolygonF.mtd_base,
    &sipTypeDef_QtGui_QList_0101QScreen.mtd_base,
    &sipTypeDef_QtGui_QList_0100QSize.mtd_base,
    &sipTypeDef_QtGui_QList_0101QStandardItem.mtd_base,
    &sipTypeDef_QtGui_QList_0100QTextBlock.mtd_base,
    &sipTypeDef_QtGui_QList_0101QTextFrame.mtd_base,
    &sipTypeDef_QtGui_QList_0100QTextLayout_FormatRange.mtd_base,
    &sipTypeDef_QtGui_QList_0100QTextOption_Tab.mtd_base,
    &sipTypeDef_QtGui_QList_0111QTouchDevice.mtd_base,
    &sipTypeDef_QtGui_QList_0100QTouchEvent_TouchPoint.mtd_base,
    &sipTypeDef_QtGui_QList_0101QWindow.mtd_base,
    &sipTypeDef_QtGui_QMatrix2x2.super.ctd_base,
    &sipTypeDef_QtGui_QMatrix2x3.super.ctd_base,
    &sipTypeDef_QtGui_QMatrix2x4.super.ctd_base,
    &sipTypeDef_QtGui_QMatrix3x2.super.ctd_base,
    &sipTypeDef_QtGui_QMatrix3x3.super.ctd_base,
    &sipTypeDef_QtGui_QMatrix3x4.super.ctd_base,
    &sipTypeDef_QtGui_QMatrix4x2.super.ctd_base,
    &sipTypeDef_QtGui_QMatrix4x3.super.ctd_base,
    &sipTypeDef_QtGui_QMatrix4x4.super.ctd_base,
    &sipTypeDef_QtGui_QMouseEvent.super.ctd_base,
    &sipTypeDef_QtGui_QMoveEvent.super.ctd_base,
    &sipTypeDef_QtGui_QMovie.super.ctd_base,
    &enumTypes[97].etd_base,
    &enumTypes[98].etd_base,
    &sipTypeDef_QtGui_QNativeGestureEvent.super.ctd_base,
    &sipTypeDef_QtGui_QOffscreenSurface.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLBuffer.super.ctd_base,
    &enumTypes[94].etd_base,
    &enumTypes[93].etd_base,
    &sipTypeDef_QtGui_QOpenGLBuffer_RangeAccessFlags.super.ctd_base,
    &enumTypes[96].etd_base,
    &enumTypes[95].etd_base,
    &sipTypeDef_QtGui_QOpenGLContext.super.ctd_base,
    &enumTypes[92].etd_base,
    &sipTypeDef_QtGui_QOpenGLContextGroup.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLDebugLogger.super.ctd_base,
    &enumTypes[88].etd_base,
    &sipTypeDef_QtGui_QOpenGLDebugMessage.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLDebugMessage_Severities.super.ctd_base,
    &enumTypes[89].etd_base,
    &enumTypes[91].etd_base,
    &sipTypeDef_QtGui_QOpenGLDebugMessage_Sources.super.ctd_base,
    &enumTypes[90].etd_base,
    &sipTypeDef_QtGui_QOpenGLDebugMessage_Types.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLFramebufferObject.super.ctd_base,
    &enumTypes[87].etd_base,
    &sipTypeDef_QtGui_QOpenGLFramebufferObjectFormat.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLPaintDevice.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLPixelTransferOptions.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLShader.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLShader_ShaderType.super.ctd_base,
    &enumTypes[86].etd_base,
    &sipTypeDef_QtGui_QOpenGLShaderProgram.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLTexture.super.ctd_base,
    &enumTypes[84].etd_base,
    &enumTypes[71].etd_base,
    &enumTypes[80].etd_base,
    &enumTypes[74].etd_base,
    &enumTypes[77].etd_base,
    &sipTypeDef_QtGui_QOpenGLTexture_Features.super.ctd_base,
    &enumTypes[73].etd_base,
    &enumTypes[83].etd_base,
    &enumTypes[79].etd_base,
    &enumTypes[78].etd_base,
    &enumTypes[76].etd_base,
    &enumTypes[75].etd_base,
    &enumTypes[85].etd_base,
    &enumTypes[81].etd_base,
    &enumTypes[82].etd_base,
    &enumTypes[72].etd_base,
    &sipTypeDef_QtGui_QOpenGLTimeMonitor.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLTimerQuery.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLVersionProfile.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLVertexArrayObject.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLVertexArrayObject_Binder.super.ctd_base,
    &sipTypeDef_QtGui_QOpenGLWindow.super.ctd_base,
    &enumTypes[70].etd_base,
    &sipTypeDef_QtGui_QPageLayout.super.ctd_base,
    &enumTypes[66].etd_base,
    &enumTypes[67].etd_base,
    &enumTypes[68].etd_base,
    &sipTypeDef_QtGui_QPageSize.super.ctd_base,
    &enumTypes[65].etd_base,
    &enumTypes[63].etd_base,
    &enumTypes[64].etd_base,
    &sipTypeDef_QtGui_QPagedPaintDevice.super.ctd_base,
    &sipTypeDef_QtGui_QPagedPaintDevice_Margins.super.ctd_base,
    &enumTypes[69].etd_base,
    &sipTypeDef_QtGui_QPaintDevice.super.ctd_base,
    &enumTypes[59].etd_base,
    &sipTypeDef_QtGui_QPaintDeviceWindow.super.ctd_base,
    &sipTypeDef_QtGui_QPaintEngine.super.ctd_base,
    &enumTypes[56].etd_base,
    &sipTypeDef_QtGui_QPaintEngine_DirtyFlags.super.ctd_base,
    &enumTypes[57].etd_base,
    &sipTypeDef_QtGui_QPaintEngine_PaintEngineFeatures.super.ctd_base,
    &enumTypes[55].etd_base,
    &enumTypes[54].etd_base,
    &sipTypeDef_QtGui_QPaintEngineState.super.ctd_base,
    &sipTypeDef_QtGui_QPaintEvent.super.ctd_base,
    &sipTypeDef_QtGui_QPainter.super.ctd_base,
    &enumTypes[61].etd_base,
    &sipTypeDef_QtGui_QPainter_PixmapFragment.super.ctd_base,
    &enumTypes[60].etd_base,
    &sipTypeDef_QtGui_QPainter_PixmapFragmentHints.super.ctd_base,
    &enumTypes[62].etd_base,
    &sipTypeDef_QtGui_QPainter_RenderHints.super.ctd_base,
    &sipTypeDef_QtGui_QPainterPath.super.ctd_base,
    &sipTypeDef_QtGui_QPainterPath_Element.super.ctd_base,
    &enumTypes[53].etd_base,
    &sipTypeDef_QtGui_QPainterPathStroker.super.ctd_base,
    &sipTypeDef_QtGui_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter.mtd_base,
    &sipTypeDef_QtGui_QPair_2200_2200.mtd_base,
    &sipTypeDef_QtGui_QPalette.super.ctd_base,
    &enumTypes[52].etd_base,
    &enumTypes[51].etd_base,
    &sipTypeDef_QtGui_QPdfWriter.super.ctd_base,
    &sipTypeDef_QtGui_QPen.super.ctd_base,
    &sipTypeDef_QtGui_QPicture.super.ctd_base,
    &sipTypeDef_QtGui_QPictureIO.super.ctd_base,
    &sipTypeDef_QtGui_QPixelFormat.super.ctd_base,
    &enumTypes[48].etd_base,
    &enumTypes[47].etd_base,
    &enumTypes[49].etd_base,
    &enumTypes[44].etd_base,
    &enumTypes[50].etd_base,
    &enumTypes[46].etd_base,
    &enumTypes[45].etd_base,
    &sipTypeDef_QtGui_QPixmap.super.ctd_base,
    &sipTypeDef_QtGui_QPixmapCache.super.ctd_base,
    &sipTypeDef_QtGui_QPixmapCache_Key.super.ctd_base,
    &sipTypeDef_QtGui_QPolygon.super.ctd_base,
    &sipTypeDef_QtGui_QPolygonF.super.ctd_base,
    &sipTypeDef_QtGui_QQuaternion.super.ctd_base,
    &sipTypeDef_QtGui_QRadialGradient.super.ctd_base,
    &sipTypeDef_QtGui_QRasterWindow.super.ctd_base,
    &sipTypeDef_QtGui_QRawFont.super.ctd_base,
    &enumTypes[43].etd_base,
    &enumTypes[42].etd_base,
    &sipTypeDef_QtGui_QRawFont_LayoutFlags.super.ctd_base,
    &sipTypeDef_QtGui_QRegExpValidator.super.ctd_base,
    &sipTypeDef_QtGui_QRegion.super.ctd_base,
    &enumTypes[41].etd_base,
    &sipTypeDef_QtGui_QRegularExpressionValidator.super.ctd_base,
    &sipTypeDef_QtGui_QResizeEvent.super.ctd_base,
    &sipTypeDef_QtGui_QScreen.super.ctd_base,
    &sipTypeDef_QtGui_QScrollEvent.super.ctd_base,
    &enumTypes[122].etd_base,
    &sipTypeDef_QtGui_QScrollPrepareEvent.super.ctd_base,
    &sipTypeDef_QtGui_QSessionManager.super.ctd_base,
    &enumTypes[40].etd_base,
    &sipTypeDef_QtGui_QSet_0100QByteArray.mtd_base,
    &sipTypeDef_QtGui_QShortcutEvent.super.ctd_base,
    &sipTypeDef_QtGui_QShowEvent.super.ctd_base,
    &sipTypeDef_QtGui_QStandardItem.super.ctd_base,
    &enumTypes[39].etd_base,
    &sipTypeDef_QtGui_QStandardItemModel.super.ctd_base,
    &sipTypeDef_QtGui_QStaticText.super.ctd_base,
    &enumTypes[38].etd_base,
    &sipTypeDef_QtGui_QStatusTipEvent.super.ctd_base,
    &sipTypeDef_QtGui_QStyleHints.super.ctd_base,
    &sipTypeDef_QtGui_QSurface.super.ctd_base,
    &enumTypes[37].etd_base,
    &enumTypes[36].etd_base,
    &sipTypeDef_QtGui_QSurfaceFormat.super.ctd_base,
    &enumTypes[35].etd_base,
    &sipTypeDef_QtGui_QSurfaceFormat_FormatOptions.super.ctd_base,
    &enumTypes[32].etd_base,
    &enumTypes[33].etd_base,
    &enumTypes[34].etd_base,
    &sipTypeDef_QtGui_QSyntaxHighlighter.super.ctd_base,
    &sipTypeDef_QtGui_QTabletEvent.super.ctd_base,
    &enumTypes[126].etd_base,
    &enumTypes[127].etd_base,
    &sipTypeDef_QtGui_QTextBlock.super.ctd_base,
    &sipTypeDef_QtGui_QTextBlock_iterator.super.ctd_base,
    &sipTypeDef_QtGui_QTextBlockFormat.super.ctd_base,
    &enumTypes[16].etd_base,
    &sipTypeDef_QtGui_QTextBlockGroup.super.ctd_base,
    &sipTypeDef_QtGui_QTextBlockUserData.super.ctd_base,
    &sipTypeDef_QtGui_QTextCharFormat.super.ctd_base,
    &enumTypes[17].etd_base,
    &enumTypes[18].etd_base,
    &enumTypes[19].etd_base,
    &sipTypeDef_QtGui_QTextCursor.super.ctd_base,
    &enumTypes[31].etd_base,
    &enumTypes[30].etd_base,
    &enumTypes[29].etd_base,
    &sipTypeDef_QtGui_QTextDocument.super.ctd_base,
    &enumTypes[27].etd_base,
    &sipTypeDef_QtGui_QTextDocument_FindFlags.super.ctd_base,
    &enumTypes[28].etd_base,
    &enumTypes[26].etd_base,
    &enumTypes[25].etd_base,
    &sipTypeDef_QtGui_QTextDocumentFragment.super.ctd_base,
    &sipTypeDef_QtGui_QTextDocumentWriter.super.ctd_base,
    &sipTypeDef_QtGui_QTextFormat.super.ctd_base,
    &enumTypes[23].etd_base,
    &enumTypes[22].etd_base,
    &enumTypes[21].etd_base,
    &sipTypeDef_QtGui_QTextFormat_PageBreakFlags.super.ctd_base,
    &enumTypes[20].etd_base,
    &sipTypeDef_QtGui_QTextFragment.super.ctd_base,
    &sipTypeDef_QtGui_QTextFrame.super.ctd_base,
    &sipTypeDef_QtGui_QTextFrame_iterator.super.ctd_base,
    &sipTypeDef_QtGui_QTextFrameFormat.super.ctd_base,
    &enumTypes[13].etd_base,
    &enumTypes[14].etd_base,
    &sipTypeDef_QtGui_QTextImageFormat.super.ctd_base,
    &sipTypeDef_QtGui_QTextInlineObject.super.ctd_base,
    &sipTypeDef_QtGui_QTextItem.super.ctd_base,
    &enumTypes[58].etd_base,
    &sipTypeDef_QtGui_QTextItem_RenderFlags.super.ctd_base,
    &sipTypeDef_QtGui_QTextLayout.super.ctd_base,
    &enumTypes[12].etd_base,
    &sipTypeDef_QtGui_QTextLayout_FormatRange.super.ctd_base,
    &sipTypeDef_QtGui_QTextLength.super.ctd_base,
    &enumTypes[24].etd_base,
    &sipTypeDef_QtGui_QTextLine.super.ctd_base,
    &enumTypes[10].etd_base,
    &enumTypes[11].etd_base,
    &sipTypeDef_QtGui_QTextList.super.ctd_base,
    &sipTypeDef_QtGui_QTextListFormat.super.ctd_base,
    &enumTypes[15].etd_base,
    &sipTypeDef_QtGui_QTextObject.super.ctd_base,
    &sipTypeDef_QtGui_QTextObjectInterface.super.ctd_base,
    &sipTypeDef_QtGui_QTextOption.super.ctd_base,
    &enumTypes[8].etd_base,
    &sipTypeDef_QtGui_QTextOption_Flags.super.ctd_base,
    &sipTypeDef_QtGui_QTextOption_Tab.super.ctd_base,
    &enumTypes[7].etd_base,
    &enumTypes[9].etd_base,
    &sipTypeDef_QtGui_QTextTable.super.ctd_base,
    &sipTypeDef_QtGui_QTextTableCell.super.ctd_base,
    &sipTypeDef_QtGui_QTextTableCellFormat.super.ctd_base,
    &sipTypeDef_QtGui_QTextTableFormat.super.ctd_base,
    &sipTypeDef_QtGui_QTouchDevice.super.ctd_base,
    &sipTypeDef_QtGui_QTouchDevice_Capabilities.super.ctd_base,
    &enumTypes[5].etd_base,
    &enumTypes[6].etd_base,
    &sipTypeDef_QtGui_QTouchEvent.super.ctd_base,
    &sipTypeDef_QtGui_QTouchEvent_TouchPoint.super.ctd_base,
    &enumTypes[123].etd_base,
    &sipTypeDef_QtGui_QTouchEvent_TouchPoint_InfoFlags.super.ctd_base,
    &sipTypeDef_QtGui_QTransform.super.ctd_base,
    &enumTypes[4].etd_base,
    &sipTypeDef_QtGui_QValidator.super.ctd_base,
    &enumTypes[3].etd_base,
    &sipTypeDef_QtGui_QVector2D.super.ctd_base,
    &sipTypeDef_QtGui_QVector3D.super.ctd_base,
    &sipTypeDef_QtGui_QVector4D.super.ctd_base,
    &sipTypeDef_QtGui_QVector_3900.mtd_base,
    &sipTypeDef_QtGui_QVector_0100QAbstractTextDocumentLayout_Selection.mtd_base,
    &sipTypeDef_QtGui_QVector_0100QLine.mtd_base,
    &sipTypeDef_QtGui_QVector_0100QLineF.mtd_base,
    &sipTypeDef_QtGui_QVector_0600QPair_2400_0100QColor.mtd_base,
    &sipTypeDef_QtGui_QVector_0100QPoint.mtd_base,
    &sipTypeDef_QtGui_QVector_0100QRect.mtd_base,
    &sipTypeDef_QtGui_QVector_0100QRectF.mtd_base,
    &sipTypeDef_QtGui_QVector_0100QTextFormat.mtd_base,
    &sipTypeDef_QtGui_QVector_0100QTextLayout_FormatRange.mtd_base,
    &sipTypeDef_QtGui_QVector_0100QTextLength.mtd_base,
    &sipTypeDef_QtGui_QVector_2200.mtd_base,
    &sipTypeDef_QtGui_QVector_2400.mtd_base,
    &sipTypeDef_QtGui_QVector_1900.mtd_base,
    &sipTypeDef_QtGui_QWhatsThisClickedEvent.super.ctd_base,
    &sipTypeDef_QtGui_QWheelEvent.super.ctd_base,
    &sipTypeDef_QtGui_QWindow.super.ctd_base,
    &enumTypes[1].etd_base,
    &enumTypes[0].etd_base,
    &sipTypeDef_QtGui_QWindowStateChangeEvent.super.ctd_base,
    &sipTypeDef_QtGui_Qt.super.ctd_base,
};


/*
 * These define each typedef in this module.
 */
static sipTypedefDef typedefsTable[] = {
    {"GLbitfield", "uint"},
    {"GLboolean", "unsigned char"},
    {"GLbyte", "signed char"},
    {"GLchar", "char"},
    {"GLclampf", "float"},
    {"GLdouble", "double"},
    {"GLenum", "uint"},
    {"GLfloat", "float"},
    {"GLint", "int"},
    {"GLintptr", "long"},
    {"GLshort", "short"},
    {"GLsizei", "int"},
    {"GLsizeiptr", "long"},
    {"GLubyte", "unsigned char"},
    {"GLuint", "uint"},
    {"GLuint64", "unsigned long long"},
    {"GLushort", "unsigned short"},
    {"QGradientStops", "QVector<QPair<qreal,QColor> >"},
    {"QRgb", "uint"},
    {"QTextBlock::Iterator", "QTextBlock::iterator"},
    {"QTextFrame::Iterator", "QTextFrame::iterator"},
    {"QWindowList", "QList<QWindow*>"},
    {"WId", "quintptr"},
};


/*
 * This defines the virtual handlers that this module implements and can be
 * used by other modules.
 */
static sipVirtHandlerFunc virtHandlersTable[] = {
    (sipVirtHandlerFunc)sipVH_QtGui_0,
    (sipVirtHandlerFunc)sipVH_QtGui_1,
    (sipVirtHandlerFunc)sipVH_QtGui_2,
    (sipVirtHandlerFunc)sipVH_QtGui_3,
    (sipVirtHandlerFunc)sipVH_QtGui_4,
    (sipVirtHandlerFunc)sipVH_QtGui_5,
    (sipVirtHandlerFunc)sipVH_QtGui_6,
    (sipVirtHandlerFunc)sipVH_QtGui_7,
    (sipVirtHandlerFunc)sipVH_QtGui_8,
    (sipVirtHandlerFunc)sipVH_QtGui_9,
    (sipVirtHandlerFunc)sipVH_QtGui_10,
    (sipVirtHandlerFunc)sipVH_QtGui_11,
    (sipVirtHandlerFunc)sipVH_QtGui_12,
    (sipVirtHandlerFunc)sipVH_QtGui_13,
    (sipVirtHandlerFunc)sipVH_QtGui_14,
    (sipVirtHandlerFunc)sipVH_QtGui_15,
    (sipVirtHandlerFunc)sipVH_QtGui_16,
    (sipVirtHandlerFunc)sipVH_QtGui_17,
    (sipVirtHandlerFunc)sipVH_QtGui_18,
    (sipVirtHandlerFunc)sipVH_QtGui_19,
    (sipVirtHandlerFunc)sipVH_QtGui_20,
    (sipVirtHandlerFunc)sipVH_QtGui_21,
    (sipVirtHandlerFunc)sipVH_QtGui_22,
    (sipVirtHandlerFunc)sipVH_QtGui_23,
    (sipVirtHandlerFunc)sipVH_QtGui_24,
    (sipVirtHandlerFunc)sipVH_QtGui_25,
    (sipVirtHandlerFunc)sipVH_QtGui_26,
    (sipVirtHandlerFunc)sipVH_QtGui_27,
    (sipVirtHandlerFunc)sipVH_QtGui_28,
    (sipVirtHandlerFunc)sipVH_QtGui_29,
    (sipVirtHandlerFunc)sipVH_QtGui_30,
    (sipVirtHandlerFunc)sipVH_QtGui_31,
    (sipVirtHandlerFunc)sipVH_QtGui_32,
    (sipVirtHandlerFunc)sipVH_QtGui_33,
    (sipVirtHandlerFunc)sipVH_QtGui_34,
    (sipVirtHandlerFunc)sipVH_QtGui_35,
    (sipVirtHandlerFunc)sipVH_QtGui_36,
    (sipVirtHandlerFunc)sipVH_QtGui_37,
    (sipVirtHandlerFunc)sipVH_QtGui_38,
    (sipVirtHandlerFunc)sipVH_QtGui_39,
    (sipVirtHandlerFunc)sipVH_QtGui_40,
    (sipVirtHandlerFunc)sipVH_QtGui_41,
    (sipVirtHandlerFunc)sipVH_QtGui_42,
    (sipVirtHandlerFunc)sipVH_QtGui_43,
    (sipVirtHandlerFunc)sipVH_QtGui_44,
    (sipVirtHandlerFunc)sipVH_QtGui_45,
    (sipVirtHandlerFunc)sipVH_QtGui_46,
    (sipVirtHandlerFunc)sipVH_QtGui_47,
    (sipVirtHandlerFunc)sipVH_QtGui_48,
    (sipVirtHandlerFunc)sipVH_QtGui_49,
    (sipVirtHandlerFunc)sipVH_QtGui_50,
    (sipVirtHandlerFunc)sipVH_QtGui_51,
    (sipVirtHandlerFunc)sipVH_QtGui_52,
    (sipVirtHandlerFunc)sipVH_QtGui_53,
    (sipVirtHandlerFunc)sipVH_QtGui_54,
    (sipVirtHandlerFunc)sipVH_QtGui_55,
    (sipVirtHandlerFunc)sipVH_QtGui_56,
    (sipVirtHandlerFunc)sipVH_QtGui_57,
    (sipVirtHandlerFunc)sipVH_QtGui_58,
    (sipVirtHandlerFunc)sipVH_QtGui_59,
    (sipVirtHandlerFunc)sipVH_QtGui_60,
    (sipVirtHandlerFunc)sipVH_QtGui_61,
    (sipVirtHandlerFunc)sipVH_QtGui_62,
    (sipVirtHandlerFunc)sipVH_QtGui_63,
    (sipVirtHandlerFunc)sipVH_QtGui_64,
    (sipVirtHandlerFunc)sipVH_QtGui_65,
    (sipVirtHandlerFunc)sipVH_QtGui_66,
    (sipVirtHandlerFunc)sipVH_QtGui_67,
    (sipVirtHandlerFunc)sipVH_QtGui_68,
    (sipVirtHandlerFunc)sipVH_QtGui_69,
    (sipVirtHandlerFunc)sipVH_QtGui_70,
    (sipVirtHandlerFunc)sipVH_QtGui_71,
    (sipVirtHandlerFunc)sipVH_QtGui_72,
    (sipVirtHandlerFunc)sipVH_QtGui_73,
    (sipVirtHandlerFunc)sipVH_QtGui_74,
    (sipVirtHandlerFunc)sipVH_QtGui_75,
    (sipVirtHandlerFunc)sipVH_QtGui_76,
};


/* This defines the modules that this module needs to import. */
static sipImportedModuleDef importsTable[] = {
    {"PyQt5.QtCore", 1, NULL},
    {NULL, -1, NULL}
};


/* This defines the class sub-convertors that this module defines. */
static sipSubClassConvertorDef convertorsTable[] = {
    {sipSubClass_QInputEvent, {53, 0, 0}, NULL},
    {sipSubClass_QGuiApplication, {162, 0, 0}, NULL},
    {NULL, {0, 0, 0}, NULL}
};


/* This defines this module. */
sipExportedModuleDef sipModuleAPI_QtGui = {
    0,
    SIP_API_MINOR_NR,
    sipNameNr_PyQt5_QtGui,
    0,
    -1,
    sipStrings_QtGui,
    importsTable,
    NULL,
    367,
    typesTable,
    externalTypesTable,
    0,
    NULL,
    23,
    typedefsTable,
    virtHandlersTable,
    NULL,
    convertorsTable,
    {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL},
    NULL,
    NULL,
    slotExtenders,
    initExtenders,
    NULL,
    NULL,
    NULL,
    NULL
};


/* The SIP API and the APIs of any imported modules. */
const sipAPIDef *sipAPI_QtGui;
const sipExportedModuleDef *sipModuleAPI_QtGui_QtCore;

sip_qt_metaobject_func sip_QtGui_qt_metaobject;
sip_qt_metacall_func sip_QtGui_qt_metacall;
sip_qt_metacast_func sip_QtGui_qt_metacast;


/* The Python module initialisation function. */
#if PY_MAJOR_VERSION >= 3
#define SIP_MODULE_ENTRY        PyInit_QtGui
#define SIP_MODULE_TYPE         PyObject *
#define SIP_MODULE_DISCARD(r)   Py_DECREF(r)
#define SIP_MODULE_RETURN(r)    return (r)
#else
#define SIP_MODULE_ENTRY        initQtGui
#define SIP_MODULE_TYPE         void
#define SIP_MODULE_DISCARD(r)
#define SIP_MODULE_RETURN(r)    return
#endif

#if defined(SIP_STATIC_MODULE)
extern "C" SIP_MODULE_TYPE SIP_MODULE_ENTRY()
#else
PyMODINIT_FUNC SIP_MODULE_ENTRY()
#endif
{
    static PyMethodDef sip_methods[] = {
        {SIP_MLNAME_CAST(sipName_qUnpremultiply), func_qUnpremultiply, METH_VARARGS, SIP_MLDOC_CAST(doc_qUnpremultiply)},
        {SIP_MLNAME_CAST(sipName_qPremultiply), func_qPremultiply, METH_VARARGS, SIP_MLDOC_CAST(doc_qPremultiply)},
        {SIP_MLNAME_CAST(sipName_qIsGray), func_qIsGray, METH_VARARGS, SIP_MLDOC_CAST(doc_qIsGray)},
        {SIP_MLNAME_CAST(sipName_qGray), func_qGray, METH_VARARGS, SIP_MLDOC_CAST(doc_qGray)},
        {SIP_MLNAME_CAST(sipName_qRgba), func_qRgba, METH_VARARGS, SIP_MLDOC_CAST(doc_qRgba)},
        {SIP_MLNAME_CAST(sipName_qRgb), func_qRgb, METH_VARARGS, SIP_MLDOC_CAST(doc_qRgb)},
        {SIP_MLNAME_CAST(sipName_qAlpha), func_qAlpha, METH_VARARGS, SIP_MLDOC_CAST(doc_qAlpha)},
        {SIP_MLNAME_CAST(sipName_qBlue), func_qBlue, METH_VARARGS, SIP_MLDOC_CAST(doc_qBlue)},
        {SIP_MLNAME_CAST(sipName_qGreen), func_qGreen, METH_VARARGS, SIP_MLDOC_CAST(doc_qGreen)},
        {SIP_MLNAME_CAST(sipName_qRed), func_qRed, METH_VARARGS, SIP_MLDOC_CAST(doc_qRed)},
        {SIP_MLNAME_CAST(sipName_qPixelFormatYuv), (PyCFunction)func_qPixelFormatYuv, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_qPixelFormatYuv)},
        {SIP_MLNAME_CAST(sipName_qPixelFormatHsv), (PyCFunction)func_qPixelFormatHsv, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_qPixelFormatHsv)},
        {SIP_MLNAME_CAST(sipName_qPixelFormatHsl), (PyCFunction)func_qPixelFormatHsl, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_qPixelFormatHsl)},
        {SIP_MLNAME_CAST(sipName_qPixelFormatCmyk), (PyCFunction)func_qPixelFormatCmyk, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_qPixelFormatCmyk)},
        {SIP_MLNAME_CAST(sipName_qPixelFormatGrayscale), (PyCFunction)func_qPixelFormatGrayscale, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_qPixelFormatGrayscale)},
        {SIP_MLNAME_CAST(sipName_qPixelFormatRgba), (PyCFunction)func_qPixelFormatRgba, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_qPixelFormatRgba)},
        {SIP_MLNAME_CAST(sipName_qFuzzyCompare), func_qFuzzyCompare, METH_VARARGS, SIP_MLDOC_CAST(doc_qFuzzyCompare)},
        {0, 0, 0, 0}
    };

#if PY_MAJOR_VERSION >= 3
    static PyModuleDef sip_module_def = {
        PyModuleDef_HEAD_INIT,
        "PyQt5.QtGui",
        NULL,
        -1,
        sip_methods,
        NULL,
        NULL,
        NULL,
        NULL
    };
#endif

    PyObject *sipModule, *sipModuleDict;
    PyObject *sip_sipmod, *sip_capiobj;

    /* Initialise the module and get it's dictionary. */
#if PY_MAJOR_VERSION >= 3
    sipModule = PyModule_Create(&sip_module_def);
#elif PY_VERSION_HEX >= 0x02050000
    sipModule = Py_InitModule(sipName_PyQt5_QtGui, sip_methods);
#else
    sipModule = Py_InitModule(const_cast<char *>(sipName_PyQt5_QtGui), sip_methods);
#endif

    if (sipModule == NULL)
        SIP_MODULE_RETURN(NULL);

    sipModuleDict = PyModule_GetDict(sipModule);

    /* Get the SIP module's API. */
#if PY_VERSION_HEX >= 0x02050000
    sip_sipmod = PyImport_ImportModule(SIP_MODULE_NAME);
#else
    sip_sipmod = PyImport_ImportModule(const_cast<char *>(SIP_MODULE_NAME));
#endif

    if (sip_sipmod == NULL)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(NULL);
    }

    sip_capiobj = PyDict_GetItemString(PyModule_GetDict(sip_sipmod), "_C_API");
    Py_DECREF(sip_sipmod);

#if defined(SIP_USE_PYCAPSULE)
    if (sip_capiobj == NULL || !PyCapsule_CheckExact(sip_capiobj))
#else
    if (sip_capiobj == NULL || !PyCObject_Check(sip_capiobj))
#endif
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(NULL);
    }

#if defined(SIP_USE_PYCAPSULE)
    sipAPI_QtGui = reinterpret_cast<const sipAPIDef *>(PyCapsule_GetPointer(sip_capiobj, SIP_MODULE_NAME "._C_API"));
#else
    sipAPI_QtGui = reinterpret_cast<const sipAPIDef *>(PyCObject_AsVoidPtr(sip_capiobj));
#endif

#if defined(SIP_USE_PYCAPSULE)
    if (sipAPI_QtGui == NULL)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(NULL);
    }
#endif

#line 289 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qguiapplication.sip"
// Export our own helpers.
sipExportSymbol("qtgui_wrap_ancestors", (void *)qtgui_wrap_ancestors);
#line 340 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#if defined(SIP_FEATURE_PyQt_OpenGL)
qpyopengl_init();
#endif
#line 8013 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
    /* Export the module and publish it's API. */
    if (sipExportModule(&sipModuleAPI_QtGui,SIP_API_MAJOR_NR,SIP_API_MINOR_NR,0) < 0)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(0);
    }

    sip_QtGui_qt_metaobject = (sip_qt_metaobject_func)sipImportSymbol("qtcore_qt_metaobject");
    sip_QtGui_qt_metacall = (sip_qt_metacall_func)sipImportSymbol("qtcore_qt_metacall");
    sip_QtGui_qt_metacast = (sip_qt_metacast_func)sipImportSymbol("qtcore_qt_metacast");

    if (!sip_QtGui_qt_metacast)
        Py_FatalError("Unable to import qtcore_qt_metacast");

    /* Initialise the module now all its dependencies have been set up. */
    if (sipInitModule(&sipModuleAPI_QtGui,sipModuleDict) < 0)
    {
        SIP_MODULE_DISCARD(sipModule);
        SIP_MODULE_RETURN(0);
    }

    /* Get the APIs of the modules that this one is dependent on. */
    sipModuleAPI_QtGui_QtCore = sipModuleAPI_QtGui.em_imports[0].im_module;
#line 294 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qguiapplication.sip"
// Imports from QtCore.
pyqt5_qtgui_from_argv_list = (pyqt5_qtgui_from_argv_list_t)sipImportSymbol("pyqt5_from_argv_list");
pyqt5_qtgui_update_argv_list = (pyqt5_qtgui_update_argv_list_t)sipImportSymbol("pyqt5_update_argv_list");
#line 8041 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    SIP_MODULE_RETURN(sipModule);
}

#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8048 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 8052 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0111QTouchDevice(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0111QTouchDevice(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<const QTouchDevice*> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<const QTouchDevice*> *>(sipSrc);
}


extern "C" {static void *array_QList_0111QTouchDevice(SIP_SSIZE_T);}
static void *array_QList_0111QTouchDevice(SIP_SSIZE_T sipNrElem)
{
    return new QList<const QTouchDevice*>[sipNrElem];
}


extern "C" {static void *copy_QList_0111QTouchDevice(const void *, SIP_SSIZE_T);}
static void *copy_QList_0111QTouchDevice(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<const QTouchDevice*>(reinterpret_cast<const QList<const QTouchDevice*> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0111QTouchDevice(void *, int);}
static void release_QList_0111QTouchDevice(void *ptr, int)
{
    delete reinterpret_cast<QList<const QTouchDevice*> *>(ptr);
}



extern "C" {static int convertTo_QList_0111QTouchDevice(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0111QTouchDevice(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<const QTouchDevice*> **sipCppPtr = reinterpret_cast<QList<const QTouchDevice*> **>(sipCppPtrV);

#line 175 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<const QTouchDevice *> *ql = new QList<const QTouchDevice *>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        const QTouchDevice *t = reinterpret_cast<const QTouchDevice *>(
                sipForceConvertToType(itm, sipType_QTouchDevice, sipTransferObj, 0,
                        0, sipIsErr));
 
        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'const QTouchDevice' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(t);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 8159 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0111QTouchDevice(void *, PyObject *);}
static PyObject *convertFrom_QList_0111QTouchDevice(void *sipCppV, PyObject *sipTransferObj)
{
   QList<const QTouchDevice*> *sipCpp = reinterpret_cast<QList<const QTouchDevice*> *>(sipCppV);

#line 148 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        const QTouchDevice *t = sipCpp->at(i);

        // The explicit (void *) cast allows const QTouchDevice to be const.
        PyObject *tobj = sipConvertFromType((void *)t, sipType_QTouchDevice,
                sipTransferObj);

        if (!tobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 8193 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0111QTouchDevice = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_9187,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0111QTouchDevice,
    array_QList_0111QTouchDevice,
    copy_QList_0111QTouchDevice,
    release_QList_0111QTouchDevice,
    convertTo_QList_0111QTouchDevice,
    convertFrom_QList_0111QTouchDevice
};

#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8224 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 8228 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0101QTextFrame(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0101QTextFrame(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QTextFrame*> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QTextFrame*> *>(sipSrc);
}


extern "C" {static void *array_QList_0101QTextFrame(SIP_SSIZE_T);}
static void *array_QList_0101QTextFrame(SIP_SSIZE_T sipNrElem)
{
    return new QList<QTextFrame*>[sipNrElem];
}


extern "C" {static void *copy_QList_0101QTextFrame(const void *, SIP_SSIZE_T);}
static void *copy_QList_0101QTextFrame(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QTextFrame*>(reinterpret_cast<const QList<QTextFrame*> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0101QTextFrame(void *, int);}
static void release_QList_0101QTextFrame(void *ptr, int)
{
    delete reinterpret_cast<QList<QTextFrame*> *>(ptr);
}



extern "C" {static int convertTo_QList_0101QTextFrame(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0101QTextFrame(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QTextFrame*> **sipCppPtr = reinterpret_cast<QList<QTextFrame*> **>(sipCppPtrV);

#line 175 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QTextFrame *> *ql = new QList<QTextFrame *>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        QTextFrame *t = reinterpret_cast<QTextFrame *>(
                sipForceConvertToType(itm, sipType_QTextFrame, sipTransferObj, 0,
                        0, sipIsErr));
 
        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QTextFrame' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(t);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 8335 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0101QTextFrame(void *, PyObject *);}
static PyObject *convertFrom_QList_0101QTextFrame(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QTextFrame*> *sipCpp = reinterpret_cast<QList<QTextFrame*> *>(sipCppV);

#line 148 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QTextFrame *t = sipCpp->at(i);

        // The explicit (void *) cast allows QTextFrame to be const.
        PyObject *tobj = sipConvertFromType((void *)t, sipType_QTextFrame,
                sipTransferObj);

        if (!tobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 8369 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QTextFrame = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_12221,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0101QTextFrame,
    array_QList_0101QTextFrame,
    copy_QList_0101QTextFrame,
    release_QList_0101QTextFrame,
    convertTo_QList_0101QTextFrame,
    convertFrom_QList_0101QTextFrame
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8400 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 8404 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QTextBlock(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QTextBlock(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QTextBlock> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QTextBlock> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QTextBlock(SIP_SSIZE_T);}
static void *array_QList_0100QTextBlock(SIP_SSIZE_T sipNrElem)
{
    return new QList<QTextBlock>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QTextBlock(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QTextBlock(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QTextBlock>(reinterpret_cast<const QList<QTextBlock> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QTextBlock(void *, int);}
static void release_QList_0100QTextBlock(void *ptr, int)
{
    delete reinterpret_cast<QList<QTextBlock> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QTextBlock(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QTextBlock(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QTextBlock> **sipCppPtr = reinterpret_cast<QList<QTextBlock> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QTextBlock> *ql = new QList<QTextBlock>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QTextBlock *t = reinterpret_cast<QTextBlock *>(
                sipForceConvertToType(itm, sipType_QTextBlock, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QTextBlock' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QTextBlock, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 8513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QTextBlock(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QTextBlock(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QTextBlock> *sipCpp = reinterpret_cast<QList<QTextBlock> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QTextBlock *t = new QTextBlock(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QTextBlock,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 8546 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QTextBlock = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_14596,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QTextBlock,
    array_QList_0100QTextBlock,
    copy_QList_0100QTextBlock,
    release_QList_0100QTextBlock,
    convertTo_QList_0100QTextBlock,
    convertFrom_QList_0100QTextBlock
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8577 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 8581 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QGlyphRun(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QGlyphRun(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QGlyphRun> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QGlyphRun> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QGlyphRun(SIP_SSIZE_T);}
static void *array_QList_0100QGlyphRun(SIP_SSIZE_T sipNrElem)
{
    return new QList<QGlyphRun>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QGlyphRun(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QGlyphRun(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QGlyphRun>(reinterpret_cast<const QList<QGlyphRun> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QGlyphRun(void *, int);}
static void release_QList_0100QGlyphRun(void *ptr, int)
{
    delete reinterpret_cast<QList<QGlyphRun> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QGlyphRun(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QGlyphRun(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QGlyphRun> **sipCppPtr = reinterpret_cast<QList<QGlyphRun> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QGlyphRun> *ql = new QList<QGlyphRun>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QGlyphRun *t = reinterpret_cast<QGlyphRun *>(
                sipForceConvertToType(itm, sipType_QGlyphRun, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QGlyphRun' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QGlyphRun, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 8690 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QGlyphRun(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QGlyphRun(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QGlyphRun> *sipCpp = reinterpret_cast<QList<QGlyphRun> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QGlyphRun *t = new QGlyphRun(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QGlyphRun,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 8723 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QGlyphRun = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_17044,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QGlyphRun,
    array_QList_0100QGlyphRun,
    copy_QList_0100QGlyphRun,
    release_QList_0100QGlyphRun,
    convertTo_QList_0100QGlyphRun,
    convertFrom_QList_0100QGlyphRun
};

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 8754 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 8760 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0100QTextLayout_FormatRange(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0100QTextLayout_FormatRange(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QTextLayout::FormatRange> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QTextLayout::FormatRange> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100QTextLayout_FormatRange(SIP_SSIZE_T);}
static void *array_QVector_0100QTextLayout_FormatRange(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QTextLayout::FormatRange>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100QTextLayout_FormatRange(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0100QTextLayout_FormatRange(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QTextLayout::FormatRange>(reinterpret_cast<const QVector<QTextLayout::FormatRange> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100QTextLayout_FormatRange(void *, int);}
static void release_QVector_0100QTextLayout_FormatRange(void *ptr, int)
{
    delete reinterpret_cast<QVector<QTextLayout::FormatRange> *>(ptr);
}



extern "C" {static int convertTo_QVector_0100QTextLayout_FormatRange(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100QTextLayout_FormatRange(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QTextLayout::FormatRange> **sipCppPtr = reinterpret_cast<QVector<QTextLayout::FormatRange> **>(sipCppPtrV);

#line 56 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QTextLayout::FormatRange> *qv = new QVector<QTextLayout::FormatRange>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QTextLayout::FormatRange *t = reinterpret_cast<QTextLayout::FormatRange *>(
                sipForceConvertToType(itm, sipType_QTextLayout_FormatRange, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QTextLayout::FormatRange' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(*t);

        sipReleaseType(t, sipType_QTextLayout_FormatRange, state);
        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 8869 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100QTextLayout_FormatRange(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100QTextLayout_FormatRange(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QTextLayout::FormatRange> *sipCpp = reinterpret_cast<QVector<QTextLayout::FormatRange> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QTextLayout::FormatRange *t = new QTextLayout::FormatRange(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QTextLayout_FormatRange,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 8902 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QTextLayout_FormatRange = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_630,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QTextLayout_FormatRange,
    array_QVector_0100QTextLayout_FormatRange,
    copy_QVector_0100QTextLayout_FormatRange,
    release_QVector_0100QTextLayout_FormatRange,
    convertTo_QVector_0100QTextLayout_FormatRange,
    convertFrom_QVector_0100QTextLayout_FormatRange
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 8933 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 8939 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QTextLayout_FormatRange(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QTextLayout_FormatRange(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QTextLayout::FormatRange> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QTextLayout::FormatRange> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QTextLayout_FormatRange(SIP_SSIZE_T);}
static void *array_QList_0100QTextLayout_FormatRange(SIP_SSIZE_T sipNrElem)
{
    return new QList<QTextLayout::FormatRange>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QTextLayout_FormatRange(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QTextLayout_FormatRange(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QTextLayout::FormatRange>(reinterpret_cast<const QList<QTextLayout::FormatRange> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QTextLayout_FormatRange(void *, int);}
static void release_QList_0100QTextLayout_FormatRange(void *ptr, int)
{
    delete reinterpret_cast<QList<QTextLayout::FormatRange> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QTextLayout_FormatRange(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QTextLayout_FormatRange(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QTextLayout::FormatRange> **sipCppPtr = reinterpret_cast<QList<QTextLayout::FormatRange> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QTextLayout::FormatRange> *ql = new QList<QTextLayout::FormatRange>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QTextLayout::FormatRange *t = reinterpret_cast<QTextLayout::FormatRange *>(
                sipForceConvertToType(itm, sipType_QTextLayout_FormatRange, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QTextLayout::FormatRange' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QTextLayout_FormatRange, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 9048 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QTextLayout_FormatRange(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QTextLayout_FormatRange(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QTextLayout::FormatRange> *sipCpp = reinterpret_cast<QList<QTextLayout::FormatRange> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QTextLayout::FormatRange *t = new QTextLayout::FormatRange(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QTextLayout_FormatRange,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 9081 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QTextLayout_FormatRange = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1297,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QTextLayout_FormatRange,
    array_QList_0100QTextLayout_FormatRange,
    copy_QList_0100QTextLayout_FormatRange,
    release_QList_0100QTextLayout_FormatRange,
    convertTo_QList_0100QTextLayout_FormatRange,
    convertFrom_QList_0100QTextLayout_FormatRange
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 9112 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 85 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 9118 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QTextOption_Tab(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QTextOption_Tab(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QTextOption::Tab> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QTextOption::Tab> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QTextOption_Tab(SIP_SSIZE_T);}
static void *array_QList_0100QTextOption_Tab(SIP_SSIZE_T sipNrElem)
{
    return new QList<QTextOption::Tab>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QTextOption_Tab(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QTextOption_Tab(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QTextOption::Tab>(reinterpret_cast<const QList<QTextOption::Tab> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QTextOption_Tab(void *, int);}
static void release_QList_0100QTextOption_Tab(void *ptr, int)
{
    delete reinterpret_cast<QList<QTextOption::Tab> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QTextOption_Tab(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QTextOption_Tab(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QTextOption::Tab> **sipCppPtr = reinterpret_cast<QList<QTextOption::Tab> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QTextOption::Tab> *ql = new QList<QTextOption::Tab>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QTextOption::Tab *t = reinterpret_cast<QTextOption::Tab *>(
                sipForceConvertToType(itm, sipType_QTextOption_Tab, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QTextOption::Tab' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QTextOption_Tab, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 9227 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QTextOption_Tab(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QTextOption_Tab(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QTextOption::Tab> *sipCpp = reinterpret_cast<QList<QTextOption::Tab> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QTextOption::Tab *t = new QTextOption::Tab(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QTextOption_Tab,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 9260 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QTextOption_Tab = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6041,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QTextOption_Tab,
    array_QList_0100QTextOption_Tab,
    copy_QList_0100QTextOption_Tab,
    release_QList_0100QTextOption_Tab,
    convertTo_QList_0100QTextOption_Tab,
    convertFrom_QList_0100QTextOption_Tab
};

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 9291 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 9295 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0100QTextLength(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0100QTextLength(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QTextLength> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QTextLength> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100QTextLength(SIP_SSIZE_T);}
static void *array_QVector_0100QTextLength(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QTextLength>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100QTextLength(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0100QTextLength(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QTextLength>(reinterpret_cast<const QVector<QTextLength> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100QTextLength(void *, int);}
static void release_QVector_0100QTextLength(void *ptr, int)
{
    delete reinterpret_cast<QVector<QTextLength> *>(ptr);
}



extern "C" {static int convertTo_QVector_0100QTextLength(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100QTextLength(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QTextLength> **sipCppPtr = reinterpret_cast<QVector<QTextLength> **>(sipCppPtrV);

#line 56 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QTextLength> *qv = new QVector<QTextLength>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QTextLength *t = reinterpret_cast<QTextLength *>(
                sipForceConvertToType(itm, sipType_QTextLength, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QTextLength' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(*t);

        sipReleaseType(t, sipType_QTextLength, state);
        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 9404 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100QTextLength(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100QTextLength(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QTextLength> *sipCpp = reinterpret_cast<QVector<QTextLength> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QTextLength *t = new QTextLength(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QTextLength,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 9437 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QTextLength = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_9208,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QTextLength,
    array_QVector_0100QTextLength,
    copy_QVector_0100QTextLength,
    release_QVector_0100QTextLength,
    convertTo_QVector_0100QTextLength,
    convertFrom_QVector_0100QTextLength
};

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 9468 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 9472 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0100QTextFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0100QTextFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QTextFormat> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QTextFormat> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100QTextFormat(SIP_SSIZE_T);}
static void *array_QVector_0100QTextFormat(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QTextFormat>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100QTextFormat(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0100QTextFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QTextFormat>(reinterpret_cast<const QVector<QTextFormat> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100QTextFormat(void *, int);}
static void release_QVector_0100QTextFormat(void *ptr, int)
{
    delete reinterpret_cast<QVector<QTextFormat> *>(ptr);
}



extern "C" {static int convertTo_QVector_0100QTextFormat(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100QTextFormat(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QTextFormat> **sipCppPtr = reinterpret_cast<QVector<QTextFormat> **>(sipCppPtrV);

#line 56 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QTextFormat> *qv = new QVector<QTextFormat>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QTextFormat *t = reinterpret_cast<QTextFormat *>(
                sipForceConvertToType(itm, sipType_QTextFormat, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QTextFormat' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(*t);

        sipReleaseType(t, sipType_QTextFormat, state);
        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 9581 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100QTextFormat(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100QTextFormat(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QTextFormat> *sipCpp = reinterpret_cast<QVector<QTextFormat> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QTextFormat *t = new QTextFormat(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QTextFormat,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 9614 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QTextFormat = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_9229,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QTextFormat,
    array_QVector_0100QTextFormat,
    copy_QVector_0100QTextFormat,
    release_QVector_0100QTextFormat,
    convertTo_QVector_0100QTextFormat,
    convertFrom_QVector_0100QTextFormat
};

#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 9645 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 104 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 9649 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0101QStandardItem(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0101QStandardItem(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QStandardItem*> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QStandardItem*> *>(sipSrc);
}


extern "C" {static void *array_QList_0101QStandardItem(SIP_SSIZE_T);}
static void *array_QList_0101QStandardItem(SIP_SSIZE_T sipNrElem)
{
    return new QList<QStandardItem*>[sipNrElem];
}


extern "C" {static void *copy_QList_0101QStandardItem(const void *, SIP_SSIZE_T);}
static void *copy_QList_0101QStandardItem(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QStandardItem*>(reinterpret_cast<const QList<QStandardItem*> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0101QStandardItem(void *, int);}
static void release_QList_0101QStandardItem(void *ptr, int)
{
    delete reinterpret_cast<QList<QStandardItem*> *>(ptr);
}



extern "C" {static int convertTo_QList_0101QStandardItem(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0101QStandardItem(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QStandardItem*> **sipCppPtr = reinterpret_cast<QList<QStandardItem*> **>(sipCppPtrV);

#line 175 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QStandardItem *> *ql = new QList<QStandardItem *>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        QStandardItem *t = reinterpret_cast<QStandardItem *>(
                sipForceConvertToType(itm, sipType_QStandardItem, sipTransferObj, 0,
                        0, sipIsErr));
 
        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QStandardItem' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(t);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 9756 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0101QStandardItem(void *, PyObject *);}
static PyObject *convertFrom_QList_0101QStandardItem(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QStandardItem*> *sipCpp = reinterpret_cast<QList<QStandardItem*> *>(sipCppV);

#line 148 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QStandardItem *t = sipCpp->at(i);

        // The explicit (void *) cast allows QStandardItem to be const.
        PyObject *tobj = sipConvertFromType((void *)t, sipType_QStandardItem,
                sipTransferObj);

        if (!tobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 9790 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QStandardItem = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_7779,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0101QStandardItem,
    array_QList_0101QStandardItem,
    copy_QList_0101QStandardItem,
    release_QList_0101QStandardItem,
    convertTo_QList_0101QStandardItem,
    convertFrom_QList_0101QStandardItem
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 9821 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 330 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 9825 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QPolygonF(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QPolygonF(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QPolygonF> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QPolygonF> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QPolygonF(SIP_SSIZE_T);}
static void *array_QList_0100QPolygonF(SIP_SSIZE_T sipNrElem)
{
    return new QList<QPolygonF>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QPolygonF(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QPolygonF(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QPolygonF>(reinterpret_cast<const QList<QPolygonF> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QPolygonF(void *, int);}
static void release_QList_0100QPolygonF(void *ptr, int)
{
    delete reinterpret_cast<QList<QPolygonF> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QPolygonF(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QPolygonF(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QPolygonF> **sipCppPtr = reinterpret_cast<QList<QPolygonF> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QPolygonF> *ql = new QList<QPolygonF>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QPolygonF *t = reinterpret_cast<QPolygonF *>(
                sipForceConvertToType(itm, sipType_QPolygonF, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QPolygonF' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QPolygonF, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 9934 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QPolygonF(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QPolygonF(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QPolygonF> *sipCpp = reinterpret_cast<QList<QPolygonF> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QPolygonF *t = new QPolygonF(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QPolygonF,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 9967 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QPolygonF = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_17061,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QPolygonF,
    array_QList_0100QPolygonF,
    copy_QList_0100QPolygonF,
    release_QList_0100QPolygonF,
    convertTo_QList_0100QPolygonF,
    convertFrom_QList_0100QPolygonF
};

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 9998 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 10002 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0100QRect(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0100QRect(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QRect> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QRect> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100QRect(SIP_SSIZE_T);}
static void *array_QVector_0100QRect(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QRect>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100QRect(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0100QRect(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QRect>(reinterpret_cast<const QVector<QRect> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100QRect(void *, int);}
static void release_QVector_0100QRect(void *ptr, int)
{
    delete reinterpret_cast<QVector<QRect> *>(ptr);
}



extern "C" {static int convertTo_QVector_0100QRect(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100QRect(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QRect> **sipCppPtr = reinterpret_cast<QVector<QRect> **>(sipCppPtrV);

#line 56 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QRect> *qv = new QVector<QRect>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QRect *t = reinterpret_cast<QRect *>(
                sipForceConvertToType(itm, sipType_QRect, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QRect' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(*t);

        sipReleaseType(t, sipType_QRect, state);
        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 10111 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100QRect(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100QRect(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QRect> *sipCpp = reinterpret_cast<QVector<QRect> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QRect *t = new QRect(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QRect,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 10144 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QRect = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_21989,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QRect,
    array_QVector_0100QRect,
    copy_QVector_0100QRect,
    release_QVector_0100QRect,
    convertTo_QVector_0100QRect,
    convertFrom_QVector_0100QRect
};

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 10175 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 10179 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0100QRectF(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0100QRectF(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QRectF> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QRectF> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100QRectF(SIP_SSIZE_T);}
static void *array_QVector_0100QRectF(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QRectF>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100QRectF(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0100QRectF(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QRectF>(reinterpret_cast<const QVector<QRectF> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100QRectF(void *, int);}
static void release_QVector_0100QRectF(void *ptr, int)
{
    delete reinterpret_cast<QVector<QRectF> *>(ptr);
}



extern "C" {static int convertTo_QVector_0100QRectF(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100QRectF(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QRectF> **sipCppPtr = reinterpret_cast<QVector<QRectF> **>(sipCppPtrV);

#line 56 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QRectF> *qv = new QVector<QRectF>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QRectF *t = reinterpret_cast<QRectF *>(
                sipForceConvertToType(itm, sipType_QRectF, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QRectF' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(*t);

        sipReleaseType(t, sipType_QRectF, state);
        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 10288 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100QRectF(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100QRectF(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QRectF> *sipCpp = reinterpret_cast<QVector<QRectF> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QRectF *t = new QRectF(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QRectF,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 10321 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QRectF = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_19237,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QRectF,
    array_QVector_0100QRectF,
    copy_QVector_0100QRectF,
    release_QVector_0100QRectF,
    convertTo_QVector_0100QRectF,
    convertFrom_QVector_0100QRectF
};

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 10352 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 10356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0100QPoint(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0100QPoint(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QPoint> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QPoint> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100QPoint(SIP_SSIZE_T);}
static void *array_QVector_0100QPoint(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QPoint>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100QPoint(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0100QPoint(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QPoint>(reinterpret_cast<const QVector<QPoint> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100QPoint(void *, int);}
static void release_QVector_0100QPoint(void *ptr, int)
{
    delete reinterpret_cast<QVector<QPoint> *>(ptr);
}



extern "C" {static int convertTo_QVector_0100QPoint(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100QPoint(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QPoint> **sipCppPtr = reinterpret_cast<QVector<QPoint> **>(sipCppPtrV);

#line 56 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QPoint> *qv = new QVector<QPoint>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QPoint *t = reinterpret_cast<QPoint *>(
                sipForceConvertToType(itm, sipType_QPoint, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QPoint' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(*t);

        sipReleaseType(t, sipType_QPoint, state);
        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 10465 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100QPoint(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100QPoint(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QPoint> *sipCpp = reinterpret_cast<QVector<QPoint> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QPoint *t = new QPoint(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QPoint,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 10498 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QPoint = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_19253,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QPoint,
    array_QVector_0100QPoint,
    copy_QVector_0100QPoint,
    release_QVector_0100QPoint,
    convertTo_QVector_0100QPoint,
    convertFrom_QVector_0100QPoint
};

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 10529 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qline.sip"
#include <qline.h>
#line 10533 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0100QLine(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0100QLine(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QLine> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QLine> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100QLine(SIP_SSIZE_T);}
static void *array_QVector_0100QLine(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QLine>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100QLine(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0100QLine(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QLine>(reinterpret_cast<const QVector<QLine> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100QLine(void *, int);}
static void release_QVector_0100QLine(void *ptr, int)
{
    delete reinterpret_cast<QVector<QLine> *>(ptr);
}



extern "C" {static int convertTo_QVector_0100QLine(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100QLine(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QLine> **sipCppPtr = reinterpret_cast<QVector<QLine> **>(sipCppPtrV);

#line 56 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QLine> *qv = new QVector<QLine>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QLine *t = reinterpret_cast<QLine *>(
                sipForceConvertToType(itm, sipType_QLine, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QLine' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(*t);

        sipReleaseType(t, sipType_QLine, state);
        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 10642 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100QLine(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100QLine(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QLine> *sipCpp = reinterpret_cast<QVector<QLine> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QLine *t = new QLine(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QLine,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 10675 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QLine = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_22004,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QLine,
    array_QVector_0100QLine,
    copy_QVector_0100QLine,
    release_QVector_0100QLine,
    convertTo_QVector_0100QLine,
    convertFrom_QVector_0100QLine
};

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 10706 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 96 "sip/QtCore/qline.sip"
#include <qline.h>
#line 10710 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0100QLineF(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0100QLineF(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QLineF> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QLineF> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100QLineF(SIP_SSIZE_T);}
static void *array_QVector_0100QLineF(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QLineF>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100QLineF(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0100QLineF(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QLineF>(reinterpret_cast<const QVector<QLineF> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100QLineF(void *, int);}
static void release_QVector_0100QLineF(void *ptr, int)
{
    delete reinterpret_cast<QVector<QLineF> *>(ptr);
}



extern "C" {static int convertTo_QVector_0100QLineF(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100QLineF(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QLineF> **sipCppPtr = reinterpret_cast<QVector<QLineF> **>(sipCppPtrV);

#line 56 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QLineF> *qv = new QVector<QLineF>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QLineF *t = reinterpret_cast<QLineF *>(
                sipForceConvertToType(itm, sipType_QLineF, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QLineF' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(*t);

        sipReleaseType(t, sipType_QLineF, state);
        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 10819 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100QLineF(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100QLineF(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QLineF> *sipCpp = reinterpret_cast<QVector<QLineF> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QLineF *t = new QLineF(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QLineF,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 10852 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QLineF = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_19269,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QLineF,
    array_QVector_0100QLineF,
    copy_QVector_0100QLineF,
    release_QVector_0100QLineF,
    convertTo_QVector_0100QLineF,
    convertFrom_QVector_0100QLineF
};

#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 10883 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 10887 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0101QOpenGLShader(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0101QOpenGLShader(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QOpenGLShader*> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QOpenGLShader*> *>(sipSrc);
}


extern "C" {static void *array_QList_0101QOpenGLShader(SIP_SSIZE_T);}
static void *array_QList_0101QOpenGLShader(SIP_SSIZE_T sipNrElem)
{
    return new QList<QOpenGLShader*>[sipNrElem];
}


extern "C" {static void *copy_QList_0101QOpenGLShader(const void *, SIP_SSIZE_T);}
static void *copy_QList_0101QOpenGLShader(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QOpenGLShader*>(reinterpret_cast<const QList<QOpenGLShader*> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0101QOpenGLShader(void *, int);}
static void release_QList_0101QOpenGLShader(void *ptr, int)
{
    delete reinterpret_cast<QList<QOpenGLShader*> *>(ptr);
}



extern "C" {static int convertTo_QList_0101QOpenGLShader(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0101QOpenGLShader(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QOpenGLShader*> **sipCppPtr = reinterpret_cast<QList<QOpenGLShader*> **>(sipCppPtrV);

#line 175 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QOpenGLShader *> *ql = new QList<QOpenGLShader *>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        QOpenGLShader *t = reinterpret_cast<QOpenGLShader *>(
                sipForceConvertToType(itm, sipType_QOpenGLShader, sipTransferObj, 0,
                        0, sipIsErr));
 
        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QOpenGLShader' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(t);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 10994 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0101QOpenGLShader(void *, PyObject *);}
static PyObject *convertFrom_QList_0101QOpenGLShader(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QOpenGLShader*> *sipCpp = reinterpret_cast<QList<QOpenGLShader*> *>(sipCppV);

#line 148 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QOpenGLShader *t = sipCpp->at(i);

        // The explicit (void *) cast allows QOpenGLShader to be const.
        PyObject *tobj = sipConvertFromType((void *)t, sipType_QOpenGLShader,
                sipTransferObj);

        if (!tobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 11028 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QOpenGLShader = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_7801,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0101QOpenGLShader,
    array_QList_0101QOpenGLShader,
    copy_QList_0101QOpenGLShader,
    release_QList_0101QOpenGLShader,
    convertTo_QList_0101QOpenGLShader,
    convertFrom_QList_0101QOpenGLShader
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 11059 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 11063 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QOpenGLDebugMessage(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QOpenGLDebugMessage(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QOpenGLDebugMessage> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QOpenGLDebugMessage> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QOpenGLDebugMessage(SIP_SSIZE_T);}
static void *array_QList_0100QOpenGLDebugMessage(SIP_SSIZE_T sipNrElem)
{
    return new QList<QOpenGLDebugMessage>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QOpenGLDebugMessage(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QOpenGLDebugMessage(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QOpenGLDebugMessage>(reinterpret_cast<const QList<QOpenGLDebugMessage> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QOpenGLDebugMessage(void *, int);}
static void release_QList_0100QOpenGLDebugMessage(void *ptr, int)
{
    delete reinterpret_cast<QList<QOpenGLDebugMessage> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QOpenGLDebugMessage(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QOpenGLDebugMessage(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QOpenGLDebugMessage> **sipCppPtr = reinterpret_cast<QList<QOpenGLDebugMessage> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QOpenGLDebugMessage> *ql = new QList<QOpenGLDebugMessage>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QOpenGLDebugMessage *t = reinterpret_cast<QOpenGLDebugMessage *>(
                sipForceConvertToType(itm, sipType_QOpenGLDebugMessage, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QOpenGLDebugMessage' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QOpenGLDebugMessage, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 11172 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QOpenGLDebugMessage(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QOpenGLDebugMessage(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QOpenGLDebugMessage> *sipCpp = reinterpret_cast<QList<QOpenGLDebugMessage> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QOpenGLDebugMessage *t = new QOpenGLDebugMessage(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QOpenGLDebugMessage,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 11205 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QOpenGLDebugMessage = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_3792,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QOpenGLDebugMessage,
    array_QList_0100QOpenGLDebugMessage,
    copy_QList_0100QOpenGLDebugMessage,
    release_QList_0100QOpenGLDebugMessage,
    convertTo_QList_0100QOpenGLDebugMessage,
    convertFrom_QList_0100QOpenGLDebugMessage
};

#line 26 "sip/QtCore/qpycore_qset.sip"
#include <qset.h>
#line 11236 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 11240 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QSet_0100QByteArray(void *, SIP_SSIZE_T, const void *);}
static void assign_QSet_0100QByteArray(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QSet<QByteArray> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QSet<QByteArray> *>(sipSrc);
}


extern "C" {static void *array_QSet_0100QByteArray(SIP_SSIZE_T);}
static void *array_QSet_0100QByteArray(SIP_SSIZE_T sipNrElem)
{
    return new QSet<QByteArray>[sipNrElem];
}


extern "C" {static void *copy_QSet_0100QByteArray(const void *, SIP_SSIZE_T);}
static void *copy_QSet_0100QByteArray(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QSet<QByteArray>(reinterpret_cast<const QSet<QByteArray> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QSet_0100QByteArray(void *, int);}
static void release_QSet_0100QByteArray(void *ptr, int)
{
    delete reinterpret_cast<QSet<QByteArray> *>(ptr);
}



extern "C" {static int convertTo_QSet_0100QByteArray(PyObject *, void **, int *, PyObject *);}
static int convertTo_QSet_0100QByteArray(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QSet<QByteArray> **sipCppPtr = reinterpret_cast<QSet<QByteArray> **>(sipCppPtrV);

#line 61 "sip/QtCore/qpycore_qset.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QSet<QByteArray> *qs = new QSet<QByteArray>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qs;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QByteArray *t = reinterpret_cast<QByteArray *>(
                sipForceConvertToType(itm, sipType_QByteArray, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QByteArray' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qs;
            Py_DECREF(iter);

            return 0;
        }

        qs->insert(*t);

        sipReleaseType(t, sipType_QByteArray, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = qs;
 
    return sipGetState(sipTransferObj);
#line 11349 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QSet_0100QByteArray(void *, PyObject *);}
static PyObject *convertFrom_QSet_0100QByteArray(void *sipCppV, PyObject *sipTransferObj)
{
   QSet<QByteArray> *sipCpp = reinterpret_cast<QSet<QByteArray> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qset.sip"
    PyObject *s = PySet_New(0);

    if (!s)
        return 0;

    QSet<QByteArray>::const_iterator it = sipCpp->constBegin();
    QSet<QByteArray>::const_iterator end = sipCpp->constEnd();

    while (it != end)
    {
        QByteArray *t = new QByteArray(*it);
        PyObject *tobj = sipConvertFromNewType(t, sipType_QByteArray,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(s);

            return 0;
        }

        PySet_Add(s, tobj);

        ++it;
    }

    return s;
#line 11387 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QSet_0100QByteArray = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_17078,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QSet_0100QByteArray,
    array_QSet_0100QByteArray,
    copy_QSet_0100QByteArray,
    release_QSet_0100QByteArray,
    convertTo_QSet_0100QByteArray,
    convertFrom_QSet_0100QByteArray
};

#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 11418 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 11422 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0101QOpenGLContext(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0101QOpenGLContext(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QOpenGLContext*> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QOpenGLContext*> *>(sipSrc);
}


extern "C" {static void *array_QList_0101QOpenGLContext(SIP_SSIZE_T);}
static void *array_QList_0101QOpenGLContext(SIP_SSIZE_T sipNrElem)
{
    return new QList<QOpenGLContext*>[sipNrElem];
}


extern "C" {static void *copy_QList_0101QOpenGLContext(const void *, SIP_SSIZE_T);}
static void *copy_QList_0101QOpenGLContext(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QOpenGLContext*>(reinterpret_cast<const QList<QOpenGLContext*> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0101QOpenGLContext(void *, int);}
static void release_QList_0101QOpenGLContext(void *ptr, int)
{
    delete reinterpret_cast<QList<QOpenGLContext*> *>(ptr);
}



extern "C" {static int convertTo_QList_0101QOpenGLContext(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0101QOpenGLContext(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QOpenGLContext*> **sipCppPtr = reinterpret_cast<QList<QOpenGLContext*> **>(sipCppPtrV);

#line 175 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QOpenGLContext *> *ql = new QList<QOpenGLContext *>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        QOpenGLContext *t = reinterpret_cast<QOpenGLContext *>(
                sipForceConvertToType(itm, sipType_QOpenGLContext, sipTransferObj, 0,
                        0, sipIsErr));
 
        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QOpenGLContext' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(t);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 11529 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0101QOpenGLContext(void *, PyObject *);}
static PyObject *convertFrom_QList_0101QOpenGLContext(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QOpenGLContext*> *sipCpp = reinterpret_cast<QList<QOpenGLContext*> *>(sipCppV);

#line 148 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QOpenGLContext *t = sipCpp->at(i);

        // The explicit (void *) cast allows QOpenGLContext to be const.
        PyObject *tobj = sipConvertFromType((void *)t, sipType_QOpenGLContext,
                sipTransferObj);

        if (!tobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 11563 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QOpenGLContext = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_6905,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0101QOpenGLContext,
    array_QList_0101QOpenGLContext,
    copy_QList_0101QOpenGLContext,
    release_QList_0101QOpenGLContext,
    convertTo_QList_0101QOpenGLContext,
    convertFrom_QList_0101QOpenGLContext
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 11594 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 11598 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QKeySequence(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QKeySequence(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QKeySequence> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QKeySequence> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QKeySequence(SIP_SSIZE_T);}
static void *array_QList_0100QKeySequence(SIP_SSIZE_T sipNrElem)
{
    return new QList<QKeySequence>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QKeySequence(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QKeySequence(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QKeySequence>(reinterpret_cast<const QList<QKeySequence> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QKeySequence(void *, int);}
static void release_QList_0100QKeySequence(void *ptr, int)
{
    delete reinterpret_cast<QList<QKeySequence> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QKeySequence(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QKeySequence(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QKeySequence> **sipCppPtr = reinterpret_cast<QList<QKeySequence> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QKeySequence> *ql = new QList<QKeySequence>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QKeySequence *t = reinterpret_cast<QKeySequence *>(
                sipForceConvertToType(itm, sipType_QKeySequence, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QKeySequence' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QKeySequence, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 11707 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QKeySequence(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QKeySequence(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QKeySequence> *sipCpp = reinterpret_cast<QList<QKeySequence> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QKeySequence *t = new QKeySequence(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QKeySequence,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 11740 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QKeySequence = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_10741,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QKeySequence,
    array_QList_0100QKeySequence,
    copy_QList_0100QKeySequence,
    release_QList_0100QKeySequence,
    convertTo_QList_0100QKeySequence,
    convertFrom_QList_0100QKeySequence
};

#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 11771 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 11775 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0101QScreen(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0101QScreen(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QScreen*> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QScreen*> *>(sipSrc);
}


extern "C" {static void *array_QList_0101QScreen(SIP_SSIZE_T);}
static void *array_QList_0101QScreen(SIP_SSIZE_T sipNrElem)
{
    return new QList<QScreen*>[sipNrElem];
}


extern "C" {static void *copy_QList_0101QScreen(const void *, SIP_SSIZE_T);}
static void *copy_QList_0101QScreen(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QScreen*>(reinterpret_cast<const QList<QScreen*> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0101QScreen(void *, int);}
static void release_QList_0101QScreen(void *ptr, int)
{
    delete reinterpret_cast<QList<QScreen*> *>(ptr);
}



extern "C" {static int convertTo_QList_0101QScreen(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0101QScreen(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QScreen*> **sipCppPtr = reinterpret_cast<QList<QScreen*> **>(sipCppPtrV);

#line 175 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QScreen *> *ql = new QList<QScreen *>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        QScreen *t = reinterpret_cast<QScreen *>(
                sipForceConvertToType(itm, sipType_QScreen, sipTransferObj, 0,
                        0, sipIsErr));
 
        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QScreen' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(t);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 11882 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0101QScreen(void *, PyObject *);}
static PyObject *convertFrom_QList_0101QScreen(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QScreen*> *sipCpp = reinterpret_cast<QList<QScreen*> *>(sipCppV);

#line 148 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QScreen *t = sipCpp->at(i);

        // The explicit (void *) cast allows QScreen to be const.
        PyObject *tobj = sipConvertFromType((void *)t, sipType_QScreen,
                sipTransferObj);

        if (!tobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 11916 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QScreen = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_19285,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0101QScreen,
    array_QList_0101QScreen,
    copy_QList_0101QScreen,
    release_QList_0101QScreen,
    convertTo_QList_0101QScreen,
    convertFrom_QList_0101QScreen
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 11947 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 693 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 11953 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QTouchEvent_TouchPoint(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QTouchEvent_TouchPoint(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QTouchEvent::TouchPoint> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QTouchEvent::TouchPoint> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QTouchEvent_TouchPoint(SIP_SSIZE_T);}
static void *array_QList_0100QTouchEvent_TouchPoint(SIP_SSIZE_T sipNrElem)
{
    return new QList<QTouchEvent::TouchPoint>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QTouchEvent_TouchPoint(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QTouchEvent_TouchPoint(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QTouchEvent::TouchPoint>(reinterpret_cast<const QList<QTouchEvent::TouchPoint> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QTouchEvent_TouchPoint(void *, int);}
static void release_QList_0100QTouchEvent_TouchPoint(void *ptr, int)
{
    delete reinterpret_cast<QList<QTouchEvent::TouchPoint> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QTouchEvent_TouchPoint(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QTouchEvent_TouchPoint(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QTouchEvent::TouchPoint> **sipCppPtr = reinterpret_cast<QList<QTouchEvent::TouchPoint> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QTouchEvent::TouchPoint> *ql = new QList<QTouchEvent::TouchPoint>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QTouchEvent::TouchPoint *t = reinterpret_cast<QTouchEvent::TouchPoint *>(
                sipForceConvertToType(itm, sipType_QTouchEvent_TouchPoint, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QTouchEvent::TouchPoint' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QTouchEvent_TouchPoint, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 12062 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QTouchEvent_TouchPoint(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QTouchEvent_TouchPoint(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QTouchEvent::TouchPoint> *sipCpp = reinterpret_cast<QList<QTouchEvent::TouchPoint> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QTouchEvent::TouchPoint *t = new QTouchEvent::TouchPoint(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QTouchEvent_TouchPoint,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 12095 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QTouchEvent_TouchPoint = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_1649,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QTouchEvent_TouchPoint,
    array_QList_0100QTouchEvent_TouchPoint,
    copy_QList_0100QTouchEvent_TouchPoint,
    release_QList_0100QTouchEvent_TouchPoint,
    convertTo_QList_0100QTouchEvent_TouchPoint,
    convertFrom_QList_0100QTouchEvent_TouchPoint
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12126 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 479 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 495 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 12132 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QInputMethodEvent_Attribute(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QInputMethodEvent_Attribute(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QInputMethodEvent::Attribute> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QInputMethodEvent::Attribute> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QInputMethodEvent_Attribute(SIP_SSIZE_T);}
static void *array_QList_0100QInputMethodEvent_Attribute(SIP_SSIZE_T sipNrElem)
{
    return new QList<QInputMethodEvent::Attribute>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QInputMethodEvent_Attribute(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QInputMethodEvent_Attribute(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QInputMethodEvent::Attribute>(reinterpret_cast<const QList<QInputMethodEvent::Attribute> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QInputMethodEvent_Attribute(void *, int);}
static void release_QList_0100QInputMethodEvent_Attribute(void *ptr, int)
{
    delete reinterpret_cast<QList<QInputMethodEvent::Attribute> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QInputMethodEvent_Attribute(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QInputMethodEvent_Attribute(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QInputMethodEvent::Attribute> **sipCppPtr = reinterpret_cast<QList<QInputMethodEvent::Attribute> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QInputMethodEvent::Attribute> *ql = new QList<QInputMethodEvent::Attribute>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QInputMethodEvent::Attribute *t = reinterpret_cast<QInputMethodEvent::Attribute *>(
                sipForceConvertToType(itm, sipType_QInputMethodEvent_Attribute, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QInputMethodEvent::Attribute' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QInputMethodEvent_Attribute, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 12241 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QInputMethodEvent_Attribute(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QInputMethodEvent_Attribute(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QInputMethodEvent::Attribute> *sipCpp = reinterpret_cast<QList<QInputMethodEvent::Attribute> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QInputMethodEvent::Attribute *t = new QInputMethodEvent::Attribute(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QInputMethodEvent_Attribute,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 12274 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QInputMethodEvent_Attribute = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_345,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QInputMethodEvent_Attribute,
    array_QList_0100QInputMethodEvent_Attribute,
    copy_QList_0100QInputMethodEvent_Attribute,
    release_QList_0100QInputMethodEvent_Attribute,
    convertTo_QList_0100QInputMethodEvent_Attribute,
    convertFrom_QList_0100QInputMethodEvent_Attribute
};

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12305 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 12309 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QSize(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QSize(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QSize> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QSize> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QSize(SIP_SSIZE_T);}
static void *array_QList_0100QSize(SIP_SSIZE_T sipNrElem)
{
    return new QList<QSize>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QSize(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QSize(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QSize>(reinterpret_cast<const QList<QSize> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QSize(void *, int);}
static void release_QList_0100QSize(void *ptr, int)
{
    delete reinterpret_cast<QList<QSize> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QSize(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QSize(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QSize> **sipCppPtr = reinterpret_cast<QList<QSize> **>(sipCppPtrV);

#line 66 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QSize> *ql = new QList<QSize>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QSize *t = reinterpret_cast<QSize *>(
                sipForceConvertToType(itm, sipType_QSize, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QSize' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(*t);

        sipReleaseType(t, sipType_QSize, state);
        Py_DECREF(itm);
    }
 
    Py_DECREF(iter);

    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 12418 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QSize(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QSize(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QSize> *sipCpp = reinterpret_cast<QList<QSize> *>(sipCppV);

#line 40 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QSize *t = new QSize(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QSize,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 12451 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QSize = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_27837,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QSize,
    array_QList_0100QSize,
    copy_QList_0100QSize,
    release_QList_0100QSize,
    convertTo_QList_0100QSize,
    convertFrom_QList_0100QSize
};

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 12482 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 36 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 12488 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0100QAbstractTextDocumentLayout_Selection(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0100QAbstractTextDocumentLayout_Selection(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QAbstractTextDocumentLayout::Selection> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QAbstractTextDocumentLayout::Selection> *>(sipSrc);
}


extern "C" {static void *array_QVector_0100QAbstractTextDocumentLayout_Selection(SIP_SSIZE_T);}
static void *array_QVector_0100QAbstractTextDocumentLayout_Selection(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QAbstractTextDocumentLayout::Selection>[sipNrElem];
}


extern "C" {static void *copy_QVector_0100QAbstractTextDocumentLayout_Selection(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0100QAbstractTextDocumentLayout_Selection(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QAbstractTextDocumentLayout::Selection>(reinterpret_cast<const QVector<QAbstractTextDocumentLayout::Selection> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0100QAbstractTextDocumentLayout_Selection(void *, int);}
static void release_QVector_0100QAbstractTextDocumentLayout_Selection(void *ptr, int)
{
    delete reinterpret_cast<QVector<QAbstractTextDocumentLayout::Selection> *>(ptr);
}



extern "C" {static int convertTo_QVector_0100QAbstractTextDocumentLayout_Selection(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0100QAbstractTextDocumentLayout_Selection(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QAbstractTextDocumentLayout::Selection> **sipCppPtr = reinterpret_cast<QVector<QAbstractTextDocumentLayout::Selection> **>(sipCppPtrV);

#line 56 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QAbstractTextDocumentLayout::Selection> *qv = new QVector<QAbstractTextDocumentLayout::Selection>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        int state;
        QAbstractTextDocumentLayout::Selection *t = reinterpret_cast<QAbstractTextDocumentLayout::Selection *>(
                sipForceConvertToType(itm, sipType_QAbstractTextDocumentLayout_Selection, sipTransferObj,
                        SIP_NOT_NONE, &state, sipIsErr));

        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QAbstractTextDocumentLayout::Selection' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(*t);

        sipReleaseType(t, sipType_QAbstractTextDocumentLayout_Selection, state);
        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 12597 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0100QAbstractTextDocumentLayout_Selection(void *, PyObject *);}
static PyObject *convertFrom_QVector_0100QAbstractTextDocumentLayout_Selection(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QAbstractTextDocumentLayout::Selection> *sipCpp = reinterpret_cast<QVector<QAbstractTextDocumentLayout::Selection> *>(sipCppV);

#line 30 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QAbstractTextDocumentLayout::Selection *t = new QAbstractTextDocumentLayout::Selection(sipCpp->at(i));
        PyObject *tobj = sipConvertFromNewType(t, sipType_QAbstractTextDocumentLayout_Selection,
                sipTransferObj);

        if (!tobj)
        {
            delete t;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 12630 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0100QAbstractTextDocumentLayout_Selection = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_104,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0100QAbstractTextDocumentLayout_Selection,
    array_QVector_0100QAbstractTextDocumentLayout_Selection,
    copy_QVector_0100QAbstractTextDocumentLayout_Selection,
    release_QVector_0100QAbstractTextDocumentLayout_Selection,
    convertTo_QVector_0100QAbstractTextDocumentLayout_Selection,
    convertFrom_QVector_0100QAbstractTextDocumentLayout_Selection
};

#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 12661 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 12665 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0101QWindow(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0101QWindow(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QWindow*> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QWindow*> *>(sipSrc);
}


extern "C" {static void *array_QList_0101QWindow(SIP_SSIZE_T);}
static void *array_QList_0101QWindow(SIP_SSIZE_T sipNrElem)
{
    return new QList<QWindow*>[sipNrElem];
}


extern "C" {static void *copy_QList_0101QWindow(const void *, SIP_SSIZE_T);}
static void *copy_QList_0101QWindow(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QWindow*>(reinterpret_cast<const QList<QWindow*> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0101QWindow(void *, int);}
static void release_QList_0101QWindow(void *ptr, int)
{
    delete reinterpret_cast<QList<QWindow*> *>(ptr);
}



extern "C" {static int convertTo_QList_0101QWindow(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0101QWindow(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QWindow*> **sipCppPtr = reinterpret_cast<QList<QWindow*> **>(sipCppPtrV);

#line 175 "sip/QtCore/qpycore_qlist.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QList<QWindow *> *ql = new QList<QWindow *>;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete ql;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        QWindow *t = reinterpret_cast<QWindow *>(
                sipForceConvertToType(itm, sipType_QWindow, sipTransferObj, 0,
                        0, sipIsErr));
 
        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QWindow' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            Py_DECREF(iter);

            return 0;
        }

        ql->append(t);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = ql;
 
    return sipGetState(sipTransferObj);
#line 12772 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0101QWindow(void *, PyObject *);}
static PyObject *convertFrom_QList_0101QWindow(void *sipCppV, PyObject *sipTransferObj)
{
   QList<QWindow*> *sipCpp = reinterpret_cast<QList<QWindow*> *>(sipCppV);

#line 148 "sip/QtCore/qpycore_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        QWindow *t = sipCpp->at(i);

        // The explicit (void *) cast allows QWindow to be const.
        PyObject *tobj = sipConvertFromType((void *)t, sipType_QWindow,
                sipTransferObj);

        if (!tobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, tobj);
    }

    return l;
#line 12806 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0101QWindow = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_19301,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0101QWindow,
    array_QList_0101QWindow,
    copy_QList_0101QWindow,
    release_QList_0101QWindow,
    convertTo_QList_0101QWindow,
    convertFrom_QList_0101QWindow
};

#line 135 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 12838 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 12842 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QVector_0600QPair_2400_0100QColor(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_0600QPair_2400_0100QColor(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<QPair<qreal,QColor> > *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<QPair<qreal,QColor> > *>(sipSrc);
}


extern "C" {static void *array_QVector_0600QPair_2400_0100QColor(SIP_SSIZE_T);}
static void *array_QVector_0600QPair_2400_0100QColor(SIP_SSIZE_T sipNrElem)
{
    return new QVector<QPair<qreal,QColor> >[sipNrElem];
}


extern "C" {static void *copy_QVector_0600QPair_2400_0100QColor(const void *, SIP_SSIZE_T);}
static void *copy_QVector_0600QPair_2400_0100QColor(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<QPair<qreal,QColor> >(reinterpret_cast<const QVector<QPair<qreal,QColor> > *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_0600QPair_2400_0100QColor(void *, int);}
static void release_QVector_0600QPair_2400_0100QColor(void *ptr, int)
{
    delete reinterpret_cast<QVector<QPair<qreal,QColor> > *>(ptr);
}



extern "C" {static int convertTo_QVector_0600QPair_2400_0100QColor(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_0600QPair_2400_0100QColor(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<QPair<qreal,QColor> > **sipCppPtr = reinterpret_cast<QVector<QPair<qreal,QColor> > **>(sipCppPtrV);

#line 167 "sip/QtCore/qpycore_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<QPair<qreal, QColor> > *qv = new QVector<QPair<qreal, QColor> >;
 
    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *seq = PyIter_Next(iter);

        if (!seq)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        SIP_SSIZE_T sub_len;

        if (PySequence_Check(seq)
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(seq)
#endif
                && !PyUnicode_Check(seq))
            sub_len = PySequence_Size(seq);
        else
            sub_len = -1;

        if (sub_len != 2)
        {
            if (sub_len < 0)
                PyErr_Format(PyExc_TypeError,
                        "index " SIP_SSIZE_T_FORMAT " has type '%s' but a 2 element non-string sequence is expected",
                        i, Py_TYPE(seq)->tp_name);
            else
                PyErr_Format(PyExc_TypeError,
                        "index " SIP_SSIZE_T_FORMAT " is a sequence of " SIP_SSIZE_T_FORMAT " sub-elements but 2 sub-elements are expected",
                        i, sub_len);

            Py_DECREF(seq);
            delete qv;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        PyObject *itm1 = PySequence_ITEM(seq, 0);

        if (!itm1)
        {
            Py_DECREF(seq);
            delete qv;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        PyErr_Clear();
        qreal s1 = PyFloat_AsDouble(itm1);

        if (PyErr_Occurred())
        {
            PyErr_Format(PyExc_TypeError,
                    "the first sub-element of index " SIP_SSIZE_T_FORMAT " has type '%s' but 'float' is expected",
                    i, Py_TYPE(itm1)->tp_name);

            Py_DECREF(itm1);
            Py_DECREF(seq);
            delete qv;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        PyObject *itm2 = PySequence_ITEM(seq, 1);

        if (!itm2)
        {
            Py_DECREF(itm1);
            Py_DECREF(seq);
            delete qv;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        int state2;
        QColor *s2 = reinterpret_cast<QColor *>(
                sipForceConvertToType(itm2, sipType_QColor, sipTransferObj,
                        SIP_NOT_NONE, &state2, sipIsErr));
 
        if (*sipIsErr)
        {
            PyErr_Format(PyExc_TypeError,
                    "the second sub-element of index " SIP_SSIZE_T_FORMAT " has type '%s' but 'QColor' is expected",
                    i, Py_TYPE(itm2)->tp_name);

            Py_DECREF(itm2);
            Py_DECREF(itm1);
            Py_DECREF(seq);
            delete qv;
            Py_DECREF(iter);

            return 0;
        }

        qv->append(QPair<qreal, QColor>(s1, *s2));

        sipReleaseType(s2, sipType_QColor, state2);
        Py_DECREF(itm2);
        Py_DECREF(itm1);
        Py_DECREF(seq);
    }

    Py_DECREF(iter);
 
    *sipCppPtr = qv;
 
    return sipGetState(sipTransferObj);
#line 13028 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_0600QPair_2400_0100QColor(void *, PyObject *);}
static PyObject *convertFrom_QVector_0600QPair_2400_0100QColor(void *sipCppV, PyObject *sipTransferObj)
{
   QVector<QPair<qreal,QColor> > *sipCpp = reinterpret_cast<QVector<QPair<qreal,QColor> > *>(sipCppV);

#line 140 "sip/QtCore/qpycore_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        const QPair<qreal, QColor> &p = sipCpp->at(i);
        QColor *s2 = new QColor(p.second);
        PyObject *pobj = sipBuildResult(NULL, "(dN)", (double)p.first, s2,
                sipType_QColor, sipTransferObj);

        if (!pobj)
        {
            delete s2;
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
#line 13062 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_0600QPair_2400_0100QColor = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_2083,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_0600QPair_2400_0100QColor,
    array_QVector_0600QPair_2400_0100QColor,
    copy_QVector_0600QPair_2400_0100QColor,
    release_QVector_0600QPair_2400_0100QColor,
    convertTo_QVector_0600QPair_2400_0100QColor,
    convertFrom_QVector_0600QPair_2400_0100QColor
};

#line 339 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#include <qopengl.h>
#line 13094 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



extern "C" {static void assign_QVector_3900(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_3900(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<GLuint64> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<GLuint64> *>(sipSrc);
}


extern "C" {static void *array_QVector_3900(SIP_SSIZE_T);}
static void *array_QVector_3900(SIP_SSIZE_T sipNrElem)
{
    return new QVector<GLuint64>[sipNrElem];
}


extern "C" {static void *copy_QVector_3900(const void *, SIP_SSIZE_T);}
static void *copy_QVector_3900(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<GLuint64>(reinterpret_cast<const QVector<GLuint64> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_3900(void *, int);}
static void release_QVector_3900(void *ptr, int)
{
    delete reinterpret_cast<QVector<GLuint64> *>(ptr);
}



extern "C" {static int convertTo_QVector_3900(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_3900(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<GLuint64> **sipCppPtr = reinterpret_cast<QVector<GLuint64> **>(sipCppPtrV);

#line 369 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<GLuint64> *qv = new QVector<GLuint64>;

    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        PyErr_Clear();
        unsigned PY_LONG_LONG val = PyLong_AsUnsignedLongLongMask(itm);

        if (PyErr_Occurred())
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'int' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        qv->append(val);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);

    *sipCppPtr = qv;

    return sipGetState(sipTransferObj);
#line 13202 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_3900(void *, PyObject *);}
static PyObject *convertFrom_QVector_3900(void *sipCppV, PyObject *)
{
   QVector<GLuint64> *sipCpp = reinterpret_cast<QVector<GLuint64> *>(sipCppV);

#line 344 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        // Convert to a Python long to make sure it doesn't get interpreted as
        // a signed value.
        PyObject *pobj = PyLong_FromUnsignedLongLong(sipCpp->value(i));

        if (!pobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
#line 13234 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_3900 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_14614,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_3900,
    array_QVector_3900,
    copy_QVector_3900,
    release_QVector_3900,
    convertTo_QVector_3900,
    convertFrom_QVector_3900
};

#line 233 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 13265 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



extern "C" {static void assign_QVector_2400(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_2400(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<qreal> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<qreal> *>(sipSrc);
}


extern "C" {static void *array_QVector_2400(SIP_SSIZE_T);}
static void *array_QVector_2400(SIP_SSIZE_T sipNrElem)
{
    return new QVector<qreal>[sipNrElem];
}


extern "C" {static void *copy_QVector_2400(const void *, SIP_SSIZE_T);}
static void *copy_QVector_2400(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<qreal>(reinterpret_cast<const QVector<qreal> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_2400(void *, int);}
static void release_QVector_2400(void *ptr, int)
{
    delete reinterpret_cast<QVector<qreal> *>(ptr);
}



extern "C" {static int convertTo_QVector_2400(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_2400(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<qreal> **sipCppPtr = reinterpret_cast<QVector<qreal> **>(sipCppPtrV);

#line 260 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<qreal> *qv = new QVector<qreal>;

    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        PyErr_Clear();
        double val = PyFloat_AsDouble(itm);

        if (PyErr_Occurred())
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'int' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        qv->append(val);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);

    *sipCppPtr = qv;

    return sipGetState(sipTransferObj);
#line 13373 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_2400(void *, PyObject *);}
static PyObject *convertFrom_QVector_2400(void *sipCppV, PyObject *)
{
   QVector<qreal> *sipCpp = reinterpret_cast<QVector<qreal> *>(sipCppV);

#line 237 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *pobj = PyFloat_FromDouble(sipCpp->value(i));

        if (!pobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
#line 13403 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_2400 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_22019,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_2400,
    array_QVector_2400,
    copy_QVector_2400,
    release_QVector_2400,
    convertTo_QVector_2400,
    convertFrom_QVector_2400
};

#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 13434 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



extern "C" {static void assign_QVector_2200(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_2200(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<float> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<float> *>(sipSrc);
}


extern "C" {static void *array_QVector_2200(SIP_SSIZE_T);}
static void *array_QVector_2200(SIP_SSIZE_T sipNrElem)
{
    return new QVector<float>[sipNrElem];
}


extern "C" {static void *copy_QVector_2200(const void *, SIP_SSIZE_T);}
static void *copy_QVector_2200(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<float>(reinterpret_cast<const QVector<float> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_2200(void *, int);}
static void release_QVector_2200(void *ptr, int)
{
    delete reinterpret_cast<QVector<float> *>(ptr);
}



extern "C" {static int convertTo_QVector_2200(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_2200(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<float> **sipCppPtr = reinterpret_cast<QVector<float> **>(sipCppPtrV);

#line 156 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<float> *qv = new QVector<float>;

    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        PyErr_Clear();
        double val = PyFloat_AsDouble(itm);

        if (PyErr_Occurred())
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'int' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        qv->append(val);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);

    *sipCppPtr = qv;

    return sipGetState(sipTransferObj);
#line 13542 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_2200(void *, PyObject *);}
static PyObject *convertFrom_QVector_2200(void *sipCppV, PyObject *)
{
   QVector<float> *sipCpp = reinterpret_cast<QVector<float> *>(sipCppV);

#line 133 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *pobj = PyFloat_FromDouble(sipCpp->value(i));

        if (!pobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
#line 13572 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_2200 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_22034,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_2200,
    array_QVector_2200,
    copy_QVector_2200,
    release_QVector_2200,
    convertTo_QVector_2200,
    convertFrom_QVector_2200
};

#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 13603 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



extern "C" {static void assign_QVector_1900(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector_1900(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector<uint> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector<uint> *>(sipSrc);
}


extern "C" {static void *array_QVector_1900(SIP_SSIZE_T);}
static void *array_QVector_1900(SIP_SSIZE_T sipNrElem)
{
    return new QVector<uint>[sipNrElem];
}


extern "C" {static void *copy_QVector_1900(const void *, SIP_SSIZE_T);}
static void *copy_QVector_1900(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector<uint>(reinterpret_cast<const QVector<uint> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QVector_1900(void *, int);}
static void release_QVector_1900(void *ptr, int)
{
    delete reinterpret_cast<QVector<uint> *>(ptr);
}



extern "C" {static int convertTo_QVector_1900(PyObject *, void **, int *, PyObject *);}
static int convertTo_QVector_1900(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QVector<uint> **sipCppPtr = reinterpret_cast<QVector<uint> **>(sipCppPtrV);

#line 54 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
    PyObject *iter = PyObject_GetIter(sipPy);

    if (!sipIsErr)
    {
        Py_XDECREF(iter);

        return (iter
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));
    }

    if (!iter)
    {
        *sipIsErr = 1;

        return 0;
    }

    QVector<unsigned> *qv = new QVector<unsigned>;

    for (SIP_SSIZE_T i = 0; ; ++i)
    {
        PyErr_Clear();
        PyObject *itm = PyIter_Next(iter);

        if (!itm)
        {
            if (PyErr_Occurred())
            {
                delete qv;
                Py_DECREF(iter);
                *sipIsErr = 1;

                return 0;
            }

            break;
        }

        PyErr_Clear();
        unsigned long val = PyLong_AsUnsignedLongMask(itm);

        if (PyErr_Occurred())
        {
            PyErr_Format(PyExc_TypeError,
                    "index " SIP_SSIZE_T_FORMAT " has type '%s' but 'int' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete qv;
            Py_DECREF(iter);
            *sipIsErr = 1;

            return 0;
        }

        qv->append(val);

        Py_DECREF(itm);
    }

    Py_DECREF(iter);

    *sipCppPtr = qv;

    return sipGetState(sipTransferObj);
#line 13711 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QVector_1900(void *, PyObject *);}
static PyObject *convertFrom_QVector_1900(void *sipCppV, PyObject *)
{
   QVector<uint> *sipCpp = reinterpret_cast<QVector<uint> *>(sipCppV);

#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        // Convert to a Python long to make sure it doesn't get interpreted as
        // a signed value.
        PyObject *pobj = PyLong_FromUnsignedLong(sipCpp->value(i));

        if (!pobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, pobj);
    }

    return l;
#line 13743 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QVector_1900 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_24659,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QVector_1900,
    array_QVector_1900,
    copy_QVector_1900,
    release_QVector_1900,
    convertTo_QVector_1900,
    convertFrom_QVector_1900
};

#line 127 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qpair.sip"
#include <qpair.h>
#line 13774 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



extern "C" {static void assign_QPair_2200_2200(void *, SIP_SSIZE_T, const void *);}
static void assign_QPair_2200_2200(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPair<float,float> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPair<float,float> *>(sipSrc);
}


extern "C" {static void *array_QPair_2200_2200(SIP_SSIZE_T);}
static void *array_QPair_2200_2200(SIP_SSIZE_T sipNrElem)
{
    return new QPair<float,float>[sipNrElem];
}


extern "C" {static void *copy_QPair_2200_2200(const void *, SIP_SSIZE_T);}
static void *copy_QPair_2200_2200(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPair<float,float>(reinterpret_cast<const QPair<float,float> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QPair_2200_2200(void *, int);}
static void release_QPair_2200_2200(void *ptr, int)
{
    delete reinterpret_cast<QPair<float,float> *>(ptr);
}



extern "C" {static int convertTo_QPair_2200_2200(PyObject *, void **, int *, PyObject *);}
static int convertTo_QPair_2200_2200(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QPair<float,float> **sipCppPtr = reinterpret_cast<QPair<float,float> **>(sipCppPtrV);

#line 135 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qpair.sip"
    if (!sipIsErr)
        return (PySequence_Check(sipPy)
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));

    SIP_SSIZE_T len = PySequence_Size(sipPy);

    if (len != 2)
    {
        // A negative length should only be an internal error so let the
        // original exception stand.
        if (len >= 0)
            PyErr_Format(PyExc_TypeError,
                    "sequence has " SIP_SSIZE_T_FORMAT " elements but 2 elements are expected",
                    len);

        *sipIsErr = 1;

        return 0;
    }

    PyObject *firstobj = PySequence_ITEM(sipPy, 0);

    if (!firstobj)
    {
        *sipIsErr = 1;

        return 0;
    }

    PyErr_Clear();
    double first = PyFloat_AsDouble(firstobj);

    if (PyErr_Occurred())
    {
        PyErr_Format(PyExc_TypeError,
                "the first element has type '%s' but 'float' is expected",
                Py_TYPE(firstobj)->tp_name);

        *sipIsErr = 1;

        return 0;
    }

    PyObject *secondobj = PySequence_ITEM(sipPy, 1);

    if (!secondobj)
    {
        Py_DECREF(firstobj);
        *sipIsErr = 1;

        return 0;
    }

    PyErr_Clear();
    double second = PyFloat_AsDouble(secondobj);

    if (PyErr_Occurred())
    {
        PyErr_Format(PyExc_TypeError,
                "the second element has type '%s' but 'float' is expected",
                Py_TYPE(secondobj)->tp_name);

        Py_DECREF(secondobj);
        Py_DECREF(firstobj);
        *sipIsErr = 1;

        return 0;
    }

    *sipCppPtr = new QPair<float, float>(first, second);;

    Py_DECREF(secondobj);
    Py_DECREF(firstobj);
 
    return sipGetState(sipTransferObj);
#line 13892 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QPair_2200_2200(void *, PyObject *);}
static PyObject *convertFrom_QPair_2200_2200(void *sipCppV, PyObject *)
{
   QPair<float,float> *sipCpp = reinterpret_cast<QPair<float,float> *>(sipCppV);

#line 131 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qpair.sip"
    return Py_BuildValue("(ff)", sipCpp->first, sipCpp->second);
#line 13903 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QPair_2200_2200 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_12240,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QPair_2200_2200,
    array_QPair_2200_2200,
    copy_QPair_2200_2200,
    release_QPair_2200_2200,
    convertTo_QPair_2200_2200,
    convertFrom_QPair_2200_2200
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qpair.sip"
#include <QOpenGLTexture>
#line 13934 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 13938 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(void *, SIP_SSIZE_T, const void *);}
static void assign_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter> *>(sipSrc);
}


extern "C" {static void *array_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(SIP_SSIZE_T);}
static void *array_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(SIP_SSIZE_T sipNrElem)
{
    return new QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter>[sipNrElem];
}


extern "C" {static void *copy_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(const void *, SIP_SSIZE_T);}
static void *copy_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter>(reinterpret_cast<const QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(void *, int);}
static void release_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(void *ptr, int)
{
    delete reinterpret_cast<QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter> *>(ptr);
}



extern "C" {static int convertTo_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(PyObject *, void **, int *, PyObject *);}
static int convertTo_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter> **sipCppPtr = reinterpret_cast<QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter> **>(sipCppPtrV);

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qpair.sip"
    if (!sipIsErr)
        return (PySequence_Check(sipPy)
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));

    SIP_SSIZE_T len = PySequence_Size(sipPy);

    if (len != 2)
    {
        // A negative length should only be an internal error so let the
        // original exception stand.
        if (len >= 0)
            PyErr_Format(PyExc_TypeError,
                    "sequence has " SIP_SSIZE_T_FORMAT " elements but 2 elements are expected",
                    len);

        *sipIsErr = 1;

        return 0;
    }

    PyObject *firstobj = PySequence_ITEM(sipPy, 0);

    if (!firstobj)
    {
        *sipIsErr = 1;

        return 0;
    }

    if (!sipCanConvertToEnum(firstobj, sipType_QOpenGLTexture_Filter))
    {
        PyErr_Format(PyExc_TypeError,
                "the first element has type '%s' but 'QOpenGLTexture.Filter' is expected",
                Py_TYPE(firstobj)->tp_name);

        *sipIsErr = 1;

        return 0;
    }

    PyObject *secondobj = PySequence_ITEM(sipPy, 1);

    if (!secondobj)
    {
        Py_DECREF(firstobj);
        *sipIsErr = 1;

        return 0;
    }

    if (!sipCanConvertToEnum(secondobj, sipType_QOpenGLTexture_Filter))
    {
        PyErr_Format(PyExc_TypeError,
                "the second element has type '%s' but 'QOpenGLTexture.Filter' is expected",
                Py_TYPE(secondobj)->tp_name);

        Py_DECREF(secondobj);
        Py_DECREF(firstobj);
        *sipIsErr = 1;

        return 0;
    }

    *sipCppPtr = new QPair<QOpenGLTexture::Filter, QOpenGLTexture::Filter>(
            static_cast<QOpenGLTexture::Filter>(SIPLong_AsLong(firstobj)),
            static_cast<QOpenGLTexture::Filter>(SIPLong_AsLong(secondobj)));

    Py_DECREF(secondobj);
    Py_DECREF(firstobj);
 
    return sipGetState(sipTransferObj);
#line 14051 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(void *, PyObject *);}
static PyObject *convertFrom_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter(void *sipCppV, PyObject *)
{
   QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter> *sipCpp = reinterpret_cast<QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter> *>(sipCppV);

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qpair.sip"
    return sipBuildResult(NULL, "(FF)", sipCpp->first,
            sipType_QOpenGLTexture_Filter, sipCpp->second,
            sipType_QOpenGLTexture_Filter);
#line 14064 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_0,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter,
    array_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter,
    copy_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter,
    release_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter,
    convertTo_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter,
    convertFrom_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qlist.sip"
#include <qfontdatabase.h>
#line 14095 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 14099 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static void assign_QList_0100QFontDatabase_WritingSystem(void *, SIP_SSIZE_T, const void *);}
static void assign_QList_0100QFontDatabase_WritingSystem(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QList<QFontDatabase::WritingSystem> *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QList<QFontDatabase::WritingSystem> *>(sipSrc);
}


extern "C" {static void *array_QList_0100QFontDatabase_WritingSystem(SIP_SSIZE_T);}
static void *array_QList_0100QFontDatabase_WritingSystem(SIP_SSIZE_T sipNrElem)
{
    return new QList<QFontDatabase::WritingSystem>[sipNrElem];
}


extern "C" {static void *copy_QList_0100QFontDatabase_WritingSystem(const void *, SIP_SSIZE_T);}
static void *copy_QList_0100QFontDatabase_WritingSystem(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QList<QFontDatabase::WritingSystem>(reinterpret_cast<const QList<QFontDatabase::WritingSystem> *>(sipSrc)[sipSrcIdx]);
}


/* Call the mapped type's destructor. */
extern "C" {static void release_QList_0100QFontDatabase_WritingSystem(void *, int);}
static void release_QList_0100QFontDatabase_WritingSystem(void *ptr, int)
{
    delete reinterpret_cast<QList<QFontDatabase::WritingSystem> *>(ptr);
}



extern "C" {static int convertTo_QList_0100QFontDatabase_WritingSystem(PyObject *, void **, int *, PyObject *);}
static int convertTo_QList_0100QFontDatabase_WritingSystem(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QList<QFontDatabase::WritingSystem> **sipCppPtr = reinterpret_cast<QList<QFontDatabase::WritingSystem> **>(sipCppPtrV);

#line 54 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qlist.sip"
    if (!sipIsErr)
        return (PySequence_Check(sipPy)
#if PY_MAJOR_VERSION < 3
                && !PyString_Check(sipPy)
#endif
                && !PyUnicode_Check(sipPy));

    SIP_SSIZE_T len = PySequence_Size(sipPy);

    if (len < 0)
        return 0;

    QList<QFontDatabase::WritingSystem> *ql = new QList<QFontDatabase::WritingSystem>;

    for (SIP_SSIZE_T i = 0; i < len; ++i)
    {
        PyObject *itm = PySequence_ITEM(sipPy, i);

        if (!itm)
        {
            delete ql;
            *sipIsErr = 1;

            return 0;
        }

        if (!sipCanConvertToEnum(itm, sipType_QFontDatabase_WritingSystem))
        {
            PyErr_Format(PyExc_TypeError,
                    "element " SIP_SSIZE_T_FORMAT " has type '%s' but 'QFontDatabase.WritingSystem' is expected",
                    i, Py_TYPE(itm)->tp_name);

            Py_DECREF(itm);
            delete ql;
            *sipIsErr = 1;

            return 0;
        }

        ql->append(
                static_cast<QFontDatabase::WritingSystem>(
                        SIPLong_AsLong(itm)));

        Py_DECREF(itm);
    }

    *sipCppPtr = ql;

    return sipGetState(sipTransferObj);
#line 14187 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


extern "C" {static PyObject *convertFrom_QList_0100QFontDatabase_WritingSystem(void *, PyObject *);}
static PyObject *convertFrom_QList_0100QFontDatabase_WritingSystem(void *sipCppV, PyObject *)
{
   QList<QFontDatabase::WritingSystem> *sipCpp = reinterpret_cast<QList<QFontDatabase::WritingSystem> *>(sipCppV);

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qlist.sip"
    PyObject *l = PyList_New(sipCpp->size());

    if (!l)
        return 0;

    for (int i = 0; i < sipCpp->size(); ++i)
    {
        PyObject *eobj = sipConvertFromEnum(sipCpp->at(i),
                sipType_QFontDatabase_WritingSystem);

        if (!eobj)
        {
            Py_DECREF(l);

            return 0;
        }

        PyList_SET_ITEM(l, i, eobj);
    }

    return l;
#line 14218 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


sipMappedTypeDef sipTypeDef_QtGui_QList_0100QFontDatabase_WritingSystem = {
    {
        -1,
        0,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_381,
        {0}
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QList_0100QFontDatabase_WritingSystem,
    array_QList_0100QFontDatabase_WritingSystem,
    copy_QList_0100QFontDatabase_WritingSystem,
    release_QList_0100QFontDatabase_WritingSystem,
    convertTo_QList_0100QFontDatabase_WritingSystem,
    convertFrom_QList_0100QFontDatabase_WritingSystem
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 14249 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 14253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 14256 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 14259 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 14262 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 14265 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QVector4D_length, "QVector4D.length() -> float");

extern "C" {static PyObject *meth_QVector4D_length(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->length();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_length, doc_QVector4D_length);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_lengthSquared, "QVector4D.lengthSquared() -> float");

extern "C" {static PyObject *meth_QVector4D_lengthSquared(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_lengthSquared(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->lengthSquared();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_lengthSquared, doc_QVector4D_lengthSquared);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_normalized, "QVector4D.normalized() -> QVector4D");

extern "C" {static PyObject *meth_QVector4D_normalized(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_normalized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D(sipCpp->normalized());

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_normalized, doc_QVector4D_normalized);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_normalize, "QVector4D.normalize()");

extern "C" {static PyObject *meth_QVector4D_normalize(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_normalize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            sipCpp->normalize();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_normalize, doc_QVector4D_normalize);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_dotProduct, "QVector4D.dotProduct(QVector4D, QVector4D) -> float");

extern "C" {static PyObject *meth_QVector4D_dotProduct(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_dotProduct(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D* a0;
        const QVector4D* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QVector4D, &a0, sipType_QVector4D, &a1))
        {
            float sipRes;

            sipRes = QVector4D::dotProduct(*a0,*a1);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_dotProduct, doc_QVector4D_dotProduct);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_toVector2D, "QVector4D.toVector2D() -> QVector2D");

extern "C" {static PyObject *meth_QVector4D_toVector2D(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_toVector2D(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D(sipCpp->toVector2D());

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_toVector2D, doc_QVector4D_toVector2D);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_toVector2DAffine, "QVector4D.toVector2DAffine() -> QVector2D");

extern "C" {static PyObject *meth_QVector4D_toVector2DAffine(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_toVector2DAffine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D(sipCpp->toVector2DAffine());

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_toVector2DAffine, doc_QVector4D_toVector2DAffine);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_toVector3D, "QVector4D.toVector3D() -> QVector3D");

extern "C" {static PyObject *meth_QVector4D_toVector3D(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_toVector3D(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(sipCpp->toVector3D());

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_toVector3D, doc_QVector4D_toVector3D);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_toVector3DAffine, "QVector4D.toVector3DAffine() -> QVector3D");

extern "C" {static PyObject *meth_QVector4D_toVector3DAffine(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_toVector3DAffine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(sipCpp->toVector3DAffine());

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_toVector3DAffine, doc_QVector4D_toVector3DAffine);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_isNull, "QVector4D.isNull() -> bool");

extern "C" {static PyObject *meth_QVector4D_isNull(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_isNull, doc_QVector4D_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_x, "QVector4D.x() -> float");

extern "C" {static PyObject *meth_QVector4D_x(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->x();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_x, doc_QVector4D_x);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_y, "QVector4D.y() -> float");

extern "C" {static PyObject *meth_QVector4D_y(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->y();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_y, doc_QVector4D_y);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_z, "QVector4D.z() -> float");

extern "C" {static PyObject *meth_QVector4D_z(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_z(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->z();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_z, doc_QVector4D_z);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_w, "QVector4D.w() -> float");

extern "C" {static PyObject *meth_QVector4D_w(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_w(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->w();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_w, doc_QVector4D_w);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_setX, "QVector4D.setX(float)");

extern "C" {static PyObject *meth_QVector4D_setX(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_setX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QVector4D, &sipCpp, &a0))
        {
            sipCpp->setX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_setX, doc_QVector4D_setX);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_setY, "QVector4D.setY(float)");

extern "C" {static PyObject *meth_QVector4D_setY(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_setY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QVector4D, &sipCpp, &a0))
        {
            sipCpp->setY(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_setY, doc_QVector4D_setY);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_setZ, "QVector4D.setZ(float)");

extern "C" {static PyObject *meth_QVector4D_setZ(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_setZ(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QVector4D, &sipCpp, &a0))
        {
            sipCpp->setZ(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_setZ, doc_QVector4D_setZ);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_setW, "QVector4D.setW(float)");

extern "C" {static PyObject *meth_QVector4D_setW(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_setW(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QVector4D, &sipCpp, &a0))
        {
            sipCpp->setW(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_setW, doc_QVector4D_setW);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_toPoint, "QVector4D.toPoint() -> QPoint");

extern "C" {static PyObject *meth_QVector4D_toPoint(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_toPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->toPoint());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_toPoint, doc_QVector4D_toPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QVector4D_toPointF, "QVector4D.toPointF() -> QPointF");

extern "C" {static PyObject *meth_QVector4D_toPointF(PyObject *, PyObject *);}
static PyObject *meth_QVector4D_toPointF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector4D, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->toPointF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName_toPointF, doc_QVector4D_toPointF);

    return NULL;
}


extern "C" {static PyObject *slot_QVector4D___eq__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector4D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector4D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector4D, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QVector4D,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QVector4D___div__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___div__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QVector4D, &a0, &a1))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D((*a0 / a1));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,div_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector4D___add__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___add__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D* a0;
        const QVector4D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector4D, &a0, sipType_QVector4D, &a1))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D((*a0 + *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,add_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector4D___sub__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___sub__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D* a0;
        const QVector4D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector4D, &a0, sipType_QVector4D, &a1))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D((*a0 - *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,sub_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector4D___mul__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector4D* a0;
        const QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector4D, &a0, sipType_QMatrix4x4, &a1))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    {
        float a0;
        const QVector4D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "fJ9", &a0, sipType_QVector4D, &a1))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D((a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    {
        const QVector4D* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QVector4D, &a0, &a1))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D((*a0 * a1));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    {
        const QVector4D* a0;
        const QVector4D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector4D, &a0, sipType_QVector4D, &a1))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector4D___neg__(PyObject *);}
static PyObject *slot_QVector4D___neg__(PyObject *sipSelf)
{
    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector4D));

    if (!sipCpp)
        return 0;


    {
        {
            QVector4D*sipRes;

            sipRes = new QVector4D(-(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QVector4D___ne__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector4D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector4D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector4D, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QVector4D,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QVector4D___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector4D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            float sipRes;

            sipRes = (*sipCpp)[a0];

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector4D, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QVector4D___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector4D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector4D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QVector4D::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector4D___imul__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector4D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector4D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QVector4D::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const QVector4D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector4D, &a0))
        {
            sipCpp->QVector4D::operator*=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector4D___isub__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector4D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector4D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector4D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector4D, &a0))
        {
            sipCpp->QVector4D::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector4D___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QVector4D___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector4D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector4D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector4D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector4D, &a0))
        {
            sipCpp->QVector4D::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector4D___repr__(PyObject *);}
static PyObject *slot_QVector4D___repr__(PyObject *sipSelf)
{
    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector4D));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 49 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
        PyObject *x = PyFloat_FromDouble(sipCpp->x());
        PyObject *y = PyFloat_FromDouble(sipCpp->y());
        PyObject *z = PyFloat_FromDouble(sipCpp->z());
        PyObject *w = PyFloat_FromDouble(sipCpp->w());
        
        if (x && y && z && w)
        {
        #if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QVector4D(%R, %R, %R, %R)", x,
                    y, z, w);
        #else
            sipRes = PyString_FromString("PyQt5.QtGui.QVector4D(");
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(x));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(y));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(z));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(w));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
        #endif
        }
        
        Py_XDECREF(x);
        Py_XDECREF(y);
        Py_XDECREF(z);
        Py_XDECREF(w);
#line 15292 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QVector4D(void *, const sipTypeDef *);}
static void *cast_QVector4D(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QVector4D)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QVector4D(void *, int);}
static void release_QVector4D(void *sipCppV,int)
{
    delete reinterpret_cast<QVector4D *>(sipCppV);
}


extern "C" {static PyObject *pickle_QVector4D(void *);}
static PyObject *pickle_QVector4D(void *sipCppV)
{
    QVector4D *sipCpp = reinterpret_cast<QVector4D *>(sipCppV);
    PyObject *sipRes;

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
    sipRes = Py_BuildValue((char *)"dddd", (double)sipCpp->x(),
            (double)sipCpp->y(), (double)sipCpp->z(), (double)sipCpp->w());
#line 15330 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QVector4D(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector4D(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector4D *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector4D *>(sipSrc);
}


extern "C" {static void *array_QVector4D(SIP_SSIZE_T);}
static void *array_QVector4D(SIP_SSIZE_T sipNrElem)
{
    return new QVector4D[sipNrElem];
}


extern "C" {static void *copy_QVector4D(const void *, SIP_SSIZE_T);}
static void *copy_QVector4D(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector4D(reinterpret_cast<const QVector4D *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QVector4D(sipSimpleWrapper *);}
static void dealloc_QVector4D(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QVector4D(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QVector4D(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QVector4D(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QVector4D *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QVector4D();

            return sipCpp;
        }
    }

    {
        float a0;
        float a1;
        float a2;
        float a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ffff", &a0, &a1, &a2, &a3))
        {
            sipCpp = new QVector4D(a0,a1,a2,a3);

            return sipCpp;
        }
    }

    {
        const QPoint* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPoint, &a0))
        {
            sipCpp = new QVector4D(*a0);

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPointF, &a0, &a0State))
        {
            sipCpp = new QVector4D(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipCpp;
        }
    }

    {
        const QVector2D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector2D, &a0))
        {
            sipCpp = new QVector4D(*a0);

            return sipCpp;
        }
    }

    {
        const QVector2D* a0;
        float a1;
        float a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9ff", sipType_QVector2D, &a0, &a1, &a2))
        {
            sipCpp = new QVector4D(*a0,a1,a2);

            return sipCpp;
        }
    }

    {
        const QVector3D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector3D, &a0))
        {
            sipCpp = new QVector4D(*a0);

            return sipCpp;
        }
    }

    {
        const QVector3D* a0;
        float a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9f", sipType_QVector3D, &a0, &a1))
        {
            sipCpp = new QVector4D(*a0,a1);

            return sipCpp;
        }
    }

    {
        const QVector4D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector4D, &a0))
        {
            sipCpp = new QVector4D(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QVector4D[] = {
    {(void *)slot_QVector4D___eq__, eq_slot},
    {(void *)slot_QVector4D___div__, div_slot},
    {(void *)slot_QVector4D___add__, add_slot},
    {(void *)slot_QVector4D___sub__, sub_slot},
    {(void *)slot_QVector4D___mul__, mul_slot},
    {(void *)slot_QVector4D___neg__, neg_slot},
    {(void *)slot_QVector4D___ne__, ne_slot},
    {(void *)slot_QVector4D___getitem__, getitem_slot},
    {(void *)slot_QVector4D___idiv__, idiv_slot},
    {(void *)slot_QVector4D___imul__, imul_slot},
    {(void *)slot_QVector4D___isub__, isub_slot},
    {(void *)slot_QVector4D___iadd__, iadd_slot},
    {(void *)slot_QVector4D___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QVector4D[] = {
    {SIP_MLNAME_CAST(sipName_dotProduct), meth_QVector4D_dotProduct, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_dotProduct)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QVector4D_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_isNull)},
    {SIP_MLNAME_CAST(sipName_length), meth_QVector4D_length, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_length)},
    {SIP_MLNAME_CAST(sipName_lengthSquared), meth_QVector4D_lengthSquared, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_lengthSquared)},
    {SIP_MLNAME_CAST(sipName_normalize), meth_QVector4D_normalize, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_normalize)},
    {SIP_MLNAME_CAST(sipName_normalized), meth_QVector4D_normalized, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_normalized)},
    {SIP_MLNAME_CAST(sipName_setW), meth_QVector4D_setW, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_setW)},
    {SIP_MLNAME_CAST(sipName_setX), meth_QVector4D_setX, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_setX)},
    {SIP_MLNAME_CAST(sipName_setY), meth_QVector4D_setY, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_setY)},
    {SIP_MLNAME_CAST(sipName_setZ), meth_QVector4D_setZ, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_setZ)},
    {SIP_MLNAME_CAST(sipName_toPoint), meth_QVector4D_toPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_toPoint)},
    {SIP_MLNAME_CAST(sipName_toPointF), meth_QVector4D_toPointF, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_toPointF)},
    {SIP_MLNAME_CAST(sipName_toVector2D), meth_QVector4D_toVector2D, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_toVector2D)},
    {SIP_MLNAME_CAST(sipName_toVector2DAffine), meth_QVector4D_toVector2DAffine, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_toVector2DAffine)},
    {SIP_MLNAME_CAST(sipName_toVector3D), meth_QVector4D_toVector3D, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_toVector3D)},
    {SIP_MLNAME_CAST(sipName_toVector3DAffine), meth_QVector4D_toVector3DAffine, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_toVector3DAffine)},
    {SIP_MLNAME_CAST(sipName_w), meth_QVector4D_w, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_w)},
    {SIP_MLNAME_CAST(sipName_x), meth_QVector4D_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QVector4D_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_y)},
    {SIP_MLNAME_CAST(sipName_z), meth_QVector4D_z, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector4D_z)}
};

PyDoc_STRVAR(doc_QVector4D, "\1QVector4D()\n"
    "QVector4D(float, float, float, float)\n"
    "QVector4D(QPoint)\n"
    "QVector4D(QPointF)\n"
    "QVector4D(QVector2D)\n"
    "QVector4D(QVector2D, float, float)\n"
    "QVector4D(QVector3D)\n"
    "QVector4D(QVector3D, float)\n"
    "QVector4D(QVector4D)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QVector4D = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QVector4D,
        {0}
    },
    {
        sipNameNr_QVector4D,
        {0, 0, 1},
        20, methods_QVector4D,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QVector4D,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QVector4D,
    init_type_QVector4D,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QVector4D,
    assign_QVector4D,
    array_QVector4D,
    copy_QVector4D,
    release_QVector4D,
    cast_QVector4D,
    0,
    0,
    0,
    pickle_QVector4D,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 15591 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 15595 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 15598 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 15601 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 15604 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 15607 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QVector3D_length, "QVector3D.length() -> float");

extern "C" {static PyObject *meth_QVector3D_length(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->length();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_length, doc_QVector3D_length);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_lengthSquared, "QVector3D.lengthSquared() -> float");

extern "C" {static PyObject *meth_QVector3D_lengthSquared(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_lengthSquared(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->lengthSquared();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_lengthSquared, doc_QVector3D_lengthSquared);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_normalized, "QVector3D.normalized() -> QVector3D");

extern "C" {static PyObject *meth_QVector3D_normalized(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_normalized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(sipCpp->normalized());

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_normalized, doc_QVector3D_normalized);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_normalize, "QVector3D.normalize()");

extern "C" {static PyObject *meth_QVector3D_normalize(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_normalize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            sipCpp->normalize();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_normalize, doc_QVector3D_normalize);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_dotProduct, "QVector3D.dotProduct(QVector3D, QVector3D) -> float");

extern "C" {static PyObject *meth_QVector3D_dotProduct(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_dotProduct(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QVector3D* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QVector3D, &a0, sipType_QVector3D, &a1))
        {
            float sipRes;

            sipRes = QVector3D::dotProduct(*a0,*a1);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_dotProduct, doc_QVector3D_dotProduct);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_crossProduct, "QVector3D.crossProduct(QVector3D, QVector3D) -> QVector3D");

extern "C" {static PyObject *meth_QVector3D_crossProduct(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_crossProduct(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QVector3D* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QVector3D, &a0, sipType_QVector3D, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(QVector3D::crossProduct(*a0,*a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_crossProduct, doc_QVector3D_crossProduct);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_normal, "QVector3D.normal(QVector3D, QVector3D) -> QVector3D\n"
    "QVector3D.normal(QVector3D, QVector3D, QVector3D) -> QVector3D");

extern "C" {static PyObject *meth_QVector3D_normal(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_normal(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QVector3D* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QVector3D, &a0, sipType_QVector3D, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(QVector3D::normal(*a0,*a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    {
        const QVector3D* a0;
        const QVector3D* a1;
        const QVector3D* a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9J9", sipType_QVector3D, &a0, sipType_QVector3D, &a1, sipType_QVector3D, &a2))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(QVector3D::normal(*a0,*a1,*a2));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_normal, doc_QVector3D_normal);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_distanceToPlane, "QVector3D.distanceToPlane(QVector3D, QVector3D) -> float\n"
    "QVector3D.distanceToPlane(QVector3D, QVector3D, QVector3D) -> float");

extern "C" {static PyObject *meth_QVector3D_distanceToPlane(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_distanceToPlane(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QVector3D* a1;
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_QVector3D, &sipCpp, sipType_QVector3D, &a0, sipType_QVector3D, &a1))
        {
            float sipRes;

            sipRes = sipCpp->distanceToPlane(*a0,*a1);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    {
        const QVector3D* a0;
        const QVector3D* a1;
        const QVector3D* a2;
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_QVector3D, &sipCpp, sipType_QVector3D, &a0, sipType_QVector3D, &a1, sipType_QVector3D, &a2))
        {
            float sipRes;

            sipRes = sipCpp->distanceToPlane(*a0,*a1,*a2);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_distanceToPlane, doc_QVector3D_distanceToPlane);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_distanceToLine, "QVector3D.distanceToLine(QVector3D, QVector3D) -> float");

extern "C" {static PyObject *meth_QVector3D_distanceToLine(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_distanceToLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QVector3D* a1;
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_QVector3D, &sipCpp, sipType_QVector3D, &a0, sipType_QVector3D, &a1))
        {
            float sipRes;

            sipRes = sipCpp->distanceToLine(*a0,*a1);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_distanceToLine, doc_QVector3D_distanceToLine);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_toVector2D, "QVector3D.toVector2D() -> QVector2D");

extern "C" {static PyObject *meth_QVector3D_toVector2D(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_toVector2D(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D(sipCpp->toVector2D());

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_toVector2D, doc_QVector3D_toVector2D);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_toVector4D, "QVector3D.toVector4D() -> QVector4D");

extern "C" {static PyObject *meth_QVector3D_toVector4D(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_toVector4D(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D(sipCpp->toVector4D());

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_toVector4D, doc_QVector3D_toVector4D);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_isNull, "QVector3D.isNull() -> bool");

extern "C" {static PyObject *meth_QVector3D_isNull(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_isNull, doc_QVector3D_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_x, "QVector3D.x() -> float");

extern "C" {static PyObject *meth_QVector3D_x(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->x();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_x, doc_QVector3D_x);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_y, "QVector3D.y() -> float");

extern "C" {static PyObject *meth_QVector3D_y(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->y();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_y, doc_QVector3D_y);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_z, "QVector3D.z() -> float");

extern "C" {static PyObject *meth_QVector3D_z(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_z(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->z();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_z, doc_QVector3D_z);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_setX, "QVector3D.setX(float)");

extern "C" {static PyObject *meth_QVector3D_setX(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_setX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QVector3D, &sipCpp, &a0))
        {
            sipCpp->setX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_setX, doc_QVector3D_setX);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_setY, "QVector3D.setY(float)");

extern "C" {static PyObject *meth_QVector3D_setY(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_setY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QVector3D, &sipCpp, &a0))
        {
            sipCpp->setY(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_setY, doc_QVector3D_setY);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_setZ, "QVector3D.setZ(float)");

extern "C" {static PyObject *meth_QVector3D_setZ(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_setZ(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QVector3D, &sipCpp, &a0))
        {
            sipCpp->setZ(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_setZ, doc_QVector3D_setZ);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_toPoint, "QVector3D.toPoint() -> QPoint");

extern "C" {static PyObject *meth_QVector3D_toPoint(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_toPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->toPoint());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_toPoint, doc_QVector3D_toPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_toPointF, "QVector3D.toPointF() -> QPointF");

extern "C" {static PyObject *meth_QVector3D_toPointF(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_toPointF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector3D, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->toPointF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_toPointF, doc_QVector3D_toPointF);

    return NULL;
}


PyDoc_STRVAR(doc_QVector3D_distanceToPoint, "QVector3D.distanceToPoint(QVector3D) -> float");

extern "C" {static PyObject *meth_QVector3D_distanceToPoint(PyObject *, PyObject *);}
static PyObject *meth_QVector3D_distanceToPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QVector3D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QVector3D, &sipCpp, sipType_QVector3D, &a0))
        {
            float sipRes;

            sipRes = sipCpp->distanceToPoint(*a0);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName_distanceToPoint, doc_QVector3D_distanceToPoint);

    return NULL;
}


extern "C" {static PyObject *slot_QVector3D___eq__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector3D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector3D, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QVector3D,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QVector3D___div__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___div__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QVector3D, &a0, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D((*a0 / a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,div_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector3D___add__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___add__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QVector3D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector3D, &a0, sipType_QVector3D, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D((*a0 + *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,add_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector3D___sub__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___sub__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QVector3D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector3D, &a0, sipType_QVector3D, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D((*a0 - *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,sub_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector3D___mul__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector3D, &a0, sipType_QMatrix4x4, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    {
        float a0;
        const QVector3D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "fJ9", &a0, sipType_QVector3D, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D((a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    {
        const QVector3D* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QVector3D, &a0, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D((*a0 * a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    {
        const QVector3D* a0;
        const QVector3D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector3D, &a0, sipType_QVector3D, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector3D___neg__(PyObject *);}
static PyObject *slot_QVector3D___neg__(PyObject *sipSelf)
{
    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector3D));

    if (!sipCpp)
        return 0;


    {
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(-(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QVector3D___ne__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector3D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector3D, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QVector3D,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QVector3D___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector3D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            float sipRes;

            sipRes = (*sipCpp)[a0];

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector3D, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QVector3D___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector3D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector3D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QVector3D::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector3D___imul__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector3D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector3D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QVector3D::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const QVector3D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector3D, &a0))
        {
            sipCpp->QVector3D::operator*=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector3D___isub__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector3D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector3D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector3D, &a0))
        {
            sipCpp->QVector3D::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector3D___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QVector3D___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector3D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector3D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector3D, &a0))
        {
            sipCpp->QVector3D::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector3D___repr__(PyObject *);}
static PyObject *slot_QVector3D___repr__(PyObject *sipSelf)
{
    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector3D));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
        PyObject *x = PyFloat_FromDouble(sipCpp->x());
        PyObject *y = PyFloat_FromDouble(sipCpp->y());
        PyObject *z = PyFloat_FromDouble(sipCpp->z());
        
        if (x && y && z)
        {
        #if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QVector3D(%R, %R, %R)", x, y,
                    z);
        #else
            sipRes = PyString_FromString("PyQt5.QtGui.QVector3D(");
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(x));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(y));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(z));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
        #endif
        }
        
        Py_XDECREF(x);
        Py_XDECREF(y);
        Py_XDECREF(z);
#line 16697 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QVector3D(void *, const sipTypeDef *);}
static void *cast_QVector3D(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QVector3D)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QVector3D(void *, int);}
static void release_QVector3D(void *sipCppV,int)
{
    delete reinterpret_cast<QVector3D *>(sipCppV);
}


extern "C" {static PyObject *pickle_QVector3D(void *);}
static PyObject *pickle_QVector3D(void *sipCppV)
{
    QVector3D *sipCpp = reinterpret_cast<QVector3D *>(sipCppV);
    PyObject *sipRes;

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
    sipRes = Py_BuildValue((char *)"ddd", (double)sipCpp->x(), (double)sipCpp->y(),
            (double)sipCpp->z());
#line 16735 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QVector3D(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector3D(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector3D *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector3D *>(sipSrc);
}


extern "C" {static void *array_QVector3D(SIP_SSIZE_T);}
static void *array_QVector3D(SIP_SSIZE_T sipNrElem)
{
    return new QVector3D[sipNrElem];
}


extern "C" {static void *copy_QVector3D(const void *, SIP_SSIZE_T);}
static void *copy_QVector3D(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector3D(reinterpret_cast<const QVector3D *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QVector3D(sipSimpleWrapper *);}
static void dealloc_QVector3D(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QVector3D(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QVector3D(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QVector3D(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QVector3D *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QVector3D();

            return sipCpp;
        }
    }

    {
        float a0;
        float a1;
        float a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "fff", &a0, &a1, &a2))
        {
            sipCpp = new QVector3D(a0,a1,a2);

            return sipCpp;
        }
    }

    {
        const QPoint* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPoint, &a0))
        {
            sipCpp = new QVector3D(*a0);

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPointF, &a0, &a0State))
        {
            sipCpp = new QVector3D(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipCpp;
        }
    }

    {
        const QVector2D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector2D, &a0))
        {
            sipCpp = new QVector3D(*a0);

            return sipCpp;
        }
    }

    {
        const QVector2D* a0;
        float a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9f", sipType_QVector2D, &a0, &a1))
        {
            sipCpp = new QVector3D(*a0,a1);

            return sipCpp;
        }
    }

    {
        const QVector4D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector4D, &a0))
        {
            sipCpp = new QVector3D(*a0);

            return sipCpp;
        }
    }

    {
        const QVector3D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector3D, &a0))
        {
            sipCpp = new QVector3D(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QVector3D[] = {
    {(void *)slot_QVector3D___eq__, eq_slot},
    {(void *)slot_QVector3D___div__, div_slot},
    {(void *)slot_QVector3D___add__, add_slot},
    {(void *)slot_QVector3D___sub__, sub_slot},
    {(void *)slot_QVector3D___mul__, mul_slot},
    {(void *)slot_QVector3D___neg__, neg_slot},
    {(void *)slot_QVector3D___ne__, ne_slot},
    {(void *)slot_QVector3D___getitem__, getitem_slot},
    {(void *)slot_QVector3D___idiv__, idiv_slot},
    {(void *)slot_QVector3D___imul__, imul_slot},
    {(void *)slot_QVector3D___isub__, isub_slot},
    {(void *)slot_QVector3D___iadd__, iadd_slot},
    {(void *)slot_QVector3D___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QVector3D[] = {
    {SIP_MLNAME_CAST(sipName_crossProduct), meth_QVector3D_crossProduct, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_crossProduct)},
    {SIP_MLNAME_CAST(sipName_distanceToLine), meth_QVector3D_distanceToLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_distanceToLine)},
    {SIP_MLNAME_CAST(sipName_distanceToPlane), meth_QVector3D_distanceToPlane, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_distanceToPlane)},
    {SIP_MLNAME_CAST(sipName_distanceToPoint), meth_QVector3D_distanceToPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_distanceToPoint)},
    {SIP_MLNAME_CAST(sipName_dotProduct), meth_QVector3D_dotProduct, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_dotProduct)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QVector3D_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_isNull)},
    {SIP_MLNAME_CAST(sipName_length), meth_QVector3D_length, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_length)},
    {SIP_MLNAME_CAST(sipName_lengthSquared), meth_QVector3D_lengthSquared, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_lengthSquared)},
    {SIP_MLNAME_CAST(sipName_normal), meth_QVector3D_normal, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_normal)},
    {SIP_MLNAME_CAST(sipName_normalize), meth_QVector3D_normalize, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_normalize)},
    {SIP_MLNAME_CAST(sipName_normalized), meth_QVector3D_normalized, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_normalized)},
    {SIP_MLNAME_CAST(sipName_setX), meth_QVector3D_setX, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_setX)},
    {SIP_MLNAME_CAST(sipName_setY), meth_QVector3D_setY, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_setY)},
    {SIP_MLNAME_CAST(sipName_setZ), meth_QVector3D_setZ, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_setZ)},
    {SIP_MLNAME_CAST(sipName_toPoint), meth_QVector3D_toPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_toPoint)},
    {SIP_MLNAME_CAST(sipName_toPointF), meth_QVector3D_toPointF, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_toPointF)},
    {SIP_MLNAME_CAST(sipName_toVector2D), meth_QVector3D_toVector2D, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_toVector2D)},
    {SIP_MLNAME_CAST(sipName_toVector4D), meth_QVector3D_toVector4D, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_toVector4D)},
    {SIP_MLNAME_CAST(sipName_x), meth_QVector3D_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QVector3D_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_y)},
    {SIP_MLNAME_CAST(sipName_z), meth_QVector3D_z, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector3D_z)}
};

PyDoc_STRVAR(doc_QVector3D, "\1QVector3D()\n"
    "QVector3D(float, float, float)\n"
    "QVector3D(QPoint)\n"
    "QVector3D(QPointF)\n"
    "QVector3D(QVector2D)\n"
    "QVector3D(QVector2D, float)\n"
    "QVector3D(QVector4D)\n"
    "QVector3D(QVector3D)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QVector3D = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QVector3D,
        {0}
    },
    {
        sipNameNr_QVector3D,
        {0, 0, 1},
        21, methods_QVector3D,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QVector3D,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QVector3D,
    init_type_QVector3D,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QVector3D,
    assign_QVector3D,
    array_QVector3D,
    copy_QVector3D,
    release_QVector3D,
    cast_QVector3D,
    0,
    0,
    0,
    pickle_QVector3D,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 16982 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 16986 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 16989 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 16992 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 16995 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QVector2D_length, "QVector2D.length() -> float");

extern "C" {static PyObject *meth_QVector2D_length(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->length();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_length, doc_QVector2D_length);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_lengthSquared, "QVector2D.lengthSquared() -> float");

extern "C" {static PyObject *meth_QVector2D_lengthSquared(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_lengthSquared(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->lengthSquared();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_lengthSquared, doc_QVector2D_lengthSquared);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_normalized, "QVector2D.normalized() -> QVector2D");

extern "C" {static PyObject *meth_QVector2D_normalized(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_normalized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D(sipCpp->normalized());

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_normalized, doc_QVector2D_normalized);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_normalize, "QVector2D.normalize()");

extern "C" {static PyObject *meth_QVector2D_normalize(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_normalize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            sipCpp->normalize();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_normalize, doc_QVector2D_normalize);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_dotProduct, "QVector2D.dotProduct(QVector2D, QVector2D) -> float");

extern "C" {static PyObject *meth_QVector2D_dotProduct(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_dotProduct(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;
        const QVector2D* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QVector2D, &a0, sipType_QVector2D, &a1))
        {
            float sipRes;

            sipRes = QVector2D::dotProduct(*a0,*a1);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_dotProduct, doc_QVector2D_dotProduct);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_toVector3D, "QVector2D.toVector3D() -> QVector3D");

extern "C" {static PyObject *meth_QVector2D_toVector3D(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_toVector3D(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(sipCpp->toVector3D());

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_toVector3D, doc_QVector2D_toVector3D);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_toVector4D, "QVector2D.toVector4D() -> QVector4D");

extern "C" {static PyObject *meth_QVector2D_toVector4D(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_toVector4D(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D(sipCpp->toVector4D());

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_toVector4D, doc_QVector2D_toVector4D);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_isNull, "QVector2D.isNull() -> bool");

extern "C" {static PyObject *meth_QVector2D_isNull(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_isNull, doc_QVector2D_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_x, "QVector2D.x() -> float");

extern "C" {static PyObject *meth_QVector2D_x(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->x();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_x, doc_QVector2D_x);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_y, "QVector2D.y() -> float");

extern "C" {static PyObject *meth_QVector2D_y(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->y();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_y, doc_QVector2D_y);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_setX, "QVector2D.setX(float)");

extern "C" {static PyObject *meth_QVector2D_setX(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_setX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QVector2D, &sipCpp, &a0))
        {
            sipCpp->setX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_setX, doc_QVector2D_setX);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_setY, "QVector2D.setY(float)");

extern "C" {static PyObject *meth_QVector2D_setY(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_setY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QVector2D, &sipCpp, &a0))
        {
            sipCpp->setY(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_setY, doc_QVector2D_setY);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_toPoint, "QVector2D.toPoint() -> QPoint");

extern "C" {static PyObject *meth_QVector2D_toPoint(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_toPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->toPoint());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_toPoint, doc_QVector2D_toPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_toPointF, "QVector2D.toPointF() -> QPointF");

extern "C" {static PyObject *meth_QVector2D_toPointF(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_toPointF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QVector2D, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->toPointF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_toPointF, doc_QVector2D_toPointF);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_distanceToPoint, "QVector2D.distanceToPoint(QVector2D) -> float");

extern "C" {static PyObject *meth_QVector2D_distanceToPoint(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_distanceToPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QVector2D, &sipCpp, sipType_QVector2D, &a0))
        {
            float sipRes;

            sipRes = sipCpp->distanceToPoint(*a0);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_distanceToPoint, doc_QVector2D_distanceToPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QVector2D_distanceToLine, "QVector2D.distanceToLine(QVector2D, QVector2D) -> float");

extern "C" {static PyObject *meth_QVector2D_distanceToLine(PyObject *, PyObject *);}
static PyObject *meth_QVector2D_distanceToLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;
        const QVector2D* a1;
        const QVector2D *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_QVector2D, &sipCpp, sipType_QVector2D, &a0, sipType_QVector2D, &a1))
        {
            float sipRes;

            sipRes = sipCpp->distanceToLine(*a0,*a1);

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName_distanceToLine, doc_QVector2D_distanceToLine);

    return NULL;
}


extern "C" {static PyObject *slot_QVector2D___eq__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector2D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector2D, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QVector2D,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QVector2D___div__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___div__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QVector2D, &a0, &a1))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D((*a0 / a1));

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,div_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector2D___add__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___add__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;
        const QVector2D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector2D, &a0, sipType_QVector2D, &a1))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D((*a0 + *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,add_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector2D___sub__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___sub__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;
        const QVector2D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector2D, &a0, sipType_QVector2D, &a1))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D((*a0 - *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,sub_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector2D___mul__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        const QVector2D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "fJ9", &a0, sipType_QVector2D, &a1))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D((a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    {
        const QVector2D* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QVector2D, &a0, &a1))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D((*a0 * a1));

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    {
        const QVector2D* a0;
        const QVector2D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QVector2D, &a0, sipType_QVector2D, &a1))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QVector2D___neg__(PyObject *);}
static PyObject *slot_QVector2D___neg__(PyObject *sipSelf)
{
    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector2D));

    if (!sipCpp)
        return 0;


    {
        {
            QVector2D*sipRes;

            sipRes = new QVector2D(-(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QVector2D___ne__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector2D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector2D, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QVector2D,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QVector2D___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector2D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            float sipRes;

            sipRes = (*sipCpp)[a0];

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QVector2D, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QVector2D___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector2D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector2D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QVector2D::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector2D___imul__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector2D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector2D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QVector2D::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const QVector2D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector2D, &a0))
        {
            sipCpp->QVector2D::operator*=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector2D___isub__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector2D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector2D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector2D, &a0))
        {
            sipCpp->QVector2D::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector2D___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QVector2D___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QVector2D)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector2D));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QVector2D* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QVector2D, &a0))
        {
            sipCpp->QVector2D::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QVector2D___repr__(PyObject *);}
static PyObject *slot_QVector2D___repr__(PyObject *sipSelf)
{
    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QVector2D));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 46 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector2d.sip"
        PyObject *x = PyFloat_FromDouble(sipCpp->x());
        PyObject *y = PyFloat_FromDouble(sipCpp->y());
        
        if (x && y)
        {
        #if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QVector2D(%R, %R)", x, y);
        #else
            sipRes = PyString_FromString("PyQt5.QtGui.QVector2D(");
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(x));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(y));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
        #endif
        }
        
        Py_XDECREF(x);
        Py_XDECREF(y);
#line 17894 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QVector2D(void *, const sipTypeDef *);}
static void *cast_QVector2D(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QVector2D)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QVector2D(void *, int);}
static void release_QVector2D(void *sipCppV,int)
{
    delete reinterpret_cast<QVector2D *>(sipCppV);
}


extern "C" {static PyObject *pickle_QVector2D(void *);}
static PyObject *pickle_QVector2D(void *sipCppV)
{
    QVector2D *sipCpp = reinterpret_cast<QVector2D *>(sipCppV);
    PyObject *sipRes;

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector2d.sip"
    sipRes = Py_BuildValue((char *)"dd", (double)sipCpp->x(), (double)sipCpp->y());
#line 17931 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QVector2D(void *, SIP_SSIZE_T, const void *);}
static void assign_QVector2D(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QVector2D *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QVector2D *>(sipSrc);
}


extern "C" {static void *array_QVector2D(SIP_SSIZE_T);}
static void *array_QVector2D(SIP_SSIZE_T sipNrElem)
{
    return new QVector2D[sipNrElem];
}


extern "C" {static void *copy_QVector2D(const void *, SIP_SSIZE_T);}
static void *copy_QVector2D(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QVector2D(reinterpret_cast<const QVector2D *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QVector2D(sipSimpleWrapper *);}
static void dealloc_QVector2D(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QVector2D(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QVector2D(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QVector2D(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QVector2D *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QVector2D();

            return sipCpp;
        }
    }

    {
        float a0;
        float a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ff", &a0, &a1))
        {
            sipCpp = new QVector2D(a0,a1);

            return sipCpp;
        }
    }

    {
        const QPoint* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPoint, &a0))
        {
            sipCpp = new QVector2D(*a0);

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPointF, &a0, &a0State))
        {
            sipCpp = new QVector2D(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipCpp;
        }
    }

    {
        const QVector3D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector3D, &a0))
        {
            sipCpp = new QVector2D(*a0);

            return sipCpp;
        }
    }

    {
        const QVector4D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector4D, &a0))
        {
            sipCpp = new QVector2D(*a0);

            return sipCpp;
        }
    }

    {
        const QVector2D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector2D, &a0))
        {
            sipCpp = new QVector2D(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QVector2D[] = {
    {(void *)slot_QVector2D___eq__, eq_slot},
    {(void *)slot_QVector2D___div__, div_slot},
    {(void *)slot_QVector2D___add__, add_slot},
    {(void *)slot_QVector2D___sub__, sub_slot},
    {(void *)slot_QVector2D___mul__, mul_slot},
    {(void *)slot_QVector2D___neg__, neg_slot},
    {(void *)slot_QVector2D___ne__, ne_slot},
    {(void *)slot_QVector2D___getitem__, getitem_slot},
    {(void *)slot_QVector2D___idiv__, idiv_slot},
    {(void *)slot_QVector2D___imul__, imul_slot},
    {(void *)slot_QVector2D___isub__, isub_slot},
    {(void *)slot_QVector2D___iadd__, iadd_slot},
    {(void *)slot_QVector2D___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QVector2D[] = {
    {SIP_MLNAME_CAST(sipName_distanceToLine), meth_QVector2D_distanceToLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_distanceToLine)},
    {SIP_MLNAME_CAST(sipName_distanceToPoint), meth_QVector2D_distanceToPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_distanceToPoint)},
    {SIP_MLNAME_CAST(sipName_dotProduct), meth_QVector2D_dotProduct, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_dotProduct)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QVector2D_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_isNull)},
    {SIP_MLNAME_CAST(sipName_length), meth_QVector2D_length, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_length)},
    {SIP_MLNAME_CAST(sipName_lengthSquared), meth_QVector2D_lengthSquared, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_lengthSquared)},
    {SIP_MLNAME_CAST(sipName_normalize), meth_QVector2D_normalize, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_normalize)},
    {SIP_MLNAME_CAST(sipName_normalized), meth_QVector2D_normalized, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_normalized)},
    {SIP_MLNAME_CAST(sipName_setX), meth_QVector2D_setX, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_setX)},
    {SIP_MLNAME_CAST(sipName_setY), meth_QVector2D_setY, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_setY)},
    {SIP_MLNAME_CAST(sipName_toPoint), meth_QVector2D_toPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_toPoint)},
    {SIP_MLNAME_CAST(sipName_toPointF), meth_QVector2D_toPointF, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_toPointF)},
    {SIP_MLNAME_CAST(sipName_toVector3D), meth_QVector2D_toVector3D, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_toVector3D)},
    {SIP_MLNAME_CAST(sipName_toVector4D), meth_QVector2D_toVector4D, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_toVector4D)},
    {SIP_MLNAME_CAST(sipName_x), meth_QVector2D_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QVector2D_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QVector2D_y)}
};

PyDoc_STRVAR(doc_QVector2D, "\1QVector2D()\n"
    "QVector2D(float, float)\n"
    "QVector2D(QPoint)\n"
    "QVector2D(QPointF)\n"
    "QVector2D(QVector3D)\n"
    "QVector2D(QVector4D)\n"
    "QVector2D(QVector2D)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QVector2D = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QVector2D,
        {0}
    },
    {
        sipNameNr_QVector2D,
        {0, 0, 1},
        16, methods_QVector2D,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QVector2D,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QVector2D,
    init_type_QVector2D,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QVector2D,
    assign_QVector2D,
    array_QVector2D,
    copy_QVector2D,
    release_QVector2D,
    cast_QVector2D,
    0,
    0,
    0,
    pickle_QVector2D,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 18159 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 18163 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 18166 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 18169 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 18172 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 18175 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 18178 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 18181 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 18184 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 18187 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 18190 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 18193 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 18196 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 18199 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 18202 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 18205 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 18208 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 18211 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 18214 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQRegularExpressionValidator : public QRegularExpressionValidator
{
public:
    sipQRegularExpressionValidator(QObject*);
    sipQRegularExpressionValidator(const QRegularExpression&,QObject*);
    virtual ~sipQRegularExpressionValidator();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void fixup(QString&) const;
    QValidator::State validate(QString&,int&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQRegularExpressionValidator(const sipQRegularExpressionValidator &);
    sipQRegularExpressionValidator &operator = (const sipQRegularExpressionValidator &);

    char sipPyMethods[9];
};

sipQRegularExpressionValidator::sipQRegularExpressionValidator(QObject*a0): QRegularExpressionValidator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQRegularExpressionValidator::sipQRegularExpressionValidator(const QRegularExpression& a0,QObject*a1): QRegularExpressionValidator(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQRegularExpressionValidator::~sipQRegularExpressionValidator()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQRegularExpressionValidator::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QRegularExpressionValidator);
}

int sipQRegularExpressionValidator::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QRegularExpressionValidator::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QRegularExpressionValidator,_c,_id,_a);

    return _id;
}

void *sipQRegularExpressionValidator::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QRegularExpressionValidator, _clname, &sipCpp) ? sipCpp : QRegularExpressionValidator::qt_metacast(_clname));
}

void sipQRegularExpressionValidator::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QRegularExpressionValidator::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegularExpressionValidator::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QRegularExpressionValidator::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegularExpressionValidator::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QRegularExpressionValidator::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegularExpressionValidator::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QRegularExpressionValidator::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegularExpressionValidator::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QRegularExpressionValidator::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQRegularExpressionValidator::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QRegularExpressionValidator::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQRegularExpressionValidator::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QRegularExpressionValidator::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegularExpressionValidator::fixup(QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
        QRegularExpressionValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&);

    sipVH_QtGui_18(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QValidator::State sipQRegularExpressionValidator::validate(QString& a0,int& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_validate);

    if (!sipMeth)
        return QRegularExpressionValidator::validate(a0,a1);

    extern QValidator::State sipVH_QtGui_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&,int&);

    return sipVH_QtGui_15(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QObject* sipQRegularExpressionValidator::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQRegularExpressionValidator::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQRegularExpressionValidator::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQRegularExpressionValidator::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQRegularExpressionValidator::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQRegularExpressionValidator::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQRegularExpressionValidator::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQRegularExpressionValidator::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQRegularExpressionValidator::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_sender, "QRegularExpressionValidator.sender() -> QObject");

extern "C" {static PyObject *meth_QRegularExpressionValidator_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQRegularExpressionValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 18543 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_sender, doc_QRegularExpressionValidator_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_receivers, "QRegularExpressionValidator.receivers(signal) -> int");

extern "C" {static PyObject *meth_QRegularExpressionValidator_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQRegularExpressionValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 18602 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_receivers, doc_QRegularExpressionValidator_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_timerEvent, "QRegularExpressionValidator.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QRegularExpressionValidator_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQRegularExpressionValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_timerEvent, doc_QRegularExpressionValidator_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_childEvent, "QRegularExpressionValidator.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QRegularExpressionValidator_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQRegularExpressionValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_childEvent, doc_QRegularExpressionValidator_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_customEvent, "QRegularExpressionValidator.customEvent(QEvent)");

extern "C" {static PyObject *meth_QRegularExpressionValidator_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQRegularExpressionValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_customEvent, doc_QRegularExpressionValidator_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_connectNotify, "QRegularExpressionValidator.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QRegularExpressionValidator_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQRegularExpressionValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_connectNotify, doc_QRegularExpressionValidator_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_disconnectNotify, "QRegularExpressionValidator.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QRegularExpressionValidator_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQRegularExpressionValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_disconnectNotify, doc_QRegularExpressionValidator_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_senderSignalIndex, "QRegularExpressionValidator.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QRegularExpressionValidator_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQRegularExpressionValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_senderSignalIndex, doc_QRegularExpressionValidator_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_isSignalConnected, "QRegularExpressionValidator.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QRegularExpressionValidator_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQRegularExpressionValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_isSignalConnected, doc_QRegularExpressionValidator_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_validate, "QRegularExpressionValidator.validate(str, int) -> (QValidator.State, str, int)");

extern "C" {static PyObject *meth_QRegularExpressionValidator_validate(PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_validate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QString* a0;
        int a0State = 0;
        int a1;
        const QRegularExpressionValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            QValidator::State sipRes;
            PyObject *sipResObj;

            sipRes = (sipSelfWasArg ? sipCpp->QRegularExpressionValidator::validate(*a0,a1) : sipCpp->validate(*a0,a1));

            sipResObj = sipBuildResult(0,"(FDi)",sipRes,sipType_QValidator_State,a0,sipType_QString,NULL,a1);
            sipReleaseType(a0,sipType_QString,a0State);

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_validate, doc_QRegularExpressionValidator_validate);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_regularExpression, "QRegularExpressionValidator.regularExpression() -> QRegularExpression");

extern "C" {static PyObject *meth_QRegularExpressionValidator_regularExpression(PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_regularExpression(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegularExpressionValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp))
        {
            QRegularExpression*sipRes;

            sipRes = new QRegularExpression(sipCpp->regularExpression());

            return sipConvertFromNewType(sipRes,sipType_QRegularExpression,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_regularExpression, doc_QRegularExpressionValidator_regularExpression);

    return NULL;
}


PyDoc_STRVAR(doc_QRegularExpressionValidator_setRegularExpression, "QRegularExpressionValidator.setRegularExpression(QRegularExpression)");

extern "C" {static PyObject *meth_QRegularExpressionValidator_setRegularExpression(PyObject *, PyObject *);}
static PyObject *meth_QRegularExpressionValidator_setRegularExpression(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegularExpression* a0;
        QRegularExpressionValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegularExpressionValidator, &sipCpp, sipType_QRegularExpression, &a0))
        {
            sipCpp->setRegularExpression(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegularExpressionValidator, sipName_setRegularExpression, doc_QRegularExpressionValidator_setRegularExpression);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QRegularExpressionValidator(void *, const sipTypeDef *);}
static void *cast_QRegularExpressionValidator(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QRegularExpressionValidator)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QValidator)->ctd_cast((QValidator *)(QRegularExpressionValidator *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QRegularExpressionValidator(void *, int);}
static void release_QRegularExpressionValidator(void *sipCppV,int)
{
    QRegularExpressionValidator *sipCpp = reinterpret_cast<QRegularExpressionValidator *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QRegularExpressionValidator(sipSimpleWrapper *);}
static void dealloc_QRegularExpressionValidator(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQRegularExpressionValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QRegularExpressionValidator(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QRegularExpressionValidator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QRegularExpressionValidator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQRegularExpressionValidator *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQRegularExpressionValidator(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QRegularExpression* a0;
        QObject* a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|JH", sipType_QRegularExpression, &a0, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipQRegularExpressionValidator(*a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QRegularExpressionValidator[] = {{341, 255, 1}};


static PyMethodDef methods_QRegularExpressionValidator[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QRegularExpressionValidator_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QRegularExpressionValidator_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QRegularExpressionValidator_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QRegularExpressionValidator_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QRegularExpressionValidator_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QRegularExpressionValidator_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_regularExpression), meth_QRegularExpressionValidator_regularExpression, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegularExpressionValidator_regularExpression)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QRegularExpressionValidator_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QRegularExpressionValidator_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setRegularExpression), meth_QRegularExpressionValidator_setRegularExpression, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegularExpressionValidator_setRegularExpression)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QRegularExpressionValidator_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_validate), meth_QRegularExpressionValidator_validate, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegularExpressionValidator_validate)}
};

PyDoc_STRVAR(doc_QRegularExpressionValidator, "\1QRegularExpressionValidator(QObject parent=None)\n"
    "QRegularExpressionValidator(QRegularExpression, QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QRegularExpressionValidator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QRegularExpressionValidator,
        {0}
    },
    {
        sipNameNr_QRegularExpressionValidator,
        {0, 0, 1},
        12, methods_QRegularExpressionValidator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRegularExpressionValidator,
    -1,
    -1,
    supers_QRegularExpressionValidator,
    0,
    init_type_QRegularExpressionValidator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QRegularExpressionValidator,
    0,
    0,
    0,
    release_QRegularExpressionValidator,
    cast_QRegularExpressionValidator,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QRegularExpressionValidator::staticMetaObject,
    0,
    0,
    0
};

#line 109 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 19074 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19078 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 19081 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 19084 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19087 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 19090 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 19093 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19096 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19099 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 19102 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 19105 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 19108 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 19111 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 19114 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19117 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 19120 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 19123 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 19126 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 19129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQRegExpValidator : public QRegExpValidator
{
public:
    sipQRegExpValidator(QObject*);
    sipQRegExpValidator(const QRegExp&,QObject*);
    virtual ~sipQRegExpValidator();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void fixup(QString&) const;
    QValidator::State validate(QString&,int&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQRegExpValidator(const sipQRegExpValidator &);
    sipQRegExpValidator &operator = (const sipQRegExpValidator &);

    char sipPyMethods[9];
};

sipQRegExpValidator::sipQRegExpValidator(QObject*a0): QRegExpValidator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQRegExpValidator::sipQRegExpValidator(const QRegExp& a0,QObject*a1): QRegExpValidator(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQRegExpValidator::~sipQRegExpValidator()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQRegExpValidator::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QRegExpValidator);
}

int sipQRegExpValidator::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QRegExpValidator::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QRegExpValidator,_c,_id,_a);

    return _id;
}

void *sipQRegExpValidator::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QRegExpValidator, _clname, &sipCpp) ? sipCpp : QRegExpValidator::qt_metacast(_clname));
}

void sipQRegExpValidator::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QRegExpValidator::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegExpValidator::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QRegExpValidator::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegExpValidator::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QRegExpValidator::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegExpValidator::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QRegExpValidator::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegExpValidator::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QRegExpValidator::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQRegExpValidator::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QRegExpValidator::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQRegExpValidator::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QRegExpValidator::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRegExpValidator::fixup(QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
        QRegExpValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&);

    sipVH_QtGui_18(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QValidator::State sipQRegExpValidator::validate(QString& a0,int& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_validate);

    if (!sipMeth)
        return QRegExpValidator::validate(a0,a1);

    extern QValidator::State sipVH_QtGui_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&,int&);

    return sipVH_QtGui_15(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QObject* sipQRegExpValidator::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQRegExpValidator::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQRegExpValidator::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQRegExpValidator::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQRegExpValidator::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQRegExpValidator::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQRegExpValidator::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQRegExpValidator::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQRegExpValidator::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QRegExpValidator_sender, "QRegExpValidator.sender() -> QObject");

extern "C" {static PyObject *meth_QRegExpValidator_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQRegExpValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QRegExpValidator, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 19458 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_sender, doc_QRegExpValidator_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_receivers, "QRegExpValidator.receivers(signal) -> int");

extern "C" {static PyObject *meth_QRegExpValidator_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQRegExpValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QRegExpValidator, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 19517 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_receivers, doc_QRegExpValidator_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_timerEvent, "QRegExpValidator.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QRegExpValidator_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQRegExpValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_timerEvent, doc_QRegExpValidator_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_childEvent, "QRegExpValidator.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QRegExpValidator_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQRegExpValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_childEvent, doc_QRegExpValidator_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_customEvent, "QRegExpValidator.customEvent(QEvent)");

extern "C" {static PyObject *meth_QRegExpValidator_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQRegExpValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_customEvent, doc_QRegExpValidator_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_connectNotify, "QRegExpValidator.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QRegExpValidator_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQRegExpValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_connectNotify, doc_QRegExpValidator_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_disconnectNotify, "QRegExpValidator.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QRegExpValidator_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQRegExpValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_disconnectNotify, doc_QRegExpValidator_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_senderSignalIndex, "QRegExpValidator.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QRegExpValidator_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQRegExpValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QRegExpValidator, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_senderSignalIndex, doc_QRegExpValidator_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_isSignalConnected, "QRegExpValidator.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QRegExpValidator_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQRegExpValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_isSignalConnected, doc_QRegExpValidator_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_validate, "QRegExpValidator.validate(str, int) -> (QValidator.State, str, int)");

extern "C" {static PyObject *meth_QRegExpValidator_validate(PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_validate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QString* a0;
        int a0State = 0;
        int a1;
        const QRegExpValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            QValidator::State sipRes;
            PyObject *sipResObj;

            sipRes = (sipSelfWasArg ? sipCpp->QRegExpValidator::validate(*a0,a1) : sipCpp->validate(*a0,a1));

            sipResObj = sipBuildResult(0,"(FDi)",sipRes,sipType_QValidator_State,a0,sipType_QString,NULL,a1);
            sipReleaseType(a0,sipType_QString,a0State);

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_validate, doc_QRegExpValidator_validate);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_setRegExp, "QRegExpValidator.setRegExp(QRegExp)");

extern "C" {static PyObject *meth_QRegExpValidator_setRegExp(PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_setRegExp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegExp* a0;
        QRegExpValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegExpValidator, &sipCpp, sipType_QRegExp, &a0))
        {
            sipCpp->setRegExp(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_setRegExp, doc_QRegExpValidator_setRegExp);

    return NULL;
}


PyDoc_STRVAR(doc_QRegExpValidator_regExp, "QRegExpValidator.regExp() -> QRegExp");

extern "C" {static PyObject *meth_QRegExpValidator_regExp(PyObject *, PyObject *);}
static PyObject *meth_QRegExpValidator_regExp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegExpValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRegExpValidator, &sipCpp))
        {
            QRegExp*sipRes;

            sipRes = new QRegExp(sipCpp->regExp());

            return sipConvertFromNewType(sipRes,sipType_QRegExp,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegExpValidator, sipName_regExp, doc_QRegExpValidator_regExp);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QRegExpValidator(void *, const sipTypeDef *);}
static void *cast_QRegExpValidator(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QRegExpValidator)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QValidator)->ctd_cast((QValidator *)(QRegExpValidator *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QRegExpValidator(void *, int);}
static void release_QRegExpValidator(void *sipCppV,int)
{
    QRegExpValidator *sipCpp = reinterpret_cast<QRegExpValidator *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QRegExpValidator(sipSimpleWrapper *);}
static void dealloc_QRegExpValidator(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQRegExpValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QRegExpValidator(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QRegExpValidator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QRegExpValidator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQRegExpValidator *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQRegExpValidator(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QRegExp* a0;
        QObject* a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|JH", sipType_QRegExp, &a0, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipQRegExpValidator(*a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QRegExpValidator[] = {{341, 255, 1}};


static PyMethodDef methods_QRegExpValidator[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QRegExpValidator_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QRegExpValidator_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QRegExpValidator_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QRegExpValidator_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QRegExpValidator_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QRegExpValidator_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_regExp), meth_QRegExpValidator_regExp, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegExpValidator_regExp)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QRegExpValidator_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QRegExpValidator_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setRegExp), meth_QRegExpValidator_setRegExp, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegExpValidator_setRegExp)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QRegExpValidator_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_validate), meth_QRegExpValidator_validate, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegExpValidator_validate)}
};

PyDoc_STRVAR(doc_QRegExpValidator, "\1QRegExpValidator(QObject parent=None)\n"
    "QRegExpValidator(QRegExp, QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QRegExpValidator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QRegExpValidator,
        {0}
    },
    {
        sipNameNr_QRegExpValidator,
        {0, 0, 1},
        12, methods_QRegExpValidator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRegExpValidator,
    -1,
    -1,
    supers_QRegExpValidator,
    0,
    init_type_QRegExpValidator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QRegExpValidator,
    0,
    0,
    0,
    release_QRegExpValidator,
    cast_QRegExpValidator,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QRegExpValidator::staticMetaObject,
    0,
    0,
    0
};

#line 77 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 19989 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 19993 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 19996 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 19999 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 20002 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 20005 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 20008 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 20011 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 20014 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 20017 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 20020 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 20023 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 20026 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 20029 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 20032 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 20035 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 20038 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 20041 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 20044 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQDoubleValidator : public QDoubleValidator
{
public:
    sipQDoubleValidator(QObject*);
    sipQDoubleValidator(double,double,int,QObject*);
    virtual ~sipQDoubleValidator();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void fixup(QString&) const;
    void setRange(double,double,int);
    QValidator::State validate(QString&,int&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQDoubleValidator(const sipQDoubleValidator &);
    sipQDoubleValidator &operator = (const sipQDoubleValidator &);

    char sipPyMethods[10];
};

sipQDoubleValidator::sipQDoubleValidator(QObject*a0): QDoubleValidator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQDoubleValidator::sipQDoubleValidator(double a0,double a1,int a2,QObject*a3): QDoubleValidator(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQDoubleValidator::~sipQDoubleValidator()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQDoubleValidator::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QDoubleValidator);
}

int sipQDoubleValidator::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QDoubleValidator::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QDoubleValidator,_c,_id,_a);

    return _id;
}

void *sipQDoubleValidator::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QDoubleValidator, _clname, &sipCpp) ? sipCpp : QDoubleValidator::qt_metacast(_clname));
}

void sipQDoubleValidator::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QDoubleValidator::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QDoubleValidator::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QDoubleValidator::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QDoubleValidator::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QDoubleValidator::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQDoubleValidator::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QDoubleValidator::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQDoubleValidator::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QDoubleValidator::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::fixup(QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
        QDoubleValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&);

    sipVH_QtGui_18(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDoubleValidator::setRange(double a0,double a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_setRange);

    if (!sipMeth)
    {
        QDoubleValidator::setRange(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, double,double,int);

    sipVH_QtGui_16(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

QValidator::State sipQDoubleValidator::validate(QString& a0,int& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_validate);

    if (!sipMeth)
        return QDoubleValidator::validate(a0,a1);

    extern QValidator::State sipVH_QtGui_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&,int&);

    return sipVH_QtGui_15(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QObject* sipQDoubleValidator::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQDoubleValidator::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQDoubleValidator::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQDoubleValidator::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQDoubleValidator::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQDoubleValidator::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQDoubleValidator::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQDoubleValidator::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQDoubleValidator::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QDoubleValidator_sender, "QDoubleValidator.sender() -> QObject");

extern "C" {static PyObject *meth_QDoubleValidator_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQDoubleValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDoubleValidator, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 20392 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_sender, doc_QDoubleValidator_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_receivers, "QDoubleValidator.receivers(signal) -> int");

extern "C" {static PyObject *meth_QDoubleValidator_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQDoubleValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QDoubleValidator, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 20451 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_receivers, doc_QDoubleValidator_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_timerEvent, "QDoubleValidator.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QDoubleValidator_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQDoubleValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDoubleValidator, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_timerEvent, doc_QDoubleValidator_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_childEvent, "QDoubleValidator.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QDoubleValidator_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQDoubleValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDoubleValidator, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_childEvent, doc_QDoubleValidator_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_customEvent, "QDoubleValidator.customEvent(QEvent)");

extern "C" {static PyObject *meth_QDoubleValidator_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQDoubleValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDoubleValidator, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_customEvent, doc_QDoubleValidator_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_connectNotify, "QDoubleValidator.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QDoubleValidator_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQDoubleValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QDoubleValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_connectNotify, doc_QDoubleValidator_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_disconnectNotify, "QDoubleValidator.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QDoubleValidator_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQDoubleValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QDoubleValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_disconnectNotify, doc_QDoubleValidator_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_senderSignalIndex, "QDoubleValidator.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QDoubleValidator_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQDoubleValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDoubleValidator, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_senderSignalIndex, doc_QDoubleValidator_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_isSignalConnected, "QDoubleValidator.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QDoubleValidator_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQDoubleValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QDoubleValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_isSignalConnected, doc_QDoubleValidator_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_validate, "QDoubleValidator.validate(str, int) -> (QValidator.State, str, int)");

extern "C" {static PyObject *meth_QDoubleValidator_validate(PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_validate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QString* a0;
        int a0State = 0;
        int a1;
        const QDoubleValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_QDoubleValidator, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            QValidator::State sipRes;
            PyObject *sipResObj;

            sipRes = (sipSelfWasArg ? sipCpp->QDoubleValidator::validate(*a0,a1) : sipCpp->validate(*a0,a1));

            sipResObj = sipBuildResult(0,"(FDi)",sipRes,sipType_QValidator_State,a0,sipType_QString,NULL,a1);
            sipReleaseType(a0,sipType_QString,a0State);

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_validate, doc_QDoubleValidator_validate);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_setRange, "QDoubleValidator.setRange(float, float, int decimals=0)");

extern "C" {static PyObject *meth_QDoubleValidator_setRange(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_setRange(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        double a0;
        double a1;
        int a2 = 0;
        QDoubleValidator *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_decimals,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bdd|i", &sipSelf, sipType_QDoubleValidator, &sipCpp, &a0, &a1, &a2))
        {
            (sipSelfWasArg ? sipCpp->QDoubleValidator::setRange(a0,a1,a2) : sipCpp->setRange(a0,a1,a2));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_setRange, doc_QDoubleValidator_setRange);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_setBottom, "QDoubleValidator.setBottom(float)");

extern "C" {static PyObject *meth_QDoubleValidator_setBottom(PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_setBottom(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        double a0;
        QDoubleValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QDoubleValidator, &sipCpp, &a0))
        {
            sipCpp->setBottom(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_setBottom, doc_QDoubleValidator_setBottom);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_setTop, "QDoubleValidator.setTop(float)");

extern "C" {static PyObject *meth_QDoubleValidator_setTop(PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_setTop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        double a0;
        QDoubleValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QDoubleValidator, &sipCpp, &a0))
        {
            sipCpp->setTop(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_setTop, doc_QDoubleValidator_setTop);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_setDecimals, "QDoubleValidator.setDecimals(int)");

extern "C" {static PyObject *meth_QDoubleValidator_setDecimals(PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_setDecimals(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QDoubleValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QDoubleValidator, &sipCpp, &a0))
        {
            sipCpp->setDecimals(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_setDecimals, doc_QDoubleValidator_setDecimals);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_bottom, "QDoubleValidator.bottom() -> float");

extern "C" {static PyObject *meth_QDoubleValidator_bottom(PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_bottom(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDoubleValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDoubleValidator, &sipCpp))
        {
            double sipRes;

            sipRes = sipCpp->bottom();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_bottom, doc_QDoubleValidator_bottom);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_top, "QDoubleValidator.top() -> float");

extern "C" {static PyObject *meth_QDoubleValidator_top(PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_top(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDoubleValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDoubleValidator, &sipCpp))
        {
            double sipRes;

            sipRes = sipCpp->top();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_top, doc_QDoubleValidator_top);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_decimals, "QDoubleValidator.decimals() -> int");

extern "C" {static PyObject *meth_QDoubleValidator_decimals(PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_decimals(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDoubleValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDoubleValidator, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->decimals();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_decimals, doc_QDoubleValidator_decimals);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_setNotation, "QDoubleValidator.setNotation(QDoubleValidator.Notation)");

extern "C" {static PyObject *meth_QDoubleValidator_setNotation(PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_setNotation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QDoubleValidator::Notation a0;
        QDoubleValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QDoubleValidator, &sipCpp, sipType_QDoubleValidator_Notation, &a0))
        {
            sipCpp->setNotation(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_setNotation, doc_QDoubleValidator_setNotation);

    return NULL;
}


PyDoc_STRVAR(doc_QDoubleValidator_notation, "QDoubleValidator.notation() -> QDoubleValidator.Notation");

extern "C" {static PyObject *meth_QDoubleValidator_notation(PyObject *, PyObject *);}
static PyObject *meth_QDoubleValidator_notation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDoubleValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDoubleValidator, &sipCpp))
        {
            QDoubleValidator::Notation sipRes;

            sipRes = sipCpp->notation();

            return sipConvertFromEnum(sipRes,sipType_QDoubleValidator_Notation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDoubleValidator, sipName_notation, doc_QDoubleValidator_notation);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QDoubleValidator(void *, const sipTypeDef *);}
static void *cast_QDoubleValidator(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QDoubleValidator)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QValidator)->ctd_cast((QValidator *)(QDoubleValidator *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDoubleValidator(void *, int);}
static void release_QDoubleValidator(void *sipCppV,int)
{
    QDoubleValidator *sipCpp = reinterpret_cast<QDoubleValidator *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QDoubleValidator(sipSimpleWrapper *);}
static void dealloc_QDoubleValidator(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQDoubleValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QDoubleValidator(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QDoubleValidator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDoubleValidator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQDoubleValidator *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQDoubleValidator(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        double a0;
        double a1;
        int a2;
        QObject* a3 = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "ddi|JH", &a0, &a1, &a2, sipType_QObject, &a3, sipOwner))
        {
            sipCpp = new sipQDoubleValidator(a0,a1,a2,a3);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDoubleValidator[] = {{341, 255, 1}};


static PyMethodDef methods_QDoubleValidator[] = {
    {SIP_MLNAME_CAST(sipName_bottom), meth_QDoubleValidator_bottom, METH_VARARGS, SIP_MLDOC_CAST(doc_QDoubleValidator_bottom)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QDoubleValidator_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QDoubleValidator_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QDoubleValidator_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_decimals), meth_QDoubleValidator_decimals, METH_VARARGS, SIP_MLDOC_CAST(doc_QDoubleValidator_decimals)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QDoubleValidator_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QDoubleValidator_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_notation), meth_QDoubleValidator_notation, METH_VARARGS, SIP_MLDOC_CAST(doc_QDoubleValidator_notation)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QDoubleValidator_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QDoubleValidator_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QDoubleValidator_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setBottom), meth_QDoubleValidator_setBottom, METH_VARARGS, SIP_MLDOC_CAST(doc_QDoubleValidator_setBottom)},
    {SIP_MLNAME_CAST(sipName_setDecimals), meth_QDoubleValidator_setDecimals, METH_VARARGS, SIP_MLDOC_CAST(doc_QDoubleValidator_setDecimals)},
    {SIP_MLNAME_CAST(sipName_setNotation), meth_QDoubleValidator_setNotation, METH_VARARGS, SIP_MLDOC_CAST(doc_QDoubleValidator_setNotation)},
    {SIP_MLNAME_CAST(sipName_setRange), (PyCFunction)meth_QDoubleValidator_setRange, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDoubleValidator_setRange)},
    {SIP_MLNAME_CAST(sipName_setTop), meth_QDoubleValidator_setTop, METH_VARARGS, SIP_MLDOC_CAST(doc_QDoubleValidator_setTop)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QDoubleValidator_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_top), meth_QDoubleValidator_top, METH_VARARGS, SIP_MLDOC_CAST(doc_QDoubleValidator_top)},
    {SIP_MLNAME_CAST(sipName_validate), meth_QDoubleValidator_validate, METH_VARARGS, SIP_MLDOC_CAST(doc_QDoubleValidator_validate)}
};

static sipEnumMemberDef enummembers_QDoubleValidator[] = {
    {sipName_ScientificNotation, static_cast<int>(QDoubleValidator::ScientificNotation), 21},
    {sipName_StandardNotation, static_cast<int>(QDoubleValidator::StandardNotation), 21},
};

PyDoc_STRVAR(doc_QDoubleValidator, "\1QDoubleValidator(QObject parent=None)\n"
    "QDoubleValidator(float, float, int, QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QDoubleValidator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QDoubleValidator,
        {0}
    },
    {
        sipNameNr_QDoubleValidator,
        {0, 0, 1},
        19, methods_QDoubleValidator,
        2, enummembers_QDoubleValidator,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDoubleValidator,
    -1,
    -1,
    supers_QDoubleValidator,
    0,
    init_type_QDoubleValidator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDoubleValidator,
    0,
    0,
    0,
    release_QDoubleValidator,
    cast_QDoubleValidator,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QDoubleValidator::staticMetaObject,
    0,
    0,
    0
};

#line 55 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 21137 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 21141 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 21144 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 21147 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 21150 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 21153 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 21156 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 21159 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 21162 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 21165 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 21168 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 21171 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 21174 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 21177 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 21180 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 21183 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 21186 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 21189 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 21192 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQIntValidator : public QIntValidator
{
public:
    sipQIntValidator(QObject*);
    sipQIntValidator(int,int,QObject*);
    virtual ~sipQIntValidator();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void setRange(int,int);
    void fixup(QString&) const;
    QValidator::State validate(QString&,int&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQIntValidator(const sipQIntValidator &);
    sipQIntValidator &operator = (const sipQIntValidator &);

    char sipPyMethods[10];
};

sipQIntValidator::sipQIntValidator(QObject*a0): QIntValidator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQIntValidator::sipQIntValidator(int a0,int a1,QObject*a2): QIntValidator(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQIntValidator::~sipQIntValidator()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQIntValidator::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QIntValidator);
}

int sipQIntValidator::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QIntValidator::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QIntValidator,_c,_id,_a);

    return _id;
}

void *sipQIntValidator::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QIntValidator, _clname, &sipCpp) ? sipCpp : QIntValidator::qt_metacast(_clname));
}

void sipQIntValidator::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QIntValidator::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQIntValidator::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QIntValidator::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQIntValidator::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QIntValidator::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQIntValidator::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QIntValidator::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQIntValidator::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QIntValidator::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQIntValidator::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QIntValidator::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQIntValidator::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QIntValidator::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQIntValidator::setRange(int a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_setRange);

    if (!sipMeth)
    {
        QIntValidator::setRange(a0,a1);
        return;
    }

    extern void sipVH_QtGui_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);

    sipVH_QtGui_17(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQIntValidator::fixup(QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
        QIntValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&);

    sipVH_QtGui_18(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QValidator::State sipQIntValidator::validate(QString& a0,int& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_validate);

    if (!sipMeth)
        return QIntValidator::validate(a0,a1);

    extern QValidator::State sipVH_QtGui_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&,int&);

    return sipVH_QtGui_15(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QObject* sipQIntValidator::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQIntValidator::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQIntValidator::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQIntValidator::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQIntValidator::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQIntValidator::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQIntValidator::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQIntValidator::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQIntValidator::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QIntValidator_sender, "QIntValidator.sender() -> QObject");

extern "C" {static PyObject *meth_QIntValidator_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQIntValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QIntValidator, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 21540 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_sender, doc_QIntValidator_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_receivers, "QIntValidator.receivers(signal) -> int");

extern "C" {static PyObject *meth_QIntValidator_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQIntValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QIntValidator, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 21599 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_receivers, doc_QIntValidator_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_timerEvent, "QIntValidator.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QIntValidator_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQIntValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QIntValidator, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_timerEvent, doc_QIntValidator_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_childEvent, "QIntValidator.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QIntValidator_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQIntValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QIntValidator, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_childEvent, doc_QIntValidator_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_customEvent, "QIntValidator.customEvent(QEvent)");

extern "C" {static PyObject *meth_QIntValidator_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQIntValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QIntValidator, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_customEvent, doc_QIntValidator_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_connectNotify, "QIntValidator.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QIntValidator_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQIntValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QIntValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_connectNotify, doc_QIntValidator_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_disconnectNotify, "QIntValidator.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QIntValidator_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQIntValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QIntValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_disconnectNotify, doc_QIntValidator_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_senderSignalIndex, "QIntValidator.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QIntValidator_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQIntValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QIntValidator, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_senderSignalIndex, doc_QIntValidator_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_isSignalConnected, "QIntValidator.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QIntValidator_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQIntValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QIntValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_isSignalConnected, doc_QIntValidator_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_validate, "QIntValidator.validate(str, int) -> (QValidator.State, str, int)");

extern "C" {static PyObject *meth_QIntValidator_validate(PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_validate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QString* a0;
        int a0State = 0;
        int a1;
        const QIntValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_QIntValidator, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            QValidator::State sipRes;
            PyObject *sipResObj;

            sipRes = (sipSelfWasArg ? sipCpp->QIntValidator::validate(*a0,a1) : sipCpp->validate(*a0,a1));

            sipResObj = sipBuildResult(0,"(FDi)",sipRes,sipType_QValidator_State,a0,sipType_QString,NULL,a1);
            sipReleaseType(a0,sipType_QString,a0State);

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_validate, doc_QIntValidator_validate);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_fixup, "QIntValidator.fixup(str) -> str");

extern "C" {static PyObject *meth_QIntValidator_fixup(PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_fixup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QString* a0;
        int a0State = 0;
        const QIntValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QIntValidator, &sipCpp, sipType_QString,&a0, &a0State))
        {
            PyObject *sipResObj;

            (sipSelfWasArg ? sipCpp->QIntValidator::fixup(*a0) : sipCpp->fixup(*a0));

            sipResObj = sipConvertFromType(a0,sipType_QString,NULL);
            sipReleaseType(a0,sipType_QString,a0State);

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_fixup, doc_QIntValidator_fixup);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_setBottom, "QIntValidator.setBottom(int)");

extern "C" {static PyObject *meth_QIntValidator_setBottom(PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_setBottom(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QIntValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QIntValidator, &sipCpp, &a0))
        {
            sipCpp->setBottom(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_setBottom, doc_QIntValidator_setBottom);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_setTop, "QIntValidator.setTop(int)");

extern "C" {static PyObject *meth_QIntValidator_setTop(PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_setTop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QIntValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QIntValidator, &sipCpp, &a0))
        {
            sipCpp->setTop(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_setTop, doc_QIntValidator_setTop);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_setRange, "QIntValidator.setRange(int, int)");

extern "C" {static PyObject *meth_QIntValidator_setRange(PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_setRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        int a1;
        QIntValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QIntValidator, &sipCpp, &a0, &a1))
        {
            (sipSelfWasArg ? sipCpp->QIntValidator::setRange(a0,a1) : sipCpp->setRange(a0,a1));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_setRange, doc_QIntValidator_setRange);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_bottom, "QIntValidator.bottom() -> int");

extern "C" {static PyObject *meth_QIntValidator_bottom(PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_bottom(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QIntValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIntValidator, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->bottom();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_bottom, doc_QIntValidator_bottom);

    return NULL;
}


PyDoc_STRVAR(doc_QIntValidator_top, "QIntValidator.top() -> int");

extern "C" {static PyObject *meth_QIntValidator_top(PyObject *, PyObject *);}
static PyObject *meth_QIntValidator_top(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QIntValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIntValidator, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->top();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIntValidator, sipName_top, doc_QIntValidator_top);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QIntValidator(void *, const sipTypeDef *);}
static void *cast_QIntValidator(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QIntValidator)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QValidator)->ctd_cast((QValidator *)(QIntValidator *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QIntValidator(void *, int);}
static void release_QIntValidator(void *sipCppV,int)
{
    QIntValidator *sipCpp = reinterpret_cast<QIntValidator *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QIntValidator(sipSimpleWrapper *);}
static void dealloc_QIntValidator(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQIntValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QIntValidator(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QIntValidator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QIntValidator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQIntValidator *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQIntValidator(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        QObject* a2 = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "ii|JH", &a0, &a1, sipType_QObject, &a2, sipOwner))
        {
            sipCpp = new sipQIntValidator(a0,a1,a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QIntValidator[] = {{341, 255, 1}};


static PyMethodDef methods_QIntValidator[] = {
    {SIP_MLNAME_CAST(sipName_bottom), meth_QIntValidator_bottom, METH_VARARGS, SIP_MLDOC_CAST(doc_QIntValidator_bottom)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QIntValidator_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QIntValidator_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QIntValidator_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QIntValidator_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_fixup), meth_QIntValidator_fixup, METH_VARARGS, SIP_MLDOC_CAST(doc_QIntValidator_fixup)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QIntValidator_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QIntValidator_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QIntValidator_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QIntValidator_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setBottom), meth_QIntValidator_setBottom, METH_VARARGS, SIP_MLDOC_CAST(doc_QIntValidator_setBottom)},
    {SIP_MLNAME_CAST(sipName_setRange), meth_QIntValidator_setRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QIntValidator_setRange)},
    {SIP_MLNAME_CAST(sipName_setTop), meth_QIntValidator_setTop, METH_VARARGS, SIP_MLDOC_CAST(doc_QIntValidator_setTop)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QIntValidator_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_top), meth_QIntValidator_top, METH_VARARGS, SIP_MLDOC_CAST(doc_QIntValidator_top)},
    {SIP_MLNAME_CAST(sipName_validate), meth_QIntValidator_validate, METH_VARARGS, SIP_MLDOC_CAST(doc_QIntValidator_validate)}
};

PyDoc_STRVAR(doc_QIntValidator, "\1QIntValidator(QObject parent=None)\n"
    "QIntValidator(int, int, QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QIntValidator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QIntValidator,
        {0}
    },
    {
        sipNameNr_QIntValidator,
        {0, 0, 1},
        16, methods_QIntValidator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QIntValidator,
    -1,
    -1,
    supers_QIntValidator,
    0,
    init_type_QIntValidator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QIntValidator,
    0,
    0,
    0,
    release_QIntValidator,
    cast_QIntValidator,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QIntValidator::staticMetaObject,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvalidator.sip"
#include <qvalidator.h>
#line 22193 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 22197 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 22200 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 22203 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 22206 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 22209 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 22212 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 22215 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 22218 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 22221 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 22224 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 22227 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 22230 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 22233 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 22236 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 22239 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 22242 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 22245 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQValidator : public QValidator
{
public:
    sipQValidator(QObject*);
    virtual ~sipQValidator();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void fixup(QString&) const;
    QValidator::State validate(QString&,int&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQValidator(const sipQValidator &);
    sipQValidator &operator = (const sipQValidator &);

    char sipPyMethods[9];
};

sipQValidator::sipQValidator(QObject*a0): QValidator(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQValidator::~sipQValidator()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQValidator::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QValidator);
}

int sipQValidator::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QValidator::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QValidator,_c,_id,_a);

    return _id;
}

void *sipQValidator::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QValidator, _clname, &sipCpp) ? sipCpp : QValidator::qt_metacast(_clname));
}

void sipQValidator::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QValidator::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQValidator::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QValidator::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQValidator::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QValidator::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQValidator::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QValidator::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQValidator::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QValidator::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQValidator::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QValidator::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQValidator::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QValidator::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQValidator::fixup(QString& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_fixup);

    if (!sipMeth)
    {
        QValidator::fixup(a0);
        return;
    }

    extern void sipVH_QtGui_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&);

    sipVH_QtGui_18(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QValidator::State sipQValidator::validate(QString& a0,int& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,sipName_QValidator,sipName_validate);

    if (!sipMeth)
        return (QValidator::State)0;

    extern QValidator::State sipVH_QtGui_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QString&,int&);

    return sipVH_QtGui_15(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QObject* sipQValidator::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQValidator::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQValidator::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQValidator::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQValidator::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQValidator::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQValidator::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQValidator::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQValidator::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QValidator_sender, "QValidator.sender() -> QObject");

extern "C" {static PyObject *meth_QValidator_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QValidator_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QValidator, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 22568 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_sender, doc_QValidator_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_receivers, "QValidator.receivers(signal) -> int");

extern "C" {static PyObject *meth_QValidator_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QValidator_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QValidator, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 22627 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_receivers, doc_QValidator_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_timerEvent, "QValidator.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QValidator_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QValidator_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QValidator, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_timerEvent, doc_QValidator_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_childEvent, "QValidator.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QValidator_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QValidator_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QValidator, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_childEvent, doc_QValidator_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_customEvent, "QValidator.customEvent(QEvent)");

extern "C" {static PyObject *meth_QValidator_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QValidator_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QValidator, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_customEvent, doc_QValidator_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_connectNotify, "QValidator.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QValidator_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QValidator_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_connectNotify, doc_QValidator_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_disconnectNotify, "QValidator.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QValidator_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QValidator_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_disconnectNotify, doc_QValidator_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_senderSignalIndex, "QValidator.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QValidator_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QValidator_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QValidator, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_senderSignalIndex, doc_QValidator_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_isSignalConnected, "QValidator.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QValidator_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QValidator_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQValidator *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QValidator, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_isSignalConnected, doc_QValidator_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_validate, "QValidator.validate(str, int) -> (QValidator.State, str, int)");

extern "C" {static PyObject *meth_QValidator_validate(PyObject *, PyObject *);}
static PyObject *meth_QValidator_validate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QString* a0;
        int a0State = 0;
        int a1;
        const QValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_QValidator, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            QValidator::State sipRes;
            PyObject *sipResObj;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QValidator, sipName_validate);
                return NULL;
            }

            sipRes = sipCpp->validate(*a0,a1);

            sipResObj = sipBuildResult(0,"(FDi)",sipRes,sipType_QValidator_State,a0,sipType_QString,NULL,a1);
            sipReleaseType(a0,sipType_QString,a0State);

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_validate, doc_QValidator_validate);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_fixup, "QValidator.fixup(str) -> str");

extern "C" {static PyObject *meth_QValidator_fixup(PyObject *, PyObject *);}
static PyObject *meth_QValidator_fixup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QString* a0;
        int a0State = 0;
        const QValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QValidator, &sipCpp, sipType_QString,&a0, &a0State))
        {
            PyObject *sipResObj;

            (sipSelfWasArg ? sipCpp->QValidator::fixup(*a0) : sipCpp->fixup(*a0));

            sipResObj = sipConvertFromType(a0,sipType_QString,NULL);
            sipReleaseType(a0,sipType_QString,a0State);

            return sipResObj;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_fixup, doc_QValidator_fixup);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_setLocale, "QValidator.setLocale(QLocale)");

extern "C" {static PyObject *meth_QValidator_setLocale(PyObject *, PyObject *);}
static PyObject *meth_QValidator_setLocale(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLocale* a0;
        QValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QValidator, &sipCpp, sipType_QLocale, &a0))
        {
            sipCpp->setLocale(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_setLocale, doc_QValidator_setLocale);

    return NULL;
}


PyDoc_STRVAR(doc_QValidator_locale, "QValidator.locale() -> QLocale");

extern "C" {static PyObject *meth_QValidator_locale(PyObject *, PyObject *);}
static PyObject *meth_QValidator_locale(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QValidator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QValidator, &sipCpp))
        {
            QLocale*sipRes;

            sipRes = new QLocale(sipCpp->locale());

            return sipConvertFromNewType(sipRes,sipType_QLocale,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QValidator, sipName_locale, doc_QValidator_locale);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QValidator(void *, const sipTypeDef *);}
static void *cast_QValidator(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QValidator)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QValidator *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QValidator(void *, int);}
static void release_QValidator(void *sipCppV,int)
{
    QValidator *sipCpp = reinterpret_cast<QValidator *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QValidator(sipSimpleWrapper *);}
static void dealloc_QValidator(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQValidator *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QValidator(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QValidator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QValidator(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQValidator *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQValidator(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QValidator[] = {{162, 0, 1}};


static PyMethodDef methods_QValidator[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QValidator_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QValidator_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QValidator_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QValidator_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_fixup), meth_QValidator_fixup, METH_VARARGS, SIP_MLDOC_CAST(doc_QValidator_fixup)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QValidator_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_locale), meth_QValidator_locale, METH_VARARGS, SIP_MLDOC_CAST(doc_QValidator_locale)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QValidator_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QValidator_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QValidator_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setLocale), meth_QValidator_setLocale, METH_VARARGS, SIP_MLDOC_CAST(doc_QValidator_setLocale)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QValidator_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_validate), meth_QValidator_validate, METH_VARARGS, SIP_MLDOC_CAST(doc_QValidator_validate)}
};

static sipEnumMemberDef enummembers_QValidator[] = {
    {sipName_Acceptable, static_cast<int>(QValidator::Acceptable), 342},
    {sipName_Intermediate, static_cast<int>(QValidator::Intermediate), 342},
    {sipName_Invalid, static_cast<int>(QValidator::Invalid), 342},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QValidator[] = {
    {"changed()", "\1QValidator.changed", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QValidator, "\1QValidator(QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QValidator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QValidator,
        {0}
    },
    {
        sipNameNr_QValidator,
        {0, 0, 1},
        13, methods_QValidator,
        3, enummembers_QValidator,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QValidator,
    -1,
    -1,
    supers_QValidator,
    0,
    init_type_QValidator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QValidator,
    0,
    0,
    0,
    release_QValidator,
    cast_QValidator,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QValidator::staticMetaObject,
    0,
    signals_QValidator,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 23132 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 23136 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 23139 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 23142 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 23145 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 23148 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qline.sip"
#include <qline.h>
#line 23151 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 96 "sip/QtCore/qline.sip"
#include <qline.h>
#line 23154 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 330 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 23157 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 23160 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 23163 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 23166 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTransform_type, "QTransform.type() -> QTransform.TransformationType");

extern "C" {static PyObject *meth_QTransform_type(PyObject *, PyObject *);}
static PyObject *meth_QTransform_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            QTransform::TransformationType sipRes;

            sipRes = sipCpp->type();

            return sipConvertFromEnum(sipRes,sipType_QTransform_TransformationType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_type, doc_QTransform_type);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_setMatrix, "QTransform.setMatrix(float, float, float, float, float, float, float, float, float)");

extern "C" {static PyObject *meth_QTransform_setMatrix(PyObject *, PyObject *);}
static PyObject *meth_QTransform_setMatrix(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;
        qreal a5;
        qreal a6;
        qreal a7;
        qreal a8;
        QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bddddddddd", &sipSelf, sipType_QTransform, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8))
        {
            sipCpp->setMatrix(a0,a1,a2,a3,a4,a5,a6,a7,a8);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_setMatrix, doc_QTransform_setMatrix);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_inverted, "QTransform.inverted() -> (QTransform, bool)");

extern "C" {static PyObject *meth_QTransform_inverted(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTransform_inverted(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        const QTransform *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->inverted(&a0));

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_inverted, doc_QTransform_inverted);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_adjoint, "QTransform.adjoint() -> QTransform");

extern "C" {static PyObject *meth_QTransform_adjoint(PyObject *, PyObject *);}
static PyObject *meth_QTransform_adjoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->adjoint());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_adjoint, doc_QTransform_adjoint);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_transposed, "QTransform.transposed() -> QTransform");

extern "C" {static PyObject *meth_QTransform_transposed(PyObject *, PyObject *);}
static PyObject *meth_QTransform_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_transposed, doc_QTransform_transposed);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_translate, "QTransform.translate(float, float) -> QTransform");

extern "C" {static PyObject *meth_QTransform_translate(PyObject *, PyObject *);}
static PyObject *meth_QTransform_translate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QTransform, &sipCpp, &a0, &a1))
        {
            QTransform*sipRes;

            sipRes = &sipCpp->translate(a0,a1);

            return sipConvertFromType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_translate, doc_QTransform_translate);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_scale, "QTransform.scale(float, float) -> QTransform");

extern "C" {static PyObject *meth_QTransform_scale(PyObject *, PyObject *);}
static PyObject *meth_QTransform_scale(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QTransform, &sipCpp, &a0, &a1))
        {
            QTransform*sipRes;

            sipRes = &sipCpp->scale(a0,a1);

            return sipConvertFromType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_scale, doc_QTransform_scale);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_shear, "QTransform.shear(float, float) -> QTransform");

extern "C" {static PyObject *meth_QTransform_shear(PyObject *, PyObject *);}
static PyObject *meth_QTransform_shear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QTransform, &sipCpp, &a0, &a1))
        {
            QTransform*sipRes;

            sipRes = &sipCpp->shear(a0,a1);

            return sipConvertFromType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_shear, doc_QTransform_shear);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_rotate, "QTransform.rotate(float, Qt.Axis axis=Qt.ZAxis) -> QTransform");

extern "C" {static PyObject *meth_QTransform_rotate(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTransform_rotate(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        Qt::Axis a1 = Qt::ZAxis;
        QTransform *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_axis,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bd|E", &sipSelf, sipType_QTransform, &sipCpp, &a0, sipType_Qt_Axis, &a1))
        {
            QTransform*sipRes;

            sipRes = &sipCpp->rotate(a0,a1);

            return sipConvertFromType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_rotate, doc_QTransform_rotate);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_rotateRadians, "QTransform.rotateRadians(float, Qt.Axis axis=Qt.ZAxis) -> QTransform");

extern "C" {static PyObject *meth_QTransform_rotateRadians(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTransform_rotateRadians(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        Qt::Axis a1 = Qt::ZAxis;
        QTransform *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_axis,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bd|E", &sipSelf, sipType_QTransform, &sipCpp, &a0, sipType_Qt_Axis, &a1))
        {
            QTransform*sipRes;

            sipRes = &sipCpp->rotateRadians(a0,a1);

            return sipConvertFromType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_rotateRadians, doc_QTransform_rotateRadians);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_squareToQuad, "QTransform.squareToQuad(QPolygonF, QTransform) -> bool");

extern "C" {static PyObject *meth_QTransform_squareToQuad(PyObject *, PyObject *);}
static PyObject *meth_QTransform_squareToQuad(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;
        QTransform* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QPolygonF, &a0, sipType_QTransform, &a1))
        {
            bool sipRes;

            sipRes = QTransform::squareToQuad(*a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_squareToQuad, doc_QTransform_squareToQuad);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_quadToSquare, "QTransform.quadToSquare(QPolygonF, QTransform) -> bool");

extern "C" {static PyObject *meth_QTransform_quadToSquare(PyObject *, PyObject *);}
static PyObject *meth_QTransform_quadToSquare(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;
        QTransform* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QPolygonF, &a0, sipType_QTransform, &a1))
        {
            bool sipRes;

            sipRes = QTransform::quadToSquare(*a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_quadToSquare, doc_QTransform_quadToSquare);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_quadToQuad, "QTransform.quadToQuad(QPolygonF, QPolygonF, QTransform) -> bool");

extern "C" {static PyObject *meth_QTransform_quadToQuad(PyObject *, PyObject *);}
static PyObject *meth_QTransform_quadToQuad(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;
        const QPolygonF* a1;
        QTransform* a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9J9", sipType_QPolygonF, &a0, sipType_QPolygonF, &a1, sipType_QTransform, &a2))
        {
            bool sipRes;

            sipRes = QTransform::quadToQuad(*a0,*a1,*a2);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_quadToQuad, doc_QTransform_quadToQuad);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_reset, "QTransform.reset()");

extern "C" {static PyObject *meth_QTransform_reset(PyObject *, PyObject *);}
static PyObject *meth_QTransform_reset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            sipCpp->reset();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_reset, doc_QTransform_reset);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_map, "QTransform.map(int, int) -> (int, int)\n"
    "QTransform.map(float, float) -> (float, float)\n"
    "QTransform.map(QPoint) -> QPoint\n"
    "QTransform.map(QPointF) -> QPointF\n"
    "QTransform.map(QLine) -> QLine\n"
    "QTransform.map(QLineF) -> QLineF\n"
    "QTransform.map(QPolygonF) -> QPolygonF\n"
    "QTransform.map(QPolygon) -> QPolygon\n"
    "QTransform.map(QRegion) -> QRegion\n"
    "QTransform.map(QPainterPath) -> QPainterPath");

extern "C" {static PyObject *meth_QTransform_map(PyObject *, PyObject *);}
static PyObject *meth_QTransform_map(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BXiXi", &sipSelf, sipType_QTransform, &sipCpp, &a0, &a1))
        {
            sipCpp->map(a0,a1,&a2,&a3);

            return sipBuildResult(0,"(ii)",a2,a3);
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QTransform, &sipCpp, &a0, &a1))
        {
            sipCpp->map(a0,a1,&a2,&a3);

            return sipBuildResult(0,"(dd)",a2,a3);
        }
    }

    {
        const QPoint* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QPoint, &a0))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTransform, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->map(*a0));
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    {
        const QLine* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QLine, &a0))
        {
            QLine*sipRes;

            sipRes = new QLine(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QLine,NULL);
        }
    }

    {
        const QLineF* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QLineF, &a0))
        {
            QLineF*sipRes;

            sipRes = new QLineF(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QLineF,NULL);
        }
    }

    {
        const QPolygonF* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QPolygonF, &a0))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    {
        const QPolygon* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QPolygon, &a0))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    {
        const QRegion* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QRegion, &a0))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    {
        const QPainterPath* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QPainterPath, &a0))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_map, doc_QTransform_map);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_mapToPolygon, "QTransform.mapToPolygon(QRect) -> QPolygon");

extern "C" {static PyObject *meth_QTransform_mapToPolygon(PyObject *, PyObject *);}
static PyObject *meth_QTransform_mapToPolygon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QRect, &a0))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->mapToPolygon(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_mapToPolygon, doc_QTransform_mapToPolygon);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_mapRect, "QTransform.mapRect(QRect) -> QRect\n"
    "QTransform.mapRect(QRectF) -> QRectF");

extern "C" {static PyObject *meth_QTransform_mapRect(PyObject *, PyObject *);}
static PyObject *meth_QTransform_mapRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QRect, &a0))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->mapRect(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    {
        const QRectF* a0;
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTransform, &sipCpp, sipType_QRectF, &a0))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->mapRect(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_mapRect, doc_QTransform_mapRect);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_isAffine, "QTransform.isAffine() -> bool");

extern "C" {static PyObject *meth_QTransform_isAffine(PyObject *, PyObject *);}
static PyObject *meth_QTransform_isAffine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAffine();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_isAffine, doc_QTransform_isAffine);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_isIdentity, "QTransform.isIdentity() -> bool");

extern "C" {static PyObject *meth_QTransform_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QTransform_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_isIdentity, doc_QTransform_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_isInvertible, "QTransform.isInvertible() -> bool");

extern "C" {static PyObject *meth_QTransform_isInvertible(PyObject *, PyObject *);}
static PyObject *meth_QTransform_isInvertible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isInvertible();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_isInvertible, doc_QTransform_isInvertible);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_isScaling, "QTransform.isScaling() -> bool");

extern "C" {static PyObject *meth_QTransform_isScaling(PyObject *, PyObject *);}
static PyObject *meth_QTransform_isScaling(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isScaling();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_isScaling, doc_QTransform_isScaling);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_isRotating, "QTransform.isRotating() -> bool");

extern "C" {static PyObject *meth_QTransform_isRotating(PyObject *, PyObject *);}
static PyObject *meth_QTransform_isRotating(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isRotating();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_isRotating, doc_QTransform_isRotating);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_isTranslating, "QTransform.isTranslating() -> bool");

extern "C" {static PyObject *meth_QTransform_isTranslating(PyObject *, PyObject *);}
static PyObject *meth_QTransform_isTranslating(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isTranslating();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_isTranslating, doc_QTransform_isTranslating);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_determinant, "QTransform.determinant() -> float");

extern "C" {static PyObject *meth_QTransform_determinant(PyObject *, PyObject *);}
static PyObject *meth_QTransform_determinant(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->determinant();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_determinant, doc_QTransform_determinant);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_m11, "QTransform.m11() -> float");

extern "C" {static PyObject *meth_QTransform_m11(PyObject *, PyObject *);}
static PyObject *meth_QTransform_m11(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->m11();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_m11, doc_QTransform_m11);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_m12, "QTransform.m12() -> float");

extern "C" {static PyObject *meth_QTransform_m12(PyObject *, PyObject *);}
static PyObject *meth_QTransform_m12(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->m12();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_m12, doc_QTransform_m12);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_m13, "QTransform.m13() -> float");

extern "C" {static PyObject *meth_QTransform_m13(PyObject *, PyObject *);}
static PyObject *meth_QTransform_m13(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->m13();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_m13, doc_QTransform_m13);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_m21, "QTransform.m21() -> float");

extern "C" {static PyObject *meth_QTransform_m21(PyObject *, PyObject *);}
static PyObject *meth_QTransform_m21(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->m21();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_m21, doc_QTransform_m21);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_m22, "QTransform.m22() -> float");

extern "C" {static PyObject *meth_QTransform_m22(PyObject *, PyObject *);}
static PyObject *meth_QTransform_m22(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->m22();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_m22, doc_QTransform_m22);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_m23, "QTransform.m23() -> float");

extern "C" {static PyObject *meth_QTransform_m23(PyObject *, PyObject *);}
static PyObject *meth_QTransform_m23(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->m23();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_m23, doc_QTransform_m23);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_m31, "QTransform.m31() -> float");

extern "C" {static PyObject *meth_QTransform_m31(PyObject *, PyObject *);}
static PyObject *meth_QTransform_m31(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->m31();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_m31, doc_QTransform_m31);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_m32, "QTransform.m32() -> float");

extern "C" {static PyObject *meth_QTransform_m32(PyObject *, PyObject *);}
static PyObject *meth_QTransform_m32(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->m32();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_m32, doc_QTransform_m32);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_m33, "QTransform.m33() -> float");

extern "C" {static PyObject *meth_QTransform_m33(PyObject *, PyObject *);}
static PyObject *meth_QTransform_m33(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->m33();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_m33, doc_QTransform_m33);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_dx, "QTransform.dx() -> float");

extern "C" {static PyObject *meth_QTransform_dx(PyObject *, PyObject *);}
static PyObject *meth_QTransform_dx(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->dx();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_dx, doc_QTransform_dx);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_dy, "QTransform.dy() -> float");

extern "C" {static PyObject *meth_QTransform_dy(PyObject *, PyObject *);}
static PyObject *meth_QTransform_dy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTransform, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->dy();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_dy, doc_QTransform_dy);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_fromTranslate, "QTransform.fromTranslate(float, float) -> QTransform");

extern "C" {static PyObject *meth_QTransform_fromTranslate(PyObject *, PyObject *);}
static PyObject *meth_QTransform_fromTranslate(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "dd", &a0, &a1))
        {
            QTransform*sipRes;

            sipRes = new QTransform(QTransform::fromTranslate(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_fromTranslate, doc_QTransform_fromTranslate);

    return NULL;
}


PyDoc_STRVAR(doc_QTransform_fromScale, "QTransform.fromScale(float, float) -> QTransform");

extern "C" {static PyObject *meth_QTransform_fromScale(PyObject *, PyObject *);}
static PyObject *meth_QTransform_fromScale(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "dd", &a0, &a1))
        {
            QTransform*sipRes;

            sipRes = new QTransform(QTransform::fromScale(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTransform, sipName_fromScale, doc_QTransform_fromScale);

    return NULL;
}


extern "C" {static PyObject *slot_QTransform___div__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___div__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        qreal a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9d", sipType_QTransform, &a0, &a1))
        {
            QTransform*sipRes;

            sipRes = new QTransform((*a0 / a1));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,div_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTransform___add__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___add__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        qreal a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9d", sipType_QTransform, &a0, &a1))
        {
            QTransform*sipRes;

            sipRes = new QTransform((*a0 + a1));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,add_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTransform___sub__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___sub__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        qreal a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9d", sipType_QTransform, &a0, &a1))
        {
            QTransform*sipRes;

            sipRes = new QTransform((*a0 - a1));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,sub_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTransform___isub__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTransform)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTransform *sipCpp = reinterpret_cast<QTransform *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTransform));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        qreal a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1d", &a0))
        {
            sipCpp->QTransform::operator-=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTransform___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTransform)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTransform *sipCpp = reinterpret_cast<QTransform *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTransform));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        qreal a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1d", &a0))
        {
            sipCpp->QTransform::operator+=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTransform___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTransform)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTransform *sipCpp = reinterpret_cast<QTransform *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTransform));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        qreal a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1d", &a0))
        {
            sipCpp->QTransform::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTransform___mul__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTransform* a0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QTransform, &a0, sipType_QTransform, &a1))
        {
            QTransform*sipRes;

            sipRes = new QTransform((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    {
        const QTransform* a0;
        qreal a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9d", sipType_QTransform, &a0, &a1))
        {
            QTransform*sipRes;

            sipRes = new QTransform((*a0 * a1));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTransform___imul__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTransform)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTransform *sipCpp = reinterpret_cast<QTransform *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTransform));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTransform, &a0))
        {
            sipCpp->QTransform::operator*=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        qreal a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1d", &a0))
        {
            sipCpp->QTransform::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTransform___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTransform *sipCpp = reinterpret_cast<QTransform *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTransform));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTransform, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTransform::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTransform,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTransform___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTransform___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTransform *sipCpp = reinterpret_cast<QTransform *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTransform));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTransform, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTransform::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTransform,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTransform(void *, const sipTypeDef *);}
static void *cast_QTransform(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTransform)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTransform(void *, int);}
static void release_QTransform(void *sipCppV,int)
{
    delete reinterpret_cast<QTransform *>(sipCppV);
}


extern "C" {static PyObject *pickle_QTransform(void *);}
static PyObject *pickle_QTransform(void *sipCppV)
{
    QTransform *sipCpp = reinterpret_cast<QTransform *>(sipCppV);
    PyObject *sipRes;

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
    sipRes = Py_BuildValue((char *)"ddddddddd", sipCpp->m11(), sipCpp->m12(), sipCpp->m13(), sipCpp->m21(), sipCpp->m22(), sipCpp->m23(), sipCpp->m31(), sipCpp->m32(), sipCpp->m33());
#line 24749 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QTransform(void *, SIP_SSIZE_T, const void *);}
static void assign_QTransform(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTransform *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTransform *>(sipSrc);
}


extern "C" {static void *array_QTransform(SIP_SSIZE_T);}
static void *array_QTransform(SIP_SSIZE_T sipNrElem)
{
    return new QTransform[sipNrElem];
}


extern "C" {static void *copy_QTransform(const void *, SIP_SSIZE_T);}
static void *copy_QTransform(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTransform(reinterpret_cast<const QTransform *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTransform(sipSimpleWrapper *);}
static void dealloc_QTransform(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTransform(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTransform(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTransform(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTransform *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTransform();

            return sipCpp;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;
        qreal a5;
        qreal a6;
        qreal a7;
        qreal a8 = 1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_m33,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "dddddddd|d", &a0, &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8))
        {
            sipCpp = new QTransform(a0,a1,a2,a3,a4,a5,a6,a7,a8);

            return sipCpp;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;
        qreal a5;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "dddddd", &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp = new QTransform(a0,a1,a2,a3,a4,a5);

            return sipCpp;
        }
    }

    {
        const QTransform* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTransform, &a0))
        {
            sipCpp = new QTransform(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTransform[] = {
    {(void *)slot_QTransform___div__, div_slot},
    {(void *)slot_QTransform___add__, add_slot},
    {(void *)slot_QTransform___sub__, sub_slot},
    {(void *)slot_QTransform___isub__, isub_slot},
    {(void *)slot_QTransform___iadd__, iadd_slot},
    {(void *)slot_QTransform___idiv__, idiv_slot},
    {(void *)slot_QTransform___mul__, mul_slot},
    {(void *)slot_QTransform___imul__, imul_slot},
    {(void *)slot_QTransform___ne__, ne_slot},
    {(void *)slot_QTransform___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTransform[] = {
    {SIP_MLNAME_CAST(sipName_adjoint), meth_QTransform_adjoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_adjoint)},
    {SIP_MLNAME_CAST(sipName_determinant), meth_QTransform_determinant, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_determinant)},
    {SIP_MLNAME_CAST(sipName_dx), meth_QTransform_dx, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_dx)},
    {SIP_MLNAME_CAST(sipName_dy), meth_QTransform_dy, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_dy)},
    {SIP_MLNAME_CAST(sipName_fromScale), meth_QTransform_fromScale, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_fromScale)},
    {SIP_MLNAME_CAST(sipName_fromTranslate), meth_QTransform_fromTranslate, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_fromTranslate)},
    {SIP_MLNAME_CAST(sipName_inverted), (PyCFunction)meth_QTransform_inverted, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTransform_inverted)},
    {SIP_MLNAME_CAST(sipName_isAffine), meth_QTransform_isAffine, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_isAffine)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QTransform_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_isIdentity)},
    {SIP_MLNAME_CAST(sipName_isInvertible), meth_QTransform_isInvertible, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_isInvertible)},
    {SIP_MLNAME_CAST(sipName_isRotating), meth_QTransform_isRotating, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_isRotating)},
    {SIP_MLNAME_CAST(sipName_isScaling), meth_QTransform_isScaling, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_isScaling)},
    {SIP_MLNAME_CAST(sipName_isTranslating), meth_QTransform_isTranslating, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_isTranslating)},
    {SIP_MLNAME_CAST(sipName_m11), meth_QTransform_m11, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_m11)},
    {SIP_MLNAME_CAST(sipName_m12), meth_QTransform_m12, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_m12)},
    {SIP_MLNAME_CAST(sipName_m13), meth_QTransform_m13, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_m13)},
    {SIP_MLNAME_CAST(sipName_m21), meth_QTransform_m21, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_m21)},
    {SIP_MLNAME_CAST(sipName_m22), meth_QTransform_m22, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_m22)},
    {SIP_MLNAME_CAST(sipName_m23), meth_QTransform_m23, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_m23)},
    {SIP_MLNAME_CAST(sipName_m31), meth_QTransform_m31, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_m31)},
    {SIP_MLNAME_CAST(sipName_m32), meth_QTransform_m32, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_m32)},
    {SIP_MLNAME_CAST(sipName_m33), meth_QTransform_m33, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_m33)},
    {SIP_MLNAME_CAST(sipName_map), meth_QTransform_map, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_map)},
    {SIP_MLNAME_CAST(sipName_mapRect), meth_QTransform_mapRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_mapRect)},
    {SIP_MLNAME_CAST(sipName_mapToPolygon), meth_QTransform_mapToPolygon, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_mapToPolygon)},
    {SIP_MLNAME_CAST(sipName_quadToQuad), meth_QTransform_quadToQuad, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_quadToQuad)},
    {SIP_MLNAME_CAST(sipName_quadToSquare), meth_QTransform_quadToSquare, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_quadToSquare)},
    {SIP_MLNAME_CAST(sipName_reset), meth_QTransform_reset, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_reset)},
    {SIP_MLNAME_CAST(sipName_rotate), (PyCFunction)meth_QTransform_rotate, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTransform_rotate)},
    {SIP_MLNAME_CAST(sipName_rotateRadians), (PyCFunction)meth_QTransform_rotateRadians, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTransform_rotateRadians)},
    {SIP_MLNAME_CAST(sipName_scale), meth_QTransform_scale, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_scale)},
    {SIP_MLNAME_CAST(sipName_setMatrix), meth_QTransform_setMatrix, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_setMatrix)},
    {SIP_MLNAME_CAST(sipName_shear), meth_QTransform_shear, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_shear)},
    {SIP_MLNAME_CAST(sipName_squareToQuad), meth_QTransform_squareToQuad, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_squareToQuad)},
    {SIP_MLNAME_CAST(sipName_translate), meth_QTransform_translate, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_translate)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QTransform_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_transposed)},
    {SIP_MLNAME_CAST(sipName_type), meth_QTransform_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QTransform_type)}
};

static sipEnumMemberDef enummembers_QTransform[] = {
    {sipName_TxNone, static_cast<int>(QTransform::TxNone), 340},
    {sipName_TxProject, static_cast<int>(QTransform::TxProject), 340},
    {sipName_TxRotate, static_cast<int>(QTransform::TxRotate), 340},
    {sipName_TxScale, static_cast<int>(QTransform::TxScale), 340},
    {sipName_TxShear, static_cast<int>(QTransform::TxShear), 340},
    {sipName_TxTranslate, static_cast<int>(QTransform::TxTranslate), 340},
};

PyDoc_STRVAR(doc_QTransform, "\1QTransform()\n"
    "QTransform(float, float, float, float, float, float, float, float, float m33=1)\n"
    "QTransform(float, float, float, float, float, float)\n"
    "QTransform(QTransform)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTransform = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTransform,
        {0}
    },
    {
        sipNameNr_QTransform,
        {0, 0, 1},
        37, methods_QTransform,
        6, enummembers_QTransform,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTransform,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTransform,
    init_type_QTransform,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTransform,
    assign_QTransform,
    array_QTransform,
    copy_QTransform,
    release_QTransform,
    cast_QTransform,
    0,
    0,
    0,
    pickle_QTransform,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 24990 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 24994 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QTouchDevice_Capabilities___bool__(PyObject *);}
static int slot_QTouchDevice_Capabilities___bool__(PyObject *sipSelf)
{
    QTouchDevice::Capabilities *sipCpp = reinterpret_cast<QTouchDevice::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchDevice_Capabilities));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchDevice::Capabilities::Int() != 0);
#line 25012 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTouchDevice::Capabilities *sipCpp = reinterpret_cast<QTouchDevice::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchDevice_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTouchDevice::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTouchDevice_Capabilities, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchDevice::Capabilities::Int() != a0->operator QTouchDevice::Capabilities::Int());
#line 25042 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTouchDevice::Capabilities *>(a0),sipType_QTouchDevice_Capabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTouchDevice_Capabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTouchDevice::Capabilities *sipCpp = reinterpret_cast<QTouchDevice::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchDevice_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTouchDevice::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTouchDevice_Capabilities, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchDevice::Capabilities::Int() == a0->operator QTouchDevice::Capabilities::Int());
#line 25078 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTouchDevice::Capabilities *>(a0),sipType_QTouchDevice_Capabilities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTouchDevice_Capabilities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___invert__(PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___invert__(PyObject *sipSelf)
{
    QTouchDevice::Capabilities *sipCpp = reinterpret_cast<QTouchDevice::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchDevice_Capabilities));

    if (!sipCpp)
        return 0;


    {
        {
            QTouchDevice::Capabilities*sipRes;

            sipRes = new QTouchDevice::Capabilities(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QTouchDevice_Capabilities,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___and__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchDevice::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTouchDevice_Capabilities, &a0, &a0State, &a1))
        {
            QTouchDevice::Capabilities*sipRes;

            sipRes = new QTouchDevice::Capabilities((*a0 & a1));
            sipReleaseType(a0,sipType_QTouchDevice_Capabilities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTouchDevice_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchDevice::Capabilities* a0;
        int a0State = 0;
        QTouchDevice::Capabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTouchDevice_Capabilities, &a0, &a0State, sipType_QTouchDevice_Capabilities, &a1, &a1State))
        {
            QTouchDevice::Capabilities*sipRes;

            sipRes = new QTouchDevice::Capabilities((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QTouchDevice_Capabilities,a0State);
            sipReleaseType(a1,sipType_QTouchDevice_Capabilities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTouchDevice_Capabilities,NULL);
        }
    }

    {
        QTouchDevice::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTouchDevice_Capabilities, &a0, &a0State, &a1))
        {
            QTouchDevice::Capabilities*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QTouchDevice::Capabilities(*a0 ^ a1);
#line 25181 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTouchDevice_Capabilities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTouchDevice_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___or__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchDevice::Capabilities* a0;
        int a0State = 0;
        QTouchDevice::Capabilities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTouchDevice_Capabilities, &a0, &a0State, sipType_QTouchDevice_Capabilities, &a1, &a1State))
        {
            QTouchDevice::Capabilities*sipRes;

            sipRes = new QTouchDevice::Capabilities((*a0 | *a1));
            sipReleaseType(a0,sipType_QTouchDevice_Capabilities,a0State);
            sipReleaseType(a1,sipType_QTouchDevice_Capabilities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTouchDevice_Capabilities,NULL);
        }
    }

    {
        QTouchDevice::Capabilities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTouchDevice_Capabilities, &a0, &a0State, &a1))
        {
            QTouchDevice::Capabilities*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QTouchDevice::Capabilities(*a0 | a1);
#line 25231 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTouchDevice_Capabilities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTouchDevice_Capabilities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___int__(PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___int__(PyObject *sipSelf)
{
    QTouchDevice::Capabilities *sipCpp = reinterpret_cast<QTouchDevice::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchDevice_Capabilities));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTouchDevice_Capabilities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTouchDevice::Capabilities *sipCpp = reinterpret_cast<QTouchDevice::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchDevice_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTouchDevice::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTouchDevice_Capabilities, &a0, &a0State))
        {
            sipCpp->QTouchDevice::Capabilities::operator^=(*a0);
            sipReleaseType(a0,sipType_QTouchDevice_Capabilities,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___ior__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTouchDevice_Capabilities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTouchDevice::Capabilities *sipCpp = reinterpret_cast<QTouchDevice::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchDevice_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTouchDevice::Capabilities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTouchDevice_Capabilities, &a0, &a0State))
        {
            sipCpp->QTouchDevice::Capabilities::operator|=(*a0);
            sipReleaseType(a0,sipType_QTouchDevice_Capabilities,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTouchDevice_Capabilities___iand__(PyObject *,PyObject *);}
static PyObject *slot_QTouchDevice_Capabilities___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTouchDevice_Capabilities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTouchDevice::Capabilities *sipCpp = reinterpret_cast<QTouchDevice::Capabilities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchDevice_Capabilities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QTouchDevice::Capabilities::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTouchDevice_Capabilities(void *, const sipTypeDef *);}
static void *cast_QTouchDevice_Capabilities(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTouchDevice_Capabilities)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTouchDevice_Capabilities(void *, int);}
static void release_QTouchDevice_Capabilities(void *sipCppV,int)
{
    delete reinterpret_cast<QTouchDevice::Capabilities *>(sipCppV);
}


extern "C" {static void assign_QTouchDevice_Capabilities(void *, SIP_SSIZE_T, const void *);}
static void assign_QTouchDevice_Capabilities(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTouchDevice::Capabilities *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTouchDevice::Capabilities *>(sipSrc);
}


extern "C" {static void *array_QTouchDevice_Capabilities(SIP_SSIZE_T);}
static void *array_QTouchDevice_Capabilities(SIP_SSIZE_T sipNrElem)
{
    return new QTouchDevice::Capabilities[sipNrElem];
}


extern "C" {static void *copy_QTouchDevice_Capabilities(const void *, SIP_SSIZE_T);}
static void *copy_QTouchDevice_Capabilities(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTouchDevice::Capabilities(reinterpret_cast<const QTouchDevice::Capabilities *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTouchDevice_Capabilities(sipSimpleWrapper *);}
static void dealloc_QTouchDevice_Capabilities(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTouchDevice_Capabilities(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTouchDevice_Capabilities(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTouchDevice_Capabilities(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTouchDevice::Capabilities *sipCpp = 0;

    {
        const QTouchDevice::Capabilities* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QTouchDevice_Capabilities, &a0, &a0State))
        {
            sipCpp = new QTouchDevice::Capabilities(*a0);
            sipReleaseType(const_cast<QTouchDevice::Capabilities *>(a0),sipType_QTouchDevice_Capabilities,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QTouchDevice::Capabilities(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTouchDevice::Capabilities();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QTouchDevice_Capabilities(PyObject *, void **, int *, PyObject *);}
static int convertTo_QTouchDevice_Capabilities(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QTouchDevice::Capabilities **sipCppPtr = reinterpret_cast<QTouchDevice::Capabilities **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QTouchDevice::Capabilities is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTouchDevice_CapabilityFlag)) ||
            sipCanConvertToType(sipPy, sipType_QTouchDevice_Capabilities, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTouchDevice_CapabilityFlag)))
{
    *sipCppPtr = new QTouchDevice::Capabilities(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QTouchDevice::Capabilities *>(sipConvertToType(sipPy, sipType_QTouchDevice_Capabilities, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 25508 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTouchDevice_Capabilities[] = {
    {(void *)slot_QTouchDevice_Capabilities___bool__, bool_slot},
    {(void *)slot_QTouchDevice_Capabilities___ne__, ne_slot},
    {(void *)slot_QTouchDevice_Capabilities___eq__, eq_slot},
    {(void *)slot_QTouchDevice_Capabilities___invert__, invert_slot},
    {(void *)slot_QTouchDevice_Capabilities___and__, and_slot},
    {(void *)slot_QTouchDevice_Capabilities___xor__, xor_slot},
    {(void *)slot_QTouchDevice_Capabilities___or__, or_slot},
    {(void *)slot_QTouchDevice_Capabilities___int__, int_slot},
    {(void *)slot_QTouchDevice_Capabilities___ixor__, ixor_slot},
    {(void *)slot_QTouchDevice_Capabilities___ior__, ior_slot},
    {(void *)slot_QTouchDevice_Capabilities___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTouchDevice_Capabilities, "\1QTouchDevice.Capabilities(QTouchDevice.Capabilities)\n"
    "QTouchDevice.Capabilities(int)\n"
    "QTouchDevice.Capabilities()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTouchDevice_Capabilities = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTouchDevice__Capabilities,
        {0}
    },
    {
        sipNameNr_Capabilities,
        {331, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTouchDevice_Capabilities,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTouchDevice_Capabilities,
    init_type_QTouchDevice_Capabilities,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTouchDevice_Capabilities,
    assign_QTouchDevice_Capabilities,
    array_QTouchDevice_Capabilities,
    copy_QTouchDevice_Capabilities,
    release_QTouchDevice_Capabilities,
    cast_QTouchDevice_Capabilities,
    convertTo_QTouchDevice_Capabilities,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 25590 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 25594 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 25597 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 25600 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTouchDevice_devices, "QTouchDevice.devices() -> list-of-const QTouchDevice");

extern "C" {static PyObject *meth_QTouchDevice_devices(PyObject *, PyObject *);}
static PyObject *meth_QTouchDevice_devices(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<const QTouchDevice*>*sipRes;

            sipRes = new QList<const QTouchDevice*>(QTouchDevice::devices());

            return sipConvertFromNewType(sipRes,sipType_QList_0111QTouchDevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchDevice, sipName_devices, doc_QTouchDevice_devices);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchDevice_name, "QTouchDevice.name() -> str");

extern "C" {static PyObject *meth_QTouchDevice_name(PyObject *, PyObject *);}
static PyObject *meth_QTouchDevice_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchDevice, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->name());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchDevice, sipName_name, doc_QTouchDevice_name);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchDevice_type, "QTouchDevice.type() -> QTouchDevice.DeviceType");

extern "C" {static PyObject *meth_QTouchDevice_type(PyObject *, PyObject *);}
static PyObject *meth_QTouchDevice_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchDevice, &sipCpp))
        {
            QTouchDevice::DeviceType sipRes;

            sipRes = sipCpp->type();

            return sipConvertFromEnum(sipRes,sipType_QTouchDevice_DeviceType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchDevice, sipName_type, doc_QTouchDevice_type);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchDevice_capabilities, "QTouchDevice.capabilities() -> QTouchDevice.Capabilities");

extern "C" {static PyObject *meth_QTouchDevice_capabilities(PyObject *, PyObject *);}
static PyObject *meth_QTouchDevice_capabilities(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchDevice, &sipCpp))
        {
            QTouchDevice::Capabilities*sipRes;

            sipRes = new QTouchDevice::Capabilities(sipCpp->capabilities());

            return sipConvertFromNewType(sipRes,sipType_QTouchDevice_Capabilities,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchDevice, sipName_capabilities, doc_QTouchDevice_capabilities);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchDevice_setName, "QTouchDevice.setName(str)");

extern "C" {static PyObject *meth_QTouchDevice_setName(PyObject *, PyObject *);}
static PyObject *meth_QTouchDevice_setName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTouchDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTouchDevice, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchDevice, sipName_setName, doc_QTouchDevice_setName);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchDevice_setType, "QTouchDevice.setType(QTouchDevice.DeviceType)");

extern "C" {static PyObject *meth_QTouchDevice_setType(PyObject *, PyObject *);}
static PyObject *meth_QTouchDevice_setType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchDevice::DeviceType a0;
        QTouchDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTouchDevice, &sipCpp, sipType_QTouchDevice_DeviceType, &a0))
        {
            sipCpp->setType(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchDevice, sipName_setType, doc_QTouchDevice_setType);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchDevice_setCapabilities, "QTouchDevice.setCapabilities(QTouchDevice.Capabilities)");

extern "C" {static PyObject *meth_QTouchDevice_setCapabilities(PyObject *, PyObject *);}
static PyObject *meth_QTouchDevice_setCapabilities(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchDevice::Capabilities* a0;
        int a0State = 0;
        QTouchDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTouchDevice, &sipCpp, sipType_QTouchDevice_Capabilities, &a0, &a0State))
        {
            sipCpp->setCapabilities(*a0);
            sipReleaseType(a0,sipType_QTouchDevice_Capabilities,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchDevice, sipName_setCapabilities, doc_QTouchDevice_setCapabilities);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchDevice_maximumTouchPoints, "QTouchDevice.maximumTouchPoints() -> int");

extern "C" {static PyObject *meth_QTouchDevice_maximumTouchPoints(PyObject *, PyObject *);}
static PyObject *meth_QTouchDevice_maximumTouchPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->maximumTouchPoints();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchDevice, sipName_maximumTouchPoints, doc_QTouchDevice_maximumTouchPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchDevice_setMaximumTouchPoints, "QTouchDevice.setMaximumTouchPoints(int)");

extern "C" {static PyObject *meth_QTouchDevice_setMaximumTouchPoints(PyObject *, PyObject *);}
static PyObject *meth_QTouchDevice_setMaximumTouchPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTouchDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTouchDevice, &sipCpp, &a0))
        {
            sipCpp->setMaximumTouchPoints(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchDevice, sipName_setMaximumTouchPoints, doc_QTouchDevice_setMaximumTouchPoints);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTouchDevice(void *, const sipTypeDef *);}
static void *cast_QTouchDevice(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTouchDevice)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTouchDevice(void *, int);}
static void release_QTouchDevice(void *sipCppV,int)
{
    delete reinterpret_cast<QTouchDevice *>(sipCppV);
}


extern "C" {static void assign_QTouchDevice(void *, SIP_SSIZE_T, const void *);}
static void assign_QTouchDevice(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTouchDevice *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTouchDevice *>(sipSrc);
}


extern "C" {static void *array_QTouchDevice(SIP_SSIZE_T);}
static void *array_QTouchDevice(SIP_SSIZE_T sipNrElem)
{
    return new QTouchDevice[sipNrElem];
}


extern "C" {static void *copy_QTouchDevice(const void *, SIP_SSIZE_T);}
static void *copy_QTouchDevice(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTouchDevice(reinterpret_cast<const QTouchDevice *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTouchDevice(sipSimpleWrapper *);}
static void dealloc_QTouchDevice(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTouchDevice(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTouchDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTouchDevice(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTouchDevice *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTouchDevice();

            return sipCpp;
        }
    }

    {
        const QTouchDevice* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTouchDevice, &a0))
        {
            sipCpp = new QTouchDevice(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QTouchDevice[] = {
    {SIP_MLNAME_CAST(sipName_capabilities), meth_QTouchDevice_capabilities, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchDevice_capabilities)},
    {SIP_MLNAME_CAST(sipName_devices), meth_QTouchDevice_devices, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchDevice_devices)},
    {SIP_MLNAME_CAST(sipName_maximumTouchPoints), meth_QTouchDevice_maximumTouchPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchDevice_maximumTouchPoints)},
    {SIP_MLNAME_CAST(sipName_name), meth_QTouchDevice_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchDevice_name)},
    {SIP_MLNAME_CAST(sipName_setCapabilities), meth_QTouchDevice_setCapabilities, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchDevice_setCapabilities)},
    {SIP_MLNAME_CAST(sipName_setMaximumTouchPoints), meth_QTouchDevice_setMaximumTouchPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchDevice_setMaximumTouchPoints)},
    {SIP_MLNAME_CAST(sipName_setName), meth_QTouchDevice_setName, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchDevice_setName)},
    {SIP_MLNAME_CAST(sipName_setType), meth_QTouchDevice_setType, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchDevice_setType)},
    {SIP_MLNAME_CAST(sipName_type), meth_QTouchDevice_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchDevice_type)}
};

static sipEnumMemberDef enummembers_QTouchDevice[] = {
    {sipName_Area, static_cast<int>(QTouchDevice::Area), 333},
    {sipName_NormalizedPosition, static_cast<int>(QTouchDevice::NormalizedPosition), 333},
    {sipName_Position, static_cast<int>(QTouchDevice::Position), 333},
    {sipName_Pressure, static_cast<int>(QTouchDevice::Pressure), 333},
    {sipName_RawPositions, static_cast<int>(QTouchDevice::RawPositions), 333},
    {sipName_TouchPad, static_cast<int>(QTouchDevice::TouchPad), 334},
    {sipName_TouchScreen, static_cast<int>(QTouchDevice::TouchScreen), 334},
    {sipName_Velocity, static_cast<int>(QTouchDevice::Velocity), 333},
};

PyDoc_STRVAR(doc_QTouchDevice, "\1QTouchDevice()\n"
    "QTouchDevice(QTouchDevice)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTouchDevice = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTouchDevice,
        {0}
    },
    {
        sipNameNr_QTouchDevice,
        {0, 0, 1},
        9, methods_QTouchDevice,
        8, enummembers_QTouchDevice,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTouchDevice,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTouchDevice,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTouchDevice,
    assign_QTouchDevice,
    array_QTouchDevice,
    copy_QTouchDevice,
    release_QTouchDevice,
    cast_QTouchDevice,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 26011 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 26015 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 26018 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 26021 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 26024 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 26027 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 82 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 26032 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 26035 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 26038 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 26041 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 26044 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 26047 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 26050 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 26053 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 26056 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 26059 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 26062 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 26065 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 26068 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 26071 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 26074 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 26077 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 26080 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 26083 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 26086 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQTextTable : public QTextTable
{
public:
    sipQTextTable(QTextDocument*);
    virtual ~sipQTextTable();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTextTable(const sipQTextTable &);
    sipQTextTable &operator = (const sipQTextTable &);

    char sipPyMethods[7];
};

sipQTextTable::sipQTextTable(QTextDocument*a0): QTextTable(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQTextTable::~sipQTextTable()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQTextTable::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextTable);
}

int sipQTextTable::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QTextTable::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QTextTable,_c,_id,_a);

    return _id;
}

void *sipQTextTable::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QTextTable, _clname, &sipCpp) ? sipCpp : QTextTable::qt_metacast(_clname));
}

void sipQTextTable::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QTextTable::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextTable::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QTextTable::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextTable::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QTextTable::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextTable::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QTextTable::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextTable::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QTextTable::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQTextTable::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QTextTable::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQTextTable::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QTextTable::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQTextTable::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQTextTable::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQTextTable::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQTextTable::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQTextTable::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQTextTable::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQTextTable::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQTextTable::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQTextTable::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QTextTable_sender, "QTextTable.sender() -> QObject");

extern "C" {static PyObject *meth_QTextTable_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextTable_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextTable *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextTable, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 26374 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_sender, doc_QTextTable_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_receivers, "QTextTable.receivers(signal) -> int");

extern "C" {static PyObject *meth_QTextTable_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextTable_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQTextTable *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTextTable, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 26433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_receivers, doc_QTextTable_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_timerEvent, "QTextTable.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QTextTable_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextTable_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQTextTable *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_timerEvent, doc_QTextTable_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_childEvent, "QTextTable.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QTextTable_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextTable_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQTextTable *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_childEvent, doc_QTextTable_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_customEvent, "QTextTable.customEvent(QEvent)");

extern "C" {static PyObject *meth_QTextTable_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextTable_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQTextTable *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_customEvent, doc_QTextTable_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_connectNotify, "QTextTable.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextTable_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextTable_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextTable *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_connectNotify, doc_QTextTable_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_disconnectNotify, "QTextTable.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextTable_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextTable_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextTable *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_disconnectNotify, doc_QTextTable_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_senderSignalIndex, "QTextTable.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QTextTable_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextTable_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextTable *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextTable, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_senderSignalIndex, doc_QTextTable_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_isSignalConnected, "QTextTable.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QTextTable_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextTable_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQTextTable *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_isSignalConnected, doc_QTextTable_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_resize, "QTextTable.resize(int, int)");

extern "C" {static PyObject *meth_QTextTable_resize(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_resize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QTextTable, &sipCpp, &a0, &a1))
        {
            sipCpp->resize(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_resize, doc_QTextTable_resize);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_insertRows, "QTextTable.insertRows(int, int)");

extern "C" {static PyObject *meth_QTextTable_insertRows(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_insertRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QTextTable, &sipCpp, &a0, &a1))
        {
            sipCpp->insertRows(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_insertRows, doc_QTextTable_insertRows);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_insertColumns, "QTextTable.insertColumns(int, int)");

extern "C" {static PyObject *meth_QTextTable_insertColumns(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_insertColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QTextTable, &sipCpp, &a0, &a1))
        {
            sipCpp->insertColumns(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_insertColumns, doc_QTextTable_insertColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_removeRows, "QTextTable.removeRows(int, int)");

extern "C" {static PyObject *meth_QTextTable_removeRows(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_removeRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QTextTable, &sipCpp, &a0, &a1))
        {
            sipCpp->removeRows(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_removeRows, doc_QTextTable_removeRows);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_removeColumns, "QTextTable.removeColumns(int, int)");

extern "C" {static PyObject *meth_QTextTable_removeColumns(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_removeColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QTextTable, &sipCpp, &a0, &a1))
        {
            sipCpp->removeColumns(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_removeColumns, doc_QTextTable_removeColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_mergeCells, "QTextTable.mergeCells(int, int, int, int)\n"
    "QTextTable.mergeCells(QTextCursor)");

extern "C" {static PyObject *meth_QTextTable_mergeCells(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_mergeCells(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiii", &sipSelf, sipType_QTextTable, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->mergeCells(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QTextCursor* a0;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QTextCursor, &a0))
        {
            sipCpp->mergeCells(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_mergeCells, doc_QTextTable_mergeCells);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_splitCell, "QTextTable.splitCell(int, int, int, int)");

extern "C" {static PyObject *meth_QTextTable_splitCell(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_splitCell(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiii", &sipSelf, sipType_QTextTable, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->splitCell(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_splitCell, doc_QTextTable_splitCell);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_rows, "QTextTable.rows() -> int");

extern "C" {static PyObject *meth_QTextTable_rows(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_rows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTable, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->rows();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_rows, doc_QTextTable_rows);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_columns, "QTextTable.columns() -> int");

extern "C" {static PyObject *meth_QTextTable_columns(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_columns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTable, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->columns();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_columns, doc_QTextTable_columns);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_cellAt, "QTextTable.cellAt(int, int) -> QTextTableCell\n"
    "QTextTable.cellAt(int) -> QTextTableCell\n"
    "QTextTable.cellAt(QTextCursor) -> QTextTableCell");

extern "C" {static PyObject *meth_QTextTable_cellAt(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_cellAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QTextTable, &sipCpp, &a0, &a1))
        {
            QTextTableCell*sipRes;

            sipRes = new QTextTableCell(sipCpp->cellAt(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QTextTableCell,NULL);
        }
    }

    {
        int a0;
        const QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextTable, &sipCpp, &a0))
        {
            QTextTableCell*sipRes;

            sipRes = new QTextTableCell(sipCpp->cellAt(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextTableCell,NULL);
        }
    }

    {
        const QTextCursor* a0;
        const QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QTextCursor, &a0))
        {
            QTextTableCell*sipRes;

            sipRes = new QTextTableCell(sipCpp->cellAt(*a0));

            return sipConvertFromNewType(sipRes,sipType_QTextTableCell,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_cellAt, doc_QTextTable_cellAt);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_rowStart, "QTextTable.rowStart(QTextCursor) -> QTextCursor");

extern "C" {static PyObject *meth_QTextTable_rowStart(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_rowStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor* a0;
        const QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QTextCursor, &a0))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->rowStart(*a0));

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_rowStart, doc_QTextTable_rowStart);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_rowEnd, "QTextTable.rowEnd(QTextCursor) -> QTextCursor");

extern "C" {static PyObject *meth_QTextTable_rowEnd(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_rowEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor* a0;
        const QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QTextCursor, &a0))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->rowEnd(*a0));

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_rowEnd, doc_QTextTable_rowEnd);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_format, "QTextTable.format() -> QTextTableFormat");

extern "C" {static PyObject *meth_QTextTable_format(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTable, &sipCpp))
        {
            QTextTableFormat*sipRes;

            sipRes = new QTextTableFormat(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QTextTableFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_format, doc_QTextTable_format);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_setFormat, "QTextTable.setFormat(QTextTableFormat)");

extern "C" {static PyObject *meth_QTextTable_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableFormat* a0;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextTable, &sipCpp, sipType_QTextTableFormat, &a0))
        {
            sipCpp->setFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_setFormat, doc_QTextTable_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_appendRows, "QTextTable.appendRows(int)");

extern "C" {static PyObject *meth_QTextTable_appendRows(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_appendRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextTable, &sipCpp, &a0))
        {
            sipCpp->appendRows(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_appendRows, doc_QTextTable_appendRows);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTable_appendColumns, "QTextTable.appendColumns(int)");

extern "C" {static PyObject *meth_QTextTable_appendColumns(PyObject *, PyObject *);}
static PyObject *meth_QTextTable_appendColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextTable *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextTable, &sipCpp, &a0))
        {
            sipCpp->appendColumns(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTable, sipName_appendColumns, doc_QTextTable_appendColumns);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextTable(void *, const sipTypeDef *);}
static void *cast_QTextTable(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextTable)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextFrame)->ctd_cast((QTextFrame *)(QTextTable *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextTable(void *, int);}
static void release_QTextTable(void *sipCppV,int)
{
    QTextTable *sipCpp = reinterpret_cast<QTextTable *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QTextTable(sipSimpleWrapper *);}
static void dealloc_QTextTable(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTextTable *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTextTable(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTextTable(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextTable(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQTextTable *sipCpp = 0;

    {
        QTextDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTextDocument, &a0))
        {
            sipCpp = new sipQTextTable(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextTable[] = {{298, 255, 1}};


static PyMethodDef methods_QTextTable[] = {
    {SIP_MLNAME_CAST(sipName_appendColumns), meth_QTextTable_appendColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_appendColumns)},
    {SIP_MLNAME_CAST(sipName_appendRows), meth_QTextTable_appendRows, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_appendRows)},
    {SIP_MLNAME_CAST(sipName_cellAt), meth_QTextTable_cellAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_cellAt)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QTextTable_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_columns), meth_QTextTable_columns, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_columns)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QTextTable_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QTextTable_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QTextTable_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_format), meth_QTextTable_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_format)},
    {SIP_MLNAME_CAST(sipName_insertColumns), meth_QTextTable_insertColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_insertColumns)},
    {SIP_MLNAME_CAST(sipName_insertRows), meth_QTextTable_insertRows, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_insertRows)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QTextTable_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mergeCells), meth_QTextTable_mergeCells, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_mergeCells)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QTextTable_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_removeColumns), meth_QTextTable_removeColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_removeColumns)},
    {SIP_MLNAME_CAST(sipName_removeRows), meth_QTextTable_removeRows, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_removeRows)},
    {SIP_MLNAME_CAST(sipName_resize), meth_QTextTable_resize, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_resize)},
    {SIP_MLNAME_CAST(sipName_rowEnd), meth_QTextTable_rowEnd, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_rowEnd)},
    {SIP_MLNAME_CAST(sipName_rowStart), meth_QTextTable_rowStart, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_rowStart)},
    {SIP_MLNAME_CAST(sipName_rows), meth_QTextTable_rows, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_rows)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QTextTable_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QTextTable_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QTextTable_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_setFormat)},
    {SIP_MLNAME_CAST(sipName_splitCell), meth_QTextTable_splitCell, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTable_splitCell)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QTextTable_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QTextTable, "\1QTextTable(QTextDocument)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextTable = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextTable,
        {0}
    },
    {
        sipNameNr_QTextTable,
        {0, 0, 1},
        25, methods_QTextTable,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextTable,
    -1,
    -1,
    supers_QTextTable,
    0,
    init_type_QTextTable,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextTable,
    0,
    0,
    0,
    release_QTextTable,
    cast_QTextTable,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QTextTable::staticMetaObject,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 27296 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 27300 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 27303 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextTableCell_format, "QTextTableCell.format() -> QTextCharFormat");

extern "C" {static PyObject *meth_QTextTableCell_format(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCell, &sipCpp))
        {
            QTextCharFormat*sipRes;

            sipRes = new QTextCharFormat(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QTextCharFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_format, doc_QTextTableCell_format);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCell_setFormat, "QTextTableCell.setFormat(QTextCharFormat)");

extern "C" {static PyObject *meth_QTextTableCell_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat* a0;
        QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextTableCell, &sipCpp, sipType_QTextCharFormat, &a0))
        {
            sipCpp->setFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_setFormat, doc_QTextTableCell_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCell_row, "QTextTableCell.row() -> int");

extern "C" {static PyObject *meth_QTextTableCell_row(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_row(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCell, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->row();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_row, doc_QTextTableCell_row);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCell_column, "QTextTableCell.column() -> int");

extern "C" {static PyObject *meth_QTextTableCell_column(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_column(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCell, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->column();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_column, doc_QTextTableCell_column);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCell_rowSpan, "QTextTableCell.rowSpan() -> int");

extern "C" {static PyObject *meth_QTextTableCell_rowSpan(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_rowSpan(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCell, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->rowSpan();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_rowSpan, doc_QTextTableCell_rowSpan);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCell_columnSpan, "QTextTableCell.columnSpan() -> int");

extern "C" {static PyObject *meth_QTextTableCell_columnSpan(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_columnSpan(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCell, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->columnSpan();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_columnSpan, doc_QTextTableCell_columnSpan);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCell_isValid, "QTextTableCell.isValid() -> bool");

extern "C" {static PyObject *meth_QTextTableCell_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCell, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_isValid, doc_QTextTableCell_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCell_firstCursorPosition, "QTextTableCell.firstCursorPosition() -> QTextCursor");

extern "C" {static PyObject *meth_QTextTableCell_firstCursorPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_firstCursorPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCell, &sipCpp))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->firstCursorPosition());

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_firstCursorPosition, doc_QTextTableCell_firstCursorPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCell_lastCursorPosition, "QTextTableCell.lastCursorPosition() -> QTextCursor");

extern "C" {static PyObject *meth_QTextTableCell_lastCursorPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_lastCursorPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCell, &sipCpp))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->lastCursorPosition());

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_lastCursorPosition, doc_QTextTableCell_lastCursorPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCell_tableCellFormatIndex, "QTextTableCell.tableCellFormatIndex() -> int");

extern "C" {static PyObject *meth_QTextTableCell_tableCellFormatIndex(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCell_tableCellFormatIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCell, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->tableCellFormatIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCell, sipName_tableCellFormatIndex, doc_QTextTableCell_tableCellFormatIndex);

    return NULL;
}


extern "C" {static PyObject *slot_QTextTableCell___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextTableCell___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextTableCell *sipCpp = reinterpret_cast<QTextTableCell *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextTableCell));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextTableCell, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextTableCell::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextTableCell,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextTableCell___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextTableCell___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextTableCell *sipCpp = reinterpret_cast<QTextTableCell *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextTableCell));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextTableCell* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextTableCell, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextTableCell::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextTableCell,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextTableCell(void *, const sipTypeDef *);}
static void *cast_QTextTableCell(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextTableCell)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextTableCell(void *, int);}
static void release_QTextTableCell(void *sipCppV,int)
{
    delete reinterpret_cast<QTextTableCell *>(sipCppV);
}


extern "C" {static void assign_QTextTableCell(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextTableCell(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextTableCell *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextTableCell *>(sipSrc);
}


extern "C" {static void *array_QTextTableCell(SIP_SSIZE_T);}
static void *array_QTextTableCell(SIP_SSIZE_T sipNrElem)
{
    return new QTextTableCell[sipNrElem];
}


extern "C" {static void *copy_QTextTableCell(const void *, SIP_SSIZE_T);}
static void *copy_QTextTableCell(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextTableCell(reinterpret_cast<const QTextTableCell *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextTableCell(sipSimpleWrapper *);}
static void dealloc_QTextTableCell(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextTableCell(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextTableCell(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextTableCell(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextTableCell *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextTableCell();

            return sipCpp;
        }
    }

    {
        const QTextTableCell* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextTableCell, &a0))
        {
            sipCpp = new QTextTableCell(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextTableCell[] = {
    {(void *)slot_QTextTableCell___ne__, ne_slot},
    {(void *)slot_QTextTableCell___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTextTableCell[] = {
    {SIP_MLNAME_CAST(sipName_column), meth_QTextTableCell_column, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_column)},
    {SIP_MLNAME_CAST(sipName_columnSpan), meth_QTextTableCell_columnSpan, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_columnSpan)},
    {SIP_MLNAME_CAST(sipName_firstCursorPosition), meth_QTextTableCell_firstCursorPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_firstCursorPosition)},
    {SIP_MLNAME_CAST(sipName_format), meth_QTextTableCell_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_format)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextTableCell_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_isValid)},
    {SIP_MLNAME_CAST(sipName_lastCursorPosition), meth_QTextTableCell_lastCursorPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_lastCursorPosition)},
    {SIP_MLNAME_CAST(sipName_row), meth_QTextTableCell_row, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_row)},
    {SIP_MLNAME_CAST(sipName_rowSpan), meth_QTextTableCell_rowSpan, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_rowSpan)},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QTextTableCell_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_setFormat)},
    {SIP_MLNAME_CAST(sipName_tableCellFormatIndex), meth_QTextTableCell_tableCellFormatIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCell_tableCellFormatIndex)}
};

PyDoc_STRVAR(doc_QTextTableCell, "\1QTextTableCell()\n"
    "QTextTableCell(QTextTableCell)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextTableCell = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextTableCell,
        {0}
    },
    {
        sipNameNr_QTextTableCell,
        {0, 0, 1},
        10, methods_QTextTableCell,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextTableCell,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextTableCell,
    init_type_QTextTableCell,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextTableCell,
    assign_QTextTableCell,
    array_QTextTableCell,
    copy_QTextTableCell,
    release_QTextTableCell,
    cast_QTextTableCell,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 85 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 27803 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 27807 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 27810 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static PyObject *slot_QTextOption_Tab___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Tab___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextOption::Tab *sipCpp = reinterpret_cast<QTextOption::Tab *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Tab));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextOption::Tab* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextOption_Tab, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextOption::Tab::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextOption_Tab,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextOption_Tab___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Tab___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextOption::Tab *sipCpp = reinterpret_cast<QTextOption::Tab *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Tab));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextOption::Tab* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextOption_Tab, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextOption::Tab::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextOption_Tab,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextOption_Tab(void *, const sipTypeDef *);}
static void *cast_QTextOption_Tab(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextOption_Tab)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextOption_Tab(void *, int);}
static void release_QTextOption_Tab(void *sipCppV,int)
{
    delete reinterpret_cast<QTextOption::Tab *>(sipCppV);
}


extern "C" {static void assign_QTextOption_Tab(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextOption_Tab(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextOption::Tab *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextOption::Tab *>(sipSrc);
}


extern "C" {static void *array_QTextOption_Tab(SIP_SSIZE_T);}
static void *array_QTextOption_Tab(SIP_SSIZE_T sipNrElem)
{
    return new QTextOption::Tab[sipNrElem];
}


extern "C" {static void *copy_QTextOption_Tab(const void *, SIP_SSIZE_T);}
static void *copy_QTextOption_Tab(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextOption::Tab(reinterpret_cast<const QTextOption::Tab *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextOption_Tab(sipSimpleWrapper *);}
static void dealloc_QTextOption_Tab(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextOption_Tab(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextOption_Tab(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextOption_Tab(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextOption::Tab *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextOption::Tab();

            return sipCpp;
        }
    }

    {
        qreal a0;
        QTextOption::TabType a1;
        QChar a2def = QChar();
        QChar* a2 = &a2def;
        int a2State = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_delim,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "dE|J1", &a0, sipType_QTextOption_TabType, &a1, sipType_QChar,&a2, &a2State))
        {
            sipCpp = new QTextOption::Tab(a0,a1,*a2);
            sipReleaseType(a2,sipType_QChar,a2State);

            return sipCpp;
        }
    }

    {
        const QTextOption::Tab* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextOption_Tab, &a0))
        {
            sipCpp = new QTextOption::Tab(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextOption_Tab[] = {
    {(void *)slot_QTextOption_Tab___ne__, ne_slot},
    {(void *)slot_QTextOption_Tab___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


extern "C" {static PyObject *varget_QTextOption_Tab_delimiter(void *, PyObject *, PyObject *);}
static PyObject *varget_QTextOption_Tab_delimiter(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QChar*sipVal;
    QTextOption::Tab *sipCpp = reinterpret_cast<QTextOption::Tab *>(sipSelf);

    sipVal = &sipCpp->delimiter;

    sipPy = sipGetReference(sipPySelf, -5);
    if (sipPy)
        return sipPy;

    sipPy = sipConvertFromType(sipVal, sipType_QChar, NULL);
    sipKeepReference(sipPySelf, -5, sipPy);

    return sipPy;
}


extern "C" {static int varset_QTextOption_Tab_delimiter(void *, PyObject *, PyObject *);}
static int varset_QTextOption_Tab_delimiter(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QChar*sipVal;
    QTextOption::Tab *sipCpp = reinterpret_cast<QTextOption::Tab *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QChar *>(sipForceConvertToType(sipPy,sipType_QChar,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->delimiter = *sipVal;

    sipReleaseType(sipVal, sipType_QChar, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_QTextOption_Tab_position(void *, PyObject *, PyObject *);}
static PyObject *varget_QTextOption_Tab_position(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QTextOption::Tab *sipCpp = reinterpret_cast<QTextOption::Tab *>(sipSelf);

    sipVal = sipCpp->position;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QTextOption_Tab_position(void *, PyObject *, PyObject *);}
static int varset_QTextOption_Tab_position(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QTextOption::Tab *sipCpp = reinterpret_cast<QTextOption::Tab *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->position = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QTextOption_Tab_type(void *, PyObject *, PyObject *);}
static PyObject *varget_QTextOption_Tab_type(void *sipSelf, PyObject *, PyObject *)
{
    QTextOption::TabType sipVal;
    QTextOption::Tab *sipCpp = reinterpret_cast<QTextOption::Tab *>(sipSelf);

    sipVal = sipCpp->type;

    return sipConvertFromEnum(sipVal, sipType_QTextOption_TabType);
}


extern "C" {static int varset_QTextOption_Tab_type(void *, PyObject *, PyObject *);}
static int varset_QTextOption_Tab_type(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QTextOption::TabType sipVal;
    QTextOption::Tab *sipCpp = reinterpret_cast<QTextOption::Tab *>(sipSelf);

    sipVal = (QTextOption::TabType)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->type = sipVal;

    return 0;
}

sipVariableDef variables_QTextOption_Tab[] = {
    {InstanceVariable, sipName_delimiter, (PyMethodDef *)varget_QTextOption_Tab_delimiter, (PyMethodDef *)varset_QTextOption_Tab_delimiter, NULL, NULL},
    {InstanceVariable, sipName_position, (PyMethodDef *)varget_QTextOption_Tab_position, (PyMethodDef *)varset_QTextOption_Tab_position, NULL, NULL},
    {InstanceVariable, sipName_type, (PyMethodDef *)varget_QTextOption_Tab_type, (PyMethodDef *)varset_QTextOption_Tab_type, NULL, NULL},
};

PyDoc_STRVAR(doc_QTextOption_Tab, "\1QTextOption.Tab()\n"
    "QTextOption.Tab(float, QTextOption.TabType, str delim=QChar())\n"
    "QTextOption.Tab(QTextOption.Tab)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextOption_Tab = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextOption__Tab,
        {0}
    },
    {
        sipNameNr_Tab,
        {321, 255, 0},
        0, 0,
        0, 0,
        3, variables_QTextOption_Tab,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextOption_Tab,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextOption_Tab,
    init_type_QTextOption_Tab,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextOption_Tab,
    assign_QTextOption_Tab,
    array_QTextOption_Tab,
    copy_QTextOption_Tab,
    release_QTextOption_Tab,
    cast_QTextOption_Tab,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 28153 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 28157 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QTextOption_Flags___bool__(PyObject *);}
static int slot_QTextOption_Flags___bool__(PyObject *sipSelf)
{
    QTextOption::Flags *sipCpp = reinterpret_cast<QTextOption::Flags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Flags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextOption::Flags::Int() != 0);
#line 28175 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextOption_Flags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextOption::Flags *sipCpp = reinterpret_cast<QTextOption::Flags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Flags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextOption::Flags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextOption_Flags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextOption::Flags::Int() != a0->operator QTextOption::Flags::Int());
#line 28205 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTextOption::Flags *>(a0),sipType_QTextOption_Flags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextOption_Flags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextOption_Flags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextOption::Flags *sipCpp = reinterpret_cast<QTextOption::Flags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Flags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextOption::Flags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextOption_Flags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextOption::Flags::Int() == a0->operator QTextOption::Flags::Int());
#line 28241 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTextOption::Flags *>(a0),sipType_QTextOption_Flags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextOption_Flags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextOption_Flags___invert__(PyObject *);}
static PyObject *slot_QTextOption_Flags___invert__(PyObject *sipSelf)
{
    QTextOption::Flags *sipCpp = reinterpret_cast<QTextOption::Flags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Flags));

    if (!sipCpp)
        return 0;


    {
        {
            QTextOption::Flags*sipRes;

            sipRes = new QTextOption::Flags(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QTextOption_Flags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextOption_Flags___and__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextOption::Flags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextOption_Flags, &a0, &a0State, &a1))
        {
            QTextOption::Flags*sipRes;

            sipRes = new QTextOption::Flags((*a0 & a1));
            sipReleaseType(a0,sipType_QTextOption_Flags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextOption_Flags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextOption_Flags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextOption::Flags* a0;
        int a0State = 0;
        QTextOption::Flags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTextOption_Flags, &a0, &a0State, sipType_QTextOption_Flags, &a1, &a1State))
        {
            QTextOption::Flags*sipRes;

            sipRes = new QTextOption::Flags((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QTextOption_Flags,a0State);
            sipReleaseType(a1,sipType_QTextOption_Flags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextOption_Flags,NULL);
        }
    }

    {
        QTextOption::Flags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextOption_Flags, &a0, &a0State, &a1))
        {
            QTextOption::Flags*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QTextOption::Flags(*a0 ^ a1);
#line 28344 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTextOption_Flags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextOption_Flags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextOption_Flags___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextOption::Flags* a0;
        int a0State = 0;
        QTextOption::Flags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTextOption_Flags, &a0, &a0State, sipType_QTextOption_Flags, &a1, &a1State))
        {
            QTextOption::Flags*sipRes;

            sipRes = new QTextOption::Flags((*a0 | *a1));
            sipReleaseType(a0,sipType_QTextOption_Flags,a0State);
            sipReleaseType(a1,sipType_QTextOption_Flags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextOption_Flags,NULL);
        }
    }

    {
        QTextOption::Flags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextOption_Flags, &a0, &a0State, &a1))
        {
            QTextOption::Flags*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QTextOption::Flags(*a0 | a1);
#line 28394 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTextOption_Flags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextOption_Flags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextOption_Flags___int__(PyObject *);}
static PyObject *slot_QTextOption_Flags___int__(PyObject *sipSelf)
{
    QTextOption::Flags *sipCpp = reinterpret_cast<QTextOption::Flags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Flags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextOption_Flags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextOption_Flags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextOption::Flags *sipCpp = reinterpret_cast<QTextOption::Flags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Flags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTextOption::Flags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextOption_Flags, &a0, &a0State))
        {
            sipCpp->QTextOption::Flags::operator^=(*a0);
            sipReleaseType(a0,sipType_QTextOption_Flags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextOption_Flags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextOption_Flags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextOption::Flags *sipCpp = reinterpret_cast<QTextOption::Flags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Flags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTextOption::Flags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextOption_Flags, &a0, &a0State))
        {
            sipCpp->QTextOption::Flags::operator|=(*a0);
            sipReleaseType(a0,sipType_QTextOption_Flags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextOption_Flags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QTextOption_Flags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextOption_Flags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextOption::Flags *sipCpp = reinterpret_cast<QTextOption::Flags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextOption_Flags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QTextOption::Flags::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextOption_Flags(void *, const sipTypeDef *);}
static void *cast_QTextOption_Flags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextOption_Flags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextOption_Flags(void *, int);}
static void release_QTextOption_Flags(void *sipCppV,int)
{
    delete reinterpret_cast<QTextOption::Flags *>(sipCppV);
}


extern "C" {static void assign_QTextOption_Flags(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextOption_Flags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextOption::Flags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextOption::Flags *>(sipSrc);
}


extern "C" {static void *array_QTextOption_Flags(SIP_SSIZE_T);}
static void *array_QTextOption_Flags(SIP_SSIZE_T sipNrElem)
{
    return new QTextOption::Flags[sipNrElem];
}


extern "C" {static void *copy_QTextOption_Flags(const void *, SIP_SSIZE_T);}
static void *copy_QTextOption_Flags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextOption::Flags(reinterpret_cast<const QTextOption::Flags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextOption_Flags(sipSimpleWrapper *);}
static void dealloc_QTextOption_Flags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextOption_Flags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextOption_Flags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextOption_Flags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextOption::Flags *sipCpp = 0;

    {
        const QTextOption::Flags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QTextOption_Flags, &a0, &a0State))
        {
            sipCpp = new QTextOption::Flags(*a0);
            sipReleaseType(const_cast<QTextOption::Flags *>(a0),sipType_QTextOption_Flags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QTextOption::Flags(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextOption::Flags();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QTextOption_Flags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QTextOption_Flags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QTextOption::Flags **sipCppPtr = reinterpret_cast<QTextOption::Flags **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QTextOption::Flags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTextOption_Flag)) ||
            sipCanConvertToType(sipPy, sipType_QTextOption_Flags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTextOption_Flag)))
{
    *sipCppPtr = new QTextOption::Flags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QTextOption::Flags *>(sipConvertToType(sipPy, sipType_QTextOption_Flags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 28671 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextOption_Flags[] = {
    {(void *)slot_QTextOption_Flags___bool__, bool_slot},
    {(void *)slot_QTextOption_Flags___ne__, ne_slot},
    {(void *)slot_QTextOption_Flags___eq__, eq_slot},
    {(void *)slot_QTextOption_Flags___invert__, invert_slot},
    {(void *)slot_QTextOption_Flags___and__, and_slot},
    {(void *)slot_QTextOption_Flags___xor__, xor_slot},
    {(void *)slot_QTextOption_Flags___or__, or_slot},
    {(void *)slot_QTextOption_Flags___int__, int_slot},
    {(void *)slot_QTextOption_Flags___ixor__, ixor_slot},
    {(void *)slot_QTextOption_Flags___ior__, ior_slot},
    {(void *)slot_QTextOption_Flags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTextOption_Flags, "\1QTextOption.Flags(QTextOption.Flags)\n"
    "QTextOption.Flags(int)\n"
    "QTextOption.Flags()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextOption_Flags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextOption__Flags,
        {0}
    },
    {
        sipNameNr_Flags,
        {321, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextOption_Flags,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextOption_Flags,
    init_type_QTextOption_Flags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextOption_Flags,
    assign_QTextOption_Flags,
    array_QTextOption_Flags,
    copy_QTextOption_Flags,
    release_QTextOption_Flags,
    cast_QTextOption_Flags,
    convertTo_QTextOption_Flags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 28753 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 28757 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 28760 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 85 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 28765 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 28768 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 731 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 28771 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 28774 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextOption_alignment, "QTextOption.alignment() -> Qt.Alignment");

extern "C" {static PyObject *meth_QTextOption_alignment(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_alignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextOption, &sipCpp))
        {
            Qt::Alignment*sipRes;

            sipRes = new Qt::Alignment(sipCpp->alignment());

            return sipConvertFromNewType(sipRes,sipType_Qt_Alignment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_alignment, doc_QTextOption_alignment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_setTextDirection, "QTextOption.setTextDirection(Qt.LayoutDirection)");

extern "C" {static PyObject *meth_QTextOption_setTextDirection(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_setTextDirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::LayoutDirection a0;
        QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextOption, &sipCpp, sipType_Qt_LayoutDirection, &a0))
        {
            sipCpp->setTextDirection(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_setTextDirection, doc_QTextOption_setTextDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_textDirection, "QTextOption.textDirection() -> Qt.LayoutDirection");

extern "C" {static PyObject *meth_QTextOption_textDirection(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_textDirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextOption, &sipCpp))
        {
            Qt::LayoutDirection sipRes;

            sipRes = sipCpp->textDirection();

            return sipConvertFromEnum(sipRes,sipType_Qt_LayoutDirection);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_textDirection, doc_QTextOption_textDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_setWrapMode, "QTextOption.setWrapMode(QTextOption.WrapMode)");

extern "C" {static PyObject *meth_QTextOption_setWrapMode(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_setWrapMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextOption::WrapMode a0;
        QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextOption, &sipCpp, sipType_QTextOption_WrapMode, &a0))
        {
            sipCpp->setWrapMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_setWrapMode, doc_QTextOption_setWrapMode);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_wrapMode, "QTextOption.wrapMode() -> QTextOption.WrapMode");

extern "C" {static PyObject *meth_QTextOption_wrapMode(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_wrapMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextOption, &sipCpp))
        {
            QTextOption::WrapMode sipRes;

            sipRes = sipCpp->wrapMode();

            return sipConvertFromEnum(sipRes,sipType_QTextOption_WrapMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_wrapMode, doc_QTextOption_wrapMode);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_flags, "QTextOption.flags() -> QTextOption.Flags");

extern "C" {static PyObject *meth_QTextOption_flags(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextOption, &sipCpp))
        {
            QTextOption::Flags*sipRes;

            sipRes = new QTextOption::Flags(sipCpp->flags());

            return sipConvertFromNewType(sipRes,sipType_QTextOption_Flags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_flags, doc_QTextOption_flags);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_tabStop, "QTextOption.tabStop() -> float");

extern "C" {static PyObject *meth_QTextOption_tabStop(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_tabStop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextOption, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->tabStop();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_tabStop, doc_QTextOption_tabStop);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_setTabArray, "QTextOption.setTabArray(list-of-float)");

extern "C" {static PyObject *meth_QTextOption_setTabArray(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_setTabArray(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<qreal>* a0;
        int a0State = 0;
        QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextOption, &sipCpp, sipType_QList_2400,&a0, &a0State))
        {
            sipCpp->setTabArray(*a0);
            sipReleaseType(const_cast<QList<qreal> *>(a0),sipType_QList_2400,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_setTabArray, doc_QTextOption_setTabArray);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_tabArray, "QTextOption.tabArray() -> list-of-float");

extern "C" {static PyObject *meth_QTextOption_tabArray(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_tabArray(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextOption, &sipCpp))
        {
            QList<qreal>*sipRes;

            sipRes = new QList<qreal>(sipCpp->tabArray());

            return sipConvertFromNewType(sipRes,sipType_QList_2400,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_tabArray, doc_QTextOption_tabArray);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_setUseDesignMetrics, "QTextOption.setUseDesignMetrics(bool)");

extern "C" {static PyObject *meth_QTextOption_setUseDesignMetrics(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_setUseDesignMetrics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextOption, &sipCpp, &a0))
        {
            sipCpp->setUseDesignMetrics(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_setUseDesignMetrics, doc_QTextOption_setUseDesignMetrics);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_useDesignMetrics, "QTextOption.useDesignMetrics() -> bool");

extern "C" {static PyObject *meth_QTextOption_useDesignMetrics(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_useDesignMetrics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextOption, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->useDesignMetrics();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_useDesignMetrics, doc_QTextOption_useDesignMetrics);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_setAlignment, "QTextOption.setAlignment(Qt.Alignment)");

extern "C" {static PyObject *meth_QTextOption_setAlignment(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_setAlignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::Alignment* a0;
        int a0State = 0;
        QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextOption, &sipCpp, sipType_Qt_Alignment, &a0, &a0State))
        {
            sipCpp->setAlignment(*a0);
            sipReleaseType(a0,sipType_Qt_Alignment,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_setAlignment, doc_QTextOption_setAlignment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_setFlags, "QTextOption.setFlags(QTextOption.Flags)");

extern "C" {static PyObject *meth_QTextOption_setFlags(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_setFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextOption::Flags* a0;
        int a0State = 0;
        QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextOption, &sipCpp, sipType_QTextOption_Flags, &a0, &a0State))
        {
            sipCpp->setFlags(*a0);
            sipReleaseType(a0,sipType_QTextOption_Flags,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_setFlags, doc_QTextOption_setFlags);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_setTabStop, "QTextOption.setTabStop(float)");

extern "C" {static PyObject *meth_QTextOption_setTabStop(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_setTabStop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextOption, &sipCpp, &a0))
        {
            sipCpp->setTabStop(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_setTabStop, doc_QTextOption_setTabStop);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_setTabs, "QTextOption.setTabs(list-of-QTextOption.Tab)");

extern "C" {static PyObject *meth_QTextOption_setTabs(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_setTabs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QTextOption::Tab>* a0;
        int a0State = 0;
        QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextOption, &sipCpp, sipType_QList_0100QTextOption_Tab,&a0, &a0State))
        {
            sipCpp->setTabs(*a0);
            sipReleaseType(const_cast<QList<QTextOption::Tab> *>(a0),sipType_QList_0100QTextOption_Tab,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_setTabs, doc_QTextOption_setTabs);

    return NULL;
}


PyDoc_STRVAR(doc_QTextOption_tabs, "QTextOption.tabs() -> list-of-QTextOption.Tab");

extern "C" {static PyObject *meth_QTextOption_tabs(PyObject *, PyObject *);}
static PyObject *meth_QTextOption_tabs(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextOption, &sipCpp))
        {
            QList<QTextOption::Tab>*sipRes;

            sipRes = new QList<QTextOption::Tab>(sipCpp->tabs());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QTextOption_Tab,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextOption, sipName_tabs, doc_QTextOption_tabs);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextOption(void *, const sipTypeDef *);}
static void *cast_QTextOption(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextOption)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextOption(void *, int);}
static void release_QTextOption(void *sipCppV,int)
{
    delete reinterpret_cast<QTextOption *>(sipCppV);
}


extern "C" {static void assign_QTextOption(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextOption(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextOption *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextOption *>(sipSrc);
}


extern "C" {static void *array_QTextOption(SIP_SSIZE_T);}
static void *array_QTextOption(SIP_SSIZE_T sipNrElem)
{
    return new QTextOption[sipNrElem];
}


extern "C" {static void *copy_QTextOption(const void *, SIP_SSIZE_T);}
static void *copy_QTextOption(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextOption(reinterpret_cast<const QTextOption *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextOption(sipSimpleWrapper *);}
static void dealloc_QTextOption(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextOption(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextOption(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextOption(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextOption *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextOption();

            return sipCpp;
        }
    }

    {
        Qt::Alignment* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_Qt_Alignment, &a0, &a0State))
        {
            sipCpp = new QTextOption(*a0);
            sipReleaseType(a0,sipType_Qt_Alignment,a0State);

            return sipCpp;
        }
    }

    {
        const QTextOption* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextOption, &a0))
        {
            sipCpp = new QTextOption(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QTextOption[] = {
    {SIP_MLNAME_CAST(sipName_alignment), meth_QTextOption_alignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_alignment)},
    {SIP_MLNAME_CAST(sipName_flags), meth_QTextOption_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_flags)},
    {SIP_MLNAME_CAST(sipName_setAlignment), meth_QTextOption_setAlignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_setAlignment)},
    {SIP_MLNAME_CAST(sipName_setFlags), meth_QTextOption_setFlags, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_setFlags)},
    {SIP_MLNAME_CAST(sipName_setTabArray), meth_QTextOption_setTabArray, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_setTabArray)},
    {SIP_MLNAME_CAST(sipName_setTabStop), meth_QTextOption_setTabStop, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_setTabStop)},
    {SIP_MLNAME_CAST(sipName_setTabs), meth_QTextOption_setTabs, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_setTabs)},
    {SIP_MLNAME_CAST(sipName_setTextDirection), meth_QTextOption_setTextDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_setTextDirection)},
    {SIP_MLNAME_CAST(sipName_setUseDesignMetrics), meth_QTextOption_setUseDesignMetrics, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_setUseDesignMetrics)},
    {SIP_MLNAME_CAST(sipName_setWrapMode), meth_QTextOption_setWrapMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_setWrapMode)},
    {SIP_MLNAME_CAST(sipName_tabArray), meth_QTextOption_tabArray, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_tabArray)},
    {SIP_MLNAME_CAST(sipName_tabStop), meth_QTextOption_tabStop, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_tabStop)},
    {SIP_MLNAME_CAST(sipName_tabs), meth_QTextOption_tabs, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_tabs)},
    {SIP_MLNAME_CAST(sipName_textDirection), meth_QTextOption_textDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_textDirection)},
    {SIP_MLNAME_CAST(sipName_useDesignMetrics), meth_QTextOption_useDesignMetrics, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_useDesignMetrics)},
    {SIP_MLNAME_CAST(sipName_wrapMode), meth_QTextOption_wrapMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextOption_wrapMode)}
};

static sipEnumMemberDef enummembers_QTextOption[] = {
    {sipName_AddSpaceForLineAndParagraphSeparators, static_cast<int>(QTextOption::AddSpaceForLineAndParagraphSeparators), 322},
    {sipName_CenterTab, static_cast<int>(QTextOption::CenterTab), 325},
    {sipName_DelimiterTab, static_cast<int>(QTextOption::DelimiterTab), 325},
    {sipName_IncludeTrailingSpaces, static_cast<int>(QTextOption::IncludeTrailingSpaces), 322},
    {sipName_LeftTab, static_cast<int>(QTextOption::LeftTab), 325},
    {sipName_ManualWrap, static_cast<int>(QTextOption::ManualWrap), 326},
    {sipName_NoWrap, static_cast<int>(QTextOption::NoWrap), 326},
    {sipName_RightTab, static_cast<int>(QTextOption::RightTab), 325},
    {sipName_ShowLineAndParagraphSeparators, static_cast<int>(QTextOption::ShowLineAndParagraphSeparators), 322},
    {sipName_ShowTabsAndSpaces, static_cast<int>(QTextOption::ShowTabsAndSpaces), 322},
    {sipName_SuppressColors, static_cast<int>(QTextOption::SuppressColors), 322},
    {sipName_WordWrap, static_cast<int>(QTextOption::WordWrap), 326},
    {sipName_WrapAnywhere, static_cast<int>(QTextOption::WrapAnywhere), 326},
    {sipName_WrapAtWordBoundaryOrAnywhere, static_cast<int>(QTextOption::WrapAtWordBoundaryOrAnywhere), 326},
};

PyDoc_STRVAR(doc_QTextOption, "\1QTextOption()\n"
    "QTextOption(Qt.Alignment)\n"
    "QTextOption(QTextOption)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextOption = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextOption,
        {0}
    },
    {
        sipNameNr_QTextOption,
        {0, 0, 1},
        16, methods_QTextOption,
        14, enummembers_QTextOption,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextOption,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTextOption,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextOption,
    assign_QTextOption,
    array_QTextOption,
    copy_QTextOption,
    release_QTextOption,
    cast_QTextOption,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 259 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 29407 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



class sipQTextBlockUserData : public QTextBlockUserData
{
public:
    sipQTextBlockUserData();
    sipQTextBlockUserData(const QTextBlockUserData&);
    ~sipQTextBlockUserData();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTextBlockUserData(const sipQTextBlockUserData &);
    sipQTextBlockUserData &operator = (const sipQTextBlockUserData &);
};

sipQTextBlockUserData::sipQTextBlockUserData(): QTextBlockUserData(), sipPySelf(0)
{
}

sipQTextBlockUserData::sipQTextBlockUserData(const QTextBlockUserData& a0): QTextBlockUserData(a0), sipPySelf(0)
{
}

sipQTextBlockUserData::~sipQTextBlockUserData()
{
    sipCommonDtor(sipPySelf);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextBlockUserData(void *, const sipTypeDef *);}
static void *cast_QTextBlockUserData(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextBlockUserData)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextBlockUserData(void *, int);}
static void release_QTextBlockUserData(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQTextBlockUserData *>(sipCppV);
    else
        delete reinterpret_cast<QTextBlockUserData *>(sipCppV);
}


extern "C" {static void assign_QTextBlockUserData(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextBlockUserData(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextBlockUserData *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextBlockUserData *>(sipSrc);
}


extern "C" {static void *array_QTextBlockUserData(SIP_SSIZE_T);}
static void *array_QTextBlockUserData(SIP_SSIZE_T sipNrElem)
{
    return new QTextBlockUserData[sipNrElem];
}


extern "C" {static void *copy_QTextBlockUserData(const void *, SIP_SSIZE_T);}
static void *copy_QTextBlockUserData(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextBlockUserData(reinterpret_cast<const QTextBlockUserData *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextBlockUserData(sipSimpleWrapper *);}
static void dealloc_QTextBlockUserData(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTextBlockUserData *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTextBlockUserData(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTextBlockUserData(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextBlockUserData(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQTextBlockUserData *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQTextBlockUserData();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QTextBlockUserData* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextBlockUserData, &a0))
        {
            sipCpp = new sipQTextBlockUserData(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}

PyDoc_STRVAR(doc_QTextBlockUserData, "\1QTextBlockUserData()\n"
    "QTextBlockUserData(QTextBlockUserData)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextBlockUserData = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextBlockUserData,
        {0}
    },
    {
        sipNameNr_QTextBlockUserData,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextBlockUserData,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_QTextBlockUserData,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextBlockUserData,
    assign_QTextBlockUserData,
    array_QTextBlockUserData,
    copy_QTextBlockUserData,
    release_QTextBlockUserData,
    cast_QTextBlockUserData,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 235 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 29589 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 29593 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 29596 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 29599 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 29602 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextFragment_isValid, "QTextFragment.isValid() -> bool");

extern "C" {static PyObject *meth_QTextFragment_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextFragment_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFragment, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFragment, sipName_isValid, doc_QTextFragment_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFragment_position, "QTextFragment.position() -> int");

extern "C" {static PyObject *meth_QTextFragment_position(PyObject *, PyObject *);}
static PyObject *meth_QTextFragment_position(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFragment, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->position();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFragment, sipName_position, doc_QTextFragment_position);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFragment_length, "QTextFragment.length() -> int");

extern "C" {static PyObject *meth_QTextFragment_length(PyObject *, PyObject *);}
static PyObject *meth_QTextFragment_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFragment, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->length();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFragment, sipName_length, doc_QTextFragment_length);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFragment_contains, "QTextFragment.contains(int) -> bool");

extern "C" {static PyObject *meth_QTextFragment_contains(PyObject *, PyObject *);}
static PyObject *meth_QTextFragment_contains(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFragment, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->contains(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFragment, sipName_contains, doc_QTextFragment_contains);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFragment_charFormat, "QTextFragment.charFormat() -> QTextCharFormat");

extern "C" {static PyObject *meth_QTextFragment_charFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFragment_charFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFragment, &sipCpp))
        {
            QTextCharFormat*sipRes;

            sipRes = new QTextCharFormat(sipCpp->charFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextCharFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFragment, sipName_charFormat, doc_QTextFragment_charFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFragment_charFormatIndex, "QTextFragment.charFormatIndex() -> int");

extern "C" {static PyObject *meth_QTextFragment_charFormatIndex(PyObject *, PyObject *);}
static PyObject *meth_QTextFragment_charFormatIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFragment, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->charFormatIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFragment, sipName_charFormatIndex, doc_QTextFragment_charFormatIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFragment_text, "QTextFragment.text() -> str");

extern "C" {static PyObject *meth_QTextFragment_text(PyObject *, PyObject *);}
static PyObject *meth_QTextFragment_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFragment, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFragment, sipName_text, doc_QTextFragment_text);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFragment_glyphRuns, "QTextFragment.glyphRuns(int from=-1, int length=-1) -> list-of-QGlyphRun");

extern "C" {static PyObject *meth_QTextFragment_glyphRuns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFragment_glyphRuns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = -1;
        int a1 = -1;
        const QTextFragment *sipCpp;

        static const char *sipKwdList[] = {
            sipName_from,
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|ii", &sipSelf, sipType_QTextFragment, &sipCpp, &a0, &a1))
        {
            QList<QGlyphRun>*sipRes;

            sipRes = new QList<QGlyphRun>(sipCpp->glyphRuns(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QList_0100QGlyphRun,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFragment, sipName_glyphRuns, doc_QTextFragment_glyphRuns);

    return NULL;
}


extern "C" {static PyObject *slot_QTextFragment___ge__(PyObject *,PyObject *);}
static PyObject *slot_QTextFragment___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFragment *sipCpp = reinterpret_cast<QTextFragment *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFragment));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFragment* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextFragment, &a0))
        {
            bool sipRes;

            sipRes = !sipCpp->QTextFragment::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ge_slot,sipType_QTextFragment,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextFragment___lt__(PyObject *,PyObject *);}
static PyObject *slot_QTextFragment___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFragment *sipCpp = reinterpret_cast<QTextFragment *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFragment));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFragment* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextFragment, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextFragment::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,lt_slot,sipType_QTextFragment,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextFragment___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextFragment___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFragment *sipCpp = reinterpret_cast<QTextFragment *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFragment));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFragment* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextFragment, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextFragment::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextFragment,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextFragment___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextFragment___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFragment *sipCpp = reinterpret_cast<QTextFragment *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFragment));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFragment* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextFragment, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextFragment::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextFragment,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextFragment(void *, const sipTypeDef *);}
static void *cast_QTextFragment(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextFragment)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextFragment(void *, int);}
static void release_QTextFragment(void *sipCppV,int)
{
    delete reinterpret_cast<QTextFragment *>(sipCppV);
}


extern "C" {static void assign_QTextFragment(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextFragment(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextFragment *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextFragment *>(sipSrc);
}


extern "C" {static void *array_QTextFragment(SIP_SSIZE_T);}
static void *array_QTextFragment(SIP_SSIZE_T sipNrElem)
{
    return new QTextFragment[sipNrElem];
}


extern "C" {static void *copy_QTextFragment(const void *, SIP_SSIZE_T);}
static void *copy_QTextFragment(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextFragment(reinterpret_cast<const QTextFragment *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextFragment(sipSimpleWrapper *);}
static void dealloc_QTextFragment(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextFragment(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextFragment(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextFragment(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextFragment *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextFragment();

            return sipCpp;
        }
    }

    {
        const QTextFragment* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextFragment, &a0))
        {
            sipCpp = new QTextFragment(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextFragment[] = {
    {(void *)slot_QTextFragment___ge__, ge_slot},
    {(void *)slot_QTextFragment___lt__, lt_slot},
    {(void *)slot_QTextFragment___ne__, ne_slot},
    {(void *)slot_QTextFragment___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTextFragment[] = {
    {SIP_MLNAME_CAST(sipName_charFormat), meth_QTextFragment_charFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFragment_charFormat)},
    {SIP_MLNAME_CAST(sipName_charFormatIndex), meth_QTextFragment_charFormatIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFragment_charFormatIndex)},
    {SIP_MLNAME_CAST(sipName_contains), meth_QTextFragment_contains, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFragment_contains)},
    {SIP_MLNAME_CAST(sipName_glyphRuns), (PyCFunction)meth_QTextFragment_glyphRuns, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextFragment_glyphRuns)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextFragment_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFragment_isValid)},
    {SIP_MLNAME_CAST(sipName_length), meth_QTextFragment_length, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFragment_length)},
    {SIP_MLNAME_CAST(sipName_position), meth_QTextFragment_position, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFragment_position)},
    {SIP_MLNAME_CAST(sipName_text), meth_QTextFragment_text, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFragment_text)}
};

PyDoc_STRVAR(doc_QTextFragment, "\1QTextFragment()\n"
    "QTextFragment(QTextFragment)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextFragment = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextFragment,
        {0}
    },
    {
        sipNameNr_QTextFragment,
        {0, 0, 1},
        8, methods_QTextFragment,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextFragment,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextFragment,
    init_type_QTextFragment,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextFragment,
    assign_QTextFragment,
    array_QTextFragment,
    copy_QTextFragment,
    release_QTextFragment,
    cast_QTextFragment,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 154 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 30120 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 235 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 30124 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextBlock_iterator_fragment, "QTextBlock.iterator.fragment() -> QTextFragment");

extern "C" {static PyObject *meth_QTextBlock_iterator_fragment(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_iterator_fragment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock::iterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock_iterator, &sipCpp))
        {
            QTextFragment*sipRes;

            sipRes = new QTextFragment(sipCpp->fragment());

            return sipConvertFromNewType(sipRes,sipType_QTextFragment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_iterator, sipName_fragment, doc_QTextBlock_iterator_fragment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_iterator_atEnd, "QTextBlock.iterator.atEnd() -> bool");

extern "C" {static PyObject *meth_QTextBlock_iterator_atEnd(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_iterator_atEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock::iterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock_iterator, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->atEnd();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_iterator, sipName_atEnd, doc_QTextBlock_iterator_atEnd);

    return NULL;
}


extern "C" {static PyObject *slot_QTextBlock_iterator___isub__(PyObject *,PyObject *);}
static PyObject *slot_QTextBlock_iterator___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextBlock_iterator)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextBlock::iterator *sipCpp = reinterpret_cast<QTextBlock::iterator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextBlock_iterator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 176 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
            if (a0 > 0)
                while (a0--)
                    (*sipCpp)--;
            else if (a0 < 0)
                while (a0++)
                    (*sipCpp)++;
#line 30209 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextBlock_iterator___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QTextBlock_iterator___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextBlock_iterator)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextBlock::iterator *sipCpp = reinterpret_cast<QTextBlock::iterator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextBlock_iterator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 166 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
            if (a0 > 0)
                while (a0--)
                    (*sipCpp)++;
            else if (a0 < 0)
                while (a0++)
                    (*sipCpp)--;
#line 30256 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextBlock_iterator___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextBlock_iterator___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextBlock::iterator *sipCpp = reinterpret_cast<QTextBlock::iterator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextBlock_iterator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextBlock::iterator* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextBlock_iterator, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextBlock::iterator::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextBlock_iterator,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextBlock_iterator___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextBlock_iterator___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextBlock::iterator *sipCpp = reinterpret_cast<QTextBlock::iterator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextBlock_iterator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextBlock::iterator* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextBlock_iterator, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextBlock::iterator::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextBlock_iterator,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextBlock_iterator(void *, const sipTypeDef *);}
static void *cast_QTextBlock_iterator(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextBlock_iterator)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextBlock_iterator(void *, int);}
static void release_QTextBlock_iterator(void *sipCppV,int)
{
    delete reinterpret_cast<QTextBlock::iterator *>(sipCppV);
}


extern "C" {static void assign_QTextBlock_iterator(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextBlock_iterator(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextBlock::iterator *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextBlock::iterator *>(sipSrc);
}


extern "C" {static void *array_QTextBlock_iterator(SIP_SSIZE_T);}
static void *array_QTextBlock_iterator(SIP_SSIZE_T sipNrElem)
{
    return new QTextBlock::iterator[sipNrElem];
}


extern "C" {static void *copy_QTextBlock_iterator(const void *, SIP_SSIZE_T);}
static void *copy_QTextBlock_iterator(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextBlock::iterator(reinterpret_cast<const QTextBlock::iterator *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextBlock_iterator(sipSimpleWrapper *);}
static void dealloc_QTextBlock_iterator(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextBlock_iterator(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextBlock_iterator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextBlock_iterator(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextBlock::iterator *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextBlock::iterator();

            return sipCpp;
        }
    }

    {
        const QTextBlock::iterator* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextBlock_iterator, &a0))
        {
            sipCpp = new QTextBlock::iterator(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextBlock_iterator[] = {
    {(void *)slot_QTextBlock_iterator___isub__, isub_slot},
    {(void *)slot_QTextBlock_iterator___iadd__, iadd_slot},
    {(void *)slot_QTextBlock_iterator___ne__, ne_slot},
    {(void *)slot_QTextBlock_iterator___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTextBlock_iterator[] = {
    {SIP_MLNAME_CAST(sipName_atEnd), meth_QTextBlock_iterator_atEnd, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_iterator_atEnd)},
    {SIP_MLNAME_CAST(sipName_fragment), meth_QTextBlock_iterator_fragment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_iterator_fragment)}
};

PyDoc_STRVAR(doc_QTextBlock_iterator, "\1QTextBlock.iterator()\n"
    "QTextBlock.iterator(QTextBlock.iterator)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextBlock_iterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextBlock__iterator,
        {0}
    },
    {
        sipNameNr_iterator,
        {269, 255, 0},
        2, methods_QTextBlock_iterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextBlock_iterator,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextBlock_iterator,
    init_type_QTextBlock_iterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextBlock_iterator,
    assign_QTextBlock_iterator,
    array_QTextBlock_iterator,
    copy_QTextBlock_iterator,
    release_QTextBlock_iterator,
    cast_QTextBlock_iterator,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 30494 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 30498 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 30503 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 30506 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 259 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 30509 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 154 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 30514 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlist.sip"
#include <qtextlist.h>
#line 30517 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 30520 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 30523 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 30526 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 30529 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 30532 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextBlock_isValid, "QTextBlock.isValid() -> bool");

extern "C" {static PyObject *meth_QTextBlock_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_isValid, doc_QTextBlock_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_position, "QTextBlock.position() -> int");

extern "C" {static PyObject *meth_QTextBlock_position(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_position(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->position();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_position, doc_QTextBlock_position);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_length, "QTextBlock.length() -> int");

extern "C" {static PyObject *meth_QTextBlock_length(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->length();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_length, doc_QTextBlock_length);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_contains, "QTextBlock.contains(int) -> bool");

extern "C" {static PyObject *meth_QTextBlock_contains(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_contains(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextBlock, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->contains(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_contains, doc_QTextBlock_contains);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_layout, "QTextBlock.layout() -> QTextLayout");

extern "C" {static PyObject *meth_QTextBlock_layout(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_layout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QTextLayout*sipRes;

            sipRes = sipCpp->layout();

            return sipConvertFromType(sipRes,sipType_QTextLayout,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_layout, doc_QTextBlock_layout);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_blockFormat, "QTextBlock.blockFormat() -> QTextBlockFormat");

extern "C" {static PyObject *meth_QTextBlock_blockFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_blockFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QTextBlockFormat*sipRes;

            sipRes = new QTextBlockFormat(sipCpp->blockFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextBlockFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_blockFormat, doc_QTextBlock_blockFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_blockFormatIndex, "QTextBlock.blockFormatIndex() -> int");

extern "C" {static PyObject *meth_QTextBlock_blockFormatIndex(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_blockFormatIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->blockFormatIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_blockFormatIndex, doc_QTextBlock_blockFormatIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_charFormat, "QTextBlock.charFormat() -> QTextCharFormat");

extern "C" {static PyObject *meth_QTextBlock_charFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_charFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QTextCharFormat*sipRes;

            sipRes = new QTextCharFormat(sipCpp->charFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextCharFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_charFormat, doc_QTextBlock_charFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_charFormatIndex, "QTextBlock.charFormatIndex() -> int");

extern "C" {static PyObject *meth_QTextBlock_charFormatIndex(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_charFormatIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->charFormatIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_charFormatIndex, doc_QTextBlock_charFormatIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_text, "QTextBlock.text() -> str");

extern "C" {static PyObject *meth_QTextBlock_text(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_text, doc_QTextBlock_text);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_document, "QTextBlock.document() -> QTextDocument");

extern "C" {static PyObject *meth_QTextBlock_document(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_document(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            const QTextDocument*sipRes;

            sipRes = sipCpp->document();

            return sipConvertFromType(const_cast<QTextDocument *>(sipRes),sipType_QTextDocument,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_document, doc_QTextBlock_document);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_textList, "QTextBlock.textList() -> QTextList");

extern "C" {static PyObject *meth_QTextBlock_textList(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_textList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QTextList*sipRes;

            sipRes = sipCpp->textList();

            return sipConvertFromType(sipRes,sipType_QTextList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_textList, doc_QTextBlock_textList);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_begin, "QTextBlock.begin() -> QTextBlock.iterator");

extern "C" {static PyObject *meth_QTextBlock_begin(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_begin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QTextBlock::iterator*sipRes;

            sipRes = new QTextBlock::iterator(sipCpp->begin());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock_iterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_begin, doc_QTextBlock_begin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_end, "QTextBlock.end() -> QTextBlock.iterator");

extern "C" {static PyObject *meth_QTextBlock_end(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_end(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QTextBlock::iterator*sipRes;

            sipRes = new QTextBlock::iterator(sipCpp->end());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock_iterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_end, doc_QTextBlock_end);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_next, "QTextBlock.next() -> QTextBlock");

extern "C" {static PyObject *meth_QTextBlock_next(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_next(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->next());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_next, doc_QTextBlock_next);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_previous, "QTextBlock.previous() -> QTextBlock");

extern "C" {static PyObject *meth_QTextBlock_previous(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_previous(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->previous());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_previous, doc_QTextBlock_previous);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_userData, "QTextBlock.userData() -> QTextBlockUserData");

extern "C" {static PyObject *meth_QTextBlock_userData(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_userData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QTextBlockUserData*sipRes;

            sipRes = sipCpp->userData();

            return sipConvertFromType(sipRes,sipType_QTextBlockUserData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_userData, doc_QTextBlock_userData);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_setUserData, "QTextBlock.setUserData(QTextBlockUserData)");

extern "C" {static PyObject *meth_QTextBlock_setUserData(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_setUserData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextBlockUserData* a0;
        PyObject *a0Wrapper;
        QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QTextBlock, &sipCpp, &a0Wrapper, sipType_QTextBlockUserData, &a0))
        {
            int sipIsErr = 0;

#line 193 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
        // Ownership of the user data is with the document not the text block.
        const QTextDocument *td = sipCpp->document();
        
        if (td)
        {
            PyObject *py_td = qtgui_wrap_ancestors(const_cast<QTextDocument *>(td),
                    sipType_QTextDocument);
        
            if (!py_td)
            {
                sipIsErr = 1;
            }
            else
            {
                sipTransferTo(a0Wrapper, py_td);
                Py_DECREF(py_td);
            }
        }
        
        sipCpp->setUserData(a0);
#line 31032 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_setUserData, doc_QTextBlock_setUserData);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_userState, "QTextBlock.userState() -> int");

extern "C" {static PyObject *meth_QTextBlock_userState(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_userState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->userState();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_userState, doc_QTextBlock_userState);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_setUserState, "QTextBlock.setUserState(int)");

extern "C" {static PyObject *meth_QTextBlock_setUserState(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_setUserState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextBlock, &sipCpp, &a0))
        {
            sipCpp->setUserState(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_setUserState, doc_QTextBlock_setUserState);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_clearLayout, "QTextBlock.clearLayout()");

extern "C" {static PyObject *meth_QTextBlock_clearLayout(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_clearLayout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            sipCpp->clearLayout();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_clearLayout, doc_QTextBlock_clearLayout);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_revision, "QTextBlock.revision() -> int");

extern "C" {static PyObject *meth_QTextBlock_revision(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_revision(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->revision();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_revision, doc_QTextBlock_revision);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_setRevision, "QTextBlock.setRevision(int)");

extern "C" {static PyObject *meth_QTextBlock_setRevision(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_setRevision(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextBlock, &sipCpp, &a0))
        {
            sipCpp->setRevision(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_setRevision, doc_QTextBlock_setRevision);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_isVisible, "QTextBlock.isVisible() -> bool");

extern "C" {static PyObject *meth_QTextBlock_isVisible(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_isVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isVisible();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_isVisible, doc_QTextBlock_isVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_setVisible, "QTextBlock.setVisible(bool)");

extern "C" {static PyObject *meth_QTextBlock_setVisible(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_setVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextBlock, &sipCpp, &a0))
        {
            sipCpp->setVisible(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_setVisible, doc_QTextBlock_setVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_blockNumber, "QTextBlock.blockNumber() -> int");

extern "C" {static PyObject *meth_QTextBlock_blockNumber(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_blockNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->blockNumber();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_blockNumber, doc_QTextBlock_blockNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_firstLineNumber, "QTextBlock.firstLineNumber() -> int");

extern "C" {static PyObject *meth_QTextBlock_firstLineNumber(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_firstLineNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->firstLineNumber();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_firstLineNumber, doc_QTextBlock_firstLineNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_setLineCount, "QTextBlock.setLineCount(int)");

extern "C" {static PyObject *meth_QTextBlock_setLineCount(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_setLineCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextBlock, &sipCpp, &a0))
        {
            sipCpp->setLineCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_setLineCount, doc_QTextBlock_setLineCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_lineCount, "QTextBlock.lineCount() -> int");

extern "C" {static PyObject *meth_QTextBlock_lineCount(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_lineCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->lineCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_lineCount, doc_QTextBlock_lineCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_textDirection, "QTextBlock.textDirection() -> Qt.LayoutDirection");

extern "C" {static PyObject *meth_QTextBlock_textDirection(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_textDirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            Qt::LayoutDirection sipRes;

            sipRes = sipCpp->textDirection();

            return sipConvertFromEnum(sipRes,sipType_Qt_LayoutDirection);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_textDirection, doc_QTextBlock_textDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlock_textFormats, "QTextBlock.textFormats() -> list-of-QTextLayout.FormatRange");

extern "C" {static PyObject *meth_QTextBlock_textFormats(PyObject *, PyObject *);}
static PyObject *meth_QTextBlock_textFormats(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlock, &sipCpp))
        {
            QVector<QTextLayout::FormatRange>*sipRes;

            sipRes = new QVector<QTextLayout::FormatRange>(sipCpp->textFormats());

            return sipConvertFromNewType(sipRes,sipType_QVector_0100QTextLayout_FormatRange,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlock, sipName_textFormats, doc_QTextBlock_textFormats);

    return NULL;
}


extern "C" {static PyObject *slot_QTextBlock___ge__(PyObject *,PyObject *);}
static PyObject *slot_QTextBlock___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextBlock *sipCpp = reinterpret_cast<QTextBlock *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextBlock));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextBlock* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextBlock, &a0))
        {
            bool sipRes;

            sipRes = !sipCpp->QTextBlock::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ge_slot,sipType_QTextBlock,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextBlock___lt__(PyObject *,PyObject *);}
static PyObject *slot_QTextBlock___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextBlock *sipCpp = reinterpret_cast<QTextBlock *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextBlock));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextBlock* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextBlock, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextBlock::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,lt_slot,sipType_QTextBlock,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextBlock___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextBlock___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextBlock *sipCpp = reinterpret_cast<QTextBlock *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextBlock));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextBlock* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextBlock, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextBlock::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextBlock,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextBlock___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextBlock___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextBlock *sipCpp = reinterpret_cast<QTextBlock *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextBlock));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextBlock* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextBlock, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextBlock::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextBlock,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextBlock(void *, const sipTypeDef *);}
static void *cast_QTextBlock(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextBlock)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextBlock(void *, int);}
static void release_QTextBlock(void *sipCppV,int)
{
    delete reinterpret_cast<QTextBlock *>(sipCppV);
}


extern "C" {static void assign_QTextBlock(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextBlock(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextBlock *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextBlock *>(sipSrc);
}


extern "C" {static void *array_QTextBlock(SIP_SSIZE_T);}
static void *array_QTextBlock(SIP_SSIZE_T sipNrElem)
{
    return new QTextBlock[sipNrElem];
}


extern "C" {static void *copy_QTextBlock(const void *, SIP_SSIZE_T);}
static void *copy_QTextBlock(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextBlock(reinterpret_cast<const QTextBlock *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextBlock(sipSimpleWrapper *);}
static void dealloc_QTextBlock(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextBlock(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextBlock(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextBlock(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextBlock *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextBlock();

            return sipCpp;
        }
    }

    {
        const QTextBlock* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextBlock, &a0))
        {
            sipCpp = new QTextBlock(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextBlock[] = {
    {(void *)slot_QTextBlock___ge__, ge_slot},
    {(void *)slot_QTextBlock___lt__, lt_slot},
    {(void *)slot_QTextBlock___ne__, ne_slot},
    {(void *)slot_QTextBlock___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTextBlock[] = {
    {SIP_MLNAME_CAST(sipName_begin), meth_QTextBlock_begin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_begin)},
    {SIP_MLNAME_CAST(sipName_blockFormat), meth_QTextBlock_blockFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_blockFormat)},
    {SIP_MLNAME_CAST(sipName_blockFormatIndex), meth_QTextBlock_blockFormatIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_blockFormatIndex)},
    {SIP_MLNAME_CAST(sipName_blockNumber), meth_QTextBlock_blockNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_blockNumber)},
    {SIP_MLNAME_CAST(sipName_charFormat), meth_QTextBlock_charFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_charFormat)},
    {SIP_MLNAME_CAST(sipName_charFormatIndex), meth_QTextBlock_charFormatIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_charFormatIndex)},
    {SIP_MLNAME_CAST(sipName_clearLayout), meth_QTextBlock_clearLayout, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_clearLayout)},
    {SIP_MLNAME_CAST(sipName_contains), meth_QTextBlock_contains, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_contains)},
    {SIP_MLNAME_CAST(sipName_document), meth_QTextBlock_document, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_document)},
    {SIP_MLNAME_CAST(sipName_end), meth_QTextBlock_end, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_end)},
    {SIP_MLNAME_CAST(sipName_firstLineNumber), meth_QTextBlock_firstLineNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_firstLineNumber)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextBlock_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_isValid)},
    {SIP_MLNAME_CAST(sipName_isVisible), meth_QTextBlock_isVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_isVisible)},
    {SIP_MLNAME_CAST(sipName_layout), meth_QTextBlock_layout, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_layout)},
    {SIP_MLNAME_CAST(sipName_length), meth_QTextBlock_length, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_length)},
    {SIP_MLNAME_CAST(sipName_lineCount), meth_QTextBlock_lineCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_lineCount)},
    {SIP_MLNAME_CAST(sipName_next), meth_QTextBlock_next, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_next)},
    {SIP_MLNAME_CAST(sipName_position), meth_QTextBlock_position, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_position)},
    {SIP_MLNAME_CAST(sipName_previous), meth_QTextBlock_previous, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_previous)},
    {SIP_MLNAME_CAST(sipName_revision), meth_QTextBlock_revision, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_revision)},
    {SIP_MLNAME_CAST(sipName_setLineCount), meth_QTextBlock_setLineCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_setLineCount)},
    {SIP_MLNAME_CAST(sipName_setRevision), meth_QTextBlock_setRevision, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_setRevision)},
    {SIP_MLNAME_CAST(sipName_setUserData), meth_QTextBlock_setUserData, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_setUserData)},
    {SIP_MLNAME_CAST(sipName_setUserState), meth_QTextBlock_setUserState, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_setUserState)},
    {SIP_MLNAME_CAST(sipName_setVisible), meth_QTextBlock_setVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_setVisible)},
    {SIP_MLNAME_CAST(sipName_text), meth_QTextBlock_text, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_text)},
    {SIP_MLNAME_CAST(sipName_textDirection), meth_QTextBlock_textDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_textDirection)},
    {SIP_MLNAME_CAST(sipName_textFormats), meth_QTextBlock_textFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_textFormats)},
    {SIP_MLNAME_CAST(sipName_textList), meth_QTextBlock_textList, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_textList)},
    {SIP_MLNAME_CAST(sipName_userData), meth_QTextBlock_userData, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_userData)},
    {SIP_MLNAME_CAST(sipName_userState), meth_QTextBlock_userState, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlock_userState)}
};

PyDoc_STRVAR(doc_QTextBlock, "\1QTextBlock()\n"
    "QTextBlock(QTextBlock)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextBlock = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextBlock,
        {0}
    },
    {
        sipNameNr_QTextBlock,
        {0, 0, 1},
        31, methods_QTextBlock,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextBlock,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_QTextBlock,
    init_type_QTextBlock,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextBlock,
    assign_QTextBlock,
    array_QTextBlock,
    copy_QTextBlock,
    release_QTextBlock,
    cast_QTextBlock,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 82 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 31713 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 31717 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 31720 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextFrame_iterator_parentFrame, "QTextFrame.iterator.parentFrame() -> QTextFrame");

extern "C" {static PyObject *meth_QTextFrame_iterator_parentFrame(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_iterator_parentFrame(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame::iterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame_iterator, &sipCpp))
        {
            QTextFrame*sipRes;

            sipRes = sipCpp->parentFrame();

            return sipConvertFromType(sipRes,sipType_QTextFrame,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_iterator, sipName_parentFrame, doc_QTextFrame_iterator_parentFrame);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_iterator_currentFrame, "QTextFrame.iterator.currentFrame() -> QTextFrame");

extern "C" {static PyObject *meth_QTextFrame_iterator_currentFrame(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_iterator_currentFrame(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame::iterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame_iterator, &sipCpp))
        {
            QTextFrame*sipRes;

            sipRes = sipCpp->currentFrame();

            return sipConvertFromType(sipRes,sipType_QTextFrame,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_iterator, sipName_currentFrame, doc_QTextFrame_iterator_currentFrame);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_iterator_currentBlock, "QTextFrame.iterator.currentBlock() -> QTextBlock");

extern "C" {static PyObject *meth_QTextFrame_iterator_currentBlock(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_iterator_currentBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame::iterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame_iterator, &sipCpp))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->currentBlock());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_iterator, sipName_currentBlock, doc_QTextFrame_iterator_currentBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_iterator_atEnd, "QTextFrame.iterator.atEnd() -> bool");

extern "C" {static PyObject *meth_QTextFrame_iterator_atEnd(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_iterator_atEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame::iterator *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame_iterator, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->atEnd();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_iterator, sipName_atEnd, doc_QTextFrame_iterator_atEnd);

    return NULL;
}


extern "C" {static PyObject *slot_QTextFrame_iterator___isub__(PyObject *,PyObject *);}
static PyObject *slot_QTextFrame_iterator___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextFrame_iterator)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextFrame::iterator *sipCpp = reinterpret_cast<QTextFrame::iterator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFrame_iterator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 106 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
            if (a0 > 0)
                while (a0--)
                    (*sipCpp)--;
            else if (a0 < 0)
                while (a0++)
                    (*sipCpp)++;
#line 31859 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextFrame_iterator___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QTextFrame_iterator___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextFrame_iterator)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextFrame::iterator *sipCpp = reinterpret_cast<QTextFrame::iterator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFrame_iterator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
#line 96 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
            if (a0 > 0)
                while (a0--)
                    (*sipCpp)++;
            else if (a0 < 0)
                while (a0++)
                    (*sipCpp)--;
#line 31906 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextFrame_iterator___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextFrame_iterator___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFrame::iterator *sipCpp = reinterpret_cast<QTextFrame::iterator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFrame_iterator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFrame::iterator* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextFrame_iterator, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextFrame::iterator::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextFrame_iterator,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextFrame_iterator___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextFrame_iterator___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFrame::iterator *sipCpp = reinterpret_cast<QTextFrame::iterator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFrame_iterator));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFrame::iterator* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextFrame_iterator, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextFrame::iterator::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextFrame_iterator,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextFrame_iterator(void *, const sipTypeDef *);}
static void *cast_QTextFrame_iterator(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextFrame_iterator)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextFrame_iterator(void *, int);}
static void release_QTextFrame_iterator(void *sipCppV,int)
{
    delete reinterpret_cast<QTextFrame::iterator *>(sipCppV);
}


extern "C" {static void assign_QTextFrame_iterator(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextFrame_iterator(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextFrame::iterator *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextFrame::iterator *>(sipSrc);
}


extern "C" {static void *array_QTextFrame_iterator(SIP_SSIZE_T);}
static void *array_QTextFrame_iterator(SIP_SSIZE_T sipNrElem)
{
    return new QTextFrame::iterator[sipNrElem];
}


extern "C" {static void *copy_QTextFrame_iterator(const void *, SIP_SSIZE_T);}
static void *copy_QTextFrame_iterator(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextFrame::iterator(reinterpret_cast<const QTextFrame::iterator *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextFrame_iterator(sipSimpleWrapper *);}
static void dealloc_QTextFrame_iterator(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextFrame_iterator(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextFrame_iterator(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextFrame_iterator(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextFrame::iterator *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextFrame::iterator();

            return sipCpp;
        }
    }

    {
        const QTextFrame::iterator* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextFrame_iterator, &a0))
        {
            sipCpp = new QTextFrame::iterator(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextFrame_iterator[] = {
    {(void *)slot_QTextFrame_iterator___isub__, isub_slot},
    {(void *)slot_QTextFrame_iterator___iadd__, iadd_slot},
    {(void *)slot_QTextFrame_iterator___ne__, ne_slot},
    {(void *)slot_QTextFrame_iterator___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTextFrame_iterator[] = {
    {SIP_MLNAME_CAST(sipName_atEnd), meth_QTextFrame_iterator_atEnd, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_iterator_atEnd)},
    {SIP_MLNAME_CAST(sipName_currentBlock), meth_QTextFrame_iterator_currentBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_iterator_currentBlock)},
    {SIP_MLNAME_CAST(sipName_currentFrame), meth_QTextFrame_iterator_currentFrame, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_iterator_currentFrame)},
    {SIP_MLNAME_CAST(sipName_parentFrame), meth_QTextFrame_iterator_parentFrame, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_iterator_parentFrame)}
};

PyDoc_STRVAR(doc_QTextFrame_iterator, "\1QTextFrame.iterator()\n"
    "QTextFrame.iterator(QTextFrame.iterator)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextFrame_iterator = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextFrame__iterator,
        {0}
    },
    {
        sipNameNr_iterator,
        {298, 255, 0},
        4, methods_QTextFrame_iterator,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextFrame_iterator,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextFrame_iterator,
    init_type_QTextFrame_iterator,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextFrame_iterator,
    assign_QTextFrame_iterator,
    array_QTextFrame_iterator,
    copy_QTextFrame_iterator,
    release_QTextFrame_iterator,
    cast_QTextFrame_iterator,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 32146 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 32150 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 32153 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 82 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 32158 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 32161 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 32164 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 32167 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 32170 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32173 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32176 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 32179 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 32182 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 32185 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 32188 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 32191 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 32194 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 32197 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 32200 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 32203 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 32206 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 32209 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 32212 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 32215 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQTextFrame : public QTextFrame
{
public:
    sipQTextFrame(QTextDocument*);
    virtual ~sipQTextFrame();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtect_setFormat(const QTextFormat&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTextFrame(const sipQTextFrame &);
    sipQTextFrame &operator = (const sipQTextFrame &);

    char sipPyMethods[7];
};

sipQTextFrame::sipQTextFrame(QTextDocument*a0): QTextFrame(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQTextFrame::~sipQTextFrame()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQTextFrame::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextFrame);
}

int sipQTextFrame::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QTextFrame::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QTextFrame,_c,_id,_a);

    return _id;
}

void *sipQTextFrame::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QTextFrame, _clname, &sipCpp) ? sipCpp : QTextFrame::qt_metacast(_clname));
}

void sipQTextFrame::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QTextFrame::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextFrame::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QTextFrame::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextFrame::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QTextFrame::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextFrame::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QTextFrame::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextFrame::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QTextFrame::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQTextFrame::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QTextFrame::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQTextFrame::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QTextFrame::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQTextFrame::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQTextFrame::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQTextFrame::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQTextFrame::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQTextFrame::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQTextFrame::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQTextFrame::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQTextFrame::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQTextFrame::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQTextFrame::sipProtect_setFormat(const QTextFormat& a0)
{
    QTextObject::setFormat(a0);
}


PyDoc_STRVAR(doc_QTextFrame_sender, "QTextFrame.sender() -> QObject");

extern "C" {static PyObject *meth_QTextFrame_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 32509 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_sender, doc_QTextFrame_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_receivers, "QTextFrame.receivers(signal) -> int");

extern "C" {static PyObject *meth_QTextFrame_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTextFrame, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 32568 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_receivers, doc_QTextFrame_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_timerEvent, "QTextFrame.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QTextFrame_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextFrame, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_timerEvent, doc_QTextFrame_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_childEvent, "QTextFrame.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QTextFrame_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextFrame, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_childEvent, doc_QTextFrame_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_customEvent, "QTextFrame.customEvent(QEvent)");

extern "C" {static PyObject *meth_QTextFrame_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextFrame, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_customEvent, doc_QTextFrame_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_connectNotify, "QTextFrame.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextFrame_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextFrame, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_connectNotify, doc_QTextFrame_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_disconnectNotify, "QTextFrame.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextFrame_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextFrame, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_disconnectNotify, doc_QTextFrame_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_senderSignalIndex, "QTextFrame.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QTextFrame_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_senderSignalIndex, doc_QTextFrame_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_isSignalConnected, "QTextFrame.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QTextFrame_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextFrame, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_isSignalConnected, doc_QTextFrame_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_setFormat, "QTextFrame.setFormat(QTextFormat)");

extern "C" {static PyObject *meth_QTextFrame_setFormat(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_setFormat(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat* a0;
        sipQTextFrame *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextFrame, &sipCpp, sipType_QTextFormat, &a0))
        {
            sipCpp->sipProtect_setFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_setFormat, doc_QTextFrame_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_frameFormat, "QTextFrame.frameFormat() -> QTextFrameFormat");

extern "C" {static PyObject *meth_QTextFrame_frameFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_frameFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            QTextFrameFormat*sipRes;

            sipRes = new QTextFrameFormat(sipCpp->frameFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextFrameFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_frameFormat, doc_QTextFrame_frameFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_firstCursorPosition, "QTextFrame.firstCursorPosition() -> QTextCursor");

extern "C" {static PyObject *meth_QTextFrame_firstCursorPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_firstCursorPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->firstCursorPosition());

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_firstCursorPosition, doc_QTextFrame_firstCursorPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_lastCursorPosition, "QTextFrame.lastCursorPosition() -> QTextCursor");

extern "C" {static PyObject *meth_QTextFrame_lastCursorPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_lastCursorPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->lastCursorPosition());

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_lastCursorPosition, doc_QTextFrame_lastCursorPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_firstPosition, "QTextFrame.firstPosition() -> int");

extern "C" {static PyObject *meth_QTextFrame_firstPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_firstPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->firstPosition();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_firstPosition, doc_QTextFrame_firstPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_lastPosition, "QTextFrame.lastPosition() -> int");

extern "C" {static PyObject *meth_QTextFrame_lastPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_lastPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->lastPosition();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_lastPosition, doc_QTextFrame_lastPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_childFrames, "QTextFrame.childFrames() -> list-of-QTextFrame");

extern "C" {static PyObject *meth_QTextFrame_childFrames(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_childFrames(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            QList<QTextFrame*>*sipRes;

            sipRes = new QList<QTextFrame*>(sipCpp->childFrames());

            return sipConvertFromNewType(sipRes,sipType_QList_0101QTextFrame,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_childFrames, doc_QTextFrame_childFrames);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_parentFrame, "QTextFrame.parentFrame() -> QTextFrame");

extern "C" {static PyObject *meth_QTextFrame_parentFrame(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_parentFrame(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            QTextFrame*sipRes;

            sipRes = sipCpp->parentFrame();

            return sipConvertFromType(sipRes,sipType_QTextFrame,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_parentFrame, doc_QTextFrame_parentFrame);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_begin, "QTextFrame.begin() -> QTextFrame.iterator");

extern "C" {static PyObject *meth_QTextFrame_begin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_begin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            QTextFrame::iterator*sipRes;

            sipRes = new QTextFrame::iterator(sipCpp->begin());

            return sipConvertFromNewType(sipRes,sipType_QTextFrame_iterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_begin, doc_QTextFrame_begin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_end, "QTextFrame.end() -> QTextFrame.iterator");

extern "C" {static PyObject *meth_QTextFrame_end(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_end(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrame, &sipCpp))
        {
            QTextFrame::iterator*sipRes;

            sipRes = new QTextFrame::iterator(sipCpp->end());

            return sipConvertFromNewType(sipRes,sipType_QTextFrame_iterator,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_end, doc_QTextFrame_end);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrame_setFrameFormat, "QTextFrame.setFrameFormat(QTextFrameFormat)");

extern "C" {static PyObject *meth_QTextFrame_setFrameFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFrame_setFrameFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat* a0;
        QTextFrame *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextFrame, &sipCpp, sipType_QTextFrameFormat, &a0))
        {
            sipCpp->setFrameFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrame, sipName_setFrameFormat, doc_QTextFrame_setFrameFormat);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextFrame(void *, const sipTypeDef *);}
static void *cast_QTextFrame(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextFrame)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextObject)->ctd_cast((QTextObject *)(QTextFrame *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextFrame(void *, int);}
static void release_QTextFrame(void *sipCppV,int)
{
    QTextFrame *sipCpp = reinterpret_cast<QTextFrame *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QTextFrame(sipSimpleWrapper *);}
static void dealloc_QTextFrame(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTextFrame *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTextFrame(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTextFrame(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextFrame(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQTextFrame *sipCpp = 0;

    {
        QTextDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTextDocument, &a0))
        {
            sipCpp = new sipQTextFrame(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextFrame[] = {{319, 255, 1}};


static PyMethodDef methods_QTextFrame[] = {
    {SIP_MLNAME_CAST(sipName_begin), meth_QTextFrame_begin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_begin)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QTextFrame_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childFrames), meth_QTextFrame_childFrames, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_childFrames)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QTextFrame_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QTextFrame_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QTextFrame_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_end), meth_QTextFrame_end, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_end)},
    {SIP_MLNAME_CAST(sipName_firstCursorPosition), meth_QTextFrame_firstCursorPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_firstCursorPosition)},
    {SIP_MLNAME_CAST(sipName_firstPosition), meth_QTextFrame_firstPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_firstPosition)},
    {SIP_MLNAME_CAST(sipName_frameFormat), meth_QTextFrame_frameFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_frameFormat)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QTextFrame_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_lastCursorPosition), meth_QTextFrame_lastCursorPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_lastCursorPosition)},
    {SIP_MLNAME_CAST(sipName_lastPosition), meth_QTextFrame_lastPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_lastPosition)},
    {SIP_MLNAME_CAST(sipName_parentFrame), meth_QTextFrame_parentFrame, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_parentFrame)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QTextFrame_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QTextFrame_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QTextFrame_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFormat), (PyCFunction)meth_QTextFrame_setFormat, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFrameFormat), meth_QTextFrame_setFrameFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrame_setFrameFormat)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QTextFrame_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QTextFrame, "\1QTextFrame(QTextDocument)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextFrame = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextFrame,
        {0}
    },
    {
        sipNameNr_QTextFrame,
        {0, 0, 1},
        20, methods_QTextFrame,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextFrame,
    -1,
    -1,
    supers_QTextFrame,
    0,
    init_type_QTextFrame,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextFrame,
    0,
    0,
    0,
    release_QTextFrame,
    cast_QTextFrame,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QTextFrame::staticMetaObject,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 33232 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 33236 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 33239 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 33242 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33245 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33248 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33251 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33254 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 33257 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 33260 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 33263 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 33266 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 33269 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 33272 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 33275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 33278 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 33281 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 33284 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 33287 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQTextObject : public QTextObject
{
public:
    sipQTextObject(QTextDocument*);
    virtual ~sipQTextObject();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtect_setFormat(const QTextFormat&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTextObject(const sipQTextObject &);
    sipQTextObject &operator = (const sipQTextObject &);

    char sipPyMethods[7];
};

sipQTextObject::sipQTextObject(QTextDocument*a0): QTextObject(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQTextObject::~sipQTextObject()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQTextObject::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextObject);
}

int sipQTextObject::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QTextObject::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QTextObject,_c,_id,_a);

    return _id;
}

void *sipQTextObject::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QTextObject, _clname, &sipCpp) ? sipCpp : QTextObject::qt_metacast(_clname));
}

void sipQTextObject::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QTextObject::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextObject::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QTextObject::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextObject::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QTextObject::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextObject::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QTextObject::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextObject::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QTextObject::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQTextObject::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QTextObject::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQTextObject::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QTextObject::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQTextObject::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQTextObject::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQTextObject::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQTextObject::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQTextObject::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQTextObject::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQTextObject::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQTextObject::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQTextObject::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQTextObject::sipProtect_setFormat(const QTextFormat& a0)
{
    QTextObject::setFormat(a0);
}


PyDoc_STRVAR(doc_QTextObject_sender, "QTextObject.sender() -> QObject");

extern "C" {static PyObject *meth_QTextObject_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextObject, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 33581 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_sender, doc_QTextObject_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_receivers, "QTextObject.receivers(signal) -> int");

extern "C" {static PyObject *meth_QTextObject_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTextObject, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 33640 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_receivers, doc_QTextObject_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_timerEvent, "QTextObject.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QTextObject_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextObject, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_timerEvent, doc_QTextObject_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_childEvent, "QTextObject.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QTextObject_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextObject, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_childEvent, doc_QTextObject_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_customEvent, "QTextObject.customEvent(QEvent)");

extern "C" {static PyObject *meth_QTextObject_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextObject, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_customEvent, doc_QTextObject_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_connectNotify, "QTextObject.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextObject_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextObject, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_connectNotify, doc_QTextObject_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_disconnectNotify, "QTextObject.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextObject_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextObject, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_disconnectNotify, doc_QTextObject_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_senderSignalIndex, "QTextObject.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QTextObject_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextObject, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_senderSignalIndex, doc_QTextObject_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_isSignalConnected, "QTextObject.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QTextObject_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextObject, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_isSignalConnected, doc_QTextObject_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_setFormat, "QTextObject.setFormat(QTextFormat)");

extern "C" {static PyObject *meth_QTextObject_setFormat(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextObject_setFormat(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat* a0;
        sipQTextObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextObject, &sipCpp, sipType_QTextFormat, &a0))
        {
            sipCpp->sipProtect_setFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_setFormat, doc_QTextObject_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_format, "QTextObject.format() -> QTextFormat");

extern "C" {static PyObject *meth_QTextObject_format(PyObject *, PyObject *);}
static PyObject *meth_QTextObject_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextObject, &sipCpp))
        {
            QTextFormat*sipRes;

            sipRes = new QTextFormat(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QTextFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_format, doc_QTextObject_format);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_formatIndex, "QTextObject.formatIndex() -> int");

extern "C" {static PyObject *meth_QTextObject_formatIndex(PyObject *, PyObject *);}
static PyObject *meth_QTextObject_formatIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextObject, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->formatIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_formatIndex, doc_QTextObject_formatIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_document, "QTextObject.document() -> QTextDocument");

extern "C" {static PyObject *meth_QTextObject_document(PyObject *, PyObject *);}
static PyObject *meth_QTextObject_document(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextObject, &sipCpp))
        {
            QTextDocument*sipRes;

            sipRes = sipCpp->document();

            return sipConvertFromType(sipRes,sipType_QTextDocument,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_document, doc_QTextObject_document);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObject_objectIndex, "QTextObject.objectIndex() -> int");

extern "C" {static PyObject *meth_QTextObject_objectIndex(PyObject *, PyObject *);}
static PyObject *meth_QTextObject_objectIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextObject, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->objectIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObject, sipName_objectIndex, doc_QTextObject_objectIndex);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextObject(void *, const sipTypeDef *);}
static void *cast_QTextObject(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextObject)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QTextObject *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextObject(void *, int);}
static void release_QTextObject(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQTextObject *>(sipCppV);
}


extern "C" {static void dealloc_QTextObject(sipSimpleWrapper *);}
static void dealloc_QTextObject(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTextObject *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTextObject(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTextObject(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextObject(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQTextObject *sipCpp = 0;

    {
        QTextDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTextDocument, &a0))
        {
            sipCpp = new sipQTextObject(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextObject[] = {{162, 0, 1}};


static PyMethodDef methods_QTextObject[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QTextObject_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QTextObject_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QTextObject_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QTextObject_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_document), meth_QTextObject_document, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextObject_document)},
    {SIP_MLNAME_CAST(sipName_format), meth_QTextObject_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextObject_format)},
    {SIP_MLNAME_CAST(sipName_formatIndex), meth_QTextObject_formatIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextObject_formatIndex)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QTextObject_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_objectIndex), meth_QTextObject_objectIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextObject_objectIndex)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QTextObject_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QTextObject_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QTextObject_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFormat), (PyCFunction)meth_QTextObject_setFormat, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextObject_setFormat)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QTextObject_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QTextObject, "\1QTextObject(QTextDocument)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextObject = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextObject,
        {0}
    },
    {
        sipNameNr_QTextObject,
        {0, 0, 1},
        14, methods_QTextObject,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextObject,
    -1,
    -1,
    supers_QTextObject,
    0,
    init_type_QTextObject,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextObject,
    0,
    0,
    0,
    release_QTextObject,
    cast_QTextObject,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QTextObject::staticMetaObject,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlist.sip"
#include <qtextlist.h>
#line 34132 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 34136 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 34139 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 34142 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 34145 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 34148 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 34151 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34154 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34157 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 34160 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 34163 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 34166 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 34169 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 34172 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 34175 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 34178 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 34181 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 34184 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 34187 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 34190 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 34193 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQTextList : public QTextList
{
public:
    sipQTextList(QTextDocument*);
    virtual ~sipQTextList();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtectVirt_blockInserted(bool,const QTextBlock&);
    void sipProtectVirt_blockRemoved(bool,const QTextBlock&);
    void sipProtectVirt_blockFormatChanged(bool,const QTextBlock&);
    QList<QTextBlock> sipProtect_blockList() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void blockFormatChanged(const QTextBlock&);
    void blockRemoved(const QTextBlock&);
    void blockInserted(const QTextBlock&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTextList(const sipQTextList &);
    sipQTextList &operator = (const sipQTextList &);

    char sipPyMethods[10];
};

sipQTextList::sipQTextList(QTextDocument*a0): QTextList(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQTextList::~sipQTextList()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQTextList::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextList);
}

int sipQTextList::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QTextList::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QTextList,_c,_id,_a);

    return _id;
}

void *sipQTextList::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QTextList, _clname, &sipCpp) ? sipCpp : QTextList::qt_metacast(_clname));
}

void sipQTextList::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QTextList::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextList::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QTextList::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextList::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QTextList::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextList::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QTextList::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextList::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QTextList::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQTextList::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QTextList::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQTextList::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QTextList::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextList::blockFormatChanged(const QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_blockFormatChanged);

    if (!sipMeth)
    {
        QTextList::blockFormatChanged(a0);
        return;
    }

    extern void sipVH_QtGui_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QTextBlock&);

    sipVH_QtGui_19(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextList::blockRemoved(const QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_blockRemoved);

    if (!sipMeth)
    {
        QTextList::blockRemoved(a0);
        return;
    }

    extern void sipVH_QtGui_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QTextBlock&);

    sipVH_QtGui_19(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextList::blockInserted(const QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_blockInserted);

    if (!sipMeth)
    {
        QTextList::blockInserted(a0);
        return;
    }

    extern void sipVH_QtGui_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QTextBlock&);

    sipVH_QtGui_19(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQTextList::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQTextList::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQTextList::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQTextList::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQTextList::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQTextList::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQTextList::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQTextList::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQTextList::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQTextList::sipProtectVirt_blockInserted(bool sipSelfWasArg,const QTextBlock& a0)
{
    (sipSelfWasArg ? QTextBlockGroup::blockInserted(a0) : blockInserted(a0));
}

void sipQTextList::sipProtectVirt_blockRemoved(bool sipSelfWasArg,const QTextBlock& a0)
{
    (sipSelfWasArg ? QTextBlockGroup::blockRemoved(a0) : blockRemoved(a0));
}

void sipQTextList::sipProtectVirt_blockFormatChanged(bool sipSelfWasArg,const QTextBlock& a0)
{
    (sipSelfWasArg ? QTextBlockGroup::blockFormatChanged(a0) : blockFormatChanged(a0));
}

QList<QTextBlock> sipQTextList::sipProtect_blockList() const
{
    return QTextBlockGroup::blockList();
}


PyDoc_STRVAR(doc_QTextList_sender, "QTextList.sender() -> QObject");

extern "C" {static PyObject *meth_QTextList_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextList, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 34562 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_sender, doc_QTextList_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_receivers, "QTextList.receivers(signal) -> int");

extern "C" {static PyObject *meth_QTextList_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTextList, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 34621 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_receivers, doc_QTextList_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_timerEvent, "QTextList.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QTextList_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextList, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_timerEvent, doc_QTextList_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_childEvent, "QTextList.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QTextList_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextList, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_childEvent, doc_QTextList_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_customEvent, "QTextList.customEvent(QEvent)");

extern "C" {static PyObject *meth_QTextList_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextList, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_customEvent, doc_QTextList_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_connectNotify, "QTextList.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextList_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_connectNotify, doc_QTextList_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_disconnectNotify, "QTextList.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextList_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_disconnectNotify, doc_QTextList_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_senderSignalIndex, "QTextList.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QTextList_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextList, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_senderSignalIndex, doc_QTextList_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_isSignalConnected, "QTextList.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QTextList_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_isSignalConnected, doc_QTextList_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_blockInserted, "QTextList.blockInserted(QTextBlock)");

extern "C" {static PyObject *meth_QTextList_blockInserted(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_blockInserted(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QTextBlock* a0;
        sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QTextBlock, &a0))
        {
            sipCpp->sipProtectVirt_blockInserted(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_blockInserted, doc_QTextList_blockInserted);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_blockRemoved, "QTextList.blockRemoved(QTextBlock)");

extern "C" {static PyObject *meth_QTextList_blockRemoved(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_blockRemoved(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QTextBlock* a0;
        sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QTextBlock, &a0))
        {
            sipCpp->sipProtectVirt_blockRemoved(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_blockRemoved, doc_QTextList_blockRemoved);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_blockFormatChanged, "QTextList.blockFormatChanged(QTextBlock)");

extern "C" {static PyObject *meth_QTextList_blockFormatChanged(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_blockFormatChanged(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QTextBlock* a0;
        sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QTextBlock, &a0))
        {
            sipCpp->sipProtectVirt_blockFormatChanged(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_blockFormatChanged, doc_QTextList_blockFormatChanged);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_blockList, "QTextList.blockList() -> list-of-QTextBlock");

extern "C" {static PyObject *meth_QTextList_blockList(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextList_blockList(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextList *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextList, &sipCpp))
        {
            QList<QTextBlock>*sipRes;

            sipRes = new QList<QTextBlock>(sipCpp->sipProtect_blockList());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_blockList, doc_QTextList_blockList);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_count, "QTextList.count() -> int");

extern "C" {static PyObject *meth_QTextList_count(PyObject *, PyObject *);}
static PyObject *meth_QTextList_count(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextList, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->count();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_count, doc_QTextList_count);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_item, "QTextList.item(int) -> QTextBlock");

extern "C" {static PyObject *meth_QTextList_item(PyObject *, PyObject *);}
static PyObject *meth_QTextList_item(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextList, &sipCpp, &a0))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->item(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_item, doc_QTextList_item);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_itemNumber, "QTextList.itemNumber(QTextBlock) -> int");

extern "C" {static PyObject *meth_QTextList_itemNumber(PyObject *, PyObject *);}
static PyObject *meth_QTextList_itemNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock* a0;
        const QTextList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QTextBlock, &a0))
        {
            int sipRes;

            sipRes = sipCpp->itemNumber(*a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_itemNumber, doc_QTextList_itemNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_itemText, "QTextList.itemText(QTextBlock) -> str");

extern "C" {static PyObject *meth_QTextList_itemText(PyObject *, PyObject *);}
static PyObject *meth_QTextList_itemText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock* a0;
        const QTextList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QTextBlock, &a0))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->itemText(*a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_itemText, doc_QTextList_itemText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_removeItem, "QTextList.removeItem(int)");

extern "C" {static PyObject *meth_QTextList_removeItem(PyObject *, PyObject *);}
static PyObject *meth_QTextList_removeItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextList, &sipCpp, &a0))
        {
            sipCpp->removeItem(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_removeItem, doc_QTextList_removeItem);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_remove, "QTextList.remove(QTextBlock)");

extern "C" {static PyObject *meth_QTextList_remove(PyObject *, PyObject *);}
static PyObject *meth_QTextList_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock* a0;
        QTextList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QTextBlock, &a0))
        {
            sipCpp->remove(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_remove, doc_QTextList_remove);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_add, "QTextList.add(QTextBlock)");

extern "C" {static PyObject *meth_QTextList_add(PyObject *, PyObject *);}
static PyObject *meth_QTextList_add(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock* a0;
        QTextList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QTextBlock, &a0))
        {
            sipCpp->add(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_add, doc_QTextList_add);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_format, "QTextList.format() -> QTextListFormat");

extern "C" {static PyObject *meth_QTextList_format(PyObject *, PyObject *);}
static PyObject *meth_QTextList_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextList, &sipCpp))
        {
            QTextListFormat*sipRes;

            sipRes = new QTextListFormat(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QTextListFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_format, doc_QTextList_format);

    return NULL;
}


PyDoc_STRVAR(doc_QTextList_setFormat, "QTextList.setFormat(QTextListFormat)");

extern "C" {static PyObject *meth_QTextList_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextList_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextListFormat* a0;
        QTextList *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextList, &sipCpp, sipType_QTextListFormat, &a0))
        {
            sipCpp->setFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextList, sipName_setFormat, doc_QTextList_setFormat);

    return NULL;
}


extern "C" {static SIP_SSIZE_T slot_QTextList___len__(PyObject *);}
static SIP_SSIZE_T slot_QTextList___len__(PyObject *sipSelf)
{
    QTextList *sipCpp = reinterpret_cast<QTextList *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextList));

    if (!sipCpp)
        return 0;


    {
        {
            SIP_SSIZE_T sipRes = 0;

#line 1 "Auto-generated"
            sipRes = (SIP_SSIZE_T)sipCpp->count();
#line 35209 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextList(void *, const sipTypeDef *);}
static void *cast_QTextList(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextList)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextBlockGroup)->ctd_cast((QTextBlockGroup *)(QTextList *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextList(void *, int);}
static void release_QTextList(void *sipCppV,int)
{
    QTextList *sipCpp = reinterpret_cast<QTextList *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QTextList(sipSimpleWrapper *);}
static void dealloc_QTextList(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTextList *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTextList(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTextList(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextList(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQTextList *sipCpp = 0;

    {
        QTextDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTextDocument, &a0))
        {
            sipCpp = new sipQTextList(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextList[] = {{273, 255, 1}};


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextList[] = {
    {(void *)slot_QTextList___len__, len_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTextList[] = {
    {SIP_MLNAME_CAST(sipName_add), meth_QTextList_add, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextList_add)},
    {SIP_MLNAME_CAST(sipName_blockFormatChanged), (PyCFunction)meth_QTextList_blockFormatChanged, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_blockInserted), (PyCFunction)meth_QTextList_blockInserted, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_blockList), (PyCFunction)meth_QTextList_blockList, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_blockRemoved), (PyCFunction)meth_QTextList_blockRemoved, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QTextList_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QTextList_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_count), meth_QTextList_count, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextList_count)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QTextList_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QTextList_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_format), meth_QTextList_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextList_format)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QTextList_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_item), meth_QTextList_item, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextList_item)},
    {SIP_MLNAME_CAST(sipName_itemNumber), meth_QTextList_itemNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextList_itemNumber)},
    {SIP_MLNAME_CAST(sipName_itemText), meth_QTextList_itemText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextList_itemText)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QTextList_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_remove), meth_QTextList_remove, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextList_remove)},
    {SIP_MLNAME_CAST(sipName_removeItem), meth_QTextList_removeItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextList_removeItem)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QTextList_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QTextList_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QTextList_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextList_setFormat)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QTextList_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QTextList, "\1QTextList(QTextDocument)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextList = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextList,
        {0}
    },
    {
        sipNameNr_QTextList,
        {0, 0, 1},
        22, methods_QTextList,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextList,
    -1,
    -1,
    supers_QTextList,
    slots_QTextList,
    init_type_QTextList,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextList,
    0,
    0,
    0,
    release_QTextList,
    cast_QTextList,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QTextList::staticMetaObject,
    0,
    0,
    0
};

#line 47 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 35379 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 35383 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 35386 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 35389 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 35392 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 35395 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35398 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 35404 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 35407 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 35410 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 35413 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 35416 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 35419 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 35422 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 35425 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 35428 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 35431 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 35434 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 35437 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 35440 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQTextBlockGroup : public QTextBlockGroup
{
public:
    sipQTextBlockGroup(QTextDocument*);
    virtual ~sipQTextBlockGroup();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtect_setFormat(const QTextFormat&);
    void sipProtectVirt_blockInserted(bool,const QTextBlock&);
    void sipProtectVirt_blockRemoved(bool,const QTextBlock&);
    void sipProtectVirt_blockFormatChanged(bool,const QTextBlock&);
    QList<QTextBlock> sipProtect_blockList() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void blockFormatChanged(const QTextBlock&);
    void blockRemoved(const QTextBlock&);
    void blockInserted(const QTextBlock&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTextBlockGroup(const sipQTextBlockGroup &);
    sipQTextBlockGroup &operator = (const sipQTextBlockGroup &);

    char sipPyMethods[10];
};

sipQTextBlockGroup::sipQTextBlockGroup(QTextDocument*a0): QTextBlockGroup(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQTextBlockGroup::~sipQTextBlockGroup()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQTextBlockGroup::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextBlockGroup);
}

int sipQTextBlockGroup::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QTextBlockGroup::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QTextBlockGroup,_c,_id,_a);

    return _id;
}

void *sipQTextBlockGroup::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QTextBlockGroup, _clname, &sipCpp) ? sipCpp : QTextBlockGroup::qt_metacast(_clname));
}

void sipQTextBlockGroup::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QTextBlockGroup::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QTextBlockGroup::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QTextBlockGroup::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QTextBlockGroup::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QTextBlockGroup::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQTextBlockGroup::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QTextBlockGroup::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQTextBlockGroup::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QTextBlockGroup::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::blockFormatChanged(const QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_blockFormatChanged);

    if (!sipMeth)
    {
        QTextBlockGroup::blockFormatChanged(a0);
        return;
    }

    extern void sipVH_QtGui_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QTextBlock&);

    sipVH_QtGui_19(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::blockRemoved(const QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_blockRemoved);

    if (!sipMeth)
    {
        QTextBlockGroup::blockRemoved(a0);
        return;
    }

    extern void sipVH_QtGui_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QTextBlock&);

    sipVH_QtGui_19(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextBlockGroup::blockInserted(const QTextBlock& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_blockInserted);

    if (!sipMeth)
    {
        QTextBlockGroup::blockInserted(a0);
        return;
    }

    extern void sipVH_QtGui_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QTextBlock&);

    sipVH_QtGui_19(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQTextBlockGroup::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQTextBlockGroup::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQTextBlockGroup::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQTextBlockGroup::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQTextBlockGroup::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQTextBlockGroup::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQTextBlockGroup::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQTextBlockGroup::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQTextBlockGroup::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQTextBlockGroup::sipProtect_setFormat(const QTextFormat& a0)
{
    QTextObject::setFormat(a0);
}

void sipQTextBlockGroup::sipProtectVirt_blockInserted(bool sipSelfWasArg,const QTextBlock& a0)
{
    (sipSelfWasArg ? QTextBlockGroup::blockInserted(a0) : blockInserted(a0));
}

void sipQTextBlockGroup::sipProtectVirt_blockRemoved(bool sipSelfWasArg,const QTextBlock& a0)
{
    (sipSelfWasArg ? QTextBlockGroup::blockRemoved(a0) : blockRemoved(a0));
}

void sipQTextBlockGroup::sipProtectVirt_blockFormatChanged(bool sipSelfWasArg,const QTextBlock& a0)
{
    (sipSelfWasArg ? QTextBlockGroup::blockFormatChanged(a0) : blockFormatChanged(a0));
}

QList<QTextBlock> sipQTextBlockGroup::sipProtect_blockList() const
{
    return QTextBlockGroup::blockList();
}


PyDoc_STRVAR(doc_QTextBlockGroup_sender, "QTextBlockGroup.sender() -> QObject");

extern "C" {static PyObject *meth_QTextBlockGroup_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextBlockGroup, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 35815 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_sender, doc_QTextBlockGroup_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_receivers, "QTextBlockGroup.receivers(signal) -> int");

extern "C" {static PyObject *meth_QTextBlockGroup_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTextBlockGroup, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 35874 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_receivers, doc_QTextBlockGroup_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_timerEvent, "QTextBlockGroup.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QTextBlockGroup_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_timerEvent, doc_QTextBlockGroup_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_childEvent, "QTextBlockGroup.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QTextBlockGroup_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_childEvent, doc_QTextBlockGroup_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_customEvent, "QTextBlockGroup.customEvent(QEvent)");

extern "C" {static PyObject *meth_QTextBlockGroup_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_customEvent, doc_QTextBlockGroup_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_connectNotify, "QTextBlockGroup.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextBlockGroup_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_connectNotify, doc_QTextBlockGroup_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_disconnectNotify, "QTextBlockGroup.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextBlockGroup_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_disconnectNotify, doc_QTextBlockGroup_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_senderSignalIndex, "QTextBlockGroup.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QTextBlockGroup_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextBlockGroup, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_senderSignalIndex, doc_QTextBlockGroup_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_isSignalConnected, "QTextBlockGroup.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QTextBlockGroup_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_isSignalConnected, doc_QTextBlockGroup_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_setFormat, "QTextBlockGroup.setFormat(QTextFormat)");

extern "C" {static PyObject *meth_QTextBlockGroup_setFormat(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_setFormat(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat* a0;
        sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QTextFormat, &a0))
        {
            sipCpp->sipProtect_setFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_setFormat, doc_QTextBlockGroup_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_blockInserted, "QTextBlockGroup.blockInserted(QTextBlock)");

extern "C" {static PyObject *meth_QTextBlockGroup_blockInserted(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_blockInserted(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QTextBlock* a0;
        sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QTextBlock, &a0))
        {
            sipCpp->sipProtectVirt_blockInserted(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_blockInserted, doc_QTextBlockGroup_blockInserted);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_blockRemoved, "QTextBlockGroup.blockRemoved(QTextBlock)");

extern "C" {static PyObject *meth_QTextBlockGroup_blockRemoved(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_blockRemoved(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QTextBlock* a0;
        sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QTextBlock, &a0))
        {
            sipCpp->sipProtectVirt_blockRemoved(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_blockRemoved, doc_QTextBlockGroup_blockRemoved);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_blockFormatChanged, "QTextBlockGroup.blockFormatChanged(QTextBlock)");

extern "C" {static PyObject *meth_QTextBlockGroup_blockFormatChanged(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_blockFormatChanged(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QTextBlock* a0;
        sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextBlockGroup, &sipCpp, sipType_QTextBlock, &a0))
        {
            sipCpp->sipProtectVirt_blockFormatChanged(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_blockFormatChanged, doc_QTextBlockGroup_blockFormatChanged);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockGroup_blockList, "QTextBlockGroup.blockList() -> list-of-QTextBlock");

extern "C" {static PyObject *meth_QTextBlockGroup_blockList(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextBlockGroup_blockList(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextBlockGroup *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextBlockGroup, &sipCpp))
        {
            QList<QTextBlock>*sipRes;

            sipRes = new QList<QTextBlock>(sipCpp->sipProtect_blockList());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockGroup, sipName_blockList, doc_QTextBlockGroup_blockList);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextBlockGroup(void *, const sipTypeDef *);}
static void *cast_QTextBlockGroup(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextBlockGroup)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextObject)->ctd_cast((QTextObject *)(QTextBlockGroup *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextBlockGroup(void *, int);}
static void release_QTextBlockGroup(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQTextBlockGroup *>(sipCppV);
}


extern "C" {static void dealloc_QTextBlockGroup(sipSimpleWrapper *);}
static void dealloc_QTextBlockGroup(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTextBlockGroup *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTextBlockGroup(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTextBlockGroup(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextBlockGroup(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQTextBlockGroup *sipCpp = 0;

    {
        QTextDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTextDocument, &a0))
        {
            sipCpp = new sipQTextBlockGroup(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextBlockGroup[] = {{319, 255, 1}};


static PyMethodDef methods_QTextBlockGroup[] = {
    {SIP_MLNAME_CAST(sipName_blockFormatChanged), (PyCFunction)meth_QTextBlockGroup_blockFormatChanged, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextBlockGroup_blockFormatChanged)},
    {SIP_MLNAME_CAST(sipName_blockInserted), (PyCFunction)meth_QTextBlockGroup_blockInserted, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextBlockGroup_blockInserted)},
    {SIP_MLNAME_CAST(sipName_blockList), (PyCFunction)meth_QTextBlockGroup_blockList, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextBlockGroup_blockList)},
    {SIP_MLNAME_CAST(sipName_blockRemoved), (PyCFunction)meth_QTextBlockGroup_blockRemoved, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextBlockGroup_blockRemoved)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QTextBlockGroup_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QTextBlockGroup_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QTextBlockGroup_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QTextBlockGroup_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QTextBlockGroup_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QTextBlockGroup_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QTextBlockGroup_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QTextBlockGroup_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFormat), (PyCFunction)meth_QTextBlockGroup_setFormat, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QTextBlockGroup_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QTextBlockGroup, "\1QTextBlockGroup(QTextDocument)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextBlockGroup = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextBlockGroup,
        {0}
    },
    {
        sipNameNr_QTextBlockGroup,
        {0, 0, 1},
        14, methods_QTextBlockGroup,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextBlockGroup,
    -1,
    -1,
    supers_QTextBlockGroup,
    0,
    init_type_QTextBlockGroup,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextBlockGroup,
    0,
    0,
    0,
    release_QTextBlockGroup,
    cast_QTextBlockGroup,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QTextBlockGroup::staticMetaObject,
    0,
    0,
    0
};

#line 123 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 36369 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 36373 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 36376 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 36379 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 36382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 36387 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 36390 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextLine_isValid, "QTextLine.isValid() -> bool");

extern "C" {static PyObject *meth_QTextLine_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_isValid, doc_QTextLine_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_rect, "QTextLine.rect() -> QRectF");

extern "C" {static PyObject *meth_QTextLine_rect(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_rect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->rect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_rect, doc_QTextLine_rect);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_x, "QTextLine.x() -> float");

extern "C" {static PyObject *meth_QTextLine_x(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->x();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_x, doc_QTextLine_x);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_y, "QTextLine.y() -> float");

extern "C" {static PyObject *meth_QTextLine_y(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->y();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_y, doc_QTextLine_y);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_width, "QTextLine.width() -> float");

extern "C" {static PyObject *meth_QTextLine_width(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->width();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_width, doc_QTextLine_width);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_ascent, "QTextLine.ascent() -> float");

extern "C" {static PyObject *meth_QTextLine_ascent(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_ascent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->ascent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_ascent, doc_QTextLine_ascent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_descent, "QTextLine.descent() -> float");

extern "C" {static PyObject *meth_QTextLine_descent(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_descent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->descent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_descent, doc_QTextLine_descent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_height, "QTextLine.height() -> float");

extern "C" {static PyObject *meth_QTextLine_height(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->height();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_height, doc_QTextLine_height);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_naturalTextWidth, "QTextLine.naturalTextWidth() -> float");

extern "C" {static PyObject *meth_QTextLine_naturalTextWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_naturalTextWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->naturalTextWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_naturalTextWidth, doc_QTextLine_naturalTextWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_naturalTextRect, "QTextLine.naturalTextRect() -> QRectF");

extern "C" {static PyObject *meth_QTextLine_naturalTextRect(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_naturalTextRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->naturalTextRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_naturalTextRect, doc_QTextLine_naturalTextRect);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_cursorToX, "QTextLine.cursorToX(int, QTextLine.Edge edge=QTextLine.Leading) -> (float, int)");

extern "C" {static PyObject *meth_QTextLine_cursorToX(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextLine_cursorToX(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextLine::Edge a1 = QTextLine::Leading;
        const QTextLine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_edge,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QTextLine, &sipCpp, &a0, sipType_QTextLine_Edge, &a1))
        {
            qreal sipRes;

            sipRes = sipCpp->cursorToX(&a0,a1);

            return sipBuildResult(0,"(di)",sipRes,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_cursorToX, doc_QTextLine_cursorToX);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_xToCursor, "QTextLine.xToCursor(float, QTextLine.CursorPosition edge=QTextLine.CursorBetweenCharacters) -> int");

extern "C" {static PyObject *meth_QTextLine_xToCursor(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextLine_xToCursor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextLine::CursorPosition a1 = QTextLine::CursorBetweenCharacters;
        const QTextLine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_edge,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bd|E", &sipSelf, sipType_QTextLine, &sipCpp, &a0, sipType_QTextLine_CursorPosition, &a1))
        {
            int sipRes;

            sipRes = sipCpp->xToCursor(a0,a1);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_xToCursor, doc_QTextLine_xToCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_setLineWidth, "QTextLine.setLineWidth(float)");

extern "C" {static PyObject *meth_QTextLine_setLineWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_setLineWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextLine, &sipCpp, &a0))
        {
            sipCpp->setLineWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_setLineWidth, doc_QTextLine_setLineWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_setNumColumns, "QTextLine.setNumColumns(int)\n"
    "QTextLine.setNumColumns(int, float)");

extern "C" {static PyObject *meth_QTextLine_setNumColumns(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_setNumColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextLine, &sipCpp, &a0))
        {
            sipCpp->setNumColumns(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        qreal a1;
        QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bid", &sipSelf, sipType_QTextLine, &sipCpp, &a0, &a1))
        {
            sipCpp->setNumColumns(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_setNumColumns, doc_QTextLine_setNumColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_setPosition, "QTextLine.setPosition(QPointF)");

extern "C" {static PyObject *meth_QTextLine_setPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_setPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextLine, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->setPosition(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_setPosition, doc_QTextLine_setPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_textStart, "QTextLine.textStart() -> int");

extern "C" {static PyObject *meth_QTextLine_textStart(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_textStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->textStart();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_textStart, doc_QTextLine_textStart);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_textLength, "QTextLine.textLength() -> int");

extern "C" {static PyObject *meth_QTextLine_textLength(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_textLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->textLength();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_textLength, doc_QTextLine_textLength);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_lineNumber, "QTextLine.lineNumber() -> int");

extern "C" {static PyObject *meth_QTextLine_lineNumber(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_lineNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->lineNumber();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_lineNumber, doc_QTextLine_lineNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_draw, "QTextLine.draw(QPainter, QPointF, QTextLayout.FormatRange selection=None)");

extern "C" {static PyObject *meth_QTextLine_draw(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextLine_draw(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter* a0;
        const QPointF* a1;
        int a1State = 0;
        const QTextLayout::FormatRange* a2 = 0;
        const QTextLine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_selection,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8J1|J8", &sipSelf, sipType_QTextLine, &sipCpp, sipType_QPainter, &a0, sipType_QPointF, &a1, &a1State, sipType_QTextLayout_FormatRange, &a2))
        {
            sipCpp->draw(a0,*a1,a2);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_draw, doc_QTextLine_draw);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_position, "QTextLine.position() -> QPointF");

extern "C" {static PyObject *meth_QTextLine_position(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_position(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->position());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_position, doc_QTextLine_position);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_leading, "QTextLine.leading() -> float");

extern "C" {static PyObject *meth_QTextLine_leading(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_leading(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->leading();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_leading, doc_QTextLine_leading);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_setLeadingIncluded, "QTextLine.setLeadingIncluded(bool)");

extern "C" {static PyObject *meth_QTextLine_setLeadingIncluded(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_setLeadingIncluded(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextLine, &sipCpp, &a0))
        {
            sipCpp->setLeadingIncluded(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_setLeadingIncluded, doc_QTextLine_setLeadingIncluded);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_leadingIncluded, "QTextLine.leadingIncluded() -> bool");

extern "C" {static PyObject *meth_QTextLine_leadingIncluded(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_leadingIncluded(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->leadingIncluded();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_leadingIncluded, doc_QTextLine_leadingIncluded);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_horizontalAdvance, "QTextLine.horizontalAdvance() -> float");

extern "C" {static PyObject *meth_QTextLine_horizontalAdvance(PyObject *, PyObject *);}
static PyObject *meth_QTextLine_horizontalAdvance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLine, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->horizontalAdvance();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_horizontalAdvance, doc_QTextLine_horizontalAdvance);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLine_glyphRuns, "QTextLine.glyphRuns(int from=-1, int length=-1) -> list-of-QGlyphRun");

extern "C" {static PyObject *meth_QTextLine_glyphRuns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextLine_glyphRuns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = -1;
        int a1 = -1;
        const QTextLine *sipCpp;

        static const char *sipKwdList[] = {
            sipName_from,
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|ii", &sipSelf, sipType_QTextLine, &sipCpp, &a0, &a1))
        {
            QList<QGlyphRun>*sipRes;

            sipRes = new QList<QGlyphRun>(sipCpp->glyphRuns(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QList_0100QGlyphRun,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLine, sipName_glyphRuns, doc_QTextLine_glyphRuns);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextLine(void *, const sipTypeDef *);}
static void *cast_QTextLine(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextLine)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextLine(void *, int);}
static void release_QTextLine(void *sipCppV,int)
{
    delete reinterpret_cast<QTextLine *>(sipCppV);
}


extern "C" {static void assign_QTextLine(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextLine(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextLine *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextLine *>(sipSrc);
}


extern "C" {static void *array_QTextLine(SIP_SSIZE_T);}
static void *array_QTextLine(SIP_SSIZE_T sipNrElem)
{
    return new QTextLine[sipNrElem];
}


extern "C" {static void *copy_QTextLine(const void *, SIP_SSIZE_T);}
static void *copy_QTextLine(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextLine(reinterpret_cast<const QTextLine *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextLine(sipSimpleWrapper *);}
static void dealloc_QTextLine(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextLine(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextLine(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextLine(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextLine *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextLine();

            return sipCpp;
        }
    }

    {
        const QTextLine* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextLine, &a0))
        {
            sipCpp = new QTextLine(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QTextLine[] = {
    {SIP_MLNAME_CAST(sipName_ascent), meth_QTextLine_ascent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_ascent)},
    {SIP_MLNAME_CAST(sipName_cursorToX), (PyCFunction)meth_QTextLine_cursorToX, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextLine_cursorToX)},
    {SIP_MLNAME_CAST(sipName_descent), meth_QTextLine_descent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_descent)},
    {SIP_MLNAME_CAST(sipName_draw), (PyCFunction)meth_QTextLine_draw, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextLine_draw)},
    {SIP_MLNAME_CAST(sipName_glyphRuns), (PyCFunction)meth_QTextLine_glyphRuns, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextLine_glyphRuns)},
    {SIP_MLNAME_CAST(sipName_height), meth_QTextLine_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_height)},
    {SIP_MLNAME_CAST(sipName_horizontalAdvance), meth_QTextLine_horizontalAdvance, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_horizontalAdvance)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextLine_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_isValid)},
    {SIP_MLNAME_CAST(sipName_leading), meth_QTextLine_leading, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_leading)},
    {SIP_MLNAME_CAST(sipName_leadingIncluded), meth_QTextLine_leadingIncluded, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_leadingIncluded)},
    {SIP_MLNAME_CAST(sipName_lineNumber), meth_QTextLine_lineNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_lineNumber)},
    {SIP_MLNAME_CAST(sipName_naturalTextRect), meth_QTextLine_naturalTextRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_naturalTextRect)},
    {SIP_MLNAME_CAST(sipName_naturalTextWidth), meth_QTextLine_naturalTextWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_naturalTextWidth)},
    {SIP_MLNAME_CAST(sipName_position), meth_QTextLine_position, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_position)},
    {SIP_MLNAME_CAST(sipName_rect), meth_QTextLine_rect, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_rect)},
    {SIP_MLNAME_CAST(sipName_setLeadingIncluded), meth_QTextLine_setLeadingIncluded, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_setLeadingIncluded)},
    {SIP_MLNAME_CAST(sipName_setLineWidth), meth_QTextLine_setLineWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_setLineWidth)},
    {SIP_MLNAME_CAST(sipName_setNumColumns), meth_QTextLine_setNumColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_setNumColumns)},
    {SIP_MLNAME_CAST(sipName_setPosition), meth_QTextLine_setPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_setPosition)},
    {SIP_MLNAME_CAST(sipName_textLength), meth_QTextLine_textLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_textLength)},
    {SIP_MLNAME_CAST(sipName_textStart), meth_QTextLine_textStart, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_textStart)},
    {SIP_MLNAME_CAST(sipName_width), meth_QTextLine_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_width)},
    {SIP_MLNAME_CAST(sipName_x), meth_QTextLine_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_x)},
    {SIP_MLNAME_CAST(sipName_xToCursor), (PyCFunction)meth_QTextLine_xToCursor, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextLine_xToCursor)},
    {SIP_MLNAME_CAST(sipName_y), meth_QTextLine_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLine_y)}
};

static sipEnumMemberDef enummembers_QTextLine[] = {
    {sipName_CursorBetweenCharacters, static_cast<int>(QTextLine::CursorBetweenCharacters), 314},
    {sipName_CursorOnCharacter, static_cast<int>(QTextLine::CursorOnCharacter), 314},
    {sipName_Leading, static_cast<int>(QTextLine::Leading), 315},
    {sipName_Trailing, static_cast<int>(QTextLine::Trailing), 315},
};

PyDoc_STRVAR(doc_QTextLine, "\1QTextLine()\n"
    "QTextLine(QTextLine)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextLine = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextLine,
        {0}
    },
    {
        sipNameNr_QTextLine,
        {0, 0, 1},
        25, methods_QTextLine,
        4, enummembers_QTextLine,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextLine,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTextLine,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextLine,
    assign_QTextLine,
    array_QTextLine,
    copy_QTextLine,
    release_QTextLine,
    cast_QTextLine,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 37293 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 37297 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextLayout_FormatRange(void *, const sipTypeDef *);}
static void *cast_QTextLayout_FormatRange(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextLayout_FormatRange)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextLayout_FormatRange(void *, int);}
static void release_QTextLayout_FormatRange(void *sipCppV,int)
{
    delete reinterpret_cast<QTextLayout::FormatRange *>(sipCppV);
}


extern "C" {static void assign_QTextLayout_FormatRange(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextLayout_FormatRange(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextLayout::FormatRange *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextLayout::FormatRange *>(sipSrc);
}


extern "C" {static void *array_QTextLayout_FormatRange(SIP_SSIZE_T);}
static void *array_QTextLayout_FormatRange(SIP_SSIZE_T sipNrElem)
{
    return new QTextLayout::FormatRange[sipNrElem];
}


extern "C" {static void *copy_QTextLayout_FormatRange(const void *, SIP_SSIZE_T);}
static void *copy_QTextLayout_FormatRange(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextLayout::FormatRange(reinterpret_cast<const QTextLayout::FormatRange *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextLayout_FormatRange(sipSimpleWrapper *);}
static void dealloc_QTextLayout_FormatRange(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextLayout_FormatRange(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextLayout_FormatRange(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextLayout_FormatRange(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextLayout::FormatRange *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextLayout::FormatRange();

            return sipCpp;
        }
    }

    {
        const QTextLayout::FormatRange* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextLayout_FormatRange, &a0))
        {
            sipCpp = new QTextLayout::FormatRange(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_QTextLayout_FormatRange_format(void *, PyObject *, PyObject *);}
static PyObject *varget_QTextLayout_FormatRange_format(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QTextCharFormat*sipVal;
    QTextLayout::FormatRange *sipCpp = reinterpret_cast<QTextLayout::FormatRange *>(sipSelf);

    sipVal = &sipCpp->format;

    sipPy = sipGetReference(sipPySelf, -6);
    if (sipPy)
        return sipPy;

    sipPy = sipConvertFromType(sipVal, sipType_QTextCharFormat, NULL);
    sipKeepReference(sipPySelf, -6, sipPy);

    return sipPy;
}


extern "C" {static int varset_QTextLayout_FormatRange_format(void *, PyObject *, PyObject *);}
static int varset_QTextLayout_FormatRange_format(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QTextCharFormat*sipVal;
    QTextLayout::FormatRange *sipCpp = reinterpret_cast<QTextLayout::FormatRange *>(sipSelf);

    int sipIsErr = 0;

    sipVal = reinterpret_cast<QTextCharFormat *>(sipForceConvertToType(sipPy,sipType_QTextCharFormat,NULL,SIP_NOT_NONE,NULL,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->format = *sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QTextLayout_FormatRange_length(void *, PyObject *, PyObject *);}
static PyObject *varget_QTextLayout_FormatRange_length(void *sipSelf, PyObject *, PyObject *)
{
    int sipVal;
    QTextLayout::FormatRange *sipCpp = reinterpret_cast<QTextLayout::FormatRange *>(sipSelf);

    sipVal = sipCpp->length;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static int varset_QTextLayout_FormatRange_length(void *, PyObject *, PyObject *);}
static int varset_QTextLayout_FormatRange_length(void *sipSelf, PyObject *sipPy, PyObject *)
{
    int sipVal;
    QTextLayout::FormatRange *sipCpp = reinterpret_cast<QTextLayout::FormatRange *>(sipSelf);

    sipVal = (int)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->length = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QTextLayout_FormatRange_start(void *, PyObject *, PyObject *);}
static PyObject *varget_QTextLayout_FormatRange_start(void *sipSelf, PyObject *, PyObject *)
{
    int sipVal;
    QTextLayout::FormatRange *sipCpp = reinterpret_cast<QTextLayout::FormatRange *>(sipSelf);

    sipVal = sipCpp->start;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static int varset_QTextLayout_FormatRange_start(void *, PyObject *, PyObject *);}
static int varset_QTextLayout_FormatRange_start(void *sipSelf, PyObject *sipPy, PyObject *)
{
    int sipVal;
    QTextLayout::FormatRange *sipCpp = reinterpret_cast<QTextLayout::FormatRange *>(sipSelf);

    sipVal = (int)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->start = sipVal;

    return 0;
}

sipVariableDef variables_QTextLayout_FormatRange[] = {
    {InstanceVariable, sipName_format, (PyMethodDef *)varget_QTextLayout_FormatRange_format, (PyMethodDef *)varset_QTextLayout_FormatRange_format, NULL, NULL},
    {InstanceVariable, sipName_length, (PyMethodDef *)varget_QTextLayout_FormatRange_length, (PyMethodDef *)varset_QTextLayout_FormatRange_length, NULL, NULL},
    {InstanceVariable, sipName_start, (PyMethodDef *)varget_QTextLayout_FormatRange_start, (PyMethodDef *)varset_QTextLayout_FormatRange_start, NULL, NULL},
};

PyDoc_STRVAR(doc_QTextLayout_FormatRange, "\1QTextLayout.FormatRange()\n"
    "QTextLayout.FormatRange(QTextLayout.FormatRange)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextLayout_FormatRange = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextLayout__FormatRange,
        {0}
    },
    {
        sipNameNr_FormatRange,
        {308, 255, 0},
        0, 0,
        0, 0,
        3, variables_QTextLayout_FormatRange,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextLayout_FormatRange,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTextLayout_FormatRange,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextLayout_FormatRange,
    assign_QTextLayout_FormatRange,
    array_QTextLayout_FormatRange,
    copy_QTextLayout_FormatRange,
    release_QTextLayout_FormatRange,
    cast_QTextLayout_FormatRange,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 37542 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 37546 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 37549 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 37552 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 37555 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 37558 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 37561 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 37564 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 37567 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 37570 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 37573 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 37576 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 37581 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 123 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 37584 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 37587 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 37590 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextLayout_setFont, "QTextLayout.setFont(QFont)");

extern "C" {static PyObject *meth_QTextLayout_setFont(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_setFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_QFont, &a0))
        {
            sipCpp->setFont(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_setFont, doc_QTextLayout_setFont);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_font, "QTextLayout.font() -> QFont");

extern "C" {static PyObject *meth_QTextLayout_font(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_font(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            QFont*sipRes;

            sipRes = new QFont(sipCpp->font());

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_font, doc_QTextLayout_font);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_setText, "QTextLayout.setText(str)");

extern "C" {static PyObject *meth_QTextLayout_setText(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_setText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setText(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_setText, doc_QTextLayout_setText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_text, "QTextLayout.text() -> str");

extern "C" {static PyObject *meth_QTextLayout_text(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_text, doc_QTextLayout_text);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_setTextOption, "QTextLayout.setTextOption(QTextOption)");

extern "C" {static PyObject *meth_QTextLayout_setTextOption(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_setTextOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption* a0;
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_QTextOption, &a0))
        {
            sipCpp->setTextOption(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_setTextOption, doc_QTextLayout_setTextOption);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_textOption, "QTextLayout.textOption() -> QTextOption");

extern "C" {static PyObject *meth_QTextLayout_textOption(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_textOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            QTextOption*sipRes;

            sipRes = new QTextOption(sipCpp->textOption());

            return sipConvertFromNewType(sipRes,sipType_QTextOption,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_textOption, doc_QTextLayout_textOption);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_setPreeditArea, "QTextLayout.setPreeditArea(int, str)");

extern "C" {static PyObject *meth_QTextLayout_setPreeditArea(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_setPreeditArea(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QString* a1;
        int a1State = 0;
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QTextLayout, &sipCpp, &a0, sipType_QString,&a1, &a1State))
        {
            sipCpp->setPreeditArea(a0,*a1);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_setPreeditArea, doc_QTextLayout_setPreeditArea);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_preeditAreaPosition, "QTextLayout.preeditAreaPosition() -> int");

extern "C" {static PyObject *meth_QTextLayout_preeditAreaPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_preeditAreaPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->preeditAreaPosition();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_preeditAreaPosition, doc_QTextLayout_preeditAreaPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_preeditAreaText, "QTextLayout.preeditAreaText() -> str");

extern "C" {static PyObject *meth_QTextLayout_preeditAreaText(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_preeditAreaText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->preeditAreaText());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_preeditAreaText, doc_QTextLayout_preeditAreaText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_setAdditionalFormats, "QTextLayout.setAdditionalFormats(list-of-QTextLayout.FormatRange)");

extern "C" {static PyObject *meth_QTextLayout_setAdditionalFormats(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_setAdditionalFormats(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QTextLayout::FormatRange>* a0;
        int a0State = 0;
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_QList_0100QTextLayout_FormatRange,&a0, &a0State))
        {
            sipCpp->setAdditionalFormats(*a0);
            sipReleaseType(const_cast<QList<QTextLayout::FormatRange> *>(a0),sipType_QList_0100QTextLayout_FormatRange,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_setAdditionalFormats, doc_QTextLayout_setAdditionalFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_additionalFormats, "QTextLayout.additionalFormats() -> list-of-QTextLayout.FormatRange");

extern "C" {static PyObject *meth_QTextLayout_additionalFormats(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_additionalFormats(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            QList<QTextLayout::FormatRange>*sipRes;

            sipRes = new QList<QTextLayout::FormatRange>(sipCpp->additionalFormats());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QTextLayout_FormatRange,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_additionalFormats, doc_QTextLayout_additionalFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_clearAdditionalFormats, "QTextLayout.clearAdditionalFormats()");

extern "C" {static PyObject *meth_QTextLayout_clearAdditionalFormats(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_clearAdditionalFormats(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            sipCpp->clearAdditionalFormats();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_clearAdditionalFormats, doc_QTextLayout_clearAdditionalFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_setCacheEnabled, "QTextLayout.setCacheEnabled(bool)");

extern "C" {static PyObject *meth_QTextLayout_setCacheEnabled(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_setCacheEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextLayout, &sipCpp, &a0))
        {
            sipCpp->setCacheEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_setCacheEnabled, doc_QTextLayout_setCacheEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_cacheEnabled, "QTextLayout.cacheEnabled() -> bool");

extern "C" {static PyObject *meth_QTextLayout_cacheEnabled(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_cacheEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->cacheEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_cacheEnabled, doc_QTextLayout_cacheEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_beginLayout, "QTextLayout.beginLayout()");

extern "C" {static PyObject *meth_QTextLayout_beginLayout(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_beginLayout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            sipCpp->beginLayout();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_beginLayout, doc_QTextLayout_beginLayout);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_endLayout, "QTextLayout.endLayout()");

extern "C" {static PyObject *meth_QTextLayout_endLayout(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_endLayout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            sipCpp->endLayout();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_endLayout, doc_QTextLayout_endLayout);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_createLine, "QTextLayout.createLine() -> QTextLine");

extern "C" {static PyObject *meth_QTextLayout_createLine(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_createLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            QTextLine*sipRes;

            sipRes = new QTextLine(sipCpp->createLine());

            return sipConvertFromNewType(sipRes,sipType_QTextLine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_createLine, doc_QTextLayout_createLine);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_lineCount, "QTextLayout.lineCount() -> int");

extern "C" {static PyObject *meth_QTextLayout_lineCount(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_lineCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->lineCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_lineCount, doc_QTextLayout_lineCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_lineAt, "QTextLayout.lineAt(int) -> QTextLine");

extern "C" {static PyObject *meth_QTextLayout_lineAt(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_lineAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextLayout, &sipCpp, &a0))
        {
            QTextLine*sipRes;

            sipRes = new QTextLine(sipCpp->lineAt(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextLine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_lineAt, doc_QTextLayout_lineAt);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_lineForTextPosition, "QTextLayout.lineForTextPosition(int) -> QTextLine");

extern "C" {static PyObject *meth_QTextLayout_lineForTextPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_lineForTextPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextLayout, &sipCpp, &a0))
        {
            QTextLine*sipRes;

            sipRes = new QTextLine(sipCpp->lineForTextPosition(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextLine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_lineForTextPosition, doc_QTextLayout_lineForTextPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_isValidCursorPosition, "QTextLayout.isValidCursorPosition(int) -> bool");

extern "C" {static PyObject *meth_QTextLayout_isValidCursorPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_isValidCursorPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextLayout, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isValidCursorPosition(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_isValidCursorPosition, doc_QTextLayout_isValidCursorPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_nextCursorPosition, "QTextLayout.nextCursorPosition(int, QTextLayout.CursorMode mode=QTextLayout.SkipCharacters) -> int");

extern "C" {static PyObject *meth_QTextLayout_nextCursorPosition(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_nextCursorPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextLayout::CursorMode a1 = QTextLayout::SkipCharacters;
        const QTextLayout *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QTextLayout, &sipCpp, &a0, sipType_QTextLayout_CursorMode, &a1))
        {
            int sipRes;

            sipRes = sipCpp->nextCursorPosition(a0,a1);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_nextCursorPosition, doc_QTextLayout_nextCursorPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_previousCursorPosition, "QTextLayout.previousCursorPosition(int, QTextLayout.CursorMode mode=QTextLayout.SkipCharacters) -> int");

extern "C" {static PyObject *meth_QTextLayout_previousCursorPosition(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_previousCursorPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextLayout::CursorMode a1 = QTextLayout::SkipCharacters;
        const QTextLayout *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QTextLayout, &sipCpp, &a0, sipType_QTextLayout_CursorMode, &a1))
        {
            int sipRes;

            sipRes = sipCpp->previousCursorPosition(a0,a1);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_previousCursorPosition, doc_QTextLayout_previousCursorPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_draw, "QTextLayout.draw(QPainter, QPointF, list-of-QTextLayout.FormatRange selections=list-of-QTextLayout.FormatRange, QRectF clip=QRectF())");

extern "C" {static PyObject *meth_QTextLayout_draw(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_draw(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter* a0;
        const QPointF* a1;
        int a1State = 0;
        const QVector<QTextLayout::FormatRange>& a2def = QVector<QTextLayout::FormatRange>();
        const QVector<QTextLayout::FormatRange>* a2 = &a2def;
        int a2State = 0;
        const QRectF& a3def = QRectF();
        const QRectF* a3 = &a3def;
        const QTextLayout *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_selections,
            sipName_clip,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8J1|J1J9", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_QPainter, &a0, sipType_QPointF, &a1, &a1State, sipType_QVector_0100QTextLayout_FormatRange,&a2, &a2State, sipType_QRectF, &a3))
        {
            sipCpp->draw(a0,*a1,*a2,*a3);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(const_cast<QVector<QTextLayout::FormatRange> *>(a2),sipType_QVector_0100QTextLayout_FormatRange,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_draw, doc_QTextLayout_draw);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_drawCursor, "QTextLayout.drawCursor(QPainter, QPointF, int)\n"
    "QTextLayout.drawCursor(QPainter, QPointF, int, int)");

extern "C" {static PyObject *meth_QTextLayout_drawCursor(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_drawCursor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter* a0;
        const QPointF* a1;
        int a1State = 0;
        int a2;
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1i", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_QPainter, &a0, sipType_QPointF, &a1, &a1State, &a2))
        {
            sipCpp->drawCursor(a0,*a1,a2);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QPainter* a0;
        const QPointF* a1;
        int a1State = 0;
        int a2;
        int a3;
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J1ii", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_QPainter, &a0, sipType_QPointF, &a1, &a1State, &a2, &a3))
        {
            sipCpp->drawCursor(a0,*a1,a2,a3);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_drawCursor, doc_QTextLayout_drawCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_position, "QTextLayout.position() -> QPointF");

extern "C" {static PyObject *meth_QTextLayout_position(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_position(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->position());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_position, doc_QTextLayout_position);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_setPosition, "QTextLayout.setPosition(QPointF)");

extern "C" {static PyObject *meth_QTextLayout_setPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_setPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->setPosition(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_setPosition, doc_QTextLayout_setPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_boundingRect, "QTextLayout.boundingRect() -> QRectF");

extern "C" {static PyObject *meth_QTextLayout_boundingRect(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_boundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->boundingRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_boundingRect, doc_QTextLayout_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_minimumWidth, "QTextLayout.minimumWidth() -> float");

extern "C" {static PyObject *meth_QTextLayout_minimumWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_minimumWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->minimumWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_minimumWidth, doc_QTextLayout_minimumWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_maximumWidth, "QTextLayout.maximumWidth() -> float");

extern "C" {static PyObject *meth_QTextLayout_maximumWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_maximumWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->maximumWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_maximumWidth, doc_QTextLayout_maximumWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_clearLayout, "QTextLayout.clearLayout()");

extern "C" {static PyObject *meth_QTextLayout_clearLayout(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_clearLayout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            sipCpp->clearLayout();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_clearLayout, doc_QTextLayout_clearLayout);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_setCursorMoveStyle, "QTextLayout.setCursorMoveStyle(Qt.CursorMoveStyle)");

extern "C" {static PyObject *meth_QTextLayout_setCursorMoveStyle(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_setCursorMoveStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::CursorMoveStyle a0;
        QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextLayout, &sipCpp, sipType_Qt_CursorMoveStyle, &a0))
        {
            sipCpp->setCursorMoveStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_setCursorMoveStyle, doc_QTextLayout_setCursorMoveStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_cursorMoveStyle, "QTextLayout.cursorMoveStyle() -> Qt.CursorMoveStyle");

extern "C" {static PyObject *meth_QTextLayout_cursorMoveStyle(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_cursorMoveStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLayout, &sipCpp))
        {
            Qt::CursorMoveStyle sipRes;

            sipRes = sipCpp->cursorMoveStyle();

            return sipConvertFromEnum(sipRes,sipType_Qt_CursorMoveStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_cursorMoveStyle, doc_QTextLayout_cursorMoveStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_leftCursorPosition, "QTextLayout.leftCursorPosition(int) -> int");

extern "C" {static PyObject *meth_QTextLayout_leftCursorPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_leftCursorPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextLayout, &sipCpp, &a0))
        {
            int sipRes;

            sipRes = sipCpp->leftCursorPosition(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_leftCursorPosition, doc_QTextLayout_leftCursorPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_rightCursorPosition, "QTextLayout.rightCursorPosition(int) -> int");

extern "C" {static PyObject *meth_QTextLayout_rightCursorPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_rightCursorPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextLayout, &sipCpp, &a0))
        {
            int sipRes;

            sipRes = sipCpp->rightCursorPosition(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_rightCursorPosition, doc_QTextLayout_rightCursorPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLayout_glyphRuns, "QTextLayout.glyphRuns(int from=-1, int length=-1) -> list-of-QGlyphRun");

extern "C" {static PyObject *meth_QTextLayout_glyphRuns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextLayout_glyphRuns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = -1;
        int a1 = -1;
        const QTextLayout *sipCpp;

        static const char *sipKwdList[] = {
            sipName_from,
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|ii", &sipSelf, sipType_QTextLayout, &sipCpp, &a0, &a1))
        {
            QList<QGlyphRun>*sipRes;

            sipRes = new QList<QGlyphRun>(sipCpp->glyphRuns(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QList_0100QGlyphRun,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLayout, sipName_glyphRuns, doc_QTextLayout_glyphRuns);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextLayout(void *, const sipTypeDef *);}
static void *cast_QTextLayout(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextLayout)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextLayout(void *, int);}
static void release_QTextLayout(void *sipCppV,int)
{
    delete reinterpret_cast<QTextLayout *>(sipCppV);
}


extern "C" {static void dealloc_QTextLayout(sipSimpleWrapper *);}
static void dealloc_QTextLayout(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextLayout(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextLayout(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextLayout(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextLayout *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextLayout();

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            sipCpp = new QTextLayout(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QFont* a1;
        QPaintDevice* a2 = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_paintDevice,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1J9|J8", sipType_QString,&a0, &a0State, sipType_QFont, &a1, sipType_QPaintDevice, &a2))
        {
            sipCpp = new QTextLayout(*a0,*a1,a2);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QTextBlock* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextBlock, &a0))
        {
            sipCpp = new QTextLayout(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QTextLayout[] = {
    {SIP_MLNAME_CAST(sipName_additionalFormats), meth_QTextLayout_additionalFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_additionalFormats)},
    {SIP_MLNAME_CAST(sipName_beginLayout), meth_QTextLayout_beginLayout, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_beginLayout)},
    {SIP_MLNAME_CAST(sipName_boundingRect), meth_QTextLayout_boundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_boundingRect)},
    {SIP_MLNAME_CAST(sipName_cacheEnabled), meth_QTextLayout_cacheEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_cacheEnabled)},
    {SIP_MLNAME_CAST(sipName_clearAdditionalFormats), meth_QTextLayout_clearAdditionalFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_clearAdditionalFormats)},
    {SIP_MLNAME_CAST(sipName_clearLayout), meth_QTextLayout_clearLayout, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_clearLayout)},
    {SIP_MLNAME_CAST(sipName_createLine), meth_QTextLayout_createLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_createLine)},
    {SIP_MLNAME_CAST(sipName_cursorMoveStyle), meth_QTextLayout_cursorMoveStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_cursorMoveStyle)},
    {SIP_MLNAME_CAST(sipName_draw), (PyCFunction)meth_QTextLayout_draw, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextLayout_draw)},
    {SIP_MLNAME_CAST(sipName_drawCursor), meth_QTextLayout_drawCursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_drawCursor)},
    {SIP_MLNAME_CAST(sipName_endLayout), meth_QTextLayout_endLayout, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_endLayout)},
    {SIP_MLNAME_CAST(sipName_font), meth_QTextLayout_font, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_font)},
    {SIP_MLNAME_CAST(sipName_glyphRuns), (PyCFunction)meth_QTextLayout_glyphRuns, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextLayout_glyphRuns)},
    {SIP_MLNAME_CAST(sipName_isValidCursorPosition), meth_QTextLayout_isValidCursorPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_isValidCursorPosition)},
    {SIP_MLNAME_CAST(sipName_leftCursorPosition), meth_QTextLayout_leftCursorPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_leftCursorPosition)},
    {SIP_MLNAME_CAST(sipName_lineAt), meth_QTextLayout_lineAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_lineAt)},
    {SIP_MLNAME_CAST(sipName_lineCount), meth_QTextLayout_lineCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_lineCount)},
    {SIP_MLNAME_CAST(sipName_lineForTextPosition), meth_QTextLayout_lineForTextPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_lineForTextPosition)},
    {SIP_MLNAME_CAST(sipName_maximumWidth), meth_QTextLayout_maximumWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_maximumWidth)},
    {SIP_MLNAME_CAST(sipName_minimumWidth), meth_QTextLayout_minimumWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_minimumWidth)},
    {SIP_MLNAME_CAST(sipName_nextCursorPosition), (PyCFunction)meth_QTextLayout_nextCursorPosition, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextLayout_nextCursorPosition)},
    {SIP_MLNAME_CAST(sipName_position), meth_QTextLayout_position, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_position)},
    {SIP_MLNAME_CAST(sipName_preeditAreaPosition), meth_QTextLayout_preeditAreaPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_preeditAreaPosition)},
    {SIP_MLNAME_CAST(sipName_preeditAreaText), meth_QTextLayout_preeditAreaText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_preeditAreaText)},
    {SIP_MLNAME_CAST(sipName_previousCursorPosition), (PyCFunction)meth_QTextLayout_previousCursorPosition, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextLayout_previousCursorPosition)},
    {SIP_MLNAME_CAST(sipName_rightCursorPosition), meth_QTextLayout_rightCursorPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_rightCursorPosition)},
    {SIP_MLNAME_CAST(sipName_setAdditionalFormats), meth_QTextLayout_setAdditionalFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_setAdditionalFormats)},
    {SIP_MLNAME_CAST(sipName_setCacheEnabled), meth_QTextLayout_setCacheEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_setCacheEnabled)},
    {SIP_MLNAME_CAST(sipName_setCursorMoveStyle), meth_QTextLayout_setCursorMoveStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_setCursorMoveStyle)},
    {SIP_MLNAME_CAST(sipName_setFont), meth_QTextLayout_setFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_setFont)},
    {SIP_MLNAME_CAST(sipName_setPosition), meth_QTextLayout_setPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_setPosition)},
    {SIP_MLNAME_CAST(sipName_setPreeditArea), meth_QTextLayout_setPreeditArea, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_setPreeditArea)},
    {SIP_MLNAME_CAST(sipName_setText), meth_QTextLayout_setText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_setText)},
    {SIP_MLNAME_CAST(sipName_setTextOption), meth_QTextLayout_setTextOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_setTextOption)},
    {SIP_MLNAME_CAST(sipName_text), meth_QTextLayout_text, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_text)},
    {SIP_MLNAME_CAST(sipName_textOption), meth_QTextLayout_textOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLayout_textOption)}
};

static sipEnumMemberDef enummembers_QTextLayout[] = {
    {sipName_SkipCharacters, static_cast<int>(QTextLayout::SkipCharacters), 309},
    {sipName_SkipWords, static_cast<int>(QTextLayout::SkipWords), 309},
};

PyDoc_STRVAR(doc_QTextLayout, "\1QTextLayout()\n"
    "QTextLayout(str)\n"
    "QTextLayout(str, QFont, QPaintDevice paintDevice=None)\n"
    "QTextLayout(QTextBlock)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextLayout = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextLayout,
        {0}
    },
    {
        sipNameNr_QTextLayout,
        {0, 0, 1},
        36, methods_QTextLayout,
        2, enummembers_QTextLayout,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextLayout,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTextLayout,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextLayout,
    0,
    0,
    0,
    release_QTextLayout,
    cast_QTextLayout,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 38834 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 38838 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 38841 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 38844 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextInlineObject_isValid, "QTextInlineObject.isValid() -> bool");

extern "C" {static PyObject *meth_QTextInlineObject_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_isValid, doc_QTextInlineObject_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_rect, "QTextInlineObject.rect() -> QRectF");

extern "C" {static PyObject *meth_QTextInlineObject_rect(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_rect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->rect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_rect, doc_QTextInlineObject_rect);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_width, "QTextInlineObject.width() -> float");

extern "C" {static PyObject *meth_QTextInlineObject_width(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->width();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_width, doc_QTextInlineObject_width);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_ascent, "QTextInlineObject.ascent() -> float");

extern "C" {static PyObject *meth_QTextInlineObject_ascent(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_ascent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->ascent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_ascent, doc_QTextInlineObject_ascent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_descent, "QTextInlineObject.descent() -> float");

extern "C" {static PyObject *meth_QTextInlineObject_descent(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_descent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->descent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_descent, doc_QTextInlineObject_descent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_height, "QTextInlineObject.height() -> float");

extern "C" {static PyObject *meth_QTextInlineObject_height(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->height();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_height, doc_QTextInlineObject_height);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_textDirection, "QTextInlineObject.textDirection() -> Qt.LayoutDirection");

extern "C" {static PyObject *meth_QTextInlineObject_textDirection(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_textDirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            Qt::LayoutDirection sipRes;

            sipRes = sipCpp->textDirection();

            return sipConvertFromEnum(sipRes,sipType_Qt_LayoutDirection);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_textDirection, doc_QTextInlineObject_textDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_setWidth, "QTextInlineObject.setWidth(float)");

extern "C" {static PyObject *meth_QTextInlineObject_setWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_setWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextInlineObject, &sipCpp, &a0))
        {
            sipCpp->setWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_setWidth, doc_QTextInlineObject_setWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_setAscent, "QTextInlineObject.setAscent(float)");

extern "C" {static PyObject *meth_QTextInlineObject_setAscent(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_setAscent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextInlineObject, &sipCpp, &a0))
        {
            sipCpp->setAscent(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_setAscent, doc_QTextInlineObject_setAscent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_setDescent, "QTextInlineObject.setDescent(float)");

extern "C" {static PyObject *meth_QTextInlineObject_setDescent(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_setDescent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextInlineObject, &sipCpp, &a0))
        {
            sipCpp->setDescent(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_setDescent, doc_QTextInlineObject_setDescent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_textPosition, "QTextInlineObject.textPosition() -> int");

extern "C" {static PyObject *meth_QTextInlineObject_textPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_textPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->textPosition();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_textPosition, doc_QTextInlineObject_textPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_formatIndex, "QTextInlineObject.formatIndex() -> int");

extern "C" {static PyObject *meth_QTextInlineObject_formatIndex(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_formatIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->formatIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_formatIndex, doc_QTextInlineObject_formatIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextInlineObject_format, "QTextInlineObject.format() -> QTextFormat");

extern "C" {static PyObject *meth_QTextInlineObject_format(PyObject *, PyObject *);}
static PyObject *meth_QTextInlineObject_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextInlineObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextInlineObject, &sipCpp))
        {
            QTextFormat*sipRes;

            sipRes = new QTextFormat(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QTextFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextInlineObject, sipName_format, doc_QTextInlineObject_format);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextInlineObject(void *, const sipTypeDef *);}
static void *cast_QTextInlineObject(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextInlineObject)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextInlineObject(void *, int);}
static void release_QTextInlineObject(void *sipCppV,int)
{
    delete reinterpret_cast<QTextInlineObject *>(sipCppV);
}


extern "C" {static void assign_QTextInlineObject(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextInlineObject(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextInlineObject *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextInlineObject *>(sipSrc);
}


extern "C" {static void *array_QTextInlineObject(SIP_SSIZE_T);}
static void *array_QTextInlineObject(SIP_SSIZE_T sipNrElem)
{
    return new QTextInlineObject[sipNrElem];
}


extern "C" {static void *copy_QTextInlineObject(const void *, SIP_SSIZE_T);}
static void *copy_QTextInlineObject(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextInlineObject(reinterpret_cast<const QTextInlineObject *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextInlineObject(sipSimpleWrapper *);}
static void dealloc_QTextInlineObject(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextInlineObject(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextInlineObject(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextInlineObject(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextInlineObject *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextInlineObject();

            return sipCpp;
        }
    }

    {
        const QTextInlineObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextInlineObject, &a0))
        {
            sipCpp = new QTextInlineObject(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QTextInlineObject[] = {
    {SIP_MLNAME_CAST(sipName_ascent), meth_QTextInlineObject_ascent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_ascent)},
    {SIP_MLNAME_CAST(sipName_descent), meth_QTextInlineObject_descent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_descent)},
    {SIP_MLNAME_CAST(sipName_format), meth_QTextInlineObject_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_format)},
    {SIP_MLNAME_CAST(sipName_formatIndex), meth_QTextInlineObject_formatIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_formatIndex)},
    {SIP_MLNAME_CAST(sipName_height), meth_QTextInlineObject_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_height)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextInlineObject_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_isValid)},
    {SIP_MLNAME_CAST(sipName_rect), meth_QTextInlineObject_rect, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_rect)},
    {SIP_MLNAME_CAST(sipName_setAscent), meth_QTextInlineObject_setAscent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_setAscent)},
    {SIP_MLNAME_CAST(sipName_setDescent), meth_QTextInlineObject_setDescent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_setDescent)},
    {SIP_MLNAME_CAST(sipName_setWidth), meth_QTextInlineObject_setWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_setWidth)},
    {SIP_MLNAME_CAST(sipName_textDirection), meth_QTextInlineObject_textDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_textDirection)},
    {SIP_MLNAME_CAST(sipName_textPosition), meth_QTextInlineObject_textPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_textPosition)},
    {SIP_MLNAME_CAST(sipName_width), meth_QTextInlineObject_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextInlineObject_width)}
};

PyDoc_STRVAR(doc_QTextInlineObject, "\1QTextInlineObject()\n"
    "QTextInlineObject(QTextInlineObject)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextInlineObject = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextInlineObject,
        {0}
    },
    {
        sipNameNr_QTextInlineObject,
        {0, 0, 1},
        13, methods_QTextInlineObject,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextInlineObject,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTextInlineObject,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextInlineObject,
    assign_QTextInlineObject,
    array_QTextInlineObject,
    copy_QTextInlineObject,
    release_QTextInlineObject,
    cast_QTextInlineObject,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39354 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 39358 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 39361 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 39364 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39367 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 39370 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 39373 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39376 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 39379 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 39382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39385 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39388 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39391 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39394 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39397 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 39400 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 39403 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 39406 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39409 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextTableCellFormat_isValid, "QTextTableCellFormat.isValid() -> bool");

extern "C" {static PyObject *meth_QTextTableCellFormat_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCellFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_isValid, doc_QTextTableCellFormat_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCellFormat_setTopPadding, "QTextTableCellFormat.setTopPadding(float)");

extern "C" {static PyObject *meth_QTextTableCellFormat_setTopPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_setTopPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextTableCellFormat, &sipCpp, &a0))
        {
            sipCpp->setTopPadding(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_setTopPadding, doc_QTextTableCellFormat_setTopPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCellFormat_topPadding, "QTextTableCellFormat.topPadding() -> float");

extern "C" {static PyObject *meth_QTextTableCellFormat_topPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_topPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCellFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->topPadding();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_topPadding, doc_QTextTableCellFormat_topPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCellFormat_setBottomPadding, "QTextTableCellFormat.setBottomPadding(float)");

extern "C" {static PyObject *meth_QTextTableCellFormat_setBottomPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_setBottomPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextTableCellFormat, &sipCpp, &a0))
        {
            sipCpp->setBottomPadding(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_setBottomPadding, doc_QTextTableCellFormat_setBottomPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCellFormat_bottomPadding, "QTextTableCellFormat.bottomPadding() -> float");

extern "C" {static PyObject *meth_QTextTableCellFormat_bottomPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_bottomPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCellFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->bottomPadding();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_bottomPadding, doc_QTextTableCellFormat_bottomPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCellFormat_setLeftPadding, "QTextTableCellFormat.setLeftPadding(float)");

extern "C" {static PyObject *meth_QTextTableCellFormat_setLeftPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_setLeftPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextTableCellFormat, &sipCpp, &a0))
        {
            sipCpp->setLeftPadding(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_setLeftPadding, doc_QTextTableCellFormat_setLeftPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCellFormat_leftPadding, "QTextTableCellFormat.leftPadding() -> float");

extern "C" {static PyObject *meth_QTextTableCellFormat_leftPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_leftPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCellFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->leftPadding();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_leftPadding, doc_QTextTableCellFormat_leftPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCellFormat_setRightPadding, "QTextTableCellFormat.setRightPadding(float)");

extern "C" {static PyObject *meth_QTextTableCellFormat_setRightPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_setRightPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextTableCellFormat, &sipCpp, &a0))
        {
            sipCpp->setRightPadding(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_setRightPadding, doc_QTextTableCellFormat_setRightPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCellFormat_rightPadding, "QTextTableCellFormat.rightPadding() -> float");

extern "C" {static PyObject *meth_QTextTableCellFormat_rightPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_rightPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableCellFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->rightPadding();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_rightPadding, doc_QTextTableCellFormat_rightPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableCellFormat_setPadding, "QTextTableCellFormat.setPadding(float)");

extern "C" {static PyObject *meth_QTextTableCellFormat_setPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableCellFormat_setPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextTableCellFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextTableCellFormat, &sipCpp, &a0))
        {
            sipCpp->setPadding(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableCellFormat, sipName_setPadding, doc_QTextTableCellFormat_setPadding);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextTableCellFormat(void *, const sipTypeDef *);}
static void *cast_QTextTableCellFormat(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextTableCellFormat)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextCharFormat)->ctd_cast((QTextCharFormat *)(QTextTableCellFormat *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextTableCellFormat(void *, int);}
static void release_QTextTableCellFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QTextTableCellFormat *>(sipCppV);
}


extern "C" {static void assign_QTextTableCellFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextTableCellFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextTableCellFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextTableCellFormat *>(sipSrc);
}


extern "C" {static void *array_QTextTableCellFormat(SIP_SSIZE_T);}
static void *array_QTextTableCellFormat(SIP_SSIZE_T sipNrElem)
{
    return new QTextTableCellFormat[sipNrElem];
}


extern "C" {static void *copy_QTextTableCellFormat(const void *, SIP_SSIZE_T);}
static void *copy_QTextTableCellFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextTableCellFormat(reinterpret_cast<const QTextTableCellFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextTableCellFormat(sipSimpleWrapper *);}
static void dealloc_QTextTableCellFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextTableCellFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextTableCellFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextTableCellFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextTableCellFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextTableCellFormat();

            return sipCpp;
        }
    }

    {
        const QTextTableCellFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextTableCellFormat, &a0))
        {
            sipCpp = new QTextTableCellFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextTableCellFormat[] = {{275, 255, 1}};


static PyMethodDef methods_QTextTableCellFormat[] = {
    {SIP_MLNAME_CAST(sipName_bottomPadding), meth_QTextTableCellFormat_bottomPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_bottomPadding)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextTableCellFormat_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_isValid)},
    {SIP_MLNAME_CAST(sipName_leftPadding), meth_QTextTableCellFormat_leftPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_leftPadding)},
    {SIP_MLNAME_CAST(sipName_rightPadding), meth_QTextTableCellFormat_rightPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_rightPadding)},
    {SIP_MLNAME_CAST(sipName_setBottomPadding), meth_QTextTableCellFormat_setBottomPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_setBottomPadding)},
    {SIP_MLNAME_CAST(sipName_setLeftPadding), meth_QTextTableCellFormat_setLeftPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_setLeftPadding)},
    {SIP_MLNAME_CAST(sipName_setPadding), meth_QTextTableCellFormat_setPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_setPadding)},
    {SIP_MLNAME_CAST(sipName_setRightPadding), meth_QTextTableCellFormat_setRightPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_setRightPadding)},
    {SIP_MLNAME_CAST(sipName_setTopPadding), meth_QTextTableCellFormat_setTopPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_setTopPadding)},
    {SIP_MLNAME_CAST(sipName_topPadding), meth_QTextTableCellFormat_topPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableCellFormat_topPadding)}
};

PyDoc_STRVAR(doc_QTextTableCellFormat, "\1QTextTableCellFormat()\n"
    "QTextTableCellFormat(QTextTableCellFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextTableCellFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextTableCellFormat,
        {0}
    },
    {
        sipNameNr_QTextTableCellFormat,
        {0, 0, 1},
        10, methods_QTextTableCellFormat,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextTableCellFormat,
    -1,
    -1,
    supers_QTextTableCellFormat,
    0,
    init_type_QTextTableCellFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextTableCellFormat,
    assign_QTextTableCellFormat,
    array_QTextTableCellFormat,
    copy_QTextTableCellFormat,
    release_QTextTableCellFormat,
    cast_QTextTableCellFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39844 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 39848 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 39851 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39854 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39857 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 39860 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39863 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39866 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39869 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 39872 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39875 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39878 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39881 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 39884 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 39887 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 39890 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 39893 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 39896 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 39899 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextTableFormat_isValid, "QTextTableFormat.isValid() -> bool");

extern "C" {static PyObject *meth_QTextTableFormat_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_isValid, doc_QTextTableFormat_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_columns, "QTextTableFormat.columns() -> int");

extern "C" {static PyObject *meth_QTextTableFormat_columns(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_columns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->columns();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_columns, doc_QTextTableFormat_columns);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_setColumnWidthConstraints, "QTextTableFormat.setColumnWidthConstraints(list-of-QTextLength)");

extern "C" {static PyObject *meth_QTextTableFormat_setColumnWidthConstraints(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_setColumnWidthConstraints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector<QTextLength>* a0;
        int a0State = 0;
        QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextTableFormat, &sipCpp, sipType_QVector_0100QTextLength,&a0, &a0State))
        {
            sipCpp->setColumnWidthConstraints(*a0);
            sipReleaseType(const_cast<QVector<QTextLength> *>(a0),sipType_QVector_0100QTextLength,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_setColumnWidthConstraints, doc_QTextTableFormat_setColumnWidthConstraints);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_columnWidthConstraints, "QTextTableFormat.columnWidthConstraints() -> list-of-QTextLength");

extern "C" {static PyObject *meth_QTextTableFormat_columnWidthConstraints(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_columnWidthConstraints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableFormat, &sipCpp))
        {
            QVector<QTextLength>*sipRes;

            sipRes = new QVector<QTextLength>(sipCpp->columnWidthConstraints());

            return sipConvertFromNewType(sipRes,sipType_QVector_0100QTextLength,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_columnWidthConstraints, doc_QTextTableFormat_columnWidthConstraints);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_clearColumnWidthConstraints, "QTextTableFormat.clearColumnWidthConstraints()");

extern "C" {static PyObject *meth_QTextTableFormat_clearColumnWidthConstraints(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_clearColumnWidthConstraints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableFormat, &sipCpp))
        {
            sipCpp->clearColumnWidthConstraints();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_clearColumnWidthConstraints, doc_QTextTableFormat_clearColumnWidthConstraints);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_cellSpacing, "QTextTableFormat.cellSpacing() -> float");

extern "C" {static PyObject *meth_QTextTableFormat_cellSpacing(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_cellSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->cellSpacing();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_cellSpacing, doc_QTextTableFormat_cellSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_setCellSpacing, "QTextTableFormat.setCellSpacing(float)");

extern "C" {static PyObject *meth_QTextTableFormat_setCellSpacing(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_setCellSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextTableFormat, &sipCpp, &a0))
        {
            sipCpp->setCellSpacing(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_setCellSpacing, doc_QTextTableFormat_setCellSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_cellPadding, "QTextTableFormat.cellPadding() -> float");

extern "C" {static PyObject *meth_QTextTableFormat_cellPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_cellPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->cellPadding();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_cellPadding, doc_QTextTableFormat_cellPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_alignment, "QTextTableFormat.alignment() -> Qt.Alignment");

extern "C" {static PyObject *meth_QTextTableFormat_alignment(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_alignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableFormat, &sipCpp))
        {
            Qt::Alignment*sipRes;

            sipRes = new Qt::Alignment(sipCpp->alignment());

            return sipConvertFromNewType(sipRes,sipType_Qt_Alignment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_alignment, doc_QTextTableFormat_alignment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_setColumns, "QTextTableFormat.setColumns(int)");

extern "C" {static PyObject *meth_QTextTableFormat_setColumns(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_setColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextTableFormat, &sipCpp, &a0))
        {
            sipCpp->setColumns(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_setColumns, doc_QTextTableFormat_setColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_setCellPadding, "QTextTableFormat.setCellPadding(float)");

extern "C" {static PyObject *meth_QTextTableFormat_setCellPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_setCellPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextTableFormat, &sipCpp, &a0))
        {
            sipCpp->setCellPadding(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_setCellPadding, doc_QTextTableFormat_setCellPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_setAlignment, "QTextTableFormat.setAlignment(Qt.Alignment)");

extern "C" {static PyObject *meth_QTextTableFormat_setAlignment(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_setAlignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::Alignment* a0;
        int a0State = 0;
        QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextTableFormat, &sipCpp, sipType_Qt_Alignment, &a0, &a0State))
        {
            sipCpp->setAlignment(*a0);
            sipReleaseType(a0,sipType_Qt_Alignment,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_setAlignment, doc_QTextTableFormat_setAlignment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_setHeaderRowCount, "QTextTableFormat.setHeaderRowCount(int)");

extern "C" {static PyObject *meth_QTextTableFormat_setHeaderRowCount(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_setHeaderRowCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextTableFormat, &sipCpp, &a0))
        {
            sipCpp->setHeaderRowCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_setHeaderRowCount, doc_QTextTableFormat_setHeaderRowCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextTableFormat_headerRowCount, "QTextTableFormat.headerRowCount() -> int");

extern "C" {static PyObject *meth_QTextTableFormat_headerRowCount(PyObject *, PyObject *);}
static PyObject *meth_QTextTableFormat_headerRowCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextTableFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextTableFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->headerRowCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextTableFormat, sipName_headerRowCount, doc_QTextTableFormat_headerRowCount);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextTableFormat(void *, const sipTypeDef *);}
static void *cast_QTextTableFormat(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextTableFormat)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextFrameFormat)->ctd_cast((QTextFrameFormat *)(QTextTableFormat *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextTableFormat(void *, int);}
static void release_QTextTableFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QTextTableFormat *>(sipCppV);
}


extern "C" {static void assign_QTextTableFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextTableFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextTableFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextTableFormat *>(sipSrc);
}


extern "C" {static void *array_QTextTableFormat(SIP_SSIZE_T);}
static void *array_QTextTableFormat(SIP_SSIZE_T sipNrElem)
{
    return new QTextTableFormat[sipNrElem];
}


extern "C" {static void *copy_QTextTableFormat(const void *, SIP_SSIZE_T);}
static void *copy_QTextTableFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextTableFormat(reinterpret_cast<const QTextTableFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextTableFormat(sipSimpleWrapper *);}
static void dealloc_QTextTableFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextTableFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextTableFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextTableFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextTableFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextTableFormat();

            return sipCpp;
        }
    }

    {
        const QTextTableFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextTableFormat, &a0))
        {
            sipCpp = new QTextTableFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextTableFormat[] = {{300, 255, 1}};


static PyMethodDef methods_QTextTableFormat[] = {
    {SIP_MLNAME_CAST(sipName_alignment), meth_QTextTableFormat_alignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_alignment)},
    {SIP_MLNAME_CAST(sipName_cellPadding), meth_QTextTableFormat_cellPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_cellPadding)},
    {SIP_MLNAME_CAST(sipName_cellSpacing), meth_QTextTableFormat_cellSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_cellSpacing)},
    {SIP_MLNAME_CAST(sipName_clearColumnWidthConstraints), meth_QTextTableFormat_clearColumnWidthConstraints, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_clearColumnWidthConstraints)},
    {SIP_MLNAME_CAST(sipName_columnWidthConstraints), meth_QTextTableFormat_columnWidthConstraints, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_columnWidthConstraints)},
    {SIP_MLNAME_CAST(sipName_columns), meth_QTextTableFormat_columns, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_columns)},
    {SIP_MLNAME_CAST(sipName_headerRowCount), meth_QTextTableFormat_headerRowCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_headerRowCount)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextTableFormat_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_isValid)},
    {SIP_MLNAME_CAST(sipName_setAlignment), meth_QTextTableFormat_setAlignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_setAlignment)},
    {SIP_MLNAME_CAST(sipName_setCellPadding), meth_QTextTableFormat_setCellPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_setCellPadding)},
    {SIP_MLNAME_CAST(sipName_setCellSpacing), meth_QTextTableFormat_setCellSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_setCellSpacing)},
    {SIP_MLNAME_CAST(sipName_setColumnWidthConstraints), meth_QTextTableFormat_setColumnWidthConstraints, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_setColumnWidthConstraints)},
    {SIP_MLNAME_CAST(sipName_setColumns), meth_QTextTableFormat_setColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_setColumns)},
    {SIP_MLNAME_CAST(sipName_setHeaderRowCount), meth_QTextTableFormat_setHeaderRowCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextTableFormat_setHeaderRowCount)}
};

PyDoc_STRVAR(doc_QTextTableFormat, "\1QTextTableFormat()\n"
    "QTextTableFormat(QTextTableFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextTableFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextTableFormat,
        {0}
    },
    {
        sipNameNr_QTextTableFormat,
        {0, 0, 1},
        14, methods_QTextTableFormat,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextTableFormat,
    -1,
    -1,
    supers_QTextTableFormat,
    0,
    init_type_QTextTableFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextTableFormat,
    assign_QTextTableFormat,
    array_QTextTableFormat,
    copy_QTextTableFormat,
    release_QTextTableFormat,
    cast_QTextTableFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40449 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 40453 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40456 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40459 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40462 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40465 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 40468 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40471 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40474 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40477 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40480 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 40483 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 40486 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 40489 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 40492 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 40495 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 40498 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 40501 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextFrameFormat_isValid, "QTextFrameFormat.isValid() -> bool");

extern "C" {static PyObject *meth_QTextFrameFormat_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_isValid, doc_QTextFrameFormat_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setPosition, "QTextFrameFormat.setPosition(QTextFrameFormat.Position)");

extern "C" {static PyObject *meth_QTextFrameFormat_setPosition(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFrameFormat::Position a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextFrameFormat, &sipCpp, sipType_QTextFrameFormat_Position, &a0))
        {
            sipCpp->setPosition(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setPosition, doc_QTextFrameFormat_setPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_position, "QTextFrameFormat.position() -> QTextFrameFormat.Position");

extern "C" {static PyObject *meth_QTextFrameFormat_position(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_position(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            QTextFrameFormat::Position sipRes;

            sipRes = sipCpp->position();

            return sipConvertFromEnum(sipRes,sipType_QTextFrameFormat_Position);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_position, doc_QTextFrameFormat_position);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_border, "QTextFrameFormat.border() -> float");

extern "C" {static PyObject *meth_QTextFrameFormat_border(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_border(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->border();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_border, doc_QTextFrameFormat_border);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_margin, "QTextFrameFormat.margin() -> float");

extern "C" {static PyObject *meth_QTextFrameFormat_margin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_margin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->margin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_margin, doc_QTextFrameFormat_margin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_padding, "QTextFrameFormat.padding() -> float");

extern "C" {static PyObject *meth_QTextFrameFormat_padding(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_padding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->padding();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_padding, doc_QTextFrameFormat_padding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setWidth, "QTextFrameFormat.setWidth(QTextLength)\n"
    "QTextFrameFormat.setWidth(float)");

extern "C" {static PyObject *meth_QTextFrameFormat_setWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLength* a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextFrameFormat, &sipCpp, sipType_QTextLength, &a0))
        {
            sipCpp->setWidth(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextFrameFormat, &sipCpp, &a0))
        {
            sipCpp->setWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setWidth, doc_QTextFrameFormat_setWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_width, "QTextFrameFormat.width() -> QTextLength");

extern "C" {static PyObject *meth_QTextFrameFormat_width(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            QTextLength*sipRes;

            sipRes = new QTextLength(sipCpp->width());

            return sipConvertFromNewType(sipRes,sipType_QTextLength,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_width, doc_QTextFrameFormat_width);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_height, "QTextFrameFormat.height() -> QTextLength");

extern "C" {static PyObject *meth_QTextFrameFormat_height(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            QTextLength*sipRes;

            sipRes = new QTextLength(sipCpp->height());

            return sipConvertFromNewType(sipRes,sipType_QTextLength,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_height, doc_QTextFrameFormat_height);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setBorder, "QTextFrameFormat.setBorder(float)");

extern "C" {static PyObject *meth_QTextFrameFormat_setBorder(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setBorder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextFrameFormat, &sipCpp, &a0))
        {
            sipCpp->setBorder(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setBorder, doc_QTextFrameFormat_setBorder);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setMargin, "QTextFrameFormat.setMargin(float)");

extern "C" {static PyObject *meth_QTextFrameFormat_setMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextFrameFormat, &sipCpp, &a0))
        {
            sipCpp->setMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setMargin, doc_QTextFrameFormat_setMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setPadding, "QTextFrameFormat.setPadding(float)");

extern "C" {static PyObject *meth_QTextFrameFormat_setPadding(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setPadding(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextFrameFormat, &sipCpp, &a0))
        {
            sipCpp->setPadding(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setPadding, doc_QTextFrameFormat_setPadding);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setHeight, "QTextFrameFormat.setHeight(float)\n"
    "QTextFrameFormat.setHeight(QTextLength)");

extern "C" {static PyObject *meth_QTextFrameFormat_setHeight(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextFrameFormat, &sipCpp, &a0))
        {
            sipCpp->setHeight(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QTextLength* a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextFrameFormat, &sipCpp, sipType_QTextLength, &a0))
        {
            sipCpp->setHeight(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setHeight, doc_QTextFrameFormat_setHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setPageBreakPolicy, "QTextFrameFormat.setPageBreakPolicy(QTextFormat.PageBreakFlags)");

extern "C" {static PyObject *meth_QTextFrameFormat_setPageBreakPolicy(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setPageBreakPolicy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFormat::PageBreakFlags* a0;
        int a0State = 0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextFrameFormat, &sipCpp, sipType_QTextFormat_PageBreakFlags, &a0, &a0State))
        {
            sipCpp->setPageBreakPolicy(*a0);
            sipReleaseType(a0,sipType_QTextFormat_PageBreakFlags,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setPageBreakPolicy, doc_QTextFrameFormat_setPageBreakPolicy);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_pageBreakPolicy, "QTextFrameFormat.pageBreakPolicy() -> QTextFormat.PageBreakFlags");

extern "C" {static PyObject *meth_QTextFrameFormat_pageBreakPolicy(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_pageBreakPolicy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            QTextFormat::PageBreakFlags*sipRes;

            sipRes = new QTextFormat::PageBreakFlags(sipCpp->pageBreakPolicy());

            return sipConvertFromNewType(sipRes,sipType_QTextFormat_PageBreakFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_pageBreakPolicy, doc_QTextFrameFormat_pageBreakPolicy);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setBorderBrush, "QTextFrameFormat.setBorderBrush(QBrush)");

extern "C" {static PyObject *meth_QTextFrameFormat_setBorderBrush(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setBorderBrush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextFrameFormat, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setBorderBrush(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setBorderBrush, doc_QTextFrameFormat_setBorderBrush);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_borderBrush, "QTextFrameFormat.borderBrush() -> QBrush");

extern "C" {static PyObject *meth_QTextFrameFormat_borderBrush(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_borderBrush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->borderBrush());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_borderBrush, doc_QTextFrameFormat_borderBrush);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setBorderStyle, "QTextFrameFormat.setBorderStyle(QTextFrameFormat.BorderStyle)");

extern "C" {static PyObject *meth_QTextFrameFormat_setBorderStyle(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setBorderStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFrameFormat::BorderStyle a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextFrameFormat, &sipCpp, sipType_QTextFrameFormat_BorderStyle, &a0))
        {
            sipCpp->setBorderStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setBorderStyle, doc_QTextFrameFormat_setBorderStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_borderStyle, "QTextFrameFormat.borderStyle() -> QTextFrameFormat.BorderStyle");

extern "C" {static PyObject *meth_QTextFrameFormat_borderStyle(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_borderStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            QTextFrameFormat::BorderStyle sipRes;

            sipRes = sipCpp->borderStyle();

            return sipConvertFromEnum(sipRes,sipType_QTextFrameFormat_BorderStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_borderStyle, doc_QTextFrameFormat_borderStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_topMargin, "QTextFrameFormat.topMargin() -> float");

extern "C" {static PyObject *meth_QTextFrameFormat_topMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_topMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->topMargin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_topMargin, doc_QTextFrameFormat_topMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_bottomMargin, "QTextFrameFormat.bottomMargin() -> float");

extern "C" {static PyObject *meth_QTextFrameFormat_bottomMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_bottomMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->bottomMargin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_bottomMargin, doc_QTextFrameFormat_bottomMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_leftMargin, "QTextFrameFormat.leftMargin() -> float");

extern "C" {static PyObject *meth_QTextFrameFormat_leftMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_leftMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->leftMargin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_leftMargin, doc_QTextFrameFormat_leftMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_rightMargin, "QTextFrameFormat.rightMargin() -> float");

extern "C" {static PyObject *meth_QTextFrameFormat_rightMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_rightMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFrameFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->rightMargin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_rightMargin, doc_QTextFrameFormat_rightMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setTopMargin, "QTextFrameFormat.setTopMargin(float)");

extern "C" {static PyObject *meth_QTextFrameFormat_setTopMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setTopMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextFrameFormat, &sipCpp, &a0))
        {
            sipCpp->setTopMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setTopMargin, doc_QTextFrameFormat_setTopMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setBottomMargin, "QTextFrameFormat.setBottomMargin(float)");

extern "C" {static PyObject *meth_QTextFrameFormat_setBottomMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setBottomMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextFrameFormat, &sipCpp, &a0))
        {
            sipCpp->setBottomMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setBottomMargin, doc_QTextFrameFormat_setBottomMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setLeftMargin, "QTextFrameFormat.setLeftMargin(float)");

extern "C" {static PyObject *meth_QTextFrameFormat_setLeftMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setLeftMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextFrameFormat, &sipCpp, &a0))
        {
            sipCpp->setLeftMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setLeftMargin, doc_QTextFrameFormat_setLeftMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFrameFormat_setRightMargin, "QTextFrameFormat.setRightMargin(float)");

extern "C" {static PyObject *meth_QTextFrameFormat_setRightMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextFrameFormat_setRightMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextFrameFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextFrameFormat, &sipCpp, &a0))
        {
            sipCpp->setRightMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFrameFormat, sipName_setRightMargin, doc_QTextFrameFormat_setRightMargin);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextFrameFormat(void *, const sipTypeDef *);}
static void *cast_QTextFrameFormat(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextFrameFormat)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextFormat)->ctd_cast((QTextFormat *)(QTextFrameFormat *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextFrameFormat(void *, int);}
static void release_QTextFrameFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QTextFrameFormat *>(sipCppV);
}


extern "C" {static void assign_QTextFrameFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextFrameFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextFrameFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextFrameFormat *>(sipSrc);
}


extern "C" {static void *array_QTextFrameFormat(SIP_SSIZE_T);}
static void *array_QTextFrameFormat(SIP_SSIZE_T sipNrElem)
{
    return new QTextFrameFormat[sipNrElem];
}


extern "C" {static void *copy_QTextFrameFormat(const void *, SIP_SSIZE_T);}
static void *copy_QTextFrameFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextFrameFormat(reinterpret_cast<const QTextFrameFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextFrameFormat(sipSimpleWrapper *);}
static void dealloc_QTextFrameFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextFrameFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextFrameFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextFrameFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextFrameFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextFrameFormat();

            return sipCpp;
        }
    }

    {
        const QTextFrameFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextFrameFormat, &a0))
        {
            sipCpp = new QTextFrameFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextFrameFormat[] = {{291, 255, 1}};


static PyMethodDef methods_QTextFrameFormat[] = {
    {SIP_MLNAME_CAST(sipName_border), meth_QTextFrameFormat_border, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_border)},
    {SIP_MLNAME_CAST(sipName_borderBrush), meth_QTextFrameFormat_borderBrush, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_borderBrush)},
    {SIP_MLNAME_CAST(sipName_borderStyle), meth_QTextFrameFormat_borderStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_borderStyle)},
    {SIP_MLNAME_CAST(sipName_bottomMargin), meth_QTextFrameFormat_bottomMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_bottomMargin)},
    {SIP_MLNAME_CAST(sipName_height), meth_QTextFrameFormat_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_height)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextFrameFormat_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_isValid)},
    {SIP_MLNAME_CAST(sipName_leftMargin), meth_QTextFrameFormat_leftMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_leftMargin)},
    {SIP_MLNAME_CAST(sipName_margin), meth_QTextFrameFormat_margin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_margin)},
    {SIP_MLNAME_CAST(sipName_padding), meth_QTextFrameFormat_padding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_padding)},
    {SIP_MLNAME_CAST(sipName_pageBreakPolicy), meth_QTextFrameFormat_pageBreakPolicy, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_pageBreakPolicy)},
    {SIP_MLNAME_CAST(sipName_position), meth_QTextFrameFormat_position, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_position)},
    {SIP_MLNAME_CAST(sipName_rightMargin), meth_QTextFrameFormat_rightMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_rightMargin)},
    {SIP_MLNAME_CAST(sipName_setBorder), meth_QTextFrameFormat_setBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setBorder)},
    {SIP_MLNAME_CAST(sipName_setBorderBrush), meth_QTextFrameFormat_setBorderBrush, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setBorderBrush)},
    {SIP_MLNAME_CAST(sipName_setBorderStyle), meth_QTextFrameFormat_setBorderStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setBorderStyle)},
    {SIP_MLNAME_CAST(sipName_setBottomMargin), meth_QTextFrameFormat_setBottomMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setBottomMargin)},
    {SIP_MLNAME_CAST(sipName_setHeight), meth_QTextFrameFormat_setHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setHeight)},
    {SIP_MLNAME_CAST(sipName_setLeftMargin), meth_QTextFrameFormat_setLeftMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setLeftMargin)},
    {SIP_MLNAME_CAST(sipName_setMargin), meth_QTextFrameFormat_setMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setMargin)},
    {SIP_MLNAME_CAST(sipName_setPadding), meth_QTextFrameFormat_setPadding, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setPadding)},
    {SIP_MLNAME_CAST(sipName_setPageBreakPolicy), meth_QTextFrameFormat_setPageBreakPolicy, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setPageBreakPolicy)},
    {SIP_MLNAME_CAST(sipName_setPosition), meth_QTextFrameFormat_setPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setPosition)},
    {SIP_MLNAME_CAST(sipName_setRightMargin), meth_QTextFrameFormat_setRightMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setRightMargin)},
    {SIP_MLNAME_CAST(sipName_setTopMargin), meth_QTextFrameFormat_setTopMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setTopMargin)},
    {SIP_MLNAME_CAST(sipName_setWidth), meth_QTextFrameFormat_setWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_setWidth)},
    {SIP_MLNAME_CAST(sipName_topMargin), meth_QTextFrameFormat_topMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_topMargin)},
    {SIP_MLNAME_CAST(sipName_width), meth_QTextFrameFormat_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFrameFormat_width)}
};

static sipEnumMemberDef enummembers_QTextFrameFormat[] = {
    {sipName_BorderStyle_Dashed, static_cast<int>(QTextFrameFormat::BorderStyle_Dashed), 301},
    {sipName_BorderStyle_DotDash, static_cast<int>(QTextFrameFormat::BorderStyle_DotDash), 301},
    {sipName_BorderStyle_DotDotDash, static_cast<int>(QTextFrameFormat::BorderStyle_DotDotDash), 301},
    {sipName_BorderStyle_Dotted, static_cast<int>(QTextFrameFormat::BorderStyle_Dotted), 301},
    {sipName_BorderStyle_Double, static_cast<int>(QTextFrameFormat::BorderStyle_Double), 301},
    {sipName_BorderStyle_Groove, static_cast<int>(QTextFrameFormat::BorderStyle_Groove), 301},
    {sipName_BorderStyle_Inset, static_cast<int>(QTextFrameFormat::BorderStyle_Inset), 301},
    {sipName_BorderStyle_None, static_cast<int>(QTextFrameFormat::BorderStyle_None), 301},
    {sipName_BorderStyle_Outset, static_cast<int>(QTextFrameFormat::BorderStyle_Outset), 301},
    {sipName_BorderStyle_Ridge, static_cast<int>(QTextFrameFormat::BorderStyle_Ridge), 301},
    {sipName_BorderStyle_Solid, static_cast<int>(QTextFrameFormat::BorderStyle_Solid), 301},
    {sipName_FloatLeft, static_cast<int>(QTextFrameFormat::FloatLeft), 302},
    {sipName_FloatRight, static_cast<int>(QTextFrameFormat::FloatRight), 302},
    {sipName_InFlow, static_cast<int>(QTextFrameFormat::InFlow), 302},
};

PyDoc_STRVAR(doc_QTextFrameFormat, "\1QTextFrameFormat()\n"
    "QTextFrameFormat(QTextFrameFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextFrameFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextFrameFormat,
        {0}
    },
    {
        sipNameNr_QTextFrameFormat,
        {0, 0, 1},
        27, methods_QTextFrameFormat,
        14, enummembers_QTextFrameFormat,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextFrameFormat,
    -1,
    -1,
    supers_QTextFrameFormat,
    0,
    init_type_QTextFrameFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextFrameFormat,
    assign_QTextFrameFormat,
    array_QTextFrameFormat,
    copy_QTextFrameFormat,
    release_QTextFrameFormat,
    cast_QTextFrameFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41461 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 41465 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 41468 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 41471 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41474 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 41477 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 41480 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41483 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41486 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 41489 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 41492 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41495 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41498 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41501 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41504 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 41507 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 41510 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 41513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41516 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextImageFormat_isValid, "QTextImageFormat.isValid() -> bool");

extern "C" {static PyObject *meth_QTextImageFormat_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextImageFormat_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextImageFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextImageFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextImageFormat, sipName_isValid, doc_QTextImageFormat_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextImageFormat_name, "QTextImageFormat.name() -> str");

extern "C" {static PyObject *meth_QTextImageFormat_name(PyObject *, PyObject *);}
static PyObject *meth_QTextImageFormat_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextImageFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextImageFormat, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->name());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextImageFormat, sipName_name, doc_QTextImageFormat_name);

    return NULL;
}


PyDoc_STRVAR(doc_QTextImageFormat_width, "QTextImageFormat.width() -> float");

extern "C" {static PyObject *meth_QTextImageFormat_width(PyObject *, PyObject *);}
static PyObject *meth_QTextImageFormat_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextImageFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextImageFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->width();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextImageFormat, sipName_width, doc_QTextImageFormat_width);

    return NULL;
}


PyDoc_STRVAR(doc_QTextImageFormat_height, "QTextImageFormat.height() -> float");

extern "C" {static PyObject *meth_QTextImageFormat_height(PyObject *, PyObject *);}
static PyObject *meth_QTextImageFormat_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextImageFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextImageFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->height();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextImageFormat, sipName_height, doc_QTextImageFormat_height);

    return NULL;
}


PyDoc_STRVAR(doc_QTextImageFormat_setName, "QTextImageFormat.setName(str)");

extern "C" {static PyObject *meth_QTextImageFormat_setName(PyObject *, PyObject *);}
static PyObject *meth_QTextImageFormat_setName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextImageFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextImageFormat, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextImageFormat, sipName_setName, doc_QTextImageFormat_setName);

    return NULL;
}


PyDoc_STRVAR(doc_QTextImageFormat_setWidth, "QTextImageFormat.setWidth(float)");

extern "C" {static PyObject *meth_QTextImageFormat_setWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextImageFormat_setWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextImageFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextImageFormat, &sipCpp, &a0))
        {
            sipCpp->setWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextImageFormat, sipName_setWidth, doc_QTextImageFormat_setWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextImageFormat_setHeight, "QTextImageFormat.setHeight(float)");

extern "C" {static PyObject *meth_QTextImageFormat_setHeight(PyObject *, PyObject *);}
static PyObject *meth_QTextImageFormat_setHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextImageFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextImageFormat, &sipCpp, &a0))
        {
            sipCpp->setHeight(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextImageFormat, sipName_setHeight, doc_QTextImageFormat_setHeight);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextImageFormat(void *, const sipTypeDef *);}
static void *cast_QTextImageFormat(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextImageFormat)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextCharFormat)->ctd_cast((QTextCharFormat *)(QTextImageFormat *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextImageFormat(void *, int);}
static void release_QTextImageFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QTextImageFormat *>(sipCppV);
}


extern "C" {static void assign_QTextImageFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextImageFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextImageFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextImageFormat *>(sipSrc);
}


extern "C" {static void *array_QTextImageFormat(SIP_SSIZE_T);}
static void *array_QTextImageFormat(SIP_SSIZE_T sipNrElem)
{
    return new QTextImageFormat[sipNrElem];
}


extern "C" {static void *copy_QTextImageFormat(const void *, SIP_SSIZE_T);}
static void *copy_QTextImageFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextImageFormat(reinterpret_cast<const QTextImageFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextImageFormat(sipSimpleWrapper *);}
static void dealloc_QTextImageFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextImageFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextImageFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextImageFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextImageFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextImageFormat();

            return sipCpp;
        }
    }

    {
        const QTextImageFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextImageFormat, &a0))
        {
            sipCpp = new QTextImageFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextImageFormat[] = {{275, 255, 1}};


static PyMethodDef methods_QTextImageFormat[] = {
    {SIP_MLNAME_CAST(sipName_height), meth_QTextImageFormat_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextImageFormat_height)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextImageFormat_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextImageFormat_isValid)},
    {SIP_MLNAME_CAST(sipName_name), meth_QTextImageFormat_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextImageFormat_name)},
    {SIP_MLNAME_CAST(sipName_setHeight), meth_QTextImageFormat_setHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextImageFormat_setHeight)},
    {SIP_MLNAME_CAST(sipName_setName), meth_QTextImageFormat_setName, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextImageFormat_setName)},
    {SIP_MLNAME_CAST(sipName_setWidth), meth_QTextImageFormat_setWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextImageFormat_setWidth)},
    {SIP_MLNAME_CAST(sipName_width), meth_QTextImageFormat_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextImageFormat_width)}
};

PyDoc_STRVAR(doc_QTextImageFormat, "\1QTextImageFormat()\n"
    "QTextImageFormat(QTextImageFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextImageFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextImageFormat,
        {0}
    },
    {
        sipNameNr_QTextImageFormat,
        {0, 0, 1},
        7, methods_QTextImageFormat,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextImageFormat,
    -1,
    -1,
    supers_QTextImageFormat,
    0,
    init_type_QTextImageFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextImageFormat,
    assign_QTextImageFormat,
    array_QTextImageFormat,
    copy_QTextImageFormat,
    release_QTextImageFormat,
    cast_QTextImageFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41869 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 41873 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41876 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41879 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 41882 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 41885 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41888 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41891 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41894 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41897 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41900 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 41903 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 41906 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 41909 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 41912 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 41915 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 41918 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextListFormat_isValid, "QTextListFormat.isValid() -> bool");

extern "C" {static PyObject *meth_QTextListFormat_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextListFormat_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextListFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextListFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextListFormat, sipName_isValid, doc_QTextListFormat_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextListFormat_style, "QTextListFormat.style() -> QTextListFormat.Style");

extern "C" {static PyObject *meth_QTextListFormat_style(PyObject *, PyObject *);}
static PyObject *meth_QTextListFormat_style(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextListFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextListFormat, &sipCpp))
        {
            QTextListFormat::Style sipRes;

            sipRes = sipCpp->style();

            return sipConvertFromEnum(sipRes,sipType_QTextListFormat_Style);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextListFormat, sipName_style, doc_QTextListFormat_style);

    return NULL;
}


PyDoc_STRVAR(doc_QTextListFormat_indent, "QTextListFormat.indent() -> int");

extern "C" {static PyObject *meth_QTextListFormat_indent(PyObject *, PyObject *);}
static PyObject *meth_QTextListFormat_indent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextListFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextListFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->indent();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextListFormat, sipName_indent, doc_QTextListFormat_indent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextListFormat_setStyle, "QTextListFormat.setStyle(QTextListFormat.Style)");

extern "C" {static PyObject *meth_QTextListFormat_setStyle(PyObject *, PyObject *);}
static PyObject *meth_QTextListFormat_setStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextListFormat::Style a0;
        QTextListFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextListFormat, &sipCpp, sipType_QTextListFormat_Style, &a0))
        {
            sipCpp->setStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextListFormat, sipName_setStyle, doc_QTextListFormat_setStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QTextListFormat_setIndent, "QTextListFormat.setIndent(int)");

extern "C" {static PyObject *meth_QTextListFormat_setIndent(PyObject *, PyObject *);}
static PyObject *meth_QTextListFormat_setIndent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextListFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextListFormat, &sipCpp, &a0))
        {
            sipCpp->setIndent(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextListFormat, sipName_setIndent, doc_QTextListFormat_setIndent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextListFormat_numberPrefix, "QTextListFormat.numberPrefix() -> str");

extern "C" {static PyObject *meth_QTextListFormat_numberPrefix(PyObject *, PyObject *);}
static PyObject *meth_QTextListFormat_numberPrefix(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextListFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextListFormat, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->numberPrefix());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextListFormat, sipName_numberPrefix, doc_QTextListFormat_numberPrefix);

    return NULL;
}


PyDoc_STRVAR(doc_QTextListFormat_numberSuffix, "QTextListFormat.numberSuffix() -> str");

extern "C" {static PyObject *meth_QTextListFormat_numberSuffix(PyObject *, PyObject *);}
static PyObject *meth_QTextListFormat_numberSuffix(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextListFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextListFormat, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->numberSuffix());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextListFormat, sipName_numberSuffix, doc_QTextListFormat_numberSuffix);

    return NULL;
}


PyDoc_STRVAR(doc_QTextListFormat_setNumberPrefix, "QTextListFormat.setNumberPrefix(str)");

extern "C" {static PyObject *meth_QTextListFormat_setNumberPrefix(PyObject *, PyObject *);}
static PyObject *meth_QTextListFormat_setNumberPrefix(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextListFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextListFormat, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setNumberPrefix(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextListFormat, sipName_setNumberPrefix, doc_QTextListFormat_setNumberPrefix);

    return NULL;
}


PyDoc_STRVAR(doc_QTextListFormat_setNumberSuffix, "QTextListFormat.setNumberSuffix(str)");

extern "C" {static PyObject *meth_QTextListFormat_setNumberSuffix(PyObject *, PyObject *);}
static PyObject *meth_QTextListFormat_setNumberSuffix(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextListFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextListFormat, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setNumberSuffix(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextListFormat, sipName_setNumberSuffix, doc_QTextListFormat_setNumberSuffix);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextListFormat(void *, const sipTypeDef *);}
static void *cast_QTextListFormat(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextListFormat)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextFormat)->ctd_cast((QTextFormat *)(QTextListFormat *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextListFormat(void *, int);}
static void release_QTextListFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QTextListFormat *>(sipCppV);
}


extern "C" {static void assign_QTextListFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextListFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextListFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextListFormat *>(sipSrc);
}


extern "C" {static void *array_QTextListFormat(SIP_SSIZE_T);}
static void *array_QTextListFormat(SIP_SSIZE_T sipNrElem)
{
    return new QTextListFormat[sipNrElem];
}


extern "C" {static void *copy_QTextListFormat(const void *, SIP_SSIZE_T);}
static void *copy_QTextListFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextListFormat(reinterpret_cast<const QTextListFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextListFormat(sipSimpleWrapper *);}
static void dealloc_QTextListFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextListFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextListFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextListFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextListFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextListFormat();

            return sipCpp;
        }
    }

    {
        const QTextListFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextListFormat, &a0))
        {
            sipCpp = new QTextListFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextListFormat[] = {{291, 255, 1}};


static PyMethodDef methods_QTextListFormat[] = {
    {SIP_MLNAME_CAST(sipName_indent), meth_QTextListFormat_indent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextListFormat_indent)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextListFormat_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextListFormat_isValid)},
    {SIP_MLNAME_CAST(sipName_numberPrefix), meth_QTextListFormat_numberPrefix, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextListFormat_numberPrefix)},
    {SIP_MLNAME_CAST(sipName_numberSuffix), meth_QTextListFormat_numberSuffix, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextListFormat_numberSuffix)},
    {SIP_MLNAME_CAST(sipName_setIndent), meth_QTextListFormat_setIndent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextListFormat_setIndent)},
    {SIP_MLNAME_CAST(sipName_setNumberPrefix), meth_QTextListFormat_setNumberPrefix, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextListFormat_setNumberPrefix)},
    {SIP_MLNAME_CAST(sipName_setNumberSuffix), meth_QTextListFormat_setNumberSuffix, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextListFormat_setNumberSuffix)},
    {SIP_MLNAME_CAST(sipName_setStyle), meth_QTextListFormat_setStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextListFormat_setStyle)},
    {SIP_MLNAME_CAST(sipName_style), meth_QTextListFormat_style, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextListFormat_style)}
};

static sipEnumMemberDef enummembers_QTextListFormat[] = {
    {sipName_ListCircle, static_cast<int>(QTextListFormat::ListCircle), 318},
    {sipName_ListDecimal, static_cast<int>(QTextListFormat::ListDecimal), 318},
    {sipName_ListDisc, static_cast<int>(QTextListFormat::ListDisc), 318},
    {sipName_ListLowerAlpha, static_cast<int>(QTextListFormat::ListLowerAlpha), 318},
    {sipName_ListLowerRoman, static_cast<int>(QTextListFormat::ListLowerRoman), 318},
    {sipName_ListSquare, static_cast<int>(QTextListFormat::ListSquare), 318},
    {sipName_ListUpperAlpha, static_cast<int>(QTextListFormat::ListUpperAlpha), 318},
    {sipName_ListUpperRoman, static_cast<int>(QTextListFormat::ListUpperRoman), 318},
};

PyDoc_STRVAR(doc_QTextListFormat, "\1QTextListFormat()\n"
    "QTextListFormat(QTextListFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextListFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextListFormat,
        {0}
    },
    {
        sipNameNr_QTextListFormat,
        {0, 0, 1},
        9, methods_QTextListFormat,
        8, enummembers_QTextListFormat,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextListFormat,
    -1,
    -1,
    supers_QTextListFormat,
    0,
    init_type_QTextListFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextListFormat,
    assign_QTextListFormat,
    array_QTextListFormat,
    copy_QTextListFormat,
    release_QTextListFormat,
    cast_QTextListFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42340 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 42344 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 85 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 42349 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42352 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 42355 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42358 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42361 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 42364 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 42367 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42370 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42373 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42376 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42379 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 42385 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 42388 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 42391 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 42394 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 42397 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 42400 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 42403 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextBlockFormat_isValid, "QTextBlockFormat.isValid() -> bool");

extern "C" {static PyObject *meth_QTextBlockFormat_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_isValid, doc_QTextBlockFormat_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_alignment, "QTextBlockFormat.alignment() -> Qt.Alignment");

extern "C" {static PyObject *meth_QTextBlockFormat_alignment(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_alignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            Qt::Alignment*sipRes;

            sipRes = new Qt::Alignment(sipCpp->alignment());

            return sipConvertFromNewType(sipRes,sipType_Qt_Alignment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_alignment, doc_QTextBlockFormat_alignment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setTopMargin, "QTextBlockFormat.setTopMargin(float)");

extern "C" {static PyObject *meth_QTextBlockFormat_setTopMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setTopMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextBlockFormat, &sipCpp, &a0))
        {
            sipCpp->setTopMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setTopMargin, doc_QTextBlockFormat_setTopMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_topMargin, "QTextBlockFormat.topMargin() -> float");

extern "C" {static PyObject *meth_QTextBlockFormat_topMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_topMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->topMargin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_topMargin, doc_QTextBlockFormat_topMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setBottomMargin, "QTextBlockFormat.setBottomMargin(float)");

extern "C" {static PyObject *meth_QTextBlockFormat_setBottomMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setBottomMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextBlockFormat, &sipCpp, &a0))
        {
            sipCpp->setBottomMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setBottomMargin, doc_QTextBlockFormat_setBottomMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_bottomMargin, "QTextBlockFormat.bottomMargin() -> float");

extern "C" {static PyObject *meth_QTextBlockFormat_bottomMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_bottomMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->bottomMargin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_bottomMargin, doc_QTextBlockFormat_bottomMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setLeftMargin, "QTextBlockFormat.setLeftMargin(float)");

extern "C" {static PyObject *meth_QTextBlockFormat_setLeftMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setLeftMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextBlockFormat, &sipCpp, &a0))
        {
            sipCpp->setLeftMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setLeftMargin, doc_QTextBlockFormat_setLeftMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_leftMargin, "QTextBlockFormat.leftMargin() -> float");

extern "C" {static PyObject *meth_QTextBlockFormat_leftMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_leftMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->leftMargin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_leftMargin, doc_QTextBlockFormat_leftMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setRightMargin, "QTextBlockFormat.setRightMargin(float)");

extern "C" {static PyObject *meth_QTextBlockFormat_setRightMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setRightMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextBlockFormat, &sipCpp, &a0))
        {
            sipCpp->setRightMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setRightMargin, doc_QTextBlockFormat_setRightMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_rightMargin, "QTextBlockFormat.rightMargin() -> float");

extern "C" {static PyObject *meth_QTextBlockFormat_rightMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_rightMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->rightMargin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_rightMargin, doc_QTextBlockFormat_rightMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setTextIndent, "QTextBlockFormat.setTextIndent(float)");

extern "C" {static PyObject *meth_QTextBlockFormat_setTextIndent(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setTextIndent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextBlockFormat, &sipCpp, &a0))
        {
            sipCpp->setTextIndent(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setTextIndent, doc_QTextBlockFormat_setTextIndent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_textIndent, "QTextBlockFormat.textIndent() -> float");

extern "C" {static PyObject *meth_QTextBlockFormat_textIndent(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_textIndent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->textIndent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_textIndent, doc_QTextBlockFormat_textIndent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_indent, "QTextBlockFormat.indent() -> int");

extern "C" {static PyObject *meth_QTextBlockFormat_indent(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_indent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->indent();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_indent, doc_QTextBlockFormat_indent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setNonBreakableLines, "QTextBlockFormat.setNonBreakableLines(bool)");

extern "C" {static PyObject *meth_QTextBlockFormat_setNonBreakableLines(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setNonBreakableLines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextBlockFormat, &sipCpp, &a0))
        {
            sipCpp->setNonBreakableLines(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setNonBreakableLines, doc_QTextBlockFormat_setNonBreakableLines);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_nonBreakableLines, "QTextBlockFormat.nonBreakableLines() -> bool");

extern "C" {static PyObject *meth_QTextBlockFormat_nonBreakableLines(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_nonBreakableLines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->nonBreakableLines();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_nonBreakableLines, doc_QTextBlockFormat_nonBreakableLines);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setAlignment, "QTextBlockFormat.setAlignment(Qt.Alignment)");

extern "C" {static PyObject *meth_QTextBlockFormat_setAlignment(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setAlignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::Alignment* a0;
        int a0State = 0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextBlockFormat, &sipCpp, sipType_Qt_Alignment, &a0, &a0State))
        {
            sipCpp->setAlignment(*a0);
            sipReleaseType(a0,sipType_Qt_Alignment,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setAlignment, doc_QTextBlockFormat_setAlignment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setIndent, "QTextBlockFormat.setIndent(int)");

extern "C" {static PyObject *meth_QTextBlockFormat_setIndent(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setIndent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextBlockFormat, &sipCpp, &a0))
        {
            sipCpp->setIndent(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setIndent, doc_QTextBlockFormat_setIndent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setPageBreakPolicy, "QTextBlockFormat.setPageBreakPolicy(QTextFormat.PageBreakFlags)");

extern "C" {static PyObject *meth_QTextBlockFormat_setPageBreakPolicy(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setPageBreakPolicy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFormat::PageBreakFlags* a0;
        int a0State = 0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextBlockFormat, &sipCpp, sipType_QTextFormat_PageBreakFlags, &a0, &a0State))
        {
            sipCpp->setPageBreakPolicy(*a0);
            sipReleaseType(a0,sipType_QTextFormat_PageBreakFlags,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setPageBreakPolicy, doc_QTextBlockFormat_setPageBreakPolicy);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_pageBreakPolicy, "QTextBlockFormat.pageBreakPolicy() -> QTextFormat.PageBreakFlags");

extern "C" {static PyObject *meth_QTextBlockFormat_pageBreakPolicy(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_pageBreakPolicy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            QTextFormat::PageBreakFlags*sipRes;

            sipRes = new QTextFormat::PageBreakFlags(sipCpp->pageBreakPolicy());

            return sipConvertFromNewType(sipRes,sipType_QTextFormat_PageBreakFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_pageBreakPolicy, doc_QTextBlockFormat_pageBreakPolicy);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setTabPositions, "QTextBlockFormat.setTabPositions(list-of-QTextOption.Tab)");

extern "C" {static PyObject *meth_QTextBlockFormat_setTabPositions(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setTabPositions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QTextOption::Tab>* a0;
        int a0State = 0;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextBlockFormat, &sipCpp, sipType_QList_0100QTextOption_Tab,&a0, &a0State))
        {
            sipCpp->setTabPositions(*a0);
            sipReleaseType(const_cast<QList<QTextOption::Tab> *>(a0),sipType_QList_0100QTextOption_Tab,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setTabPositions, doc_QTextBlockFormat_setTabPositions);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_tabPositions, "QTextBlockFormat.tabPositions() -> list-of-QTextOption.Tab");

extern "C" {static PyObject *meth_QTextBlockFormat_tabPositions(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_tabPositions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            QList<QTextOption::Tab>*sipRes;

            sipRes = new QList<QTextOption::Tab>(sipCpp->tabPositions());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QTextOption_Tab,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_tabPositions, doc_QTextBlockFormat_tabPositions);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_setLineHeight, "QTextBlockFormat.setLineHeight(float, int)");

extern "C" {static PyObject *meth_QTextBlockFormat_setLineHeight(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_setLineHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        int a1;
        QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdi", &sipSelf, sipType_QTextBlockFormat, &sipCpp, &a0, &a1))
        {
            sipCpp->setLineHeight(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_setLineHeight, doc_QTextBlockFormat_setLineHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_lineHeight, "QTextBlockFormat.lineHeight(float, float) -> float\n"
    "QTextBlockFormat.lineHeight() -> float");

extern "C" {static PyObject *meth_QTextBlockFormat_lineHeight(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_lineHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QTextBlockFormat, &sipCpp, &a0, &a1))
        {
            qreal sipRes;

            sipRes = sipCpp->lineHeight(a0,a1);

            return PyFloat_FromDouble(sipRes);
        }
    }

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->lineHeight();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_lineHeight, doc_QTextBlockFormat_lineHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QTextBlockFormat_lineHeightType, "QTextBlockFormat.lineHeightType() -> int");

extern "C" {static PyObject *meth_QTextBlockFormat_lineHeightType(PyObject *, PyObject *);}
static PyObject *meth_QTextBlockFormat_lineHeightType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextBlockFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->lineHeightType();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextBlockFormat, sipName_lineHeightType, doc_QTextBlockFormat_lineHeightType);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextBlockFormat(void *, const sipTypeDef *);}
static void *cast_QTextBlockFormat(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextBlockFormat)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextFormat)->ctd_cast((QTextFormat *)(QTextBlockFormat *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextBlockFormat(void *, int);}
static void release_QTextBlockFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QTextBlockFormat *>(sipCppV);
}


extern "C" {static void assign_QTextBlockFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextBlockFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextBlockFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextBlockFormat *>(sipSrc);
}


extern "C" {static void *array_QTextBlockFormat(SIP_SSIZE_T);}
static void *array_QTextBlockFormat(SIP_SSIZE_T sipNrElem)
{
    return new QTextBlockFormat[sipNrElem];
}


extern "C" {static void *copy_QTextBlockFormat(const void *, SIP_SSIZE_T);}
static void *copy_QTextBlockFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextBlockFormat(reinterpret_cast<const QTextBlockFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextBlockFormat(sipSimpleWrapper *);}
static void dealloc_QTextBlockFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextBlockFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextBlockFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextBlockFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextBlockFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextBlockFormat();

            return sipCpp;
        }
    }

    {
        const QTextBlockFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextBlockFormat, &a0))
        {
            sipCpp = new QTextBlockFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextBlockFormat[] = {{291, 255, 1}};


static PyMethodDef methods_QTextBlockFormat[] = {
    {SIP_MLNAME_CAST(sipName_alignment), meth_QTextBlockFormat_alignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_alignment)},
    {SIP_MLNAME_CAST(sipName_bottomMargin), meth_QTextBlockFormat_bottomMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_bottomMargin)},
    {SIP_MLNAME_CAST(sipName_indent), meth_QTextBlockFormat_indent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_indent)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextBlockFormat_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_isValid)},
    {SIP_MLNAME_CAST(sipName_leftMargin), meth_QTextBlockFormat_leftMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_leftMargin)},
    {SIP_MLNAME_CAST(sipName_lineHeight), meth_QTextBlockFormat_lineHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_lineHeight)},
    {SIP_MLNAME_CAST(sipName_lineHeightType), meth_QTextBlockFormat_lineHeightType, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_lineHeightType)},
    {SIP_MLNAME_CAST(sipName_nonBreakableLines), meth_QTextBlockFormat_nonBreakableLines, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_nonBreakableLines)},
    {SIP_MLNAME_CAST(sipName_pageBreakPolicy), meth_QTextBlockFormat_pageBreakPolicy, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_pageBreakPolicy)},
    {SIP_MLNAME_CAST(sipName_rightMargin), meth_QTextBlockFormat_rightMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_rightMargin)},
    {SIP_MLNAME_CAST(sipName_setAlignment), meth_QTextBlockFormat_setAlignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setAlignment)},
    {SIP_MLNAME_CAST(sipName_setBottomMargin), meth_QTextBlockFormat_setBottomMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setBottomMargin)},
    {SIP_MLNAME_CAST(sipName_setIndent), meth_QTextBlockFormat_setIndent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setIndent)},
    {SIP_MLNAME_CAST(sipName_setLeftMargin), meth_QTextBlockFormat_setLeftMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setLeftMargin)},
    {SIP_MLNAME_CAST(sipName_setLineHeight), meth_QTextBlockFormat_setLineHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setLineHeight)},
    {SIP_MLNAME_CAST(sipName_setNonBreakableLines), meth_QTextBlockFormat_setNonBreakableLines, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setNonBreakableLines)},
    {SIP_MLNAME_CAST(sipName_setPageBreakPolicy), meth_QTextBlockFormat_setPageBreakPolicy, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setPageBreakPolicy)},
    {SIP_MLNAME_CAST(sipName_setRightMargin), meth_QTextBlockFormat_setRightMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setRightMargin)},
    {SIP_MLNAME_CAST(sipName_setTabPositions), meth_QTextBlockFormat_setTabPositions, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setTabPositions)},
    {SIP_MLNAME_CAST(sipName_setTextIndent), meth_QTextBlockFormat_setTextIndent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setTextIndent)},
    {SIP_MLNAME_CAST(sipName_setTopMargin), meth_QTextBlockFormat_setTopMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_setTopMargin)},
    {SIP_MLNAME_CAST(sipName_tabPositions), meth_QTextBlockFormat_tabPositions, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_tabPositions)},
    {SIP_MLNAME_CAST(sipName_textIndent), meth_QTextBlockFormat_textIndent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_textIndent)},
    {SIP_MLNAME_CAST(sipName_topMargin), meth_QTextBlockFormat_topMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextBlockFormat_topMargin)}
};

static sipEnumMemberDef enummembers_QTextBlockFormat[] = {
    {sipName_FixedHeight, static_cast<int>(QTextBlockFormat::FixedHeight), 272},
    {sipName_LineDistanceHeight, static_cast<int>(QTextBlockFormat::LineDistanceHeight), 272},
    {sipName_MinimumHeight, static_cast<int>(QTextBlockFormat::MinimumHeight), 272},
    {sipName_ProportionalHeight, static_cast<int>(QTextBlockFormat::ProportionalHeight), 272},
    {sipName_SingleHeight, static_cast<int>(QTextBlockFormat::SingleHeight), 272},
};

PyDoc_STRVAR(doc_QTextBlockFormat, "\1QTextBlockFormat()\n"
    "QTextBlockFormat(QTextBlockFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextBlockFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextBlockFormat,
        {0}
    },
    {
        sipNameNr_QTextBlockFormat,
        {0, 0, 1},
        24, methods_QTextBlockFormat,
        5, enummembers_QTextBlockFormat,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextBlockFormat,
    -1,
    -1,
    supers_QTextBlockFormat,
    0,
    init_type_QTextBlockFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextBlockFormat,
    assign_QTextBlockFormat,
    array_QTextBlockFormat,
    copy_QTextBlockFormat,
    release_QTextBlockFormat,
    cast_QTextBlockFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43261 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 43265 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 43268 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 43271 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 43274 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 43277 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43280 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43283 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 43286 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 43289 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43292 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43295 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43298 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43301 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43304 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 43307 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 43310 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 43313 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 43316 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextCharFormat_isValid, "QTextCharFormat.isValid() -> bool");

extern "C" {static PyObject *meth_QTextCharFormat_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_isValid, doc_QTextCharFormat_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFont, "QTextCharFormat.setFont(QFont)\n"
    "QTextCharFormat.setFont(QFont, QTextCharFormat.FontPropertiesInheritanceBehavior)");

extern "C" {static PyObject *meth_QTextCharFormat_setFont(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QFont, &a0))
        {
            sipCpp->setFont(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QFont* a0;
        QTextCharFormat::FontPropertiesInheritanceBehavior a1;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QFont, &a0, sipType_QTextCharFormat_FontPropertiesInheritanceBehavior, &a1))
        {
            sipCpp->setFont(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFont, doc_QTextCharFormat_setFont);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_font, "QTextCharFormat.font() -> QFont");

extern "C" {static PyObject *meth_QTextCharFormat_font(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_font(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QFont*sipRes;

            sipRes = new QFont(sipCpp->font());

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_font, doc_QTextCharFormat_font);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontFamily, "QTextCharFormat.setFontFamily(str)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontFamily(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontFamily(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setFontFamily(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontFamily, doc_QTextCharFormat_setFontFamily);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontFamily, "QTextCharFormat.fontFamily() -> str");

extern "C" {static PyObject *meth_QTextCharFormat_fontFamily(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontFamily(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->fontFamily());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontFamily, doc_QTextCharFormat_fontFamily);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontPointSize, "QTextCharFormat.setFontPointSize(float)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontPointSize(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontPointSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontPointSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontPointSize, doc_QTextCharFormat_setFontPointSize);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontPointSize, "QTextCharFormat.fontPointSize() -> float");

extern "C" {static PyObject *meth_QTextCharFormat_fontPointSize(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontPointSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->fontPointSize();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontPointSize, doc_QTextCharFormat_fontPointSize);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontWeight, "QTextCharFormat.setFontWeight(int)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontWeight(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontWeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontWeight(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontWeight, doc_QTextCharFormat_setFontWeight);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontWeight, "QTextCharFormat.fontWeight() -> int");

extern "C" {static PyObject *meth_QTextCharFormat_fontWeight(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontWeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->fontWeight();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontWeight, doc_QTextCharFormat_fontWeight);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontItalic, "QTextCharFormat.setFontItalic(bool)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontItalic(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontItalic(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontItalic(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontItalic, doc_QTextCharFormat_setFontItalic);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontItalic, "QTextCharFormat.fontItalic() -> bool");

extern "C" {static PyObject *meth_QTextCharFormat_fontItalic(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontItalic(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fontItalic();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontItalic, doc_QTextCharFormat_fontItalic);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontUnderline, "QTextCharFormat.setFontUnderline(bool)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontUnderline(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontUnderline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontUnderline(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontUnderline, doc_QTextCharFormat_setFontUnderline);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontUnderline, "QTextCharFormat.fontUnderline() -> bool");

extern "C" {static PyObject *meth_QTextCharFormat_fontUnderline(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontUnderline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fontUnderline();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontUnderline, doc_QTextCharFormat_fontUnderline);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontOverline, "QTextCharFormat.setFontOverline(bool)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontOverline(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontOverline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontOverline(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontOverline, doc_QTextCharFormat_setFontOverline);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontOverline, "QTextCharFormat.fontOverline() -> bool");

extern "C" {static PyObject *meth_QTextCharFormat_fontOverline(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontOverline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fontOverline();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontOverline, doc_QTextCharFormat_fontOverline);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontStrikeOut, "QTextCharFormat.setFontStrikeOut(bool)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontStrikeOut(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontStrikeOut(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontStrikeOut(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontStrikeOut, doc_QTextCharFormat_setFontStrikeOut);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontStrikeOut, "QTextCharFormat.fontStrikeOut() -> bool");

extern "C" {static PyObject *meth_QTextCharFormat_fontStrikeOut(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontStrikeOut(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fontStrikeOut();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontStrikeOut, doc_QTextCharFormat_fontStrikeOut);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setUnderlineColor, "QTextCharFormat.setUnderlineColor(QColor)");

extern "C" {static PyObject *meth_QTextCharFormat_setUnderlineColor(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setUnderlineColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setUnderlineColor(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setUnderlineColor, doc_QTextCharFormat_setUnderlineColor);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_underlineColor, "QTextCharFormat.underlineColor() -> QColor");

extern "C" {static PyObject *meth_QTextCharFormat_underlineColor(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_underlineColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->underlineColor());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_underlineColor, doc_QTextCharFormat_underlineColor);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontFixedPitch, "QTextCharFormat.setFontFixedPitch(bool)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontFixedPitch(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontFixedPitch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontFixedPitch(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontFixedPitch, doc_QTextCharFormat_setFontFixedPitch);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontFixedPitch, "QTextCharFormat.fontFixedPitch() -> bool");

extern "C" {static PyObject *meth_QTextCharFormat_fontFixedPitch(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontFixedPitch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fontFixedPitch();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontFixedPitch, doc_QTextCharFormat_fontFixedPitch);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setVerticalAlignment, "QTextCharFormat.setVerticalAlignment(QTextCharFormat.VerticalAlignment)");

extern "C" {static PyObject *meth_QTextCharFormat_setVerticalAlignment(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setVerticalAlignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCharFormat::VerticalAlignment a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QTextCharFormat_VerticalAlignment, &a0))
        {
            sipCpp->setVerticalAlignment(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setVerticalAlignment, doc_QTextCharFormat_setVerticalAlignment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_verticalAlignment, "QTextCharFormat.verticalAlignment() -> QTextCharFormat.VerticalAlignment");

extern "C" {static PyObject *meth_QTextCharFormat_verticalAlignment(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_verticalAlignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QTextCharFormat::VerticalAlignment sipRes;

            sipRes = sipCpp->verticalAlignment();

            return sipConvertFromEnum(sipRes,sipType_QTextCharFormat_VerticalAlignment);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_verticalAlignment, doc_QTextCharFormat_verticalAlignment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setAnchor, "QTextCharFormat.setAnchor(bool)");

extern "C" {static PyObject *meth_QTextCharFormat_setAnchor(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setAnchor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setAnchor(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setAnchor, doc_QTextCharFormat_setAnchor);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_isAnchor, "QTextCharFormat.isAnchor() -> bool");

extern "C" {static PyObject *meth_QTextCharFormat_isAnchor(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_isAnchor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAnchor();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_isAnchor, doc_QTextCharFormat_isAnchor);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setAnchorHref, "QTextCharFormat.setAnchorHref(str)");

extern "C" {static PyObject *meth_QTextCharFormat_setAnchorHref(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setAnchorHref(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setAnchorHref(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setAnchorHref, doc_QTextCharFormat_setAnchorHref);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_anchorHref, "QTextCharFormat.anchorHref() -> str");

extern "C" {static PyObject *meth_QTextCharFormat_anchorHref(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_anchorHref(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->anchorHref());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_anchorHref, doc_QTextCharFormat_anchorHref);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_tableCellRowSpan, "QTextCharFormat.tableCellRowSpan() -> int");

extern "C" {static PyObject *meth_QTextCharFormat_tableCellRowSpan(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_tableCellRowSpan(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->tableCellRowSpan();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_tableCellRowSpan, doc_QTextCharFormat_tableCellRowSpan);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_tableCellColumnSpan, "QTextCharFormat.tableCellColumnSpan() -> int");

extern "C" {static PyObject *meth_QTextCharFormat_tableCellColumnSpan(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_tableCellColumnSpan(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->tableCellColumnSpan();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_tableCellColumnSpan, doc_QTextCharFormat_tableCellColumnSpan);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setTableCellRowSpan, "QTextCharFormat.setTableCellRowSpan(int)");

extern "C" {static PyObject *meth_QTextCharFormat_setTableCellRowSpan(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setTableCellRowSpan(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setTableCellRowSpan(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setTableCellRowSpan, doc_QTextCharFormat_setTableCellRowSpan);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setTableCellColumnSpan, "QTextCharFormat.setTableCellColumnSpan(int)");

extern "C" {static PyObject *meth_QTextCharFormat_setTableCellColumnSpan(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setTableCellColumnSpan(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setTableCellColumnSpan(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setTableCellColumnSpan, doc_QTextCharFormat_setTableCellColumnSpan);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setTextOutline, "QTextCharFormat.setTextOutline(QPen)");

extern "C" {static PyObject *meth_QTextCharFormat_setTextOutline(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setTextOutline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen* a0;
        int a0State = 0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QPen, &a0, &a0State))
        {
            sipCpp->setTextOutline(*a0);
            sipReleaseType(const_cast<QPen *>(a0),sipType_QPen,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setTextOutline, doc_QTextCharFormat_setTextOutline);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_textOutline, "QTextCharFormat.textOutline() -> QPen");

extern "C" {static PyObject *meth_QTextCharFormat_textOutline(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_textOutline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QPen*sipRes;

            sipRes = new QPen(sipCpp->textOutline());

            return sipConvertFromNewType(sipRes,sipType_QPen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_textOutline, doc_QTextCharFormat_textOutline);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setUnderlineStyle, "QTextCharFormat.setUnderlineStyle(QTextCharFormat.UnderlineStyle)");

extern "C" {static PyObject *meth_QTextCharFormat_setUnderlineStyle(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setUnderlineStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCharFormat::UnderlineStyle a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QTextCharFormat_UnderlineStyle, &a0))
        {
            sipCpp->setUnderlineStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setUnderlineStyle, doc_QTextCharFormat_setUnderlineStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_underlineStyle, "QTextCharFormat.underlineStyle() -> QTextCharFormat.UnderlineStyle");

extern "C" {static PyObject *meth_QTextCharFormat_underlineStyle(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_underlineStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QTextCharFormat::UnderlineStyle sipRes;

            sipRes = sipCpp->underlineStyle();

            return sipConvertFromEnum(sipRes,sipType_QTextCharFormat_UnderlineStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_underlineStyle, doc_QTextCharFormat_underlineStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setToolTip, "QTextCharFormat.setToolTip(str)");

extern "C" {static PyObject *meth_QTextCharFormat_setToolTip(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setToolTip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setToolTip(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setToolTip, doc_QTextCharFormat_setToolTip);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_toolTip, "QTextCharFormat.toolTip() -> str");

extern "C" {static PyObject *meth_QTextCharFormat_toolTip(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_toolTip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->toolTip());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_toolTip, doc_QTextCharFormat_toolTip);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setAnchorNames, "QTextCharFormat.setAnchorNames(list-of-str)");

extern "C" {static PyObject *meth_QTextCharFormat_setAnchorNames(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setAnchorNames(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            sipCpp->setAnchorNames(*a0);
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setAnchorNames, doc_QTextCharFormat_setAnchorNames);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_anchorNames, "QTextCharFormat.anchorNames() -> list-of-str");

extern "C" {static PyObject *meth_QTextCharFormat_anchorNames(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_anchorNames(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QStringList*sipRes;

            sipRes = new QStringList(sipCpp->anchorNames());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_anchorNames, doc_QTextCharFormat_anchorNames);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontCapitalization, "QTextCharFormat.setFontCapitalization(QFont.Capitalization)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontCapitalization(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontCapitalization(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::Capitalization a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QFont_Capitalization, &a0))
        {
            sipCpp->setFontCapitalization(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontCapitalization, doc_QTextCharFormat_setFontCapitalization);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontCapitalization, "QTextCharFormat.fontCapitalization() -> QFont.Capitalization");

extern "C" {static PyObject *meth_QTextCharFormat_fontCapitalization(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontCapitalization(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QFont::Capitalization sipRes;

            sipRes = sipCpp->fontCapitalization();

            return sipConvertFromEnum(sipRes,sipType_QFont_Capitalization);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontCapitalization, doc_QTextCharFormat_fontCapitalization);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontLetterSpacing, "QTextCharFormat.setFontLetterSpacing(float)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontLetterSpacing(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontLetterSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontLetterSpacing(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontLetterSpacing, doc_QTextCharFormat_setFontLetterSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontLetterSpacing, "QTextCharFormat.fontLetterSpacing() -> float");

extern "C" {static PyObject *meth_QTextCharFormat_fontLetterSpacing(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontLetterSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->fontLetterSpacing();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontLetterSpacing, doc_QTextCharFormat_fontLetterSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontWordSpacing, "QTextCharFormat.setFontWordSpacing(float)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontWordSpacing(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontWordSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontWordSpacing(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontWordSpacing, doc_QTextCharFormat_setFontWordSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontWordSpacing, "QTextCharFormat.fontWordSpacing() -> float");

extern "C" {static PyObject *meth_QTextCharFormat_fontWordSpacing(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontWordSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->fontWordSpacing();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontWordSpacing, doc_QTextCharFormat_fontWordSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontStyleHint, "QTextCharFormat.setFontStyleHint(QFont.StyleHint, QFont.StyleStrategy strategy=QFont.PreferDefault)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontStyleHint(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontStyleHint(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::StyleHint a0;
        QFont::StyleStrategy a1 = QFont::PreferDefault;
        QTextCharFormat *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_strategy,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|E", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QFont_StyleHint, &a0, sipType_QFont_StyleStrategy, &a1))
        {
            sipCpp->setFontStyleHint(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontStyleHint, doc_QTextCharFormat_setFontStyleHint);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontStyleStrategy, "QTextCharFormat.setFontStyleStrategy(QFont.StyleStrategy)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontStyleStrategy(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontStyleStrategy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::StyleStrategy a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QFont_StyleStrategy, &a0))
        {
            sipCpp->setFontStyleStrategy(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontStyleStrategy, doc_QTextCharFormat_setFontStyleStrategy);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontStyleHint, "QTextCharFormat.fontStyleHint() -> QFont.StyleHint");

extern "C" {static PyObject *meth_QTextCharFormat_fontStyleHint(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontStyleHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QFont::StyleHint sipRes;

            sipRes = sipCpp->fontStyleHint();

            return sipConvertFromEnum(sipRes,sipType_QFont_StyleHint);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontStyleHint, doc_QTextCharFormat_fontStyleHint);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontStyleStrategy, "QTextCharFormat.fontStyleStrategy() -> QFont.StyleStrategy");

extern "C" {static PyObject *meth_QTextCharFormat_fontStyleStrategy(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontStyleStrategy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QFont::StyleStrategy sipRes;

            sipRes = sipCpp->fontStyleStrategy();

            return sipConvertFromEnum(sipRes,sipType_QFont_StyleStrategy);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontStyleStrategy, doc_QTextCharFormat_fontStyleStrategy);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontKerning, "QTextCharFormat.setFontKerning(bool)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontKerning(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontKerning(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontKerning(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontKerning, doc_QTextCharFormat_setFontKerning);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontKerning, "QTextCharFormat.fontKerning() -> bool");

extern "C" {static PyObject *meth_QTextCharFormat_fontKerning(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontKerning(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fontKerning();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontKerning, doc_QTextCharFormat_fontKerning);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontHintingPreference, "QTextCharFormat.setFontHintingPreference(QFont.HintingPreference)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontHintingPreference(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontHintingPreference(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::HintingPreference a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QFont_HintingPreference, &a0))
        {
            sipCpp->setFontHintingPreference(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontHintingPreference, doc_QTextCharFormat_setFontHintingPreference);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontHintingPreference, "QTextCharFormat.fontHintingPreference() -> QFont.HintingPreference");

extern "C" {static PyObject *meth_QTextCharFormat_fontHintingPreference(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontHintingPreference(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QFont::HintingPreference sipRes;

            sipRes = sipCpp->fontHintingPreference();

            return sipConvertFromEnum(sipRes,sipType_QFont_HintingPreference);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontHintingPreference, doc_QTextCharFormat_fontHintingPreference);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontStretch, "QTextCharFormat.fontStretch() -> int");

extern "C" {static PyObject *meth_QTextCharFormat_fontStretch(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontStretch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->fontStretch();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontStretch, doc_QTextCharFormat_fontStretch);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontStretch, "QTextCharFormat.setFontStretch(int)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontStretch(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontStretch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextCharFormat, &sipCpp, &a0))
        {
            sipCpp->setFontStretch(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontStretch, doc_QTextCharFormat_setFontStretch);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_setFontLetterSpacingType, "QTextCharFormat.setFontLetterSpacingType(QFont.SpacingType)");

extern "C" {static PyObject *meth_QTextCharFormat_setFontLetterSpacingType(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_setFontLetterSpacingType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::SpacingType a0;
        QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextCharFormat, &sipCpp, sipType_QFont_SpacingType, &a0))
        {
            sipCpp->setFontLetterSpacingType(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_setFontLetterSpacingType, doc_QTextCharFormat_setFontLetterSpacingType);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCharFormat_fontLetterSpacingType, "QTextCharFormat.fontLetterSpacingType() -> QFont.SpacingType");

extern "C" {static PyObject *meth_QTextCharFormat_fontLetterSpacingType(PyObject *, PyObject *);}
static PyObject *meth_QTextCharFormat_fontLetterSpacingType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCharFormat, &sipCpp))
        {
            QFont::SpacingType sipRes;

            sipRes = sipCpp->fontLetterSpacingType();

            return sipConvertFromEnum(sipRes,sipType_QFont_SpacingType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCharFormat, sipName_fontLetterSpacingType, doc_QTextCharFormat_fontLetterSpacingType);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextCharFormat(void *, const sipTypeDef *);}
static void *cast_QTextCharFormat(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextCharFormat)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QTextFormat)->ctd_cast((QTextFormat *)(QTextCharFormat *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextCharFormat(void *, int);}
static void release_QTextCharFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QTextCharFormat *>(sipCppV);
}


extern "C" {static void assign_QTextCharFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextCharFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextCharFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextCharFormat *>(sipSrc);
}


extern "C" {static void *array_QTextCharFormat(SIP_SSIZE_T);}
static void *array_QTextCharFormat(SIP_SSIZE_T sipNrElem)
{
    return new QTextCharFormat[sipNrElem];
}


extern "C" {static void *copy_QTextCharFormat(const void *, SIP_SSIZE_T);}
static void *copy_QTextCharFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextCharFormat(reinterpret_cast<const QTextCharFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextCharFormat(sipSimpleWrapper *);}
static void dealloc_QTextCharFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextCharFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextCharFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextCharFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextCharFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextCharFormat();

            return sipCpp;
        }
    }

    {
        const QTextCharFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextCharFormat, &a0))
        {
            sipCpp = new QTextCharFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextCharFormat[] = {{291, 255, 1}};


static PyMethodDef methods_QTextCharFormat[] = {
    {SIP_MLNAME_CAST(sipName_anchorHref), meth_QTextCharFormat_anchorHref, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_anchorHref)},
    {SIP_MLNAME_CAST(sipName_anchorNames), meth_QTextCharFormat_anchorNames, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_anchorNames)},
    {SIP_MLNAME_CAST(sipName_font), meth_QTextCharFormat_font, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_font)},
    {SIP_MLNAME_CAST(sipName_fontCapitalization), meth_QTextCharFormat_fontCapitalization, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontCapitalization)},
    {SIP_MLNAME_CAST(sipName_fontFamily), meth_QTextCharFormat_fontFamily, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontFamily)},
    {SIP_MLNAME_CAST(sipName_fontFixedPitch), meth_QTextCharFormat_fontFixedPitch, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontFixedPitch)},
    {SIP_MLNAME_CAST(sipName_fontHintingPreference), meth_QTextCharFormat_fontHintingPreference, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontHintingPreference)},
    {SIP_MLNAME_CAST(sipName_fontItalic), meth_QTextCharFormat_fontItalic, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontItalic)},
    {SIP_MLNAME_CAST(sipName_fontKerning), meth_QTextCharFormat_fontKerning, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontKerning)},
    {SIP_MLNAME_CAST(sipName_fontLetterSpacing), meth_QTextCharFormat_fontLetterSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontLetterSpacing)},
    {SIP_MLNAME_CAST(sipName_fontLetterSpacingType), meth_QTextCharFormat_fontLetterSpacingType, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontLetterSpacingType)},
    {SIP_MLNAME_CAST(sipName_fontOverline), meth_QTextCharFormat_fontOverline, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontOverline)},
    {SIP_MLNAME_CAST(sipName_fontPointSize), meth_QTextCharFormat_fontPointSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontPointSize)},
    {SIP_MLNAME_CAST(sipName_fontStretch), meth_QTextCharFormat_fontStretch, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontStretch)},
    {SIP_MLNAME_CAST(sipName_fontStrikeOut), meth_QTextCharFormat_fontStrikeOut, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontStrikeOut)},
    {SIP_MLNAME_CAST(sipName_fontStyleHint), meth_QTextCharFormat_fontStyleHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontStyleHint)},
    {SIP_MLNAME_CAST(sipName_fontStyleStrategy), meth_QTextCharFormat_fontStyleStrategy, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontStyleStrategy)},
    {SIP_MLNAME_CAST(sipName_fontUnderline), meth_QTextCharFormat_fontUnderline, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontUnderline)},
    {SIP_MLNAME_CAST(sipName_fontWeight), meth_QTextCharFormat_fontWeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontWeight)},
    {SIP_MLNAME_CAST(sipName_fontWordSpacing), meth_QTextCharFormat_fontWordSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_fontWordSpacing)},
    {SIP_MLNAME_CAST(sipName_isAnchor), meth_QTextCharFormat_isAnchor, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_isAnchor)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextCharFormat_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_isValid)},
    {SIP_MLNAME_CAST(sipName_setAnchor), meth_QTextCharFormat_setAnchor, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setAnchor)},
    {SIP_MLNAME_CAST(sipName_setAnchorHref), meth_QTextCharFormat_setAnchorHref, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setAnchorHref)},
    {SIP_MLNAME_CAST(sipName_setAnchorNames), meth_QTextCharFormat_setAnchorNames, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setAnchorNames)},
    {SIP_MLNAME_CAST(sipName_setFont), meth_QTextCharFormat_setFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFont)},
    {SIP_MLNAME_CAST(sipName_setFontCapitalization), meth_QTextCharFormat_setFontCapitalization, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontCapitalization)},
    {SIP_MLNAME_CAST(sipName_setFontFamily), meth_QTextCharFormat_setFontFamily, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontFamily)},
    {SIP_MLNAME_CAST(sipName_setFontFixedPitch), meth_QTextCharFormat_setFontFixedPitch, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontFixedPitch)},
    {SIP_MLNAME_CAST(sipName_setFontHintingPreference), meth_QTextCharFormat_setFontHintingPreference, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontHintingPreference)},
    {SIP_MLNAME_CAST(sipName_setFontItalic), meth_QTextCharFormat_setFontItalic, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontItalic)},
    {SIP_MLNAME_CAST(sipName_setFontKerning), meth_QTextCharFormat_setFontKerning, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontKerning)},
    {SIP_MLNAME_CAST(sipName_setFontLetterSpacing), meth_QTextCharFormat_setFontLetterSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontLetterSpacing)},
    {SIP_MLNAME_CAST(sipName_setFontLetterSpacingType), meth_QTextCharFormat_setFontLetterSpacingType, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontLetterSpacingType)},
    {SIP_MLNAME_CAST(sipName_setFontOverline), meth_QTextCharFormat_setFontOverline, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontOverline)},
    {SIP_MLNAME_CAST(sipName_setFontPointSize), meth_QTextCharFormat_setFontPointSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontPointSize)},
    {SIP_MLNAME_CAST(sipName_setFontStretch), meth_QTextCharFormat_setFontStretch, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontStretch)},
    {SIP_MLNAME_CAST(sipName_setFontStrikeOut), meth_QTextCharFormat_setFontStrikeOut, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontStrikeOut)},
    {SIP_MLNAME_CAST(sipName_setFontStyleHint), (PyCFunction)meth_QTextCharFormat_setFontStyleHint, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontStyleHint)},
    {SIP_MLNAME_CAST(sipName_setFontStyleStrategy), meth_QTextCharFormat_setFontStyleStrategy, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontStyleStrategy)},
    {SIP_MLNAME_CAST(sipName_setFontUnderline), meth_QTextCharFormat_setFontUnderline, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontUnderline)},
    {SIP_MLNAME_CAST(sipName_setFontWeight), meth_QTextCharFormat_setFontWeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontWeight)},
    {SIP_MLNAME_CAST(sipName_setFontWordSpacing), meth_QTextCharFormat_setFontWordSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setFontWordSpacing)},
    {SIP_MLNAME_CAST(sipName_setTableCellColumnSpan), meth_QTextCharFormat_setTableCellColumnSpan, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setTableCellColumnSpan)},
    {SIP_MLNAME_CAST(sipName_setTableCellRowSpan), meth_QTextCharFormat_setTableCellRowSpan, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setTableCellRowSpan)},
    {SIP_MLNAME_CAST(sipName_setTextOutline), meth_QTextCharFormat_setTextOutline, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setTextOutline)},
    {SIP_MLNAME_CAST(sipName_setToolTip), meth_QTextCharFormat_setToolTip, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setToolTip)},
    {SIP_MLNAME_CAST(sipName_setUnderlineColor), meth_QTextCharFormat_setUnderlineColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setUnderlineColor)},
    {SIP_MLNAME_CAST(sipName_setUnderlineStyle), meth_QTextCharFormat_setUnderlineStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setUnderlineStyle)},
    {SIP_MLNAME_CAST(sipName_setVerticalAlignment), meth_QTextCharFormat_setVerticalAlignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_setVerticalAlignment)},
    {SIP_MLNAME_CAST(sipName_tableCellColumnSpan), meth_QTextCharFormat_tableCellColumnSpan, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_tableCellColumnSpan)},
    {SIP_MLNAME_CAST(sipName_tableCellRowSpan), meth_QTextCharFormat_tableCellRowSpan, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_tableCellRowSpan)},
    {SIP_MLNAME_CAST(sipName_textOutline), meth_QTextCharFormat_textOutline, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_textOutline)},
    {SIP_MLNAME_CAST(sipName_toolTip), meth_QTextCharFormat_toolTip, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_toolTip)},
    {SIP_MLNAME_CAST(sipName_underlineColor), meth_QTextCharFormat_underlineColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_underlineColor)},
    {SIP_MLNAME_CAST(sipName_underlineStyle), meth_QTextCharFormat_underlineStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_underlineStyle)},
    {SIP_MLNAME_CAST(sipName_verticalAlignment), meth_QTextCharFormat_verticalAlignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCharFormat_verticalAlignment)}
};

static sipEnumMemberDef enummembers_QTextCharFormat[] = {
    {sipName_AlignBaseline, static_cast<int>(QTextCharFormat::AlignBaseline), 278},
    {sipName_AlignBottom, static_cast<int>(QTextCharFormat::AlignBottom), 278},
    {sipName_AlignMiddle, static_cast<int>(QTextCharFormat::AlignMiddle), 278},
    {sipName_AlignNormal, static_cast<int>(QTextCharFormat::AlignNormal), 278},
    {sipName_AlignSubScript, static_cast<int>(QTextCharFormat::AlignSubScript), 278},
    {sipName_AlignSuperScript, static_cast<int>(QTextCharFormat::AlignSuperScript), 278},
    {sipName_AlignTop, static_cast<int>(QTextCharFormat::AlignTop), 278},
    {sipName_DashDotDotLine, static_cast<int>(QTextCharFormat::DashDotDotLine), 277},
    {sipName_DashDotLine, static_cast<int>(QTextCharFormat::DashDotLine), 277},
    {sipName_DashUnderline, static_cast<int>(QTextCharFormat::DashUnderline), 277},
    {sipName_DotLine, static_cast<int>(QTextCharFormat::DotLine), 277},
    {sipName_FontPropertiesAll, static_cast<int>(QTextCharFormat::FontPropertiesAll), 276},
    {sipName_FontPropertiesSpecifiedOnly, static_cast<int>(QTextCharFormat::FontPropertiesSpecifiedOnly), 276},
    {sipName_NoUnderline, static_cast<int>(QTextCharFormat::NoUnderline), 277},
    {sipName_SingleUnderline, static_cast<int>(QTextCharFormat::SingleUnderline), 277},
    {sipName_SpellCheckUnderline, static_cast<int>(QTextCharFormat::SpellCheckUnderline), 277},
    {sipName_WaveUnderline, static_cast<int>(QTextCharFormat::WaveUnderline), 277},
};

PyDoc_STRVAR(doc_QTextCharFormat, "\1QTextCharFormat()\n"
    "QTextCharFormat(QTextCharFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextCharFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextCharFormat,
        {0}
    },
    {
        sipNameNr_QTextCharFormat,
        {0, 0, 1},
        57, methods_QTextCharFormat,
        17, enummembers_QTextCharFormat,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextCharFormat,
    -1,
    -1,
    supers_QTextCharFormat,
    0,
    init_type_QTextCharFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextCharFormat,
    assign_QTextCharFormat,
    array_QTextCharFormat,
    copy_QTextCharFormat,
    release_QTextCharFormat,
    cast_QTextCharFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45120 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45124 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QTextFormat_PageBreakFlags___bool__(PyObject *);}
static int slot_QTextFormat_PageBreakFlags___bool__(PyObject *sipSelf)
{
    QTextFormat::PageBreakFlags *sipCpp = reinterpret_cast<QTextFormat::PageBreakFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat_PageBreakFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextFormat::PageBreakFlags::Int() != 0);
#line 45142 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFormat::PageBreakFlags *sipCpp = reinterpret_cast<QTextFormat::PageBreakFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat_PageBreakFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFormat::PageBreakFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextFormat_PageBreakFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextFormat::PageBreakFlags::Int() != a0->operator QTextFormat::PageBreakFlags::Int());
#line 45172 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTextFormat::PageBreakFlags *>(a0),sipType_QTextFormat_PageBreakFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextFormat_PageBreakFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFormat::PageBreakFlags *sipCpp = reinterpret_cast<QTextFormat::PageBreakFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat_PageBreakFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFormat::PageBreakFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextFormat_PageBreakFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextFormat::PageBreakFlags::Int() == a0->operator QTextFormat::PageBreakFlags::Int());
#line 45208 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTextFormat::PageBreakFlags *>(a0),sipType_QTextFormat_PageBreakFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextFormat_PageBreakFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___invert__(PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___invert__(PyObject *sipSelf)
{
    QTextFormat::PageBreakFlags *sipCpp = reinterpret_cast<QTextFormat::PageBreakFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat_PageBreakFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QTextFormat::PageBreakFlags*sipRes;

            sipRes = new QTextFormat::PageBreakFlags(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QTextFormat_PageBreakFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFormat::PageBreakFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextFormat_PageBreakFlags, &a0, &a0State, &a1))
        {
            QTextFormat::PageBreakFlags*sipRes;

            sipRes = new QTextFormat::PageBreakFlags((*a0 & a1));
            sipReleaseType(a0,sipType_QTextFormat_PageBreakFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextFormat_PageBreakFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFormat::PageBreakFlags* a0;
        int a0State = 0;
        QTextFormat::PageBreakFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTextFormat_PageBreakFlags, &a0, &a0State, sipType_QTextFormat_PageBreakFlags, &a1, &a1State))
        {
            QTextFormat::PageBreakFlags*sipRes;

            sipRes = new QTextFormat::PageBreakFlags((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QTextFormat_PageBreakFlags,a0State);
            sipReleaseType(a1,sipType_QTextFormat_PageBreakFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextFormat_PageBreakFlags,NULL);
        }
    }

    {
        QTextFormat::PageBreakFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextFormat_PageBreakFlags, &a0, &a0State, &a1))
        {
            QTextFormat::PageBreakFlags*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QTextFormat::PageBreakFlags(*a0 ^ a1);
#line 45311 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTextFormat_PageBreakFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextFormat_PageBreakFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFormat::PageBreakFlags* a0;
        int a0State = 0;
        QTextFormat::PageBreakFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTextFormat_PageBreakFlags, &a0, &a0State, sipType_QTextFormat_PageBreakFlags, &a1, &a1State))
        {
            QTextFormat::PageBreakFlags*sipRes;

            sipRes = new QTextFormat::PageBreakFlags((*a0 | *a1));
            sipReleaseType(a0,sipType_QTextFormat_PageBreakFlags,a0State);
            sipReleaseType(a1,sipType_QTextFormat_PageBreakFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextFormat_PageBreakFlags,NULL);
        }
    }

    {
        QTextFormat::PageBreakFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextFormat_PageBreakFlags, &a0, &a0State, &a1))
        {
            QTextFormat::PageBreakFlags*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QTextFormat::PageBreakFlags(*a0 | a1);
#line 45361 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTextFormat_PageBreakFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextFormat_PageBreakFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___int__(PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___int__(PyObject *sipSelf)
{
    QTextFormat::PageBreakFlags *sipCpp = reinterpret_cast<QTextFormat::PageBreakFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat_PageBreakFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextFormat_PageBreakFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextFormat::PageBreakFlags *sipCpp = reinterpret_cast<QTextFormat::PageBreakFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat_PageBreakFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTextFormat::PageBreakFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextFormat_PageBreakFlags, &a0, &a0State))
        {
            sipCpp->QTextFormat::PageBreakFlags::operator^=(*a0);
            sipReleaseType(a0,sipType_QTextFormat_PageBreakFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextFormat_PageBreakFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextFormat::PageBreakFlags *sipCpp = reinterpret_cast<QTextFormat::PageBreakFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat_PageBreakFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTextFormat::PageBreakFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextFormat_PageBreakFlags, &a0, &a0State))
        {
            sipCpp->QTextFormat::PageBreakFlags::operator|=(*a0);
            sipReleaseType(a0,sipType_QTextFormat_PageBreakFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextFormat_PageBreakFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat_PageBreakFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextFormat_PageBreakFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextFormat::PageBreakFlags *sipCpp = reinterpret_cast<QTextFormat::PageBreakFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat_PageBreakFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QTextFormat::PageBreakFlags::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextFormat_PageBreakFlags(void *, const sipTypeDef *);}
static void *cast_QTextFormat_PageBreakFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextFormat_PageBreakFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextFormat_PageBreakFlags(void *, int);}
static void release_QTextFormat_PageBreakFlags(void *sipCppV,int)
{
    delete reinterpret_cast<QTextFormat::PageBreakFlags *>(sipCppV);
}


extern "C" {static void assign_QTextFormat_PageBreakFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextFormat_PageBreakFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextFormat::PageBreakFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextFormat::PageBreakFlags *>(sipSrc);
}


extern "C" {static void *array_QTextFormat_PageBreakFlags(SIP_SSIZE_T);}
static void *array_QTextFormat_PageBreakFlags(SIP_SSIZE_T sipNrElem)
{
    return new QTextFormat::PageBreakFlags[sipNrElem];
}


extern "C" {static void *copy_QTextFormat_PageBreakFlags(const void *, SIP_SSIZE_T);}
static void *copy_QTextFormat_PageBreakFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextFormat::PageBreakFlags(reinterpret_cast<const QTextFormat::PageBreakFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextFormat_PageBreakFlags(sipSimpleWrapper *);}
static void dealloc_QTextFormat_PageBreakFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextFormat_PageBreakFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextFormat_PageBreakFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextFormat_PageBreakFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextFormat::PageBreakFlags *sipCpp = 0;

    {
        const QTextFormat::PageBreakFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QTextFormat_PageBreakFlags, &a0, &a0State))
        {
            sipCpp = new QTextFormat::PageBreakFlags(*a0);
            sipReleaseType(const_cast<QTextFormat::PageBreakFlags *>(a0),sipType_QTextFormat_PageBreakFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QTextFormat::PageBreakFlags(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextFormat::PageBreakFlags();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QTextFormat_PageBreakFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QTextFormat_PageBreakFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QTextFormat::PageBreakFlags **sipCppPtr = reinterpret_cast<QTextFormat::PageBreakFlags **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QTextFormat::PageBreakFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTextFormat_PageBreakFlag)) ||
            sipCanConvertToType(sipPy, sipType_QTextFormat_PageBreakFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTextFormat_PageBreakFlag)))
{
    *sipCppPtr = new QTextFormat::PageBreakFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QTextFormat::PageBreakFlags *>(sipConvertToType(sipPy, sipType_QTextFormat_PageBreakFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 45638 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextFormat_PageBreakFlags[] = {
    {(void *)slot_QTextFormat_PageBreakFlags___bool__, bool_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___ne__, ne_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___eq__, eq_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___invert__, invert_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___and__, and_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___xor__, xor_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___or__, or_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___int__, int_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___ixor__, ixor_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___ior__, ior_slot},
    {(void *)slot_QTextFormat_PageBreakFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTextFormat_PageBreakFlags, "\1QTextFormat.PageBreakFlags(QTextFormat.PageBreakFlags)\n"
    "QTextFormat.PageBreakFlags(int)\n"
    "QTextFormat.PageBreakFlags()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextFormat_PageBreakFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextFormat__PageBreakFlags,
        {0}
    },
    {
        sipNameNr_PageBreakFlags,
        {291, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextFormat_PageBreakFlags,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextFormat_PageBreakFlags,
    init_type_QTextFormat_PageBreakFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextFormat_PageBreakFlags,
    assign_QTextFormat_PageBreakFlags,
    array_QTextFormat_PageBreakFlags,
    copy_QTextFormat_PageBreakFlags,
    release_QTextFormat_PageBreakFlags,
    cast_QTextFormat_PageBreakFlags,
    convertTo_QTextFormat_PageBreakFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45720 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 45724 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45727 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 45730 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 45733 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45736 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45739 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45742 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45745 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45748 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45751 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 45754 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 45757 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 45760 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 45763 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 45766 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 45769 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextFormat_merge, "QTextFormat.merge(QTextFormat)");

extern "C" {static PyObject *meth_QTextFormat_merge(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_merge(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat* a0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextFormat, &sipCpp, sipType_QTextFormat, &a0))
        {
            sipCpp->merge(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_merge, doc_QTextFormat_merge);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_isValid, "QTextFormat.isValid() -> bool");

extern "C" {static PyObject *meth_QTextFormat_isValid(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_isValid, doc_QTextFormat_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_type, "QTextFormat.type() -> int");

extern "C" {static PyObject *meth_QTextFormat_type(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->type();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_type, doc_QTextFormat_type);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_objectIndex, "QTextFormat.objectIndex() -> int");

extern "C" {static PyObject *meth_QTextFormat_objectIndex(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_objectIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->objectIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_objectIndex, doc_QTextFormat_objectIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_setObjectIndex, "QTextFormat.setObjectIndex(int)");

extern "C" {static PyObject *meth_QTextFormat_setObjectIndex(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_setObjectIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            sipCpp->setObjectIndex(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_setObjectIndex, doc_QTextFormat_setObjectIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_property, "QTextFormat.property(int) -> QVariant");

extern "C" {static PyObject *meth_QTextFormat_property(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_property(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            QVariant*sipRes;

            sipRes = new QVariant(sipCpp->property(a0));

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_property, doc_QTextFormat_property);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_setProperty, "QTextFormat.setProperty(int, QVariant)\n"
    "QTextFormat.setProperty(int, list-of-QTextLength)");

extern "C" {static PyObject *meth_QTextFormat_setProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_setProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QVariant* a1;
        int a1State = 0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QTextFormat, &sipCpp, &a0, sipType_QVariant, &a1, &a1State))
        {
            sipCpp->setProperty(a0,*a1);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QVector<QTextLength>* a1;
        int a1State = 0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QTextFormat, &sipCpp, &a0, sipType_QVector_0100QTextLength,&a1, &a1State))
        {
            sipCpp->setProperty(a0,*a1);
            sipReleaseType(const_cast<QVector<QTextLength> *>(a1),sipType_QVector_0100QTextLength,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_setProperty, doc_QTextFormat_setProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_clearProperty, "QTextFormat.clearProperty(int)");

extern "C" {static PyObject *meth_QTextFormat_clearProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_clearProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            sipCpp->clearProperty(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_clearProperty, doc_QTextFormat_clearProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_hasProperty, "QTextFormat.hasProperty(int) -> bool");

extern "C" {static PyObject *meth_QTextFormat_hasProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_hasProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->hasProperty(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_hasProperty, doc_QTextFormat_hasProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_boolProperty, "QTextFormat.boolProperty(int) -> bool");

extern "C" {static PyObject *meth_QTextFormat_boolProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_boolProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->boolProperty(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_boolProperty, doc_QTextFormat_boolProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_intProperty, "QTextFormat.intProperty(int) -> int");

extern "C" {static PyObject *meth_QTextFormat_intProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_intProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            int sipRes;

            sipRes = sipCpp->intProperty(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_intProperty, doc_QTextFormat_intProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_doubleProperty, "QTextFormat.doubleProperty(int) -> float");

extern "C" {static PyObject *meth_QTextFormat_doubleProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_doubleProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            qreal sipRes;

            sipRes = sipCpp->doubleProperty(a0);

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_doubleProperty, doc_QTextFormat_doubleProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_stringProperty, "QTextFormat.stringProperty(int) -> str");

extern "C" {static PyObject *meth_QTextFormat_stringProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_stringProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->stringProperty(a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_stringProperty, doc_QTextFormat_stringProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_colorProperty, "QTextFormat.colorProperty(int) -> QColor");

extern "C" {static PyObject *meth_QTextFormat_colorProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_colorProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->colorProperty(a0));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_colorProperty, doc_QTextFormat_colorProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_penProperty, "QTextFormat.penProperty(int) -> QPen");

extern "C" {static PyObject *meth_QTextFormat_penProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_penProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            QPen*sipRes;

            sipRes = new QPen(sipCpp->penProperty(a0));

            return sipConvertFromNewType(sipRes,sipType_QPen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_penProperty, doc_QTextFormat_penProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_brushProperty, "QTextFormat.brushProperty(int) -> QBrush");

extern "C" {static PyObject *meth_QTextFormat_brushProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_brushProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->brushProperty(a0));

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_brushProperty, doc_QTextFormat_brushProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_lengthProperty, "QTextFormat.lengthProperty(int) -> QTextLength");

extern "C" {static PyObject *meth_QTextFormat_lengthProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_lengthProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            QTextLength*sipRes;

            sipRes = new QTextLength(sipCpp->lengthProperty(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextLength,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_lengthProperty, doc_QTextFormat_lengthProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_lengthVectorProperty, "QTextFormat.lengthVectorProperty(int) -> list-of-QTextLength");

extern "C" {static PyObject *meth_QTextFormat_lengthVectorProperty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_lengthVectorProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            QVector<QTextLength>*sipRes;

            sipRes = new QVector<QTextLength>(sipCpp->lengthVectorProperty(a0));

            return sipConvertFromNewType(sipRes,sipType_QVector_0100QTextLength,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_lengthVectorProperty, doc_QTextFormat_lengthVectorProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_properties, "QTextFormat.properties() -> dict-of-int-QVariant");

extern "C" {static PyObject *meth_QTextFormat_properties(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_properties(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QMap<int,QVariant>*sipRes;

            sipRes = new QMap<int,QVariant>(sipCpp->properties());

            return sipConvertFromNewType(sipRes,sipType_QMap_1800_0100QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_properties, doc_QTextFormat_properties);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_objectType, "QTextFormat.objectType() -> int");

extern "C" {static PyObject *meth_QTextFormat_objectType(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_objectType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->objectType();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_objectType, doc_QTextFormat_objectType);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_isCharFormat, "QTextFormat.isCharFormat() -> bool");

extern "C" {static PyObject *meth_QTextFormat_isCharFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_isCharFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCharFormat();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_isCharFormat, doc_QTextFormat_isCharFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_isBlockFormat, "QTextFormat.isBlockFormat() -> bool");

extern "C" {static PyObject *meth_QTextFormat_isBlockFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_isBlockFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isBlockFormat();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_isBlockFormat, doc_QTextFormat_isBlockFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_isListFormat, "QTextFormat.isListFormat() -> bool");

extern "C" {static PyObject *meth_QTextFormat_isListFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_isListFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isListFormat();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_isListFormat, doc_QTextFormat_isListFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_isFrameFormat, "QTextFormat.isFrameFormat() -> bool");

extern "C" {static PyObject *meth_QTextFormat_isFrameFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_isFrameFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isFrameFormat();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_isFrameFormat, doc_QTextFormat_isFrameFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_isImageFormat, "QTextFormat.isImageFormat() -> bool");

extern "C" {static PyObject *meth_QTextFormat_isImageFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_isImageFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isImageFormat();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_isImageFormat, doc_QTextFormat_isImageFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_isTableFormat, "QTextFormat.isTableFormat() -> bool");

extern "C" {static PyObject *meth_QTextFormat_isTableFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_isTableFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isTableFormat();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_isTableFormat, doc_QTextFormat_isTableFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_toBlockFormat, "QTextFormat.toBlockFormat() -> QTextBlockFormat");

extern "C" {static PyObject *meth_QTextFormat_toBlockFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_toBlockFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QTextBlockFormat*sipRes;

            sipRes = new QTextBlockFormat(sipCpp->toBlockFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextBlockFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_toBlockFormat, doc_QTextFormat_toBlockFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_toCharFormat, "QTextFormat.toCharFormat() -> QTextCharFormat");

extern "C" {static PyObject *meth_QTextFormat_toCharFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_toCharFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QTextCharFormat*sipRes;

            sipRes = new QTextCharFormat(sipCpp->toCharFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextCharFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_toCharFormat, doc_QTextFormat_toCharFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_toListFormat, "QTextFormat.toListFormat() -> QTextListFormat");

extern "C" {static PyObject *meth_QTextFormat_toListFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_toListFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QTextListFormat*sipRes;

            sipRes = new QTextListFormat(sipCpp->toListFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextListFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_toListFormat, doc_QTextFormat_toListFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_toTableFormat, "QTextFormat.toTableFormat() -> QTextTableFormat");

extern "C" {static PyObject *meth_QTextFormat_toTableFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_toTableFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QTextTableFormat*sipRes;

            sipRes = new QTextTableFormat(sipCpp->toTableFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextTableFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_toTableFormat, doc_QTextFormat_toTableFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_toFrameFormat, "QTextFormat.toFrameFormat() -> QTextFrameFormat");

extern "C" {static PyObject *meth_QTextFormat_toFrameFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_toFrameFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QTextFrameFormat*sipRes;

            sipRes = new QTextFrameFormat(sipCpp->toFrameFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextFrameFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_toFrameFormat, doc_QTextFormat_toFrameFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_toImageFormat, "QTextFormat.toImageFormat() -> QTextImageFormat");

extern "C" {static PyObject *meth_QTextFormat_toImageFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_toImageFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QTextImageFormat*sipRes;

            sipRes = new QTextImageFormat(sipCpp->toImageFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextImageFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_toImageFormat, doc_QTextFormat_toImageFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_setLayoutDirection, "QTextFormat.setLayoutDirection(Qt.LayoutDirection)");

extern "C" {static PyObject *meth_QTextFormat_setLayoutDirection(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_setLayoutDirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::LayoutDirection a0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextFormat, &sipCpp, sipType_Qt_LayoutDirection, &a0))
        {
            sipCpp->setLayoutDirection(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_setLayoutDirection, doc_QTextFormat_setLayoutDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_layoutDirection, "QTextFormat.layoutDirection() -> Qt.LayoutDirection");

extern "C" {static PyObject *meth_QTextFormat_layoutDirection(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_layoutDirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            Qt::LayoutDirection sipRes;

            sipRes = sipCpp->layoutDirection();

            return sipConvertFromEnum(sipRes,sipType_Qt_LayoutDirection);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_layoutDirection, doc_QTextFormat_layoutDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_setBackground, "QTextFormat.setBackground(QBrush)");

extern "C" {static PyObject *meth_QTextFormat_setBackground(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_setBackground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextFormat, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setBackground(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_setBackground, doc_QTextFormat_setBackground);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_background, "QTextFormat.background() -> QBrush");

extern "C" {static PyObject *meth_QTextFormat_background(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_background(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->background());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_background, doc_QTextFormat_background);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_clearBackground, "QTextFormat.clearBackground()");

extern "C" {static PyObject *meth_QTextFormat_clearBackground(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_clearBackground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            sipCpp->clearBackground();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_clearBackground, doc_QTextFormat_clearBackground);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_setForeground, "QTextFormat.setForeground(QBrush)");

extern "C" {static PyObject *meth_QTextFormat_setForeground(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_setForeground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextFormat, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setForeground(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_setForeground, doc_QTextFormat_setForeground);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_foreground, "QTextFormat.foreground() -> QBrush");

extern "C" {static PyObject *meth_QTextFormat_foreground(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_foreground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->foreground());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_foreground, doc_QTextFormat_foreground);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_clearForeground, "QTextFormat.clearForeground()");

extern "C" {static PyObject *meth_QTextFormat_clearForeground(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_clearForeground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            sipCpp->clearForeground();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_clearForeground, doc_QTextFormat_clearForeground);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_setObjectType, "QTextFormat.setObjectType(int)");

extern "C" {static PyObject *meth_QTextFormat_setObjectType(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_setObjectType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextFormat, &sipCpp, &a0))
        {
            sipCpp->setObjectType(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_setObjectType, doc_QTextFormat_setObjectType);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_propertyCount, "QTextFormat.propertyCount() -> int");

extern "C" {static PyObject *meth_QTextFormat_propertyCount(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_propertyCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->propertyCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_propertyCount, doc_QTextFormat_propertyCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_isTableCellFormat, "QTextFormat.isTableCellFormat() -> bool");

extern "C" {static PyObject *meth_QTextFormat_isTableCellFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_isTableCellFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isTableCellFormat();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_isTableCellFormat, doc_QTextFormat_isTableCellFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_toTableCellFormat, "QTextFormat.toTableCellFormat() -> QTextTableCellFormat");

extern "C" {static PyObject *meth_QTextFormat_toTableCellFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_toTableCellFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            QTextTableCellFormat*sipRes;

            sipRes = new QTextTableCellFormat(sipCpp->toTableCellFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextTableCellFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_toTableCellFormat, doc_QTextFormat_toTableCellFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_swap, "QTextFormat.swap(QTextFormat)");

extern "C" {static PyObject *meth_QTextFormat_swap(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextFormat* a0;
        QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextFormat, &sipCpp, sipType_QTextFormat, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_swap, doc_QTextFormat_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QTextFormat_isEmpty, "QTextFormat.isEmpty() -> bool");

extern "C" {static PyObject *meth_QTextFormat_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_QTextFormat_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEmpty();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextFormat, sipName_isEmpty, doc_QTextFormat_isEmpty);

    return NULL;
}


extern "C" {static PyObject *slot_QTextFormat___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFormat *sipCpp = reinterpret_cast<QTextFormat *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextFormat, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextFormat::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextFormat,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextFormat___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextFormat___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextFormat *sipCpp = reinterpret_cast<QTextFormat *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextFormat));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextFormat, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextFormat::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextFormat,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextFormat(void *, const sipTypeDef *);}
static void *cast_QTextFormat(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextFormat)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextFormat(void *, int);}
static void release_QTextFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QTextFormat *>(sipCppV);
}


extern "C" {static void assign_QTextFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextFormat *>(sipSrc);
}


extern "C" {static void *array_QTextFormat(SIP_SSIZE_T);}
static void *array_QTextFormat(SIP_SSIZE_T sipNrElem)
{
    return new QTextFormat[sipNrElem];
}


extern "C" {static void *copy_QTextFormat(const void *, SIP_SSIZE_T);}
static void *copy_QTextFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextFormat(reinterpret_cast<const QTextFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextFormat(sipSimpleWrapper *);}
static void dealloc_QTextFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextFormat();

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QTextFormat(a0);

            return sipCpp;
        }
    }

    {
        const QTextFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextFormat, &a0))
        {
            sipCpp = new QTextFormat(*a0);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 187 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
        if (a0->canConvert<QTextFormat>())
            sipCpp = new QTextFormat(a0->value<QTextFormat>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 47211 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextFormat[] = {
    {(void *)slot_QTextFormat___ne__, ne_slot},
    {(void *)slot_QTextFormat___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTextFormat[] = {
    {SIP_MLNAME_CAST(sipName_background), meth_QTextFormat_background, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_background)},
    {SIP_MLNAME_CAST(sipName_boolProperty), meth_QTextFormat_boolProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_boolProperty)},
    {SIP_MLNAME_CAST(sipName_brushProperty), meth_QTextFormat_brushProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_brushProperty)},
    {SIP_MLNAME_CAST(sipName_clearBackground), meth_QTextFormat_clearBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_clearBackground)},
    {SIP_MLNAME_CAST(sipName_clearForeground), meth_QTextFormat_clearForeground, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_clearForeground)},
    {SIP_MLNAME_CAST(sipName_clearProperty), meth_QTextFormat_clearProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_clearProperty)},
    {SIP_MLNAME_CAST(sipName_colorProperty), meth_QTextFormat_colorProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_colorProperty)},
    {SIP_MLNAME_CAST(sipName_doubleProperty), meth_QTextFormat_doubleProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_doubleProperty)},
    {SIP_MLNAME_CAST(sipName_foreground), meth_QTextFormat_foreground, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_foreground)},
    {SIP_MLNAME_CAST(sipName_hasProperty), meth_QTextFormat_hasProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_hasProperty)},
    {SIP_MLNAME_CAST(sipName_intProperty), meth_QTextFormat_intProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_intProperty)},
    {SIP_MLNAME_CAST(sipName_isBlockFormat), meth_QTextFormat_isBlockFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_isBlockFormat)},
    {SIP_MLNAME_CAST(sipName_isCharFormat), meth_QTextFormat_isCharFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_isCharFormat)},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_QTextFormat_isEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_isEmpty)},
    {SIP_MLNAME_CAST(sipName_isFrameFormat), meth_QTextFormat_isFrameFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_isFrameFormat)},
    {SIP_MLNAME_CAST(sipName_isImageFormat), meth_QTextFormat_isImageFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_isImageFormat)},
    {SIP_MLNAME_CAST(sipName_isListFormat), meth_QTextFormat_isListFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_isListFormat)},
    {SIP_MLNAME_CAST(sipName_isTableCellFormat), meth_QTextFormat_isTableCellFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_isTableCellFormat)},
    {SIP_MLNAME_CAST(sipName_isTableFormat), meth_QTextFormat_isTableFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_isTableFormat)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QTextFormat_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_isValid)},
    {SIP_MLNAME_CAST(sipName_layoutDirection), meth_QTextFormat_layoutDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_layoutDirection)},
    {SIP_MLNAME_CAST(sipName_lengthProperty), meth_QTextFormat_lengthProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_lengthProperty)},
    {SIP_MLNAME_CAST(sipName_lengthVectorProperty), meth_QTextFormat_lengthVectorProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_lengthVectorProperty)},
    {SIP_MLNAME_CAST(sipName_merge), meth_QTextFormat_merge, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_merge)},
    {SIP_MLNAME_CAST(sipName_objectIndex), meth_QTextFormat_objectIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_objectIndex)},
    {SIP_MLNAME_CAST(sipName_objectType), meth_QTextFormat_objectType, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_objectType)},
    {SIP_MLNAME_CAST(sipName_penProperty), meth_QTextFormat_penProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_penProperty)},
    {SIP_MLNAME_CAST(sipName_properties), meth_QTextFormat_properties, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_properties)},
    {SIP_MLNAME_CAST(sipName_property), meth_QTextFormat_property, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_property)},
    {SIP_MLNAME_CAST(sipName_propertyCount), meth_QTextFormat_propertyCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_propertyCount)},
    {SIP_MLNAME_CAST(sipName_setBackground), meth_QTextFormat_setBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_setBackground)},
    {SIP_MLNAME_CAST(sipName_setForeground), meth_QTextFormat_setForeground, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_setForeground)},
    {SIP_MLNAME_CAST(sipName_setLayoutDirection), meth_QTextFormat_setLayoutDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_setLayoutDirection)},
    {SIP_MLNAME_CAST(sipName_setObjectIndex), meth_QTextFormat_setObjectIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_setObjectIndex)},
    {SIP_MLNAME_CAST(sipName_setObjectType), meth_QTextFormat_setObjectType, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_setObjectType)},
    {SIP_MLNAME_CAST(sipName_setProperty), meth_QTextFormat_setProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_setProperty)},
    {SIP_MLNAME_CAST(sipName_stringProperty), meth_QTextFormat_stringProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_stringProperty)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QTextFormat_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_swap)},
    {SIP_MLNAME_CAST(sipName_toBlockFormat), meth_QTextFormat_toBlockFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_toBlockFormat)},
    {SIP_MLNAME_CAST(sipName_toCharFormat), meth_QTextFormat_toCharFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_toCharFormat)},
    {SIP_MLNAME_CAST(sipName_toFrameFormat), meth_QTextFormat_toFrameFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_toFrameFormat)},
    {SIP_MLNAME_CAST(sipName_toImageFormat), meth_QTextFormat_toImageFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_toImageFormat)},
    {SIP_MLNAME_CAST(sipName_toListFormat), meth_QTextFormat_toListFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_toListFormat)},
    {SIP_MLNAME_CAST(sipName_toTableCellFormat), meth_QTextFormat_toTableCellFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_toTableCellFormat)},
    {SIP_MLNAME_CAST(sipName_toTableFormat), meth_QTextFormat_toTableFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_toTableFormat)},
    {SIP_MLNAME_CAST(sipName_type), meth_QTextFormat_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextFormat_type)}
};

static sipEnumMemberDef enummembers_QTextFormat[] = {
    {sipName_AnchorHref, static_cast<int>(QTextFormat::AnchorHref), 296},
    {sipName_AnchorName, static_cast<int>(QTextFormat::AnchorName), 296},
    {sipName_BackgroundBrush, static_cast<int>(QTextFormat::BackgroundBrush), 296},
    {sipName_BackgroundImageUrl, static_cast<int>(QTextFormat::BackgroundImageUrl), 296},
    {sipName_BlockAlignment, static_cast<int>(QTextFormat::BlockAlignment), 296},
    {sipName_BlockBottomMargin, static_cast<int>(QTextFormat::BlockBottomMargin), 296},
    {sipName_BlockFormat, static_cast<int>(QTextFormat::BlockFormat), 292},
    {sipName_BlockIndent, static_cast<int>(QTextFormat::BlockIndent), 296},
    {sipName_BlockLeftMargin, static_cast<int>(QTextFormat::BlockLeftMargin), 296},
    {sipName_BlockNonBreakableLines, static_cast<int>(QTextFormat::BlockNonBreakableLines), 296},
    {sipName_BlockRightMargin, static_cast<int>(QTextFormat::BlockRightMargin), 296},
    {sipName_BlockTopMargin, static_cast<int>(QTextFormat::BlockTopMargin), 296},
    {sipName_BlockTrailingHorizontalRulerWidth, static_cast<int>(QTextFormat::BlockTrailingHorizontalRulerWidth), 296},
    {sipName_CharFormat, static_cast<int>(QTextFormat::CharFormat), 292},
    {sipName_CssFloat, static_cast<int>(QTextFormat::CssFloat), 296},
    {sipName_FirstFontProperty, static_cast<int>(QTextFormat::FirstFontProperty), 296},
    {sipName_FontCapitalization, static_cast<int>(QTextFormat::FontCapitalization), 296},
    {sipName_FontFamily, static_cast<int>(QTextFormat::FontFamily), 296},
    {sipName_FontFixedPitch, static_cast<int>(QTextFormat::FontFixedPitch), 296},
    {sipName_FontHintingPreference, static_cast<int>(QTextFormat::FontHintingPreference), 296},
    {sipName_FontItalic, static_cast<int>(QTextFormat::FontItalic), 296},
    {sipName_FontKerning, static_cast<int>(QTextFormat::FontKerning), 296},
    {sipName_FontLetterSpacing, static_cast<int>(QTextFormat::FontLetterSpacing), 296},
    {sipName_FontLetterSpacingType, static_cast<int>(QTextFormat::FontLetterSpacingType), 296},
    {sipName_FontOverline, static_cast<int>(QTextFormat::FontOverline), 296},
    {sipName_FontPixelSize, static_cast<int>(QTextFormat::FontPixelSize), 296},
    {sipName_FontPointSize, static_cast<int>(QTextFormat::FontPointSize), 296},
    {sipName_FontSizeAdjustment, static_cast<int>(QTextFormat::FontSizeAdjustment), 296},
    {sipName_FontSizeIncrement, static_cast<int>(QTextFormat::FontSizeIncrement), 296},
    {sipName_FontStretch, static_cast<int>(QTextFormat::FontStretch), 296},
    {sipName_FontStrikeOut, static_cast<int>(QTextFormat::FontStrikeOut), 296},
    {sipName_FontStyleHint, static_cast<int>(QTextFormat::FontStyleHint), 296},
    {sipName_FontStyleStrategy, static_cast<int>(QTextFormat::FontStyleStrategy), 296},
    {sipName_FontUnderline, static_cast<int>(QTextFormat::FontUnderline), 296},
    {sipName_FontWeight, static_cast<int>(QTextFormat::FontWeight), 296},
    {sipName_FontWordSpacing, static_cast<int>(QTextFormat::FontWordSpacing), 296},
    {sipName_ForegroundBrush, static_cast<int>(QTextFormat::ForegroundBrush), 296},
    {sipName_FrameBorder, static_cast<int>(QTextFormat::FrameBorder), 296},
    {sipName_FrameBorderBrush, static_cast<int>(QTextFormat::FrameBorderBrush), 296},
    {sipName_FrameBorderStyle, static_cast<int>(QTextFormat::FrameBorderStyle), 296},
    {sipName_FrameBottomMargin, static_cast<int>(QTextFormat::FrameBottomMargin), 296},
    {sipName_FrameFormat, static_cast<int>(QTextFormat::FrameFormat), 292},
    {sipName_FrameHeight, static_cast<int>(QTextFormat::FrameHeight), 296},
    {sipName_FrameLeftMargin, static_cast<int>(QTextFormat::FrameLeftMargin), 296},
    {sipName_FrameMargin, static_cast<int>(QTextFormat::FrameMargin), 296},
    {sipName_FramePadding, static_cast<int>(QTextFormat::FramePadding), 296},
    {sipName_FrameRightMargin, static_cast<int>(QTextFormat::FrameRightMargin), 296},
    {sipName_FrameTopMargin, static_cast<int>(QTextFormat::FrameTopMargin), 296},
    {sipName_FrameWidth, static_cast<int>(QTextFormat::FrameWidth), 296},
    {sipName_FullWidthSelection, static_cast<int>(QTextFormat::FullWidthSelection), 296},
    {sipName_ImageHeight, static_cast<int>(QTextFormat::ImageHeight), 296},
    {sipName_ImageName, static_cast<int>(QTextFormat::ImageName), 296},
    {sipName_ImageObject, static_cast<int>(QTextFormat::ImageObject), 293},
    {sipName_ImageWidth, static_cast<int>(QTextFormat::ImageWidth), 296},
    {sipName_InvalidFormat, static_cast<int>(QTextFormat::InvalidFormat), 292},
    {sipName_IsAnchor, static_cast<int>(QTextFormat::IsAnchor), 296},
    {sipName_LastFontProperty, static_cast<int>(QTextFormat::LastFontProperty), 296},
    {sipName_LayoutDirection, static_cast<int>(QTextFormat::LayoutDirection), 296},
    {sipName_LineHeight, static_cast<int>(QTextFormat::LineHeight), 296},
    {sipName_LineHeightType, static_cast<int>(QTextFormat::LineHeightType), 296},
    {sipName_ListFormat, static_cast<int>(QTextFormat::ListFormat), 292},
    {sipName_ListIndent, static_cast<int>(QTextFormat::ListIndent), 296},
    {sipName_ListNumberPrefix, static_cast<int>(QTextFormat::ListNumberPrefix), 296},
    {sipName_ListNumberSuffix, static_cast<int>(QTextFormat::ListNumberSuffix), 296},
    {sipName_ListStyle, static_cast<int>(QTextFormat::ListStyle), 296},
    {sipName_NoObject, static_cast<int>(QTextFormat::NoObject), 293},
    {sipName_ObjectIndex, static_cast<int>(QTextFormat::ObjectIndex), 296},
    {sipName_ObjectType, static_cast<int>(QTextFormat::ObjectType), 296},
    {sipName_OutlinePen, static_cast<int>(QTextFormat::OutlinePen), 296},
    {sipName_PageBreakPolicy, static_cast<int>(QTextFormat::PageBreakPolicy), 296},
    {sipName_PageBreak_AlwaysAfter, static_cast<int>(QTextFormat::PageBreak_AlwaysAfter), 294},
    {sipName_PageBreak_AlwaysBefore, static_cast<int>(QTextFormat::PageBreak_AlwaysBefore), 294},
    {sipName_PageBreak_Auto, static_cast<int>(QTextFormat::PageBreak_Auto), 294},
    {sipName_TabPositions, static_cast<int>(QTextFormat::TabPositions), 296},
    {sipName_TableCellBottomPadding, static_cast<int>(QTextFormat::TableCellBottomPadding), 296},
    {sipName_TableCellColumnSpan, static_cast<int>(QTextFormat::TableCellColumnSpan), 296},
    {sipName_TableCellLeftPadding, static_cast<int>(QTextFormat::TableCellLeftPadding), 296},
    {sipName_TableCellObject, static_cast<int>(QTextFormat::TableCellObject), 293},
    {sipName_TableCellPadding, static_cast<int>(QTextFormat::TableCellPadding), 296},
    {sipName_TableCellRightPadding, static_cast<int>(QTextFormat::TableCellRightPadding), 296},
    {sipName_TableCellRowSpan, static_cast<int>(QTextFormat::TableCellRowSpan), 296},
    {sipName_TableCellSpacing, static_cast<int>(QTextFormat::TableCellSpacing), 296},
    {sipName_TableCellTopPadding, static_cast<int>(QTextFormat::TableCellTopPadding), 296},
    {sipName_TableColumnWidthConstraints, static_cast<int>(QTextFormat::TableColumnWidthConstraints), 296},
    {sipName_TableColumns, static_cast<int>(QTextFormat::TableColumns), 296},
    {sipName_TableFormat, static_cast<int>(QTextFormat::TableFormat), 292},
    {sipName_TableHeaderRowCount, static_cast<int>(QTextFormat::TableHeaderRowCount), 296},
    {sipName_TableObject, static_cast<int>(QTextFormat::TableObject), 293},
    {sipName_TextIndent, static_cast<int>(QTextFormat::TextIndent), 296},
    {sipName_TextOutline, static_cast<int>(QTextFormat::TextOutline), 296},
    {sipName_TextToolTip, static_cast<int>(QTextFormat::TextToolTip), 296},
    {sipName_TextUnderlineColor, static_cast<int>(QTextFormat::TextUnderlineColor), 296},
    {sipName_TextUnderlineStyle, static_cast<int>(QTextFormat::TextUnderlineStyle), 296},
    {sipName_TextVerticalAlignment, static_cast<int>(QTextFormat::TextVerticalAlignment), 296},
    {sipName_UserFormat, static_cast<int>(QTextFormat::UserFormat), 292},
    {sipName_UserObject, static_cast<int>(QTextFormat::UserObject), 293},
    {sipName_UserProperty, static_cast<int>(QTextFormat::UserProperty), 296},
};

PyDoc_STRVAR(doc_QTextFormat, "\1QTextFormat()\n"
    "QTextFormat(int)\n"
    "QTextFormat(QTextFormat)\n"
    "QTextFormat(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextFormat,
        {0}
    },
    {
        sipNameNr_QTextFormat,
        {0, 0, 1},
        46, methods_QTextFormat,
        97, enummembers_QTextFormat,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextFormat,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextFormat,
    init_type_QTextFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextFormat,
    assign_QTextFormat,
    array_QTextFormat,
    copy_QTextFormat,
    release_QTextFormat,
    cast_QTextFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 47453 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 47457 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextLength_type, "QTextLength.type() -> QTextLength.Type");

extern "C" {static PyObject *meth_QTextLength_type(PyObject *, PyObject *);}
static PyObject *meth_QTextLength_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLength *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLength, &sipCpp))
        {
            QTextLength::Type sipRes;

            sipRes = sipCpp->type();

            return sipConvertFromEnum(sipRes,sipType_QTextLength_Type);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLength, sipName_type, doc_QTextLength_type);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLength_value, "QTextLength.value(float) -> float");

extern "C" {static PyObject *meth_QTextLength_value(PyObject *, PyObject *);}
static PyObject *meth_QTextLength_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        const QTextLength *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextLength, &sipCpp, &a0))
        {
            qreal sipRes;

            sipRes = sipCpp->value(a0);

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLength, sipName_value, doc_QTextLength_value);

    return NULL;
}


PyDoc_STRVAR(doc_QTextLength_rawValue, "QTextLength.rawValue() -> float");

extern "C" {static PyObject *meth_QTextLength_rawValue(PyObject *, PyObject *);}
static PyObject *meth_QTextLength_rawValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextLength *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextLength, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->rawValue();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextLength, sipName_rawValue, doc_QTextLength_rawValue);

    return NULL;
}


extern "C" {static PyObject *slot_QTextLength___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextLength___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextLength *sipCpp = reinterpret_cast<QTextLength *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextLength));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextLength* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextLength, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextLength::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextLength,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextLength___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextLength___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextLength *sipCpp = reinterpret_cast<QTextLength *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextLength));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextLength* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextLength, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextLength::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextLength,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextLength(void *, const sipTypeDef *);}
static void *cast_QTextLength(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextLength)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextLength(void *, int);}
static void release_QTextLength(void *sipCppV,int)
{
    delete reinterpret_cast<QTextLength *>(sipCppV);
}


extern "C" {static void assign_QTextLength(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextLength(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextLength *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextLength *>(sipSrc);
}


extern "C" {static void *array_QTextLength(SIP_SSIZE_T);}
static void *array_QTextLength(SIP_SSIZE_T sipNrElem)
{
    return new QTextLength[sipNrElem];
}


extern "C" {static void *copy_QTextLength(const void *, SIP_SSIZE_T);}
static void *copy_QTextLength(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextLength(reinterpret_cast<const QTextLength *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextLength(sipSimpleWrapper *);}
static void dealloc_QTextLength(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextLength(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextLength(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextLength(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextLength *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextLength();

            return sipCpp;
        }
    }

    {
        QTextLength::Type a0;
        qreal a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "Ed", sipType_QTextLength_Type, &a0, &a1))
        {
            sipCpp = new QTextLength(a0,a1);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
        if (a0->canConvert<QTextLength>())
            sipCpp = new QTextLength(a0->value<QTextLength>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 47696 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    {
        const QTextLength* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextLength, &a0))
        {
            sipCpp = new QTextLength(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextLength[] = {
    {(void *)slot_QTextLength___ne__, ne_slot},
    {(void *)slot_QTextLength___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTextLength[] = {
    {SIP_MLNAME_CAST(sipName_rawValue), meth_QTextLength_rawValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLength_rawValue)},
    {SIP_MLNAME_CAST(sipName_type), meth_QTextLength_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLength_type)},
    {SIP_MLNAME_CAST(sipName_value), meth_QTextLength_value, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextLength_value)}
};

static sipEnumMemberDef enummembers_QTextLength[] = {
    {sipName_FixedLength, static_cast<int>(QTextLength::FixedLength), 312},
    {sipName_PercentageLength, static_cast<int>(QTextLength::PercentageLength), 312},
    {sipName_VariableLength, static_cast<int>(QTextLength::VariableLength), 312},
};

PyDoc_STRVAR(doc_QTextLength, "\1QTextLength()\n"
    "QTextLength(QTextLength.Type, float)\n"
    "QTextLength(QVariant)\n"
    "QTextLength(QTextLength)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextLength = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextLength,
        {0}
    },
    {
        sipNameNr_QTextLength,
        {0, 0, 1},
        3, methods_QTextLength,
        3, enummembers_QTextLength,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextLength,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextLength,
    init_type_QTextLength,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextLength,
    assign_QTextLength,
    array_QTextLength,
    copy_QTextLength,
    release_QTextLength,
    cast_QTextLength,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocumentwriter.sip"
#include <qtextdocumentwriter.h>
#line 47812 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 47816 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 47819 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 47822 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 47825 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qtextcodec.sip"
#include <qtextcodec.h>
#line 47828 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 47831 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocumentfragment.sip"
#include <qtextdocumentfragment.h>
#line 47834 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextDocumentWriter_setFormat, "QTextDocumentWriter.setFormat(QByteArray)");

extern "C" {static PyObject *meth_QTextDocumentWriter_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextDocumentWriter, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            sipCpp->setFormat(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_setFormat, doc_QTextDocumentWriter_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentWriter_format, "QTextDocumentWriter.format() -> QByteArray");

extern "C" {static PyObject *meth_QTextDocumentWriter_format(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocumentWriter, &sipCpp))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_format, doc_QTextDocumentWriter_format);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentWriter_setDevice, "QTextDocumentWriter.setDevice(QIODevice)");

extern "C" {static PyObject *meth_QTextDocumentWriter_setDevice(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_setDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QTextDocumentWriter, &sipCpp, sipType_QIODevice, &a0))
        {
            sipCpp->setDevice(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_setDevice, doc_QTextDocumentWriter_setDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentWriter_device, "QTextDocumentWriter.device() -> QIODevice");

extern "C" {static PyObject *meth_QTextDocumentWriter_device(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_device(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocumentWriter, &sipCpp))
        {
            QIODevice*sipRes;

            sipRes = sipCpp->device();

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_device, doc_QTextDocumentWriter_device);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentWriter_setFileName, "QTextDocumentWriter.setFileName(str)");

extern "C" {static PyObject *meth_QTextDocumentWriter_setFileName(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_setFileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextDocumentWriter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setFileName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_setFileName, doc_QTextDocumentWriter_setFileName);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentWriter_fileName, "QTextDocumentWriter.fileName() -> str");

extern "C" {static PyObject *meth_QTextDocumentWriter_fileName(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_fileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocumentWriter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->fileName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_fileName, doc_QTextDocumentWriter_fileName);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentWriter_write, "QTextDocumentWriter.write(QTextDocument) -> bool\n"
    "QTextDocumentWriter.write(QTextDocumentFragment) -> bool");

extern "C" {static PyObject *meth_QTextDocumentWriter_write(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_write(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument* a0;
        QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QTextDocumentWriter, &sipCpp, sipType_QTextDocument, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->write(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QTextDocumentFragment* a0;
        QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextDocumentWriter, &sipCpp, sipType_QTextDocumentFragment, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->write(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_write, doc_QTextDocumentWriter_write);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentWriter_setCodec, "QTextDocumentWriter.setCodec(QTextCodec)");

extern "C" {static PyObject *meth_QTextDocumentWriter_setCodec(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_setCodec(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCodec* a0;
        PyObject *a0Keep;
        QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QTextDocumentWriter, &sipCpp, &a0Keep, sipType_QTextCodec, &a0))
        {
            sipCpp->setCodec(a0);

            sipKeepReference(sipSelf, -4, a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_setCodec, doc_QTextDocumentWriter_setCodec);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentWriter_codec, "QTextDocumentWriter.codec() -> QTextCodec");

extern "C" {static PyObject *meth_QTextDocumentWriter_codec(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_codec(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocumentWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocumentWriter, &sipCpp))
        {
            QTextCodec*sipRes;

            sipRes = sipCpp->codec();

            return sipConvertFromType(sipRes,sipType_QTextCodec,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_codec, doc_QTextDocumentWriter_codec);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentWriter_supportedDocumentFormats, "QTextDocumentWriter.supportedDocumentFormats() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QTextDocumentWriter_supportedDocumentFormats(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentWriter_supportedDocumentFormats(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(QTextDocumentWriter::supportedDocumentFormats());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentWriter, sipName_supportedDocumentFormats, doc_QTextDocumentWriter_supportedDocumentFormats);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextDocumentWriter(void *, const sipTypeDef *);}
static void *cast_QTextDocumentWriter(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextDocumentWriter)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextDocumentWriter(void *, int);}
static void release_QTextDocumentWriter(void *sipCppV,int)
{
    delete reinterpret_cast<QTextDocumentWriter *>(sipCppV);
}


extern "C" {static void dealloc_QTextDocumentWriter(sipSimpleWrapper *);}
static void dealloc_QTextDocumentWriter(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextDocumentWriter(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextDocumentWriter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextDocumentWriter(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextDocumentWriter *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextDocumentWriter();

            return sipCpp;
        }
    }

    {
        QIODevice* a0;
        const QByteArray* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1", sipType_QIODevice, &a0, sipType_QByteArray, &a1, &a1State))
        {
            sipCpp = new QTextDocumentWriter(a0,*a1);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QByteArray& a1def = QByteArray();
        const QByteArray* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|J1", sipType_QString,&a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            sipCpp = new QTextDocumentWriter(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QTextDocumentWriter[] = {
    {SIP_MLNAME_CAST(sipName_codec), meth_QTextDocumentWriter_codec, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_codec)},
    {SIP_MLNAME_CAST(sipName_device), meth_QTextDocumentWriter_device, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_device)},
    {SIP_MLNAME_CAST(sipName_fileName), meth_QTextDocumentWriter_fileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_fileName)},
    {SIP_MLNAME_CAST(sipName_format), meth_QTextDocumentWriter_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_format)},
    {SIP_MLNAME_CAST(sipName_setCodec), meth_QTextDocumentWriter_setCodec, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_setCodec)},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_QTextDocumentWriter_setDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_setDevice)},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_QTextDocumentWriter_setFileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_setFileName)},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QTextDocumentWriter_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_setFormat)},
    {SIP_MLNAME_CAST(sipName_supportedDocumentFormats), meth_QTextDocumentWriter_supportedDocumentFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_supportedDocumentFormats)},
    {SIP_MLNAME_CAST(sipName_write), meth_QTextDocumentWriter_write, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentWriter_write)}
};

PyDoc_STRVAR(doc_QTextDocumentWriter, "\1QTextDocumentWriter()\n"
    "QTextDocumentWriter(QIODevice, QByteArray)\n"
    "QTextDocumentWriter(str, QByteArray format=QByteArray())");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextDocumentWriter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextDocumentWriter,
        {0}
    },
    {
        sipNameNr_QTextDocumentWriter,
        {0, 0, 1},
        10, methods_QTextDocumentWriter,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextDocumentWriter,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTextDocumentWriter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextDocumentWriter,
    0,
    0,
    0,
    release_QTextDocumentWriter,
    cast_QTextDocumentWriter,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocumentfragment.sip"
#include <qtextdocumentfragment.h>
#line 48286 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 48290 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 48293 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 48296 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 48299 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextDocumentFragment_isEmpty, "QTextDocumentFragment.isEmpty() -> bool");

extern "C" {static PyObject *meth_QTextDocumentFragment_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentFragment_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocumentFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocumentFragment, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEmpty();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentFragment, sipName_isEmpty, doc_QTextDocumentFragment_isEmpty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentFragment_toPlainText, "QTextDocumentFragment.toPlainText() -> str");

extern "C" {static PyObject *meth_QTextDocumentFragment_toPlainText(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentFragment_toPlainText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocumentFragment *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocumentFragment, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->toPlainText());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentFragment, sipName_toPlainText, doc_QTextDocumentFragment_toPlainText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentFragment_toHtml, "QTextDocumentFragment.toHtml(QByteArray encoding=QByteArray()) -> str");

extern "C" {static PyObject *meth_QTextDocumentFragment_toHtml(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentFragment_toHtml(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray& a0def = QByteArray();
        const QByteArray* a0 = &a0def;
        int a0State = 0;
        const QTextDocumentFragment *sipCpp;

        static const char *sipKwdList[] = {
            sipName_encoding,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QTextDocumentFragment, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->toHtml(*a0));
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentFragment, sipName_toHtml, doc_QTextDocumentFragment_toHtml);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentFragment_fromPlainText, "QTextDocumentFragment.fromPlainText(str) -> QTextDocumentFragment");

extern "C" {static PyObject *meth_QTextDocumentFragment_fromPlainText(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentFragment_fromPlainText(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QTextDocumentFragment*sipRes;

            sipRes = new QTextDocumentFragment(QTextDocumentFragment::fromPlainText(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextDocumentFragment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentFragment, sipName_fromPlainText, doc_QTextDocumentFragment_fromPlainText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocumentFragment_fromHtml, "QTextDocumentFragment.fromHtml(str) -> QTextDocumentFragment\n"
    "QTextDocumentFragment.fromHtml(str, QTextDocument) -> QTextDocumentFragment");

extern "C" {static PyObject *meth_QTextDocumentFragment_fromHtml(PyObject *, PyObject *);}
static PyObject *meth_QTextDocumentFragment_fromHtml(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QTextDocumentFragment*sipRes;

            sipRes = new QTextDocumentFragment(QTextDocumentFragment::fromHtml(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextDocumentFragment,NULL);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QTextDocument* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8", sipType_QString,&a0, &a0State, sipType_QTextDocument, &a1))
        {
            QTextDocumentFragment*sipRes;

            sipRes = new QTextDocumentFragment(QTextDocumentFragment::fromHtml(*a0,a1));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextDocumentFragment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocumentFragment, sipName_fromHtml, doc_QTextDocumentFragment_fromHtml);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextDocumentFragment(void *, const sipTypeDef *);}
static void *cast_QTextDocumentFragment(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextDocumentFragment)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextDocumentFragment(void *, int);}
static void release_QTextDocumentFragment(void *sipCppV,int)
{
    delete reinterpret_cast<QTextDocumentFragment *>(sipCppV);
}


extern "C" {static void assign_QTextDocumentFragment(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextDocumentFragment(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextDocumentFragment *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextDocumentFragment *>(sipSrc);
}


extern "C" {static void *array_QTextDocumentFragment(SIP_SSIZE_T);}
static void *array_QTextDocumentFragment(SIP_SSIZE_T sipNrElem)
{
    return new QTextDocumentFragment[sipNrElem];
}


extern "C" {static void *copy_QTextDocumentFragment(const void *, SIP_SSIZE_T);}
static void *copy_QTextDocumentFragment(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextDocumentFragment(reinterpret_cast<const QTextDocumentFragment *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextDocumentFragment(sipSimpleWrapper *);}
static void dealloc_QTextDocumentFragment(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextDocumentFragment(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextDocumentFragment(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextDocumentFragment(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextDocumentFragment *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextDocumentFragment();

            return sipCpp;
        }
    }

    {
        const QTextDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTextDocument, &a0))
        {
            sipCpp = new QTextDocumentFragment(a0);

            return sipCpp;
        }
    }

    {
        const QTextCursor* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextCursor, &a0))
        {
            sipCpp = new QTextDocumentFragment(*a0);

            return sipCpp;
        }
    }

    {
        const QTextDocumentFragment* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextDocumentFragment, &a0))
        {
            sipCpp = new QTextDocumentFragment(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QTextDocumentFragment[] = {
    {SIP_MLNAME_CAST(sipName_fromHtml), meth_QTextDocumentFragment_fromHtml, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentFragment_fromHtml)},
    {SIP_MLNAME_CAST(sipName_fromPlainText), meth_QTextDocumentFragment_fromPlainText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentFragment_fromPlainText)},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_QTextDocumentFragment_isEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentFragment_isEmpty)},
    {SIP_MLNAME_CAST(sipName_toHtml), (PyCFunction)meth_QTextDocumentFragment_toHtml, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextDocumentFragment_toHtml)},
    {SIP_MLNAME_CAST(sipName_toPlainText), meth_QTextDocumentFragment_toPlainText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocumentFragment_toPlainText)}
};

PyDoc_STRVAR(doc_QTextDocumentFragment, "\1QTextDocumentFragment()\n"
    "QTextDocumentFragment(QTextDocument)\n"
    "QTextDocumentFragment(QTextCursor)\n"
    "QTextDocumentFragment(QTextDocumentFragment)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextDocumentFragment = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextDocumentFragment,
        {0}
    },
    {
        sipNameNr_QTextDocumentFragment,
        {0, 0, 1},
        5, methods_QTextDocumentFragment,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextDocumentFragment,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTextDocumentFragment,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextDocumentFragment,
    assign_QTextDocumentFragment,
    array_QTextDocumentFragment,
    copy_QTextDocumentFragment,
    release_QTextDocumentFragment,
    cast_QTextDocumentFragment,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 48638 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 48642 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QTextDocument_FindFlags___bool__(PyObject *);}
static int slot_QTextDocument_FindFlags___bool__(PyObject *sipSelf)
{
    QTextDocument::FindFlags *sipCpp = reinterpret_cast<QTextDocument::FindFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextDocument_FindFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextDocument::FindFlags::Int() != 0);
#line 48660 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextDocument::FindFlags *sipCpp = reinterpret_cast<QTextDocument::FindFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextDocument_FindFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextDocument::FindFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextDocument_FindFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextDocument::FindFlags::Int() != a0->operator QTextDocument::FindFlags::Int());
#line 48690 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTextDocument::FindFlags *>(a0),sipType_QTextDocument_FindFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextDocument_FindFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextDocument::FindFlags *sipCpp = reinterpret_cast<QTextDocument::FindFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextDocument_FindFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextDocument::FindFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextDocument_FindFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextDocument::FindFlags::Int() == a0->operator QTextDocument::FindFlags::Int());
#line 48726 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTextDocument::FindFlags *>(a0),sipType_QTextDocument_FindFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextDocument_FindFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___invert__(PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___invert__(PyObject *sipSelf)
{
    QTextDocument::FindFlags *sipCpp = reinterpret_cast<QTextDocument::FindFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextDocument_FindFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QTextDocument::FindFlags*sipRes;

            sipRes = new QTextDocument::FindFlags(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QTextDocument_FindFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument::FindFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextDocument_FindFlags, &a0, &a0State, &a1))
        {
            QTextDocument::FindFlags*sipRes;

            sipRes = new QTextDocument::FindFlags((*a0 & a1));
            sipReleaseType(a0,sipType_QTextDocument_FindFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextDocument_FindFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument::FindFlags* a0;
        int a0State = 0;
        QTextDocument::FindFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTextDocument_FindFlags, &a0, &a0State, sipType_QTextDocument_FindFlags, &a1, &a1State))
        {
            QTextDocument::FindFlags*sipRes;

            sipRes = new QTextDocument::FindFlags((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QTextDocument_FindFlags,a0State);
            sipReleaseType(a1,sipType_QTextDocument_FindFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextDocument_FindFlags,NULL);
        }
    }

    {
        QTextDocument::FindFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextDocument_FindFlags, &a0, &a0State, &a1))
        {
            QTextDocument::FindFlags*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QTextDocument::FindFlags(*a0 ^ a1);
#line 48829 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTextDocument_FindFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextDocument_FindFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument::FindFlags* a0;
        int a0State = 0;
        QTextDocument::FindFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTextDocument_FindFlags, &a0, &a0State, sipType_QTextDocument_FindFlags, &a1, &a1State))
        {
            QTextDocument::FindFlags*sipRes;

            sipRes = new QTextDocument::FindFlags((*a0 | *a1));
            sipReleaseType(a0,sipType_QTextDocument_FindFlags,a0State);
            sipReleaseType(a1,sipType_QTextDocument_FindFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextDocument_FindFlags,NULL);
        }
    }

    {
        QTextDocument::FindFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextDocument_FindFlags, &a0, &a0State, &a1))
        {
            QTextDocument::FindFlags*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QTextDocument::FindFlags(*a0 | a1);
#line 48879 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTextDocument_FindFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextDocument_FindFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___int__(PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___int__(PyObject *sipSelf)
{
    QTextDocument::FindFlags *sipCpp = reinterpret_cast<QTextDocument::FindFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextDocument_FindFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextDocument_FindFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextDocument::FindFlags *sipCpp = reinterpret_cast<QTextDocument::FindFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextDocument_FindFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTextDocument::FindFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextDocument_FindFlags, &a0, &a0State))
        {
            sipCpp->QTextDocument::FindFlags::operator^=(*a0);
            sipReleaseType(a0,sipType_QTextDocument_FindFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextDocument_FindFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextDocument::FindFlags *sipCpp = reinterpret_cast<QTextDocument::FindFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextDocument_FindFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTextDocument::FindFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextDocument_FindFlags, &a0, &a0State))
        {
            sipCpp->QTextDocument::FindFlags::operator|=(*a0);
            sipReleaseType(a0,sipType_QTextDocument_FindFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextDocument_FindFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QTextDocument_FindFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextDocument_FindFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextDocument::FindFlags *sipCpp = reinterpret_cast<QTextDocument::FindFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextDocument_FindFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QTextDocument::FindFlags::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextDocument_FindFlags(void *, const sipTypeDef *);}
static void *cast_QTextDocument_FindFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextDocument_FindFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextDocument_FindFlags(void *, int);}
static void release_QTextDocument_FindFlags(void *sipCppV,int)
{
    delete reinterpret_cast<QTextDocument::FindFlags *>(sipCppV);
}


extern "C" {static void assign_QTextDocument_FindFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextDocument_FindFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextDocument::FindFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextDocument::FindFlags *>(sipSrc);
}


extern "C" {static void *array_QTextDocument_FindFlags(SIP_SSIZE_T);}
static void *array_QTextDocument_FindFlags(SIP_SSIZE_T sipNrElem)
{
    return new QTextDocument::FindFlags[sipNrElem];
}


extern "C" {static void *copy_QTextDocument_FindFlags(const void *, SIP_SSIZE_T);}
static void *copy_QTextDocument_FindFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextDocument::FindFlags(reinterpret_cast<const QTextDocument::FindFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextDocument_FindFlags(sipSimpleWrapper *);}
static void dealloc_QTextDocument_FindFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextDocument_FindFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextDocument_FindFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextDocument_FindFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextDocument::FindFlags *sipCpp = 0;

    {
        const QTextDocument::FindFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QTextDocument_FindFlags, &a0, &a0State))
        {
            sipCpp = new QTextDocument::FindFlags(*a0);
            sipReleaseType(const_cast<QTextDocument::FindFlags *>(a0),sipType_QTextDocument_FindFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QTextDocument::FindFlags(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextDocument::FindFlags();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QTextDocument_FindFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QTextDocument_FindFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QTextDocument::FindFlags **sipCppPtr = reinterpret_cast<QTextDocument::FindFlags **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QTextDocument::FindFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTextDocument_FindFlag)) ||
            sipCanConvertToType(sipPy, sipType_QTextDocument_FindFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTextDocument_FindFlag)))
{
    *sipCppPtr = new QTextDocument::FindFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QTextDocument::FindFlags *>(sipConvertToType(sipPy, sipType_QTextDocument_FindFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 49156 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextDocument_FindFlags[] = {
    {(void *)slot_QTextDocument_FindFlags___bool__, bool_slot},
    {(void *)slot_QTextDocument_FindFlags___ne__, ne_slot},
    {(void *)slot_QTextDocument_FindFlags___eq__, eq_slot},
    {(void *)slot_QTextDocument_FindFlags___invert__, invert_slot},
    {(void *)slot_QTextDocument_FindFlags___and__, and_slot},
    {(void *)slot_QTextDocument_FindFlags___xor__, xor_slot},
    {(void *)slot_QTextDocument_FindFlags___or__, or_slot},
    {(void *)slot_QTextDocument_FindFlags___int__, int_slot},
    {(void *)slot_QTextDocument_FindFlags___ixor__, ixor_slot},
    {(void *)slot_QTextDocument_FindFlags___ior__, ior_slot},
    {(void *)slot_QTextDocument_FindFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTextDocument_FindFlags, "\1QTextDocument.FindFlags(QTextDocument.FindFlags)\n"
    "QTextDocument.FindFlags(int)\n"
    "QTextDocument.FindFlags()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextDocument_FindFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextDocument__FindFlags,
        {0}
    },
    {
        sipNameNr_FindFlags,
        {283, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextDocument_FindFlags,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextDocument_FindFlags,
    init_type_QTextDocument_FindFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextDocument_FindFlags,
    assign_QTextDocument_FindFlags,
    array_QTextDocument_FindFlags,
    copy_QTextDocument_FindFlags,
    release_QTextDocument_FindFlags,
    cast_QTextDocument_FindFlags,
    convertTo_QTextDocument_FindFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 49238 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 49242 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 49245 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 100 "sip/QtCore/qurl.sip"
#include <qurl.h>
#line 49248 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 49251 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 49254 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 49257 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 49260 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 49263 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 49266 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 49269 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 49272 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 49275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 49278 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 49281 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 49284 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 49287 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 49290 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 49293 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 49296 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 49299 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 49302 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 49305 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 49308 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49311 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49314 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 49317 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 49320 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 49323 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 49326 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 49329 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 49332 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 49335 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQTextDocument : public QTextDocument
{
public:
    sipQTextDocument(QObject*);
    sipQTextDocument(const QString&,QObject*);
    virtual ~sipQTextDocument();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    QTextObject* sipProtectVirt_createObject(bool,const QTextFormat&);
    QVariant sipProtectVirt_loadResource(bool,int,const QUrl&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QVariant loadResource(int,const QUrl&);
    QTextObject* createObject(const QTextFormat&);
    void clear();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTextDocument(const sipQTextDocument &);
    sipQTextDocument &operator = (const sipQTextDocument &);

    char sipPyMethods[10];
};

sipQTextDocument::sipQTextDocument(QObject*a0): QTextDocument(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQTextDocument::sipQTextDocument(const QString& a0,QObject*a1): QTextDocument(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQTextDocument::~sipQTextDocument()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQTextDocument::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QTextDocument);
}

int sipQTextDocument::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QTextDocument::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QTextDocument,_c,_id,_a);

    return _id;
}

void *sipQTextDocument::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QTextDocument, _clname, &sipCpp) ? sipCpp : QTextDocument::qt_metacast(_clname));
}

void sipQTextDocument::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QTextDocument::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextDocument::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QTextDocument::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextDocument::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QTextDocument::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextDocument::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QTextDocument::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextDocument::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QTextDocument::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQTextDocument::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QTextDocument::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQTextDocument::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QTextDocument::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QVariant sipQTextDocument::loadResource(int a0,const QUrl& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_loadResource);

    if (!sipMeth)
        return QTextDocument::loadResource(a0,a1);

    extern QVariant sipVH_QtGui_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const QUrl&);

    return sipVH_QtGui_20(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QTextObject* sipQTextDocument::createObject(const QTextFormat& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_createObject);

    if (!sipMeth)
        return QTextDocument::createObject(a0);

    extern QTextObject* sipVH_QtGui_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QTextFormat&);

    return sipVH_QtGui_21(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQTextDocument::clear()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_clear);

    if (!sipMeth)
    {
        QTextDocument::clear();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtGui_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QObject* sipQTextDocument::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQTextDocument::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQTextDocument::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQTextDocument::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQTextDocument::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQTextDocument::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQTextDocument::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQTextDocument::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQTextDocument::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

QTextObject* sipQTextDocument::sipProtectVirt_createObject(bool sipSelfWasArg,const QTextFormat& a0)
{
    return (sipSelfWasArg ? QTextDocument::createObject(a0) : createObject(a0));
}

QVariant sipQTextDocument::sipProtectVirt_loadResource(bool sipSelfWasArg,int a0,const QUrl& a1)
{
    return (sipSelfWasArg ? QTextDocument::loadResource(a0,a1) : loadResource(a0,a1));
}


PyDoc_STRVAR(doc_QTextDocument_sender, "QTextDocument.sender() -> QObject");

extern "C" {static PyObject *meth_QTextDocument_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 49692 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_sender, doc_QTextDocument_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_receivers, "QTextDocument.receivers(signal) -> int");

extern "C" {static PyObject *meth_QTextDocument_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 49751 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_receivers, doc_QTextDocument_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_timerEvent, "QTextDocument.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QTextDocument_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_timerEvent, doc_QTextDocument_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_childEvent, "QTextDocument.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QTextDocument_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_childEvent, doc_QTextDocument_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_customEvent, "QTextDocument.customEvent(QEvent)");

extern "C" {static PyObject *meth_QTextDocument_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_customEvent, doc_QTextDocument_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_connectNotify, "QTextDocument.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextDocument_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_connectNotify, doc_QTextDocument_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_disconnectNotify, "QTextDocument.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QTextDocument_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_disconnectNotify, doc_QTextDocument_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_senderSignalIndex, "QTextDocument.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QTextDocument_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_senderSignalIndex, doc_QTextDocument_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_isSignalConnected, "QTextDocument.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QTextDocument_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_isSignalConnected, doc_QTextDocument_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_clone, "QTextDocument.clone(QObject parent=None) -> QTextDocument");

extern "C" {static PyObject *meth_QTextDocument_clone(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_clone(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QObject* a0 = 0;
        sipWrapper *sipOwner = 0;
        const QTextDocument *sipCpp;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|JH", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QObject, &a0, &sipOwner))
        {
            QTextDocument*sipRes;

            sipRes = sipCpp->clone(a0);

            return sipConvertFromNewType(sipRes,sipType_QTextDocument,(PyObject *)sipOwner);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_clone, doc_QTextDocument_clone);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_isEmpty, "QTextDocument.isEmpty() -> bool");

extern "C" {static PyObject *meth_QTextDocument_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEmpty();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_isEmpty, doc_QTextDocument_isEmpty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_clear, "QTextDocument.clear()");

extern "C" {static PyObject *meth_QTextDocument_clear(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            (sipSelfWasArg ? sipCpp->QTextDocument::clear() : sipCpp->clear());

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_clear, doc_QTextDocument_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setUndoRedoEnabled, "QTextDocument.setUndoRedoEnabled(bool)");

extern "C" {static PyObject *meth_QTextDocument_setUndoRedoEnabled(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setUndoRedoEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            sipCpp->setUndoRedoEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setUndoRedoEnabled, doc_QTextDocument_setUndoRedoEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_isUndoRedoEnabled, "QTextDocument.isUndoRedoEnabled() -> bool");

extern "C" {static PyObject *meth_QTextDocument_isUndoRedoEnabled(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_isUndoRedoEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isUndoRedoEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_isUndoRedoEnabled, doc_QTextDocument_isUndoRedoEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_isUndoAvailable, "QTextDocument.isUndoAvailable() -> bool");

extern "C" {static PyObject *meth_QTextDocument_isUndoAvailable(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_isUndoAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isUndoAvailable();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_isUndoAvailable, doc_QTextDocument_isUndoAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_isRedoAvailable, "QTextDocument.isRedoAvailable() -> bool");

extern "C" {static PyObject *meth_QTextDocument_isRedoAvailable(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_isRedoAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isRedoAvailable();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_isRedoAvailable, doc_QTextDocument_isRedoAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setDocumentLayout, "QTextDocument.setDocumentLayout(QAbstractTextDocumentLayout)");

extern "C" {static PyObject *meth_QTextDocument_setDocumentLayout(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setDocumentLayout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QAbstractTextDocumentLayout* a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QAbstractTextDocumentLayout, &a0))
        {
            sipCpp->setDocumentLayout(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setDocumentLayout, doc_QTextDocument_setDocumentLayout);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_documentLayout, "QTextDocument.documentLayout() -> QAbstractTextDocumentLayout");

extern "C" {static PyObject *meth_QTextDocument_documentLayout(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_documentLayout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QAbstractTextDocumentLayout*sipRes;

            sipRes = sipCpp->documentLayout();

            return sipConvertFromType(sipRes,sipType_QAbstractTextDocumentLayout,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_documentLayout, doc_QTextDocument_documentLayout);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setMetaInformation, "QTextDocument.setMetaInformation(QTextDocument.MetaInformation, str)");

extern "C" {static PyObject *meth_QTextDocument_setMetaInformation(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setMetaInformation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument::MetaInformation a0;
        const QString* a1;
        int a1State = 0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QTextDocument_MetaInformation, &a0, sipType_QString,&a1, &a1State))
        {
            sipCpp->setMetaInformation(a0,*a1);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setMetaInformation, doc_QTextDocument_setMetaInformation);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_metaInformation, "QTextDocument.metaInformation(QTextDocument.MetaInformation) -> str");

extern "C" {static PyObject *meth_QTextDocument_metaInformation(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_metaInformation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument::MetaInformation a0;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QTextDocument_MetaInformation, &a0))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->metaInformation(a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_metaInformation, doc_QTextDocument_metaInformation);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_toHtml, "QTextDocument.toHtml(QByteArray encoding=QByteArray()) -> str");

extern "C" {static PyObject *meth_QTextDocument_toHtml(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_toHtml(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray& a0def = QByteArray();
        const QByteArray* a0 = &a0def;
        int a0State = 0;
        const QTextDocument *sipCpp;

        static const char *sipKwdList[] = {
            sipName_encoding,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->toHtml(*a0));
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_toHtml, doc_QTextDocument_toHtml);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setHtml, "QTextDocument.setHtml(str)");

extern "C" {static PyObject *meth_QTextDocument_setHtml(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setHtml(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setHtml(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setHtml, doc_QTextDocument_setHtml);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_toPlainText, "QTextDocument.toPlainText() -> str");

extern "C" {static PyObject *meth_QTextDocument_toPlainText(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_toPlainText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->toPlainText());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_toPlainText, doc_QTextDocument_toPlainText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setPlainText, "QTextDocument.setPlainText(str)");

extern "C" {static PyObject *meth_QTextDocument_setPlainText(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setPlainText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setPlainText(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setPlainText, doc_QTextDocument_setPlainText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_find, "QTextDocument.find(str, int position=0, QTextDocument.FindFlags options=0) -> QTextCursor\n"
    "QTextDocument.find(QRegExp, int position=0, QTextDocument.FindFlags options=0) -> QTextCursor\n"
    "QTextDocument.find(str, QTextCursor, QTextDocument.FindFlags options=0) -> QTextCursor\n"
    "QTextDocument.find(QRegExp, QTextCursor, QTextDocument.FindFlags options=0) -> QTextCursor");

extern "C" {static PyObject *meth_QTextDocument_find(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_find(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        int a1 = 0;
        QTextDocument::FindFlags a2def = 0;
        QTextDocument::FindFlags* a2 = &a2def;
        int a2State = 0;
        const QTextDocument *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_position,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|iJ1", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QTextDocument_FindFlags, &a2, &a2State))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->find(*a0,a1,*a2));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QTextDocument_FindFlags,a2State);

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    {
        const QRegExp* a0;
        int a1 = 0;
        QTextDocument::FindFlags a2def = 0;
        QTextDocument::FindFlags* a2 = &a2def;
        int a2State = 0;
        const QTextDocument *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_position,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|iJ1", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QRegExp, &a0, &a1, sipType_QTextDocument_FindFlags, &a2, &a2State))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->find(*a0,a1,*a2));
            sipReleaseType(a2,sipType_QTextDocument_FindFlags,a2State);

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QTextCursor* a1;
        QTextDocument::FindFlags a2def = 0;
        QTextDocument::FindFlags* a2 = &a2def;
        int a2State = 0;
        const QTextDocument *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1J9|J1", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QString,&a0, &a0State, sipType_QTextCursor, &a1, sipType_QTextDocument_FindFlags, &a2, &a2State))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->find(*a0,*a1,*a2));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a2,sipType_QTextDocument_FindFlags,a2State);

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    {
        const QRegExp* a0;
        const QTextCursor* a1;
        QTextDocument::FindFlags a2def = 0;
        QTextDocument::FindFlags* a2 = &a2def;
        int a2State = 0;
        const QTextDocument *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J9|J1", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QRegExp, &a0, sipType_QTextCursor, &a1, sipType_QTextDocument_FindFlags, &a2, &a2State))
        {
            QTextCursor*sipRes;

            sipRes = new QTextCursor(sipCpp->find(*a0,*a1,*a2));
            sipReleaseType(a2,sipType_QTextDocument_FindFlags,a2State);

            return sipConvertFromNewType(sipRes,sipType_QTextCursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_find, doc_QTextDocument_find);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_rootFrame, "QTextDocument.rootFrame() -> QTextFrame");

extern "C" {static PyObject *meth_QTextDocument_rootFrame(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_rootFrame(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QTextFrame*sipRes;

            sipRes = sipCpp->rootFrame();

            return sipConvertFromType(sipRes,sipType_QTextFrame,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_rootFrame, doc_QTextDocument_rootFrame);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_object, "QTextDocument.object(int) -> QTextObject");

extern "C" {static PyObject *meth_QTextDocument_object(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_object(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            QTextObject*sipRes;

            sipRes = sipCpp->object(a0);

            return sipConvertFromType(sipRes,sipType_QTextObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_object, doc_QTextDocument_object);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_objectForFormat, "QTextDocument.objectForFormat(QTextFormat) -> QTextObject");

extern "C" {static PyObject *meth_QTextDocument_objectForFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_objectForFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFormat* a0;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QTextFormat, &a0))
        {
            QTextObject*sipRes;

            sipRes = sipCpp->objectForFormat(*a0);

            return sipConvertFromType(sipRes,sipType_QTextObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_objectForFormat, doc_QTextDocument_objectForFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_findBlock, "QTextDocument.findBlock(int) -> QTextBlock");

extern "C" {static PyObject *meth_QTextDocument_findBlock(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_findBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->findBlock(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_findBlock, doc_QTextDocument_findBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_begin, "QTextDocument.begin() -> QTextBlock");

extern "C" {static PyObject *meth_QTextDocument_begin(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_begin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->begin());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_begin, doc_QTextDocument_begin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_end, "QTextDocument.end() -> QTextBlock");

extern "C" {static PyObject *meth_QTextDocument_end(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_end(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->end());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_end, doc_QTextDocument_end);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setPageSize, "QTextDocument.setPageSize(QSizeF)");

extern "C" {static PyObject *meth_QTextDocument_setPageSize(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setPageSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSizeF* a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QSizeF, &a0))
        {
            sipCpp->setPageSize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setPageSize, doc_QTextDocument_setPageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_pageSize, "QTextDocument.pageSize() -> QSizeF");

extern "C" {static PyObject *meth_QTextDocument_pageSize(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_pageSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(sipCpp->pageSize());

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_pageSize, doc_QTextDocument_pageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setDefaultFont, "QTextDocument.setDefaultFont(QFont)");

extern "C" {static PyObject *meth_QTextDocument_setDefaultFont(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setDefaultFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QFont, &a0))
        {
            sipCpp->setDefaultFont(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setDefaultFont, doc_QTextDocument_setDefaultFont);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_defaultFont, "QTextDocument.defaultFont() -> QFont");

extern "C" {static PyObject *meth_QTextDocument_defaultFont(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_defaultFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QFont*sipRes;

            sipRes = new QFont(sipCpp->defaultFont());

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_defaultFont, doc_QTextDocument_defaultFont);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_pageCount, "QTextDocument.pageCount() -> int");

extern "C" {static PyObject *meth_QTextDocument_pageCount(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_pageCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->pageCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_pageCount, doc_QTextDocument_pageCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_isModified, "QTextDocument.isModified() -> bool");

extern "C" {static PyObject *meth_QTextDocument_isModified(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_isModified(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isModified();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_isModified, doc_QTextDocument_isModified);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_print_, "QTextDocument.print_(QPagedPaintDevice)");

extern "C" {static PyObject *meth_QTextDocument_print_(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_print_(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPagedPaintDevice* a0;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QPagedPaintDevice, &a0))
        {
            sipCpp->print(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_print_, doc_QTextDocument_print_);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_print, "QTextDocument.print(QPagedPaintDevice)");

extern "C" {static PyObject *meth_QTextDocument_print(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_print(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPagedPaintDevice* a0;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QPagedPaintDevice, &a0))
        {
            sipCpp->print(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_print, doc_QTextDocument_print);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_resource, "QTextDocument.resource(int, QUrl) -> QVariant");

extern "C" {static PyObject *meth_QTextDocument_resource(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_resource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QUrl* a1;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QTextDocument, &sipCpp, &a0, sipType_QUrl, &a1))
        {
            QVariant*sipRes;

            sipRes = new QVariant(sipCpp->resource(a0,*a1));

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_resource, doc_QTextDocument_resource);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_addResource, "QTextDocument.addResource(int, QUrl, QVariant)");

extern "C" {static PyObject *meth_QTextDocument_addResource(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_addResource(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QUrl* a1;
        const QVariant* a2;
        int a2State = 0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9J1", &sipSelf, sipType_QTextDocument, &sipCpp, &a0, sipType_QUrl, &a1, sipType_QVariant, &a2, &a2State))
        {
            sipCpp->addResource(a0,*a1,*a2);
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_addResource, doc_QTextDocument_addResource);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_allFormats, "QTextDocument.allFormats() -> list-of-QTextFormat");

extern "C" {static PyObject *meth_QTextDocument_allFormats(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_allFormats(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QVector<QTextFormat>*sipRes;

            sipRes = new QVector<QTextFormat>(sipCpp->allFormats());

            return sipConvertFromNewType(sipRes,sipType_QVector_0100QTextFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_allFormats, doc_QTextDocument_allFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_markContentsDirty, "QTextDocument.markContentsDirty(int, int)");

extern "C" {static PyObject *meth_QTextDocument_markContentsDirty(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_markContentsDirty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QTextDocument, &sipCpp, &a0, &a1))
        {
            sipCpp->markContentsDirty(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_markContentsDirty, doc_QTextDocument_markContentsDirty);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setUseDesignMetrics, "QTextDocument.setUseDesignMetrics(bool)");

extern "C" {static PyObject *meth_QTextDocument_setUseDesignMetrics(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setUseDesignMetrics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            sipCpp->setUseDesignMetrics(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setUseDesignMetrics, doc_QTextDocument_setUseDesignMetrics);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_useDesignMetrics, "QTextDocument.useDesignMetrics() -> bool");

extern "C" {static PyObject *meth_QTextDocument_useDesignMetrics(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_useDesignMetrics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->useDesignMetrics();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_useDesignMetrics, doc_QTextDocument_useDesignMetrics);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_undo, "QTextDocument.undo()\n"
    "QTextDocument.undo(QTextCursor)");

extern "C" {static PyObject *meth_QTextDocument_undo(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_undo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            sipCpp->undo();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QTextCursor* a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QTextCursor, &a0))
        {
            sipCpp->undo(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_undo, doc_QTextDocument_undo);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_redo, "QTextDocument.redo()\n"
    "QTextDocument.redo(QTextCursor)");

extern "C" {static PyObject *meth_QTextDocument_redo(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_redo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            sipCpp->redo();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QTextCursor* a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QTextCursor, &a0))
        {
            sipCpp->redo(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_redo, doc_QTextDocument_redo);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setModified, "QTextDocument.setModified(bool on=True)");

extern "C" {static PyObject *meth_QTextDocument_setModified(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setModified(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        QTextDocument *sipCpp;

        static const char *sipKwdList[] = {
            sipName_on,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|b", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            sipCpp->setModified(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setModified, doc_QTextDocument_setModified);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_createObject, "QTextDocument.createObject(QTextFormat) -> QTextObject");

extern "C" {static PyObject *meth_QTextDocument_createObject(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_createObject(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QTextFormat* a0;
        sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QTextFormat, &a0))
        {
            QTextObject*sipRes;

            sipRes = sipCpp->sipProtectVirt_createObject(sipSelfWasArg,*a0);

            return sipConvertFromNewType(sipRes,sipType_QTextObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_createObject, doc_QTextDocument_createObject);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_loadResource, "QTextDocument.loadResource(int, QUrl) -> QVariant");

extern "C" {static PyObject *meth_QTextDocument_loadResource(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_loadResource(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        const QUrl* a1;
        sipQTextDocument *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiJ9", &sipSelf, sipType_QTextDocument, &sipCpp, &a0, sipType_QUrl, &a1))
        {
            QVariant*sipRes;

            sipRes = new QVariant(sipCpp->sipProtectVirt_loadResource(sipSelfWasArg,a0,*a1));

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_loadResource, doc_QTextDocument_loadResource);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_drawContents, "QTextDocument.drawContents(QPainter, QRectF rect=QRectF())");

extern "C" {static PyObject *meth_QTextDocument_drawContents(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_drawContents(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter* a0;
        const QRectF& a1def = QRectF();
        const QRectF* a1 = &a1def;
        QTextDocument *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_rect,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|J9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QPainter, &a0, sipType_QRectF, &a1))
        {
            sipCpp->drawContents(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_drawContents, doc_QTextDocument_drawContents);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setTextWidth, "QTextDocument.setTextWidth(float)");

extern "C" {static PyObject *meth_QTextDocument_setTextWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setTextWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            sipCpp->setTextWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setTextWidth, doc_QTextDocument_setTextWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_textWidth, "QTextDocument.textWidth() -> float");

extern "C" {static PyObject *meth_QTextDocument_textWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_textWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->textWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_textWidth, doc_QTextDocument_textWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_idealWidth, "QTextDocument.idealWidth() -> float");

extern "C" {static PyObject *meth_QTextDocument_idealWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_idealWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->idealWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_idealWidth, doc_QTextDocument_idealWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_adjustSize, "QTextDocument.adjustSize()");

extern "C" {static PyObject *meth_QTextDocument_adjustSize(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_adjustSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            sipCpp->adjustSize();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_adjustSize, doc_QTextDocument_adjustSize);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_size, "QTextDocument.size() -> QSizeF");

extern "C" {static PyObject *meth_QTextDocument_size(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_size, doc_QTextDocument_size);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_blockCount, "QTextDocument.blockCount() -> int");

extern "C" {static PyObject *meth_QTextDocument_blockCount(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_blockCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->blockCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_blockCount, doc_QTextDocument_blockCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setDefaultStyleSheet, "QTextDocument.setDefaultStyleSheet(str)");

extern "C" {static PyObject *meth_QTextDocument_setDefaultStyleSheet(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setDefaultStyleSheet(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setDefaultStyleSheet(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setDefaultStyleSheet, doc_QTextDocument_setDefaultStyleSheet);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_defaultStyleSheet, "QTextDocument.defaultStyleSheet() -> str");

extern "C" {static PyObject *meth_QTextDocument_defaultStyleSheet(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_defaultStyleSheet(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->defaultStyleSheet());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_defaultStyleSheet, doc_QTextDocument_defaultStyleSheet);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_maximumBlockCount, "QTextDocument.maximumBlockCount() -> int");

extern "C" {static PyObject *meth_QTextDocument_maximumBlockCount(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_maximumBlockCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->maximumBlockCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_maximumBlockCount, doc_QTextDocument_maximumBlockCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setMaximumBlockCount, "QTextDocument.setMaximumBlockCount(int)");

extern "C" {static PyObject *meth_QTextDocument_setMaximumBlockCount(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setMaximumBlockCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            sipCpp->setMaximumBlockCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setMaximumBlockCount, doc_QTextDocument_setMaximumBlockCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_defaultTextOption, "QTextDocument.defaultTextOption() -> QTextOption");

extern "C" {static PyObject *meth_QTextDocument_defaultTextOption(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_defaultTextOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QTextOption*sipRes;

            sipRes = new QTextOption(sipCpp->defaultTextOption());

            return sipConvertFromNewType(sipRes,sipType_QTextOption,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_defaultTextOption, doc_QTextDocument_defaultTextOption);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setDefaultTextOption, "QTextDocument.setDefaultTextOption(QTextOption)");

extern "C" {static PyObject *meth_QTextDocument_setDefaultTextOption(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setDefaultTextOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption* a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QTextOption, &a0))
        {
            sipCpp->setDefaultTextOption(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setDefaultTextOption, doc_QTextDocument_setDefaultTextOption);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_revision, "QTextDocument.revision() -> int");

extern "C" {static PyObject *meth_QTextDocument_revision(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_revision(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->revision();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_revision, doc_QTextDocument_revision);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_findBlockByNumber, "QTextDocument.findBlockByNumber(int) -> QTextBlock");

extern "C" {static PyObject *meth_QTextDocument_findBlockByNumber(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_findBlockByNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->findBlockByNumber(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_findBlockByNumber, doc_QTextDocument_findBlockByNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_findBlockByLineNumber, "QTextDocument.findBlockByLineNumber(int) -> QTextBlock");

extern "C" {static PyObject *meth_QTextDocument_findBlockByLineNumber(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_findBlockByLineNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->findBlockByLineNumber(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_findBlockByLineNumber, doc_QTextDocument_findBlockByLineNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_firstBlock, "QTextDocument.firstBlock() -> QTextBlock");

extern "C" {static PyObject *meth_QTextDocument_firstBlock(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_firstBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->firstBlock());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_firstBlock, doc_QTextDocument_firstBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_lastBlock, "QTextDocument.lastBlock() -> QTextBlock");

extern "C" {static PyObject *meth_QTextDocument_lastBlock(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_lastBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->lastBlock());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_lastBlock, doc_QTextDocument_lastBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_indentWidth, "QTextDocument.indentWidth() -> float");

extern "C" {static PyObject *meth_QTextDocument_indentWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_indentWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->indentWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_indentWidth, doc_QTextDocument_indentWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setIndentWidth, "QTextDocument.setIndentWidth(float)");

extern "C" {static PyObject *meth_QTextDocument_setIndentWidth(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setIndentWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            sipCpp->setIndentWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setIndentWidth, doc_QTextDocument_setIndentWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_characterAt, "QTextDocument.characterAt(int) -> str");

extern "C" {static PyObject *meth_QTextDocument_characterAt(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_characterAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            QChar*sipRes;

            sipRes = new QChar(sipCpp->characterAt(a0));

            return sipConvertFromNewType(sipRes,sipType_QChar,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_characterAt, doc_QTextDocument_characterAt);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_documentMargin, "QTextDocument.documentMargin() -> float");

extern "C" {static PyObject *meth_QTextDocument_documentMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_documentMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->documentMargin();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_documentMargin, doc_QTextDocument_documentMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setDocumentMargin, "QTextDocument.setDocumentMargin(float)");

extern "C" {static PyObject *meth_QTextDocument_setDocumentMargin(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setDocumentMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QTextDocument, &sipCpp, &a0))
        {
            sipCpp->setDocumentMargin(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setDocumentMargin, doc_QTextDocument_setDocumentMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_lineCount, "QTextDocument.lineCount() -> int");

extern "C" {static PyObject *meth_QTextDocument_lineCount(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_lineCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->lineCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_lineCount, doc_QTextDocument_lineCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_characterCount, "QTextDocument.characterCount() -> int");

extern "C" {static PyObject *meth_QTextDocument_characterCount(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_characterCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->characterCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_characterCount, doc_QTextDocument_characterCount);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_availableUndoSteps, "QTextDocument.availableUndoSteps() -> int");

extern "C" {static PyObject *meth_QTextDocument_availableUndoSteps(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_availableUndoSteps(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->availableUndoSteps();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_availableUndoSteps, doc_QTextDocument_availableUndoSteps);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_availableRedoSteps, "QTextDocument.availableRedoSteps() -> int");

extern "C" {static PyObject *meth_QTextDocument_availableRedoSteps(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_availableRedoSteps(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->availableRedoSteps();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_availableRedoSteps, doc_QTextDocument_availableRedoSteps);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_clearUndoRedoStacks, "QTextDocument.clearUndoRedoStacks(QTextDocument.Stacks stacks=QTextDocument.UndoAndRedoStacks)");

extern "C" {static PyObject *meth_QTextDocument_clearUndoRedoStacks(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_clearUndoRedoStacks(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument::Stacks a0 = QTextDocument::UndoAndRedoStacks;
        QTextDocument *sipCpp;

        static const char *sipKwdList[] = {
            sipName_stacks,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QTextDocument_Stacks, &a0))
        {
            sipCpp->clearUndoRedoStacks(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_clearUndoRedoStacks, doc_QTextDocument_clearUndoRedoStacks);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_defaultCursorMoveStyle, "QTextDocument.defaultCursorMoveStyle() -> Qt.CursorMoveStyle");

extern "C" {static PyObject *meth_QTextDocument_defaultCursorMoveStyle(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_defaultCursorMoveStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            Qt::CursorMoveStyle sipRes;

            sipRes = sipCpp->defaultCursorMoveStyle();

            return sipConvertFromEnum(sipRes,sipType_Qt_CursorMoveStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_defaultCursorMoveStyle, doc_QTextDocument_defaultCursorMoveStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setDefaultCursorMoveStyle, "QTextDocument.setDefaultCursorMoveStyle(Qt.CursorMoveStyle)");

extern "C" {static PyObject *meth_QTextDocument_setDefaultCursorMoveStyle(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setDefaultCursorMoveStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::CursorMoveStyle a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_Qt_CursorMoveStyle, &a0))
        {
            sipCpp->setDefaultCursorMoveStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setDefaultCursorMoveStyle, doc_QTextDocument_setDefaultCursorMoveStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_baseUrl, "QTextDocument.baseUrl() -> QUrl");

extern "C" {static PyObject *meth_QTextDocument_baseUrl(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_baseUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextDocument, &sipCpp))
        {
            QUrl*sipRes;

            sipRes = new QUrl(sipCpp->baseUrl());

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_baseUrl, doc_QTextDocument_baseUrl);

    return NULL;
}


PyDoc_STRVAR(doc_QTextDocument_setBaseUrl, "QTextDocument.setBaseUrl(QUrl)");

extern "C" {static PyObject *meth_QTextDocument_setBaseUrl(PyObject *, PyObject *);}
static PyObject *meth_QTextDocument_setBaseUrl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl* a0;
        QTextDocument *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextDocument, &sipCpp, sipType_QUrl, &a0))
        {
            sipCpp->setBaseUrl(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextDocument, sipName_setBaseUrl, doc_QTextDocument_setBaseUrl);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextDocument(void *, const sipTypeDef *);}
static void *cast_QTextDocument(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTextDocument)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QTextDocument *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextDocument(void *, int);}
static void release_QTextDocument(void *sipCppV,int)
{
    QTextDocument *sipCpp = reinterpret_cast<QTextDocument *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QTextDocument(sipSimpleWrapper *);}
static void dealloc_QTextDocument(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTextDocument *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTextDocument(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTextDocument(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextDocument(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQTextDocument *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQTextDocument(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QObject* a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|JH", sipType_QString,&a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipQTextDocument(*a0,a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTextDocument[] = {{162, 0, 1}};


static PyMethodDef methods_QTextDocument[] = {
    {SIP_MLNAME_CAST(sipName_addResource), meth_QTextDocument_addResource, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_addResource)},
    {SIP_MLNAME_CAST(sipName_adjustSize), meth_QTextDocument_adjustSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_adjustSize)},
    {SIP_MLNAME_CAST(sipName_allFormats), meth_QTextDocument_allFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_allFormats)},
    {SIP_MLNAME_CAST(sipName_availableRedoSteps), meth_QTextDocument_availableRedoSteps, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_availableRedoSteps)},
    {SIP_MLNAME_CAST(sipName_availableUndoSteps), meth_QTextDocument_availableUndoSteps, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_availableUndoSteps)},
    {SIP_MLNAME_CAST(sipName_baseUrl), meth_QTextDocument_baseUrl, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_baseUrl)},
    {SIP_MLNAME_CAST(sipName_begin), meth_QTextDocument_begin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_begin)},
    {SIP_MLNAME_CAST(sipName_blockCount), meth_QTextDocument_blockCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_blockCount)},
    {SIP_MLNAME_CAST(sipName_characterAt), meth_QTextDocument_characterAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_characterAt)},
    {SIP_MLNAME_CAST(sipName_characterCount), meth_QTextDocument_characterCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_characterCount)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QTextDocument_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_QTextDocument_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_clear)},
    {SIP_MLNAME_CAST(sipName_clearUndoRedoStacks), (PyCFunction)meth_QTextDocument_clearUndoRedoStacks, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextDocument_clearUndoRedoStacks)},
    {SIP_MLNAME_CAST(sipName_clone), (PyCFunction)meth_QTextDocument_clone, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextDocument_clone)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QTextDocument_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_createObject), (PyCFunction)meth_QTextDocument_createObject, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextDocument_createObject)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QTextDocument_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultCursorMoveStyle), meth_QTextDocument_defaultCursorMoveStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_defaultCursorMoveStyle)},
    {SIP_MLNAME_CAST(sipName_defaultFont), meth_QTextDocument_defaultFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_defaultFont)},
    {SIP_MLNAME_CAST(sipName_defaultStyleSheet), meth_QTextDocument_defaultStyleSheet, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_defaultStyleSheet)},
    {SIP_MLNAME_CAST(sipName_defaultTextOption), meth_QTextDocument_defaultTextOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_defaultTextOption)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QTextDocument_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_documentLayout), meth_QTextDocument_documentLayout, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_documentLayout)},
    {SIP_MLNAME_CAST(sipName_documentMargin), meth_QTextDocument_documentMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_documentMargin)},
    {SIP_MLNAME_CAST(sipName_drawContents), (PyCFunction)meth_QTextDocument_drawContents, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextDocument_drawContents)},
    {SIP_MLNAME_CAST(sipName_end), meth_QTextDocument_end, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_end)},
    {SIP_MLNAME_CAST(sipName_find), (PyCFunction)meth_QTextDocument_find, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextDocument_find)},
    {SIP_MLNAME_CAST(sipName_findBlock), meth_QTextDocument_findBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_findBlock)},
    {SIP_MLNAME_CAST(sipName_findBlockByLineNumber), meth_QTextDocument_findBlockByLineNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_findBlockByLineNumber)},
    {SIP_MLNAME_CAST(sipName_findBlockByNumber), meth_QTextDocument_findBlockByNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_findBlockByNumber)},
    {SIP_MLNAME_CAST(sipName_firstBlock), meth_QTextDocument_firstBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_firstBlock)},
    {SIP_MLNAME_CAST(sipName_idealWidth), meth_QTextDocument_idealWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_idealWidth)},
    {SIP_MLNAME_CAST(sipName_indentWidth), meth_QTextDocument_indentWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_indentWidth)},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_QTextDocument_isEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_isEmpty)},
    {SIP_MLNAME_CAST(sipName_isModified), meth_QTextDocument_isModified, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_isModified)},
    {SIP_MLNAME_CAST(sipName_isRedoAvailable), meth_QTextDocument_isRedoAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_isRedoAvailable)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QTextDocument_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isUndoAvailable), meth_QTextDocument_isUndoAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_isUndoAvailable)},
    {SIP_MLNAME_CAST(sipName_isUndoRedoEnabled), meth_QTextDocument_isUndoRedoEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_isUndoRedoEnabled)},
    {SIP_MLNAME_CAST(sipName_lastBlock), meth_QTextDocument_lastBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_lastBlock)},
    {SIP_MLNAME_CAST(sipName_lineCount), meth_QTextDocument_lineCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_lineCount)},
    {SIP_MLNAME_CAST(sipName_loadResource), (PyCFunction)meth_QTextDocument_loadResource, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextDocument_loadResource)},
    {SIP_MLNAME_CAST(sipName_markContentsDirty), meth_QTextDocument_markContentsDirty, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_markContentsDirty)},
    {SIP_MLNAME_CAST(sipName_maximumBlockCount), meth_QTextDocument_maximumBlockCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_maximumBlockCount)},
    {SIP_MLNAME_CAST(sipName_metaInformation), meth_QTextDocument_metaInformation, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_metaInformation)},
    {SIP_MLNAME_CAST(sipName_object), meth_QTextDocument_object, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_object)},
    {SIP_MLNAME_CAST(sipName_objectForFormat), meth_QTextDocument_objectForFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_objectForFormat)},
    {SIP_MLNAME_CAST(sipName_pageCount), meth_QTextDocument_pageCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_pageCount)},
    {SIP_MLNAME_CAST(sipName_pageSize), meth_QTextDocument_pageSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_pageSize)},
    {SIP_MLNAME_CAST(sipName_print), meth_QTextDocument_print, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_print)},
    {SIP_MLNAME_CAST(sipName_print_), meth_QTextDocument_print_, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_print_)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QTextDocument_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_redo), meth_QTextDocument_redo, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_redo)},
    {SIP_MLNAME_CAST(sipName_resource), meth_QTextDocument_resource, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_resource)},
    {SIP_MLNAME_CAST(sipName_revision), meth_QTextDocument_revision, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_revision)},
    {SIP_MLNAME_CAST(sipName_rootFrame), meth_QTextDocument_rootFrame, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_rootFrame)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QTextDocument_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QTextDocument_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setBaseUrl), meth_QTextDocument_setBaseUrl, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setBaseUrl)},
    {SIP_MLNAME_CAST(sipName_setDefaultCursorMoveStyle), meth_QTextDocument_setDefaultCursorMoveStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setDefaultCursorMoveStyle)},
    {SIP_MLNAME_CAST(sipName_setDefaultFont), meth_QTextDocument_setDefaultFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setDefaultFont)},
    {SIP_MLNAME_CAST(sipName_setDefaultStyleSheet), meth_QTextDocument_setDefaultStyleSheet, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setDefaultStyleSheet)},
    {SIP_MLNAME_CAST(sipName_setDefaultTextOption), meth_QTextDocument_setDefaultTextOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setDefaultTextOption)},
    {SIP_MLNAME_CAST(sipName_setDocumentLayout), meth_QTextDocument_setDocumentLayout, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setDocumentLayout)},
    {SIP_MLNAME_CAST(sipName_setDocumentMargin), meth_QTextDocument_setDocumentMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setDocumentMargin)},
    {SIP_MLNAME_CAST(sipName_setHtml), meth_QTextDocument_setHtml, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setHtml)},
    {SIP_MLNAME_CAST(sipName_setIndentWidth), meth_QTextDocument_setIndentWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setIndentWidth)},
    {SIP_MLNAME_CAST(sipName_setMaximumBlockCount), meth_QTextDocument_setMaximumBlockCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setMaximumBlockCount)},
    {SIP_MLNAME_CAST(sipName_setMetaInformation), meth_QTextDocument_setMetaInformation, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setMetaInformation)},
    {SIP_MLNAME_CAST(sipName_setModified), (PyCFunction)meth_QTextDocument_setModified, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextDocument_setModified)},
    {SIP_MLNAME_CAST(sipName_setPageSize), meth_QTextDocument_setPageSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setPageSize)},
    {SIP_MLNAME_CAST(sipName_setPlainText), meth_QTextDocument_setPlainText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setPlainText)},
    {SIP_MLNAME_CAST(sipName_setTextWidth), meth_QTextDocument_setTextWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setTextWidth)},
    {SIP_MLNAME_CAST(sipName_setUndoRedoEnabled), meth_QTextDocument_setUndoRedoEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setUndoRedoEnabled)},
    {SIP_MLNAME_CAST(sipName_setUseDesignMetrics), meth_QTextDocument_setUseDesignMetrics, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_setUseDesignMetrics)},
    {SIP_MLNAME_CAST(sipName_size), meth_QTextDocument_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_size)},
    {SIP_MLNAME_CAST(sipName_textWidth), meth_QTextDocument_textWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_textWidth)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QTextDocument_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_toHtml), (PyCFunction)meth_QTextDocument_toHtml, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextDocument_toHtml)},
    {SIP_MLNAME_CAST(sipName_toPlainText), meth_QTextDocument_toPlainText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_toPlainText)},
    {SIP_MLNAME_CAST(sipName_undo), meth_QTextDocument_undo, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_undo)},
    {SIP_MLNAME_CAST(sipName_useDesignMetrics), meth_QTextDocument_useDesignMetrics, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextDocument_useDesignMetrics)}
};

static sipEnumMemberDef enummembers_QTextDocument[] = {
    {sipName_DocumentTitle, static_cast<int>(QTextDocument::DocumentTitle), 286},
    {sipName_DocumentUrl, static_cast<int>(QTextDocument::DocumentUrl), 286},
    {sipName_FindBackward, static_cast<int>(QTextDocument::FindBackward), 284},
    {sipName_FindCaseSensitively, static_cast<int>(QTextDocument::FindCaseSensitively), 284},
    {sipName_FindWholeWords, static_cast<int>(QTextDocument::FindWholeWords), 284},
    {sipName_HtmlResource, static_cast<int>(QTextDocument::HtmlResource), 287},
    {sipName_ImageResource, static_cast<int>(QTextDocument::ImageResource), 287},
    {sipName_RedoStack, static_cast<int>(QTextDocument::RedoStack), 288},
    {sipName_StyleSheetResource, static_cast<int>(QTextDocument::StyleSheetResource), 287},
    {sipName_UndoAndRedoStacks, static_cast<int>(QTextDocument::UndoAndRedoStacks), 288},
    {sipName_UndoStack, static_cast<int>(QTextDocument::UndoStack), 288},
    {sipName_UserResource, static_cast<int>(QTextDocument::UserResource), 287},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QTextDocument[] = {
    {"baseUrlChanged(QUrl)", "\1QTextDocument.baseUrlChanged[QUrl]", 0, 0},
    {"documentLayoutChanged()", "\1QTextDocument.documentLayoutChanged", 0, 0},
    {"undoCommandAdded()", "\1QTextDocument.undoCommandAdded", 0, 0},
    {"undoAvailable(bool)", "\1QTextDocument.undoAvailable[bool]", 0, 0},
    {"redoAvailable(bool)", "\1QTextDocument.redoAvailable[bool]", 0, 0},
    {"modificationChanged(bool)", "\1QTextDocument.modificationChanged[bool]", 0, 0},
    {"cursorPositionChanged(QTextCursor)", "\1QTextDocument.cursorPositionChanged[QTextCursor]", 0, 0},
    {"contentsChanged()", "\1QTextDocument.contentsChanged", 0, 0},
    {"contentsChange(int,int,int)", "\1QTextDocument.contentsChange[int, int, int]", 0, 0},
    {"blockCountChanged(int)", "\1QTextDocument.blockCountChanged[int]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QTextDocument, "\1QTextDocument(QObject parent=None)\n"
    "QTextDocument(str, QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextDocument = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextDocument,
        {0}
    },
    {
        sipNameNr_QTextDocument,
        {0, 0, 1},
        82, methods_QTextDocument,
        12, enummembers_QTextDocument,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextDocument,
    -1,
    -1,
    supers_QTextDocument,
    0,
    init_type_QTextDocument,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextDocument,
    0,
    0,
    0,
    release_QTextDocument,
    cast_QTextDocument,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QTextDocument::staticMetaObject,
    0,
    signals_QTextDocument,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 52384 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 52388 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 52391 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_Qt_convertFromPlainText, "Qt.convertFromPlainText(str, Qt.WhiteSpaceMode mode=Qt.WhiteSpacePre) -> str");

extern "C" {static PyObject *meth_Qt_convertFromPlainText(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_Qt_convertFromPlainText(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Qt::WhiteSpaceMode a1 = Qt::WhiteSpacePre;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|E", sipType_QString,&a0, &a0State, sipType_Qt_WhiteSpaceMode, &a1))
        {
            QString*sipRes;

            sipRes = new QString(Qt::convertFromPlainText(*a0,a1));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_convertFromPlainText, doc_Qt_convertFromPlainText);

    return NULL;
}


PyDoc_STRVAR(doc_Qt_mightBeRichText, "Qt.mightBeRichText(str) -> bool");

extern "C" {static PyObject *meth_Qt_mightBeRichText(PyObject *, PyObject *);}
static PyObject *meth_Qt_mightBeRichText(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            sipRes = Qt::mightBeRichText(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoFunction(sipParseErr, sipName_mightBeRichText, doc_Qt_mightBeRichText);

    return NULL;
}


static PyMethodDef methods_Qt[] = {
    {SIP_MLNAME_CAST(sipName_convertFromPlainText), (PyCFunction)meth_Qt_convertFromPlainText, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_Qt_convertFromPlainText)},
    {SIP_MLNAME_CAST(sipName_mightBeRichText), meth_Qt_mightBeRichText, METH_VARARGS, SIP_MLDOC_CAST(doc_Qt_mightBeRichText)}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_Qt = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_NAMESPACE,
        sipNameNr_Qt,
        {0}
    },
    {
        -1,
        {310, 0, 0},
        2, methods_Qt,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 52520 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 52524 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 52527 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 52530 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 433 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 52533 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 52536 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 52539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 52542 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocumentfragment.sip"
#include <qtextdocumentfragment.h>
#line 52545 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtexttable.sip"
#include <qtexttable.h>
#line 52548 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 52551 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlist.sip"
#include <qtextlist.h>
#line 52554 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 52557 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 356 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 52560 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 52563 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextCursor_isNull, "QTextCursor.isNull() -> bool");

extern "C" {static PyObject *meth_QTextCursor_isNull(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_isNull, doc_QTextCursor_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_setPosition, "QTextCursor.setPosition(int, QTextCursor.MoveMode mode=QTextCursor.MoveAnchor)");

extern "C" {static PyObject *meth_QTextCursor_setPosition(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_setPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextCursor::MoveMode a1 = QTextCursor::MoveAnchor;
        QTextCursor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QTextCursor, &sipCpp, &a0, sipType_QTextCursor_MoveMode, &a1))
        {
            sipCpp->setPosition(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_setPosition, doc_QTextCursor_setPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_position, "QTextCursor.position() -> int");

extern "C" {static PyObject *meth_QTextCursor_position(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_position(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->position();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_position, doc_QTextCursor_position);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_anchor, "QTextCursor.anchor() -> int");

extern "C" {static PyObject *meth_QTextCursor_anchor(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_anchor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->anchor();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_anchor, doc_QTextCursor_anchor);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_insertText, "QTextCursor.insertText(str)\n"
    "QTextCursor.insertText(str, QTextCharFormat)");

extern "C" {static PyObject *meth_QTextCursor_insertText(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_insertText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->insertText(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QTextCharFormat* a1;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QString,&a0, &a0State, sipType_QTextCharFormat, &a1))
        {
            sipCpp->insertText(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_insertText, doc_QTextCursor_insertText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_movePosition, "QTextCursor.movePosition(QTextCursor.MoveOperation, QTextCursor.MoveMode mode=QTextCursor.MoveAnchor, int n=1) -> bool");

extern "C" {static PyObject *meth_QTextCursor_movePosition(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_movePosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor::MoveOperation a0;
        QTextCursor::MoveMode a1 = QTextCursor::MoveAnchor;
        int a2 = 1;
        QTextCursor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
            sipName_n,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|Ei", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextCursor_MoveOperation, &a0, sipType_QTextCursor_MoveMode, &a1, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->movePosition(a0,a1,a2);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_movePosition, doc_QTextCursor_movePosition);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_deleteChar, "QTextCursor.deleteChar()");

extern "C" {static PyObject *meth_QTextCursor_deleteChar(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_deleteChar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            sipCpp->deleteChar();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_deleteChar, doc_QTextCursor_deleteChar);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_deletePreviousChar, "QTextCursor.deletePreviousChar()");

extern "C" {static PyObject *meth_QTextCursor_deletePreviousChar(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_deletePreviousChar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            sipCpp->deletePreviousChar();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_deletePreviousChar, doc_QTextCursor_deletePreviousChar);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_select, "QTextCursor.select(QTextCursor.SelectionType)");

extern "C" {static PyObject *meth_QTextCursor_select(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_select(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor::SelectionType a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextCursor_SelectionType, &a0))
        {
            sipCpp->select(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_select, doc_QTextCursor_select);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_hasSelection, "QTextCursor.hasSelection() -> bool");

extern "C" {static PyObject *meth_QTextCursor_hasSelection(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_hasSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasSelection();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_hasSelection, doc_QTextCursor_hasSelection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_hasComplexSelection, "QTextCursor.hasComplexSelection() -> bool");

extern "C" {static PyObject *meth_QTextCursor_hasComplexSelection(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_hasComplexSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasComplexSelection();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_hasComplexSelection, doc_QTextCursor_hasComplexSelection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_removeSelectedText, "QTextCursor.removeSelectedText()");

extern "C" {static PyObject *meth_QTextCursor_removeSelectedText(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_removeSelectedText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            sipCpp->removeSelectedText();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_removeSelectedText, doc_QTextCursor_removeSelectedText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_clearSelection, "QTextCursor.clearSelection()");

extern "C" {static PyObject *meth_QTextCursor_clearSelection(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_clearSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            sipCpp->clearSelection();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_clearSelection, doc_QTextCursor_clearSelection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_selectionStart, "QTextCursor.selectionStart() -> int");

extern "C" {static PyObject *meth_QTextCursor_selectionStart(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_selectionStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->selectionStart();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_selectionStart, doc_QTextCursor_selectionStart);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_selectionEnd, "QTextCursor.selectionEnd() -> int");

extern "C" {static PyObject *meth_QTextCursor_selectionEnd(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_selectionEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->selectionEnd();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_selectionEnd, doc_QTextCursor_selectionEnd);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_selectedText, "QTextCursor.selectedText() -> str");

extern "C" {static PyObject *meth_QTextCursor_selectedText(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_selectedText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->selectedText());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_selectedText, doc_QTextCursor_selectedText);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_selection, "QTextCursor.selection() -> QTextDocumentFragment");

extern "C" {static PyObject *meth_QTextCursor_selection(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_selection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QTextDocumentFragment*sipRes;

            sipRes = new QTextDocumentFragment(sipCpp->selection());

            return sipConvertFromNewType(sipRes,sipType_QTextDocumentFragment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_selection, doc_QTextCursor_selection);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_selectedTableCells, "QTextCursor.selectedTableCells() -> (int, int, int, int)");

extern "C" {static PyObject *meth_QTextCursor_selectedTableCells(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_selectedTableCells(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            sipCpp->selectedTableCells(&a0,&a1,&a2,&a3);

            return sipBuildResult(0,"(iiii)",a0,a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_selectedTableCells, doc_QTextCursor_selectedTableCells);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_block, "QTextCursor.block() -> QTextBlock");

extern "C" {static PyObject *meth_QTextCursor_block(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_block(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->block());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_block, doc_QTextCursor_block);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_charFormat, "QTextCursor.charFormat() -> QTextCharFormat");

extern "C" {static PyObject *meth_QTextCursor_charFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_charFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QTextCharFormat*sipRes;

            sipRes = new QTextCharFormat(sipCpp->charFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextCharFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_charFormat, doc_QTextCursor_charFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_setCharFormat, "QTextCursor.setCharFormat(QTextCharFormat)");

extern "C" {static PyObject *meth_QTextCursor_setCharFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_setCharFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextCharFormat, &a0))
        {
            sipCpp->setCharFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_setCharFormat, doc_QTextCursor_setCharFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_mergeCharFormat, "QTextCursor.mergeCharFormat(QTextCharFormat)");

extern "C" {static PyObject *meth_QTextCursor_mergeCharFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_mergeCharFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextCharFormat, &a0))
        {
            sipCpp->mergeCharFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_mergeCharFormat, doc_QTextCursor_mergeCharFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_blockFormat, "QTextCursor.blockFormat() -> QTextBlockFormat");

extern "C" {static PyObject *meth_QTextCursor_blockFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_blockFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QTextBlockFormat*sipRes;

            sipRes = new QTextBlockFormat(sipCpp->blockFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextBlockFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_blockFormat, doc_QTextCursor_blockFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_setBlockFormat, "QTextCursor.setBlockFormat(QTextBlockFormat)");

extern "C" {static PyObject *meth_QTextCursor_setBlockFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_setBlockFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextBlockFormat, &a0))
        {
            sipCpp->setBlockFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_setBlockFormat, doc_QTextCursor_setBlockFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_mergeBlockFormat, "QTextCursor.mergeBlockFormat(QTextBlockFormat)");

extern "C" {static PyObject *meth_QTextCursor_mergeBlockFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_mergeBlockFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlockFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextBlockFormat, &a0))
        {
            sipCpp->mergeBlockFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_mergeBlockFormat, doc_QTextCursor_mergeBlockFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_blockCharFormat, "QTextCursor.blockCharFormat() -> QTextCharFormat");

extern "C" {static PyObject *meth_QTextCursor_blockCharFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_blockCharFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QTextCharFormat*sipRes;

            sipRes = new QTextCharFormat(sipCpp->blockCharFormat());

            return sipConvertFromNewType(sipRes,sipType_QTextCharFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_blockCharFormat, doc_QTextCursor_blockCharFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_setBlockCharFormat, "QTextCursor.setBlockCharFormat(QTextCharFormat)");

extern "C" {static PyObject *meth_QTextCursor_setBlockCharFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_setBlockCharFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextCharFormat, &a0))
        {
            sipCpp->setBlockCharFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_setBlockCharFormat, doc_QTextCursor_setBlockCharFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_mergeBlockCharFormat, "QTextCursor.mergeBlockCharFormat(QTextCharFormat)");

extern "C" {static PyObject *meth_QTextCursor_mergeBlockCharFormat(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_mergeBlockCharFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCharFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextCharFormat, &a0))
        {
            sipCpp->mergeBlockCharFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_mergeBlockCharFormat, doc_QTextCursor_mergeBlockCharFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_atBlockStart, "QTextCursor.atBlockStart() -> bool");

extern "C" {static PyObject *meth_QTextCursor_atBlockStart(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_atBlockStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->atBlockStart();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_atBlockStart, doc_QTextCursor_atBlockStart);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_atBlockEnd, "QTextCursor.atBlockEnd() -> bool");

extern "C" {static PyObject *meth_QTextCursor_atBlockEnd(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_atBlockEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->atBlockEnd();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_atBlockEnd, doc_QTextCursor_atBlockEnd);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_atStart, "QTextCursor.atStart() -> bool");

extern "C" {static PyObject *meth_QTextCursor_atStart(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_atStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->atStart();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_atStart, doc_QTextCursor_atStart);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_atEnd, "QTextCursor.atEnd() -> bool");

extern "C" {static PyObject *meth_QTextCursor_atEnd(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_atEnd(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->atEnd();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_atEnd, doc_QTextCursor_atEnd);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_insertBlock, "QTextCursor.insertBlock()\n"
    "QTextCursor.insertBlock(QTextBlockFormat)\n"
    "QTextCursor.insertBlock(QTextBlockFormat, QTextCharFormat)");

extern "C" {static PyObject *meth_QTextCursor_insertBlock(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_insertBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            sipCpp->insertBlock();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QTextBlockFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextBlockFormat, &a0))
        {
            sipCpp->insertBlock(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QTextBlockFormat* a0;
        const QTextCharFormat* a1;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextBlockFormat, &a0, sipType_QTextCharFormat, &a1))
        {
            sipCpp->insertBlock(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_insertBlock, doc_QTextCursor_insertBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_insertList, "QTextCursor.insertList(QTextListFormat) -> QTextList\n"
    "QTextCursor.insertList(QTextListFormat.Style) -> QTextList");

extern "C" {static PyObject *meth_QTextCursor_insertList(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_insertList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextListFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextListFormat, &a0))
        {
            QTextList*sipRes;

            sipRes = sipCpp->insertList(*a0);

            return sipConvertFromType(sipRes,sipType_QTextList,NULL);
        }
    }

    {
        QTextListFormat::Style a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextListFormat_Style, &a0))
        {
            QTextList*sipRes;

            sipRes = sipCpp->insertList(a0);

            return sipConvertFromType(sipRes,sipType_QTextList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_insertList, doc_QTextCursor_insertList);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_createList, "QTextCursor.createList(QTextListFormat) -> QTextList\n"
    "QTextCursor.createList(QTextListFormat.Style) -> QTextList");

extern "C" {static PyObject *meth_QTextCursor_createList(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_createList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextListFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextListFormat, &a0))
        {
            QTextList*sipRes;

            sipRes = sipCpp->createList(*a0);

            return sipConvertFromType(sipRes,sipType_QTextList,NULL);
        }
    }

    {
        QTextListFormat::Style a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextListFormat_Style, &a0))
        {
            QTextList*sipRes;

            sipRes = sipCpp->createList(a0);

            return sipConvertFromType(sipRes,sipType_QTextList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_createList, doc_QTextCursor_createList);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_currentList, "QTextCursor.currentList() -> QTextList");

extern "C" {static PyObject *meth_QTextCursor_currentList(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_currentList(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QTextList*sipRes;

            sipRes = sipCpp->currentList();

            return sipConvertFromType(sipRes,sipType_QTextList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_currentList, doc_QTextCursor_currentList);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_insertTable, "QTextCursor.insertTable(int, int, QTextTableFormat) -> QTextTable\n"
    "QTextCursor.insertTable(int, int) -> QTextTable");

extern "C" {static PyObject *meth_QTextCursor_insertTable(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_insertTable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const QTextTableFormat* a2;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9", &sipSelf, sipType_QTextCursor, &sipCpp, &a0, &a1, sipType_QTextTableFormat, &a2))
        {
            QTextTable*sipRes;

            sipRes = sipCpp->insertTable(a0,a1,*a2);

            return sipConvertFromType(sipRes,sipType_QTextTable,NULL);
        }
    }

    {
        int a0;
        int a1;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QTextCursor, &sipCpp, &a0, &a1))
        {
            QTextTable*sipRes;

            sipRes = sipCpp->insertTable(a0,a1);

            return sipConvertFromType(sipRes,sipType_QTextTable,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_insertTable, doc_QTextCursor_insertTable);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_currentTable, "QTextCursor.currentTable() -> QTextTable");

extern "C" {static PyObject *meth_QTextCursor_currentTable(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_currentTable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QTextTable*sipRes;

            sipRes = sipCpp->currentTable();

            return sipConvertFromType(sipRes,sipType_QTextTable,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_currentTable, doc_QTextCursor_currentTable);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_insertFrame, "QTextCursor.insertFrame(QTextFrameFormat) -> QTextFrame");

extern "C" {static PyObject *meth_QTextCursor_insertFrame(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_insertFrame(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextFrameFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextFrameFormat, &a0))
        {
            QTextFrame*sipRes;

            sipRes = sipCpp->insertFrame(*a0);

            return sipConvertFromType(sipRes,sipType_QTextFrame,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_insertFrame, doc_QTextCursor_insertFrame);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_currentFrame, "QTextCursor.currentFrame() -> QTextFrame");

extern "C" {static PyObject *meth_QTextCursor_currentFrame(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_currentFrame(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QTextFrame*sipRes;

            sipRes = sipCpp->currentFrame();

            return sipConvertFromType(sipRes,sipType_QTextFrame,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_currentFrame, doc_QTextCursor_currentFrame);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_insertFragment, "QTextCursor.insertFragment(QTextDocumentFragment)");

extern "C" {static PyObject *meth_QTextCursor_insertFragment(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_insertFragment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextDocumentFragment* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextDocumentFragment, &a0))
        {
            sipCpp->insertFragment(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_insertFragment, doc_QTextCursor_insertFragment);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_insertHtml, "QTextCursor.insertHtml(str)");

extern "C" {static PyObject *meth_QTextCursor_insertHtml(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_insertHtml(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->insertHtml(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_insertHtml, doc_QTextCursor_insertHtml);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_insertImage, "QTextCursor.insertImage(QTextImageFormat)\n"
    "QTextCursor.insertImage(QTextImageFormat, QTextFrameFormat.Position)\n"
    "QTextCursor.insertImage(str)\n"
    "QTextCursor.insertImage(QImage, str name='')");

extern "C" {static PyObject *meth_QTextCursor_insertImage(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_insertImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextImageFormat* a0;
        QTextCursor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextImageFormat, &a0))
        {
            sipCpp->insertImage(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QTextImageFormat* a0;
        QTextFrameFormat::Position a1;
        QTextCursor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9E", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextImageFormat, &a0, sipType_QTextFrameFormat_Position, &a1))
        {
            sipCpp->insertImage(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QTextCursor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->insertImage(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QImage* a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        QTextCursor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_name,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|J1", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QImage, &a0, sipType_QString,&a1, &a1State))
        {
            sipCpp->insertImage(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_insertImage, doc_QTextCursor_insertImage);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_beginEditBlock, "QTextCursor.beginEditBlock()");

extern "C" {static PyObject *meth_QTextCursor_beginEditBlock(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_beginEditBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            sipCpp->beginEditBlock();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_beginEditBlock, doc_QTextCursor_beginEditBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_joinPreviousEditBlock, "QTextCursor.joinPreviousEditBlock()");

extern "C" {static PyObject *meth_QTextCursor_joinPreviousEditBlock(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_joinPreviousEditBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            sipCpp->joinPreviousEditBlock();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_joinPreviousEditBlock, doc_QTextCursor_joinPreviousEditBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_endEditBlock, "QTextCursor.endEditBlock()");

extern "C" {static PyObject *meth_QTextCursor_endEditBlock(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_endEditBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            sipCpp->endEditBlock();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_endEditBlock, doc_QTextCursor_endEditBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_blockNumber, "QTextCursor.blockNumber() -> int");

extern "C" {static PyObject *meth_QTextCursor_blockNumber(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_blockNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->blockNumber();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_blockNumber, doc_QTextCursor_blockNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_columnNumber, "QTextCursor.columnNumber() -> int");

extern "C" {static PyObject *meth_QTextCursor_columnNumber(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_columnNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->columnNumber();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_columnNumber, doc_QTextCursor_columnNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_isCopyOf, "QTextCursor.isCopyOf(QTextCursor) -> bool");

extern "C" {static PyObject *meth_QTextCursor_isCopyOf(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_isCopyOf(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor* a0;
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextCursor, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isCopyOf(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_isCopyOf, doc_QTextCursor_isCopyOf);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_visualNavigation, "QTextCursor.visualNavigation() -> bool");

extern "C" {static PyObject *meth_QTextCursor_visualNavigation(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_visualNavigation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->visualNavigation();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_visualNavigation, doc_QTextCursor_visualNavigation);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_setVisualNavigation, "QTextCursor.setVisualNavigation(bool)");

extern "C" {static PyObject *meth_QTextCursor_setVisualNavigation(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_setVisualNavigation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextCursor, &sipCpp, &a0))
        {
            sipCpp->setVisualNavigation(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_setVisualNavigation, doc_QTextCursor_setVisualNavigation);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_document, "QTextCursor.document() -> QTextDocument");

extern "C" {static PyObject *meth_QTextCursor_document(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_document(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            QTextDocument*sipRes;

            sipRes = sipCpp->document();

            return sipConvertFromType(sipRes,sipType_QTextDocument,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_document, doc_QTextCursor_document);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_positionInBlock, "QTextCursor.positionInBlock() -> int");

extern "C" {static PyObject *meth_QTextCursor_positionInBlock(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_positionInBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->positionInBlock();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_positionInBlock, doc_QTextCursor_positionInBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_setVerticalMovementX, "QTextCursor.setVerticalMovementX(int)");

extern "C" {static PyObject *meth_QTextCursor_setVerticalMovementX(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_setVerticalMovementX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QTextCursor, &sipCpp, &a0))
        {
            sipCpp->setVerticalMovementX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_setVerticalMovementX, doc_QTextCursor_setVerticalMovementX);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_verticalMovementX, "QTextCursor.verticalMovementX() -> int");

extern "C" {static PyObject *meth_QTextCursor_verticalMovementX(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_verticalMovementX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->verticalMovementX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_verticalMovementX, doc_QTextCursor_verticalMovementX);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_setKeepPositionOnInsert, "QTextCursor.setKeepPositionOnInsert(bool)");

extern "C" {static PyObject *meth_QTextCursor_setKeepPositionOnInsert(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_setKeepPositionOnInsert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QTextCursor, &sipCpp, &a0))
        {
            sipCpp->setKeepPositionOnInsert(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_setKeepPositionOnInsert, doc_QTextCursor_setKeepPositionOnInsert);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_keepPositionOnInsert, "QTextCursor.keepPositionOnInsert() -> bool");

extern "C" {static PyObject *meth_QTextCursor_keepPositionOnInsert(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_keepPositionOnInsert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCursor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->keepPositionOnInsert();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_keepPositionOnInsert, doc_QTextCursor_keepPositionOnInsert);

    return NULL;
}


PyDoc_STRVAR(doc_QTextCursor_swap, "QTextCursor.swap(QTextCursor)");

extern "C" {static PyObject *meth_QTextCursor_swap(PyObject *, PyObject *);}
static PyObject *meth_QTextCursor_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextCursor* a0;
        QTextCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QTextCursor, &sipCpp, sipType_QTextCursor, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextCursor, sipName_swap, doc_QTextCursor_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QTextCursor___gt__(PyObject *,PyObject *);}
static PyObject *slot_QTextCursor___gt__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextCursor *sipCpp = reinterpret_cast<QTextCursor *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCursor));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextCursor* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextCursor, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextCursor::operator>(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,gt_slot,sipType_QTextCursor,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextCursor___ge__(PyObject *,PyObject *);}
static PyObject *slot_QTextCursor___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextCursor *sipCpp = reinterpret_cast<QTextCursor *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCursor));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextCursor* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextCursor, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextCursor::operator>=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ge_slot,sipType_QTextCursor,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextCursor___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextCursor___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextCursor *sipCpp = reinterpret_cast<QTextCursor *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCursor));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextCursor* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextCursor, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextCursor::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextCursor,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextCursor___le__(PyObject *,PyObject *);}
static PyObject *slot_QTextCursor___le__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextCursor *sipCpp = reinterpret_cast<QTextCursor *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCursor));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextCursor* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextCursor, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextCursor::operator<=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,le_slot,sipType_QTextCursor,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextCursor___lt__(PyObject *,PyObject *);}
static PyObject *slot_QTextCursor___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextCursor *sipCpp = reinterpret_cast<QTextCursor *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCursor));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextCursor* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextCursor, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextCursor::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,lt_slot,sipType_QTextCursor,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextCursor___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextCursor___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextCursor *sipCpp = reinterpret_cast<QTextCursor *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCursor));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextCursor* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QTextCursor, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QTextCursor::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextCursor,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextCursor(void *, const sipTypeDef *);}
static void *cast_QTextCursor(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextCursor)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextCursor(void *, int);}
static void release_QTextCursor(void *sipCppV,int)
{
    delete reinterpret_cast<QTextCursor *>(sipCppV);
}


extern "C" {static void assign_QTextCursor(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextCursor(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextCursor *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextCursor *>(sipSrc);
}


extern "C" {static void *array_QTextCursor(SIP_SSIZE_T);}
static void *array_QTextCursor(SIP_SSIZE_T sipNrElem)
{
    return new QTextCursor[sipNrElem];
}


extern "C" {static void *copy_QTextCursor(const void *, SIP_SSIZE_T);}
static void *copy_QTextCursor(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextCursor(reinterpret_cast<const QTextCursor *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextCursor(sipSimpleWrapper *);}
static void dealloc_QTextCursor(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextCursor(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextCursor(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextCursor(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextCursor *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextCursor();

            return sipCpp;
        }
    }

    {
        QTextDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTextDocument, &a0))
        {
            sipCpp = new QTextCursor(a0);

            return sipCpp;
        }
    }

    {
        QTextFrame* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTextFrame, &a0))
        {
            sipCpp = new QTextCursor(a0);

            return sipCpp;
        }
    }

    {
        const QTextBlock* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextBlock, &a0))
        {
            sipCpp = new QTextCursor(*a0);

            return sipCpp;
        }
    }

    {
        const QTextCursor* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextCursor, &a0))
        {
            sipCpp = new QTextCursor(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextCursor[] = {
    {(void *)slot_QTextCursor___gt__, gt_slot},
    {(void *)slot_QTextCursor___ge__, ge_slot},
    {(void *)slot_QTextCursor___eq__, eq_slot},
    {(void *)slot_QTextCursor___le__, le_slot},
    {(void *)slot_QTextCursor___lt__, lt_slot},
    {(void *)slot_QTextCursor___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QTextCursor[] = {
    {SIP_MLNAME_CAST(sipName_anchor), meth_QTextCursor_anchor, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_anchor)},
    {SIP_MLNAME_CAST(sipName_atBlockEnd), meth_QTextCursor_atBlockEnd, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_atBlockEnd)},
    {SIP_MLNAME_CAST(sipName_atBlockStart), meth_QTextCursor_atBlockStart, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_atBlockStart)},
    {SIP_MLNAME_CAST(sipName_atEnd), meth_QTextCursor_atEnd, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_atEnd)},
    {SIP_MLNAME_CAST(sipName_atStart), meth_QTextCursor_atStart, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_atStart)},
    {SIP_MLNAME_CAST(sipName_beginEditBlock), meth_QTextCursor_beginEditBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_beginEditBlock)},
    {SIP_MLNAME_CAST(sipName_block), meth_QTextCursor_block, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_block)},
    {SIP_MLNAME_CAST(sipName_blockCharFormat), meth_QTextCursor_blockCharFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_blockCharFormat)},
    {SIP_MLNAME_CAST(sipName_blockFormat), meth_QTextCursor_blockFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_blockFormat)},
    {SIP_MLNAME_CAST(sipName_blockNumber), meth_QTextCursor_blockNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_blockNumber)},
    {SIP_MLNAME_CAST(sipName_charFormat), meth_QTextCursor_charFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_charFormat)},
    {SIP_MLNAME_CAST(sipName_clearSelection), meth_QTextCursor_clearSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_clearSelection)},
    {SIP_MLNAME_CAST(sipName_columnNumber), meth_QTextCursor_columnNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_columnNumber)},
    {SIP_MLNAME_CAST(sipName_createList), meth_QTextCursor_createList, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_createList)},
    {SIP_MLNAME_CAST(sipName_currentFrame), meth_QTextCursor_currentFrame, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_currentFrame)},
    {SIP_MLNAME_CAST(sipName_currentList), meth_QTextCursor_currentList, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_currentList)},
    {SIP_MLNAME_CAST(sipName_currentTable), meth_QTextCursor_currentTable, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_currentTable)},
    {SIP_MLNAME_CAST(sipName_deleteChar), meth_QTextCursor_deleteChar, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_deleteChar)},
    {SIP_MLNAME_CAST(sipName_deletePreviousChar), meth_QTextCursor_deletePreviousChar, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_deletePreviousChar)},
    {SIP_MLNAME_CAST(sipName_document), meth_QTextCursor_document, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_document)},
    {SIP_MLNAME_CAST(sipName_endEditBlock), meth_QTextCursor_endEditBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_endEditBlock)},
    {SIP_MLNAME_CAST(sipName_hasComplexSelection), meth_QTextCursor_hasComplexSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_hasComplexSelection)},
    {SIP_MLNAME_CAST(sipName_hasSelection), meth_QTextCursor_hasSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_hasSelection)},
    {SIP_MLNAME_CAST(sipName_insertBlock), meth_QTextCursor_insertBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_insertBlock)},
    {SIP_MLNAME_CAST(sipName_insertFragment), meth_QTextCursor_insertFragment, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_insertFragment)},
    {SIP_MLNAME_CAST(sipName_insertFrame), meth_QTextCursor_insertFrame, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_insertFrame)},
    {SIP_MLNAME_CAST(sipName_insertHtml), meth_QTextCursor_insertHtml, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_insertHtml)},
    {SIP_MLNAME_CAST(sipName_insertImage), (PyCFunction)meth_QTextCursor_insertImage, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextCursor_insertImage)},
    {SIP_MLNAME_CAST(sipName_insertList), meth_QTextCursor_insertList, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_insertList)},
    {SIP_MLNAME_CAST(sipName_insertTable), meth_QTextCursor_insertTable, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_insertTable)},
    {SIP_MLNAME_CAST(sipName_insertText), meth_QTextCursor_insertText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_insertText)},
    {SIP_MLNAME_CAST(sipName_isCopyOf), meth_QTextCursor_isCopyOf, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_isCopyOf)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QTextCursor_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_isNull)},
    {SIP_MLNAME_CAST(sipName_joinPreviousEditBlock), meth_QTextCursor_joinPreviousEditBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_joinPreviousEditBlock)},
    {SIP_MLNAME_CAST(sipName_keepPositionOnInsert), meth_QTextCursor_keepPositionOnInsert, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_keepPositionOnInsert)},
    {SIP_MLNAME_CAST(sipName_mergeBlockCharFormat), meth_QTextCursor_mergeBlockCharFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_mergeBlockCharFormat)},
    {SIP_MLNAME_CAST(sipName_mergeBlockFormat), meth_QTextCursor_mergeBlockFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_mergeBlockFormat)},
    {SIP_MLNAME_CAST(sipName_mergeCharFormat), meth_QTextCursor_mergeCharFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_mergeCharFormat)},
    {SIP_MLNAME_CAST(sipName_movePosition), (PyCFunction)meth_QTextCursor_movePosition, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextCursor_movePosition)},
    {SIP_MLNAME_CAST(sipName_position), meth_QTextCursor_position, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_position)},
    {SIP_MLNAME_CAST(sipName_positionInBlock), meth_QTextCursor_positionInBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_positionInBlock)},
    {SIP_MLNAME_CAST(sipName_removeSelectedText), meth_QTextCursor_removeSelectedText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_removeSelectedText)},
    {SIP_MLNAME_CAST(sipName_select), meth_QTextCursor_select, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_select)},
    {SIP_MLNAME_CAST(sipName_selectedTableCells), meth_QTextCursor_selectedTableCells, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_selectedTableCells)},
    {SIP_MLNAME_CAST(sipName_selectedText), meth_QTextCursor_selectedText, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_selectedText)},
    {SIP_MLNAME_CAST(sipName_selection), meth_QTextCursor_selection, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_selection)},
    {SIP_MLNAME_CAST(sipName_selectionEnd), meth_QTextCursor_selectionEnd, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_selectionEnd)},
    {SIP_MLNAME_CAST(sipName_selectionStart), meth_QTextCursor_selectionStart, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_selectionStart)},
    {SIP_MLNAME_CAST(sipName_setBlockCharFormat), meth_QTextCursor_setBlockCharFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_setBlockCharFormat)},
    {SIP_MLNAME_CAST(sipName_setBlockFormat), meth_QTextCursor_setBlockFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_setBlockFormat)},
    {SIP_MLNAME_CAST(sipName_setCharFormat), meth_QTextCursor_setCharFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_setCharFormat)},
    {SIP_MLNAME_CAST(sipName_setKeepPositionOnInsert), meth_QTextCursor_setKeepPositionOnInsert, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_setKeepPositionOnInsert)},
    {SIP_MLNAME_CAST(sipName_setPosition), (PyCFunction)meth_QTextCursor_setPosition, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QTextCursor_setPosition)},
    {SIP_MLNAME_CAST(sipName_setVerticalMovementX), meth_QTextCursor_setVerticalMovementX, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_setVerticalMovementX)},
    {SIP_MLNAME_CAST(sipName_setVisualNavigation), meth_QTextCursor_setVisualNavigation, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_setVisualNavigation)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QTextCursor_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_swap)},
    {SIP_MLNAME_CAST(sipName_verticalMovementX), meth_QTextCursor_verticalMovementX, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_verticalMovementX)},
    {SIP_MLNAME_CAST(sipName_visualNavigation), meth_QTextCursor_visualNavigation, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextCursor_visualNavigation)}
};

static sipEnumMemberDef enummembers_QTextCursor[] = {
    {sipName_BlockUnderCursor, static_cast<int>(QTextCursor::BlockUnderCursor), 282},
    {sipName_Document, static_cast<int>(QTextCursor::Document), 282},
    {sipName_Down, static_cast<int>(QTextCursor::Down), 281},
    {sipName_End, static_cast<int>(QTextCursor::End), 281},
    {sipName_EndOfBlock, static_cast<int>(QTextCursor::EndOfBlock), 281},
    {sipName_EndOfLine, static_cast<int>(QTextCursor::EndOfLine), 281},
    {sipName_EndOfWord, static_cast<int>(QTextCursor::EndOfWord), 281},
    {sipName_KeepAnchor, static_cast<int>(QTextCursor::KeepAnchor), 280},
    {sipName_Left, static_cast<int>(QTextCursor::Left), 281},
    {sipName_LineUnderCursor, static_cast<int>(QTextCursor::LineUnderCursor), 282},
    {sipName_MoveAnchor, static_cast<int>(QTextCursor::MoveAnchor), 280},
    {sipName_NextBlock, static_cast<int>(QTextCursor::NextBlock), 281},
    {sipName_NextCell, static_cast<int>(QTextCursor::NextCell), 281},
    {sipName_NextCharacter, static_cast<int>(QTextCursor::NextCharacter), 281},
    {sipName_NextRow, static_cast<int>(QTextCursor::NextRow), 281},
    {sipName_NextWord, static_cast<int>(QTextCursor::NextWord), 281},
    {sipName_NoMove, static_cast<int>(QTextCursor::NoMove), 281},
    {sipName_PreviousBlock, static_cast<int>(QTextCursor::PreviousBlock), 281},
    {sipName_PreviousCell, static_cast<int>(QTextCursor::PreviousCell), 281},
    {sipName_PreviousCharacter, static_cast<int>(QTextCursor::PreviousCharacter), 281},
    {sipName_PreviousRow, static_cast<int>(QTextCursor::PreviousRow), 281},
    {sipName_PreviousWord, static_cast<int>(QTextCursor::PreviousWord), 281},
    {sipName_Right, static_cast<int>(QTextCursor::Right), 281},
    {sipName_Start, static_cast<int>(QTextCursor::Start), 281},
    {sipName_StartOfBlock, static_cast<int>(QTextCursor::StartOfBlock), 281},
    {sipName_StartOfLine, static_cast<int>(QTextCursor::StartOfLine), 281},
    {sipName_StartOfWord, static_cast<int>(QTextCursor::StartOfWord), 281},
    {sipName_Up, static_cast<int>(QTextCursor::Up), 281},
    {sipName_WordLeft, static_cast<int>(QTextCursor::WordLeft), 281},
    {sipName_WordRight, static_cast<int>(QTextCursor::WordRight), 281},
    {sipName_WordUnderCursor, static_cast<int>(QTextCursor::WordUnderCursor), 282},
};

PyDoc_STRVAR(doc_QTextCursor, "\1QTextCursor()\n"
    "QTextCursor(QTextDocument)\n"
    "QTextCursor(QTextFrame)\n"
    "QTextCursor(QTextBlock)\n"
    "QTextCursor(QTextCursor)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextCursor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextCursor,
        {0}
    },
    {
        sipNameNr_QTextCursor,
        {0, 0, 1},
        58, methods_QTextCursor,
        31, enummembers_QTextCursor,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextCursor,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextCursor,
    init_type_QTextCursor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextCursor,
    assign_QTextCursor,
    array_QTextCursor,
    copy_QTextCursor,
    release_QTextCursor,
    cast_QTextCursor,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsyntaxhighlighter.sip"
#include <qsyntaxhighlighter.h>
#line 54773 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 54777 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 54780 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 54783 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 259 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 54786 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 54789 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 54792 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 54795 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 54798 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 54801 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 54804 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 54807 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 54810 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 54813 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 54816 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 54819 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 54822 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 54825 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 54828 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 54831 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 54834 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 54837 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 54840 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQSyntaxHighlighter : public QSyntaxHighlighter
{
public:
    sipQSyntaxHighlighter(QTextDocument*);
    sipQSyntaxHighlighter(QObject*);
    virtual ~sipQSyntaxHighlighter();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtect_highlightBlock(const QString&);
    void sipProtect_setFormat(int,int,const QTextCharFormat&);
    void sipProtect_setFormat(int,int,const QColor&);
    void sipProtect_setFormat(int,int,const QFont&);
    QTextCharFormat sipProtect_format(int) const;
    int sipProtect_previousBlockState() const;
    int sipProtect_currentBlockState() const;
    void sipProtect_setCurrentBlockState(int);
    void sipProtect_setCurrentBlockUserData(QTextBlockUserData*);
    QTextBlockUserData* sipProtect_currentBlockUserData() const;
    QTextBlock sipProtect_currentBlock() const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void highlightBlock(const QString&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQSyntaxHighlighter(const sipQSyntaxHighlighter &);
    sipQSyntaxHighlighter &operator = (const sipQSyntaxHighlighter &);

    char sipPyMethods[8];
};

sipQSyntaxHighlighter::sipQSyntaxHighlighter(QTextDocument*a0): QSyntaxHighlighter(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQSyntaxHighlighter::sipQSyntaxHighlighter(QObject*a0): QSyntaxHighlighter(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQSyntaxHighlighter::~sipQSyntaxHighlighter()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQSyntaxHighlighter::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QSyntaxHighlighter);
}

int sipQSyntaxHighlighter::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QSyntaxHighlighter::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QSyntaxHighlighter,_c,_id,_a);

    return _id;
}

void *sipQSyntaxHighlighter::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QSyntaxHighlighter, _clname, &sipCpp) ? sipCpp : QSyntaxHighlighter::qt_metacast(_clname));
}

void sipQSyntaxHighlighter::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QSyntaxHighlighter::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQSyntaxHighlighter::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QSyntaxHighlighter::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQSyntaxHighlighter::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QSyntaxHighlighter::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQSyntaxHighlighter::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QSyntaxHighlighter::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQSyntaxHighlighter::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QSyntaxHighlighter::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQSyntaxHighlighter::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QSyntaxHighlighter::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQSyntaxHighlighter::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QSyntaxHighlighter::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQSyntaxHighlighter::highlightBlock(const QString& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,sipName_QSyntaxHighlighter,sipName_highlightBlock);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&);

    sipVH_QtGui_22(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQSyntaxHighlighter::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQSyntaxHighlighter::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQSyntaxHighlighter::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQSyntaxHighlighter::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQSyntaxHighlighter::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQSyntaxHighlighter::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQSyntaxHighlighter::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQSyntaxHighlighter::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQSyntaxHighlighter::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQSyntaxHighlighter::sipProtect_highlightBlock(const QString& a0)
{
    highlightBlock(a0);
}

void sipQSyntaxHighlighter::sipProtect_setFormat(int a0,int a1,const QTextCharFormat& a2)
{
    QSyntaxHighlighter::setFormat(a0,a1,a2);
}

void sipQSyntaxHighlighter::sipProtect_setFormat(int a0,int a1,const QColor& a2)
{
    QSyntaxHighlighter::setFormat(a0,a1,a2);
}

void sipQSyntaxHighlighter::sipProtect_setFormat(int a0,int a1,const QFont& a2)
{
    QSyntaxHighlighter::setFormat(a0,a1,a2);
}

QTextCharFormat sipQSyntaxHighlighter::sipProtect_format(int a0) const
{
    return QSyntaxHighlighter::format(a0);
}

int sipQSyntaxHighlighter::sipProtect_previousBlockState() const
{
    return QSyntaxHighlighter::previousBlockState();
}

int sipQSyntaxHighlighter::sipProtect_currentBlockState() const
{
    return QSyntaxHighlighter::currentBlockState();
}

void sipQSyntaxHighlighter::sipProtect_setCurrentBlockState(int a0)
{
    QSyntaxHighlighter::setCurrentBlockState(a0);
}

void sipQSyntaxHighlighter::sipProtect_setCurrentBlockUserData(QTextBlockUserData*a0)
{
    QSyntaxHighlighter::setCurrentBlockUserData(a0);
}

QTextBlockUserData* sipQSyntaxHighlighter::sipProtect_currentBlockUserData() const
{
    return QSyntaxHighlighter::currentBlockUserData();
}

QTextBlock sipQSyntaxHighlighter::sipProtect_currentBlock() const
{
    return QSyntaxHighlighter::currentBlock();
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_sender, "QSyntaxHighlighter.sender() -> QObject");

extern "C" {static PyObject *meth_QSyntaxHighlighter_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 55216 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_sender, doc_QSyntaxHighlighter_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_receivers, "QSyntaxHighlighter.receivers(signal) -> int");

extern "C" {static PyObject *meth_QSyntaxHighlighter_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 55275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_receivers, doc_QSyntaxHighlighter_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_timerEvent, "QSyntaxHighlighter.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_timerEvent, doc_QSyntaxHighlighter_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_childEvent, "QSyntaxHighlighter.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_childEvent, doc_QSyntaxHighlighter_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_customEvent, "QSyntaxHighlighter.customEvent(QEvent)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_customEvent, doc_QSyntaxHighlighter_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_connectNotify, "QSyntaxHighlighter.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_connectNotify, doc_QSyntaxHighlighter_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_disconnectNotify, "QSyntaxHighlighter.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_disconnectNotify, doc_QSyntaxHighlighter_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_senderSignalIndex, "QSyntaxHighlighter.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QSyntaxHighlighter_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_senderSignalIndex, doc_QSyntaxHighlighter_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_isSignalConnected, "QSyntaxHighlighter.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QSyntaxHighlighter_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_isSignalConnected, doc_QSyntaxHighlighter_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_setDocument, "QSyntaxHighlighter.setDocument(QTextDocument)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_setDocument(PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_setDocument(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTextDocument* a0;
        PyObject *a0Keep;
        QSyntaxHighlighter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, &a0Keep, sipType_QTextDocument, &a0))
        {
            sipCpp->setDocument(a0);

            sipKeepReference(sipSelf, -3, a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_setDocument, doc_QSyntaxHighlighter_setDocument);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_document, "QSyntaxHighlighter.document() -> QTextDocument");

extern "C" {static PyObject *meth_QSyntaxHighlighter_document(PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_document(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSyntaxHighlighter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp))
        {
            QTextDocument*sipRes;

            sipRes = sipCpp->document();

            return sipConvertFromType(sipRes,sipType_QTextDocument,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_document, doc_QSyntaxHighlighter_document);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_rehighlight, "QSyntaxHighlighter.rehighlight()");

extern "C" {static PyObject *meth_QSyntaxHighlighter_rehighlight(PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_rehighlight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSyntaxHighlighter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp))
        {
            sipCpp->rehighlight();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_rehighlight, doc_QSyntaxHighlighter_rehighlight);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_rehighlightBlock, "QSyntaxHighlighter.rehighlightBlock(QTextBlock)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_rehighlightBlock(PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_rehighlightBlock(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextBlock* a0;
        QSyntaxHighlighter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, sipType_QTextBlock, &a0))
        {
            sipCpp->rehighlightBlock(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_rehighlightBlock, doc_QSyntaxHighlighter_rehighlightBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_highlightBlock, "QSyntaxHighlighter.highlightBlock(str)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_highlightBlock(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_highlightBlock(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QString* a0;
        int a0State = 0;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QSyntaxHighlighter, sipName_highlightBlock);
                return NULL;
            }

            sipCpp->sipProtect_highlightBlock(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_highlightBlock, doc_QSyntaxHighlighter_highlightBlock);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_setFormat, "QSyntaxHighlighter.setFormat(int, int, QTextCharFormat)\n"
    "QSyntaxHighlighter.setFormat(int, int, QColor)\n"
    "QSyntaxHighlighter.setFormat(int, int, QFont)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_setFormat(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_setFormat(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const QTextCharFormat* a2;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiiJ9", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, &a0, &a1, sipType_QTextCharFormat, &a2))
        {
            sipCpp->sipProtect_setFormat(a0,a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        const QColor* a2;
        int a2State = 0;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiiJ1", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, &a0, &a1, sipType_QColor, &a2, &a2State))
        {
            sipCpp->sipProtect_setFormat(a0,a1,*a2);
            sipReleaseType(const_cast<QColor *>(a2),sipType_QColor,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        const QFont* a2;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiiJ9", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, &a0, &a1, sipType_QFont, &a2))
        {
            sipCpp->sipProtect_setFormat(a0,a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_setFormat, doc_QSyntaxHighlighter_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_format, "QSyntaxHighlighter.format(int) -> QTextCharFormat");

extern "C" {static PyObject *meth_QSyntaxHighlighter_format(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_format(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bi", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, &a0))
        {
            QTextCharFormat*sipRes;

            sipRes = new QTextCharFormat(sipCpp->sipProtect_format(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextCharFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_format, doc_QSyntaxHighlighter_format);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_previousBlockState, "QSyntaxHighlighter.previousBlockState() -> int");

extern "C" {static PyObject *meth_QSyntaxHighlighter_previousBlockState(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_previousBlockState(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_previousBlockState();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_previousBlockState, doc_QSyntaxHighlighter_previousBlockState);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_currentBlockState, "QSyntaxHighlighter.currentBlockState() -> int");

extern "C" {static PyObject *meth_QSyntaxHighlighter_currentBlockState(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_currentBlockState(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_currentBlockState();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_currentBlockState, doc_QSyntaxHighlighter_currentBlockState);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_setCurrentBlockState, "QSyntaxHighlighter.setCurrentBlockState(int)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_setCurrentBlockState(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_setCurrentBlockState(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bi", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, &a0))
        {
            sipCpp->sipProtect_setCurrentBlockState(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_setCurrentBlockState, doc_QSyntaxHighlighter_setCurrentBlockState);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_setCurrentBlockUserData, "QSyntaxHighlighter.setCurrentBlockUserData(QTextBlockUserData)");

extern "C" {static PyObject *meth_QSyntaxHighlighter_setCurrentBlockUserData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_setCurrentBlockUserData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QTextBlockUserData* a0;
        PyObject *a0Wrapper;
        sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B@J8", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp, &a0Wrapper, sipType_QTextBlockUserData, &a0))
        {
            int sipIsErr = 0;

#line 51 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsyntaxhighlighter.sip"
        // Ownership of the user data is with the document not the syntax highlighter.
        
        typedef PyObject *(*helper_func)(QObject *, const sipTypeDef *);
        
        static helper_func helper = 0;
        
        if (!helper)
            helper = (helper_func)sipImportSymbol("qtgui_wrap_ancestors");
        
        QTextDocument *td = sipCpp->document();
        
        if (td)
        {
            PyObject *py_td = (helper ? helper(td, sipType_QTextDocument) : 0);
        
            if (!py_td)
            {
                sipIsErr = 1;
            }
            else
            {
                sipTransferTo(a0Wrapper, py_td);
                Py_DECREF(py_td);
            }
        }
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipCpp->setCurrentBlockUserData(a0);
        #else
        sipCpp->sipProtect_setCurrentBlockUserData(a0);
        #endif
#line 55857 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_setCurrentBlockUserData, doc_QSyntaxHighlighter_setCurrentBlockUserData);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_currentBlockUserData, "QSyntaxHighlighter.currentBlockUserData() -> QTextBlockUserData");

extern "C" {static PyObject *meth_QSyntaxHighlighter_currentBlockUserData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_currentBlockUserData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp))
        {
            QTextBlockUserData*sipRes;

            sipRes = sipCpp->sipProtect_currentBlockUserData();

            return sipConvertFromType(sipRes,sipType_QTextBlockUserData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_currentBlockUserData, doc_QSyntaxHighlighter_currentBlockUserData);

    return NULL;
}


PyDoc_STRVAR(doc_QSyntaxHighlighter_currentBlock, "QSyntaxHighlighter.currentBlock() -> QTextBlock");

extern "C" {static PyObject *meth_QSyntaxHighlighter_currentBlock(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSyntaxHighlighter_currentBlock(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQSyntaxHighlighter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QSyntaxHighlighter, &sipCpp))
        {
            QTextBlock*sipRes;

            sipRes = new QTextBlock(sipCpp->sipProtect_currentBlock());

            return sipConvertFromNewType(sipRes,sipType_QTextBlock,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSyntaxHighlighter, sipName_currentBlock, doc_QSyntaxHighlighter_currentBlock);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSyntaxHighlighter(void *, const sipTypeDef *);}
static void *cast_QSyntaxHighlighter(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QSyntaxHighlighter)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QSyntaxHighlighter *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QSyntaxHighlighter(void *, int);}
static void release_QSyntaxHighlighter(void *sipCppV,int)
{
    QSyntaxHighlighter *sipCpp = reinterpret_cast<QSyntaxHighlighter *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QSyntaxHighlighter(sipSimpleWrapper *);}
static void dealloc_QSyntaxHighlighter(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQSyntaxHighlighter *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QSyntaxHighlighter(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QSyntaxHighlighter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QSyntaxHighlighter(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQSyntaxHighlighter *sipCpp = 0;

    {
        QTextDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QTextDocument, &a0, sipOwner))
        {
            sipCpp = new sipQSyntaxHighlighter(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQSyntaxHighlighter(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QSyntaxHighlighter[] = {{162, 0, 1}};


static PyMethodDef methods_QSyntaxHighlighter[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QSyntaxHighlighter_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QSyntaxHighlighter_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_currentBlock), (PyCFunction)meth_QSyntaxHighlighter_currentBlock, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_currentBlock)},
    {SIP_MLNAME_CAST(sipName_currentBlockState), (PyCFunction)meth_QSyntaxHighlighter_currentBlockState, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_currentBlockState)},
    {SIP_MLNAME_CAST(sipName_currentBlockUserData), (PyCFunction)meth_QSyntaxHighlighter_currentBlockUserData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_currentBlockUserData)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QSyntaxHighlighter_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QSyntaxHighlighter_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_document), meth_QSyntaxHighlighter_document, METH_VARARGS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_document)},
    {SIP_MLNAME_CAST(sipName_format), (PyCFunction)meth_QSyntaxHighlighter_format, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_format)},
    {SIP_MLNAME_CAST(sipName_highlightBlock), (PyCFunction)meth_QSyntaxHighlighter_highlightBlock, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_highlightBlock)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QSyntaxHighlighter_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_previousBlockState), (PyCFunction)meth_QSyntaxHighlighter_previousBlockState, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_previousBlockState)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QSyntaxHighlighter_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_rehighlight), meth_QSyntaxHighlighter_rehighlight, METH_VARARGS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_rehighlight)},
    {SIP_MLNAME_CAST(sipName_rehighlightBlock), meth_QSyntaxHighlighter_rehighlightBlock, METH_VARARGS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_rehighlightBlock)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QSyntaxHighlighter_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QSyntaxHighlighter_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentBlockState), (PyCFunction)meth_QSyntaxHighlighter_setCurrentBlockState, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_setCurrentBlockState)},
    {SIP_MLNAME_CAST(sipName_setCurrentBlockUserData), (PyCFunction)meth_QSyntaxHighlighter_setCurrentBlockUserData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_setCurrentBlockUserData)},
    {SIP_MLNAME_CAST(sipName_setDocument), meth_QSyntaxHighlighter_setDocument, METH_VARARGS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_setDocument)},
    {SIP_MLNAME_CAST(sipName_setFormat), (PyCFunction)meth_QSyntaxHighlighter_setFormat, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSyntaxHighlighter_setFormat)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QSyntaxHighlighter_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QSyntaxHighlighter, "\1QSyntaxHighlighter(QTextDocument)\n"
    "QSyntaxHighlighter(QObject)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QSyntaxHighlighter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QSyntaxHighlighter,
        {0}
    },
    {
        sipNameNr_QSyntaxHighlighter,
        {0, 0, 1},
        22, methods_QSyntaxHighlighter,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSyntaxHighlighter,
    -1,
    -1,
    supers_QSyntaxHighlighter,
    0,
    init_type_QSyntaxHighlighter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSyntaxHighlighter,
    0,
    0,
    0,
    release_QSyntaxHighlighter,
    cast_QSyntaxHighlighter,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QSyntaxHighlighter::staticMetaObject,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 56095 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 56099 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QSurfaceFormat_FormatOptions___bool__(PyObject *);}
static int slot_QSurfaceFormat_FormatOptions___bool__(PyObject *sipSelf)
{
    QSurfaceFormat::FormatOptions *sipCpp = reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat_FormatOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QSurfaceFormat::FormatOptions::Int() != 0);
#line 56117 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___ne__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QSurfaceFormat::FormatOptions *sipCpp = reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat_FormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QSurfaceFormat::FormatOptions::Int() != a0->operator QSurfaceFormat::FormatOptions::Int());
#line 56147 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QSurfaceFormat::FormatOptions *>(a0),sipType_QSurfaceFormat_FormatOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QSurfaceFormat_FormatOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___eq__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QSurfaceFormat::FormatOptions *sipCpp = reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat_FormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QSurfaceFormat::FormatOptions::Int() == a0->operator QSurfaceFormat::FormatOptions::Int());
#line 56183 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QSurfaceFormat::FormatOptions *>(a0),sipType_QSurfaceFormat_FormatOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QSurfaceFormat_FormatOptions,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___invert__(PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___invert__(PyObject *sipSelf)
{
    QSurfaceFormat::FormatOptions *sipCpp = reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat_FormatOptions));

    if (!sipCpp)
        return 0;


    {
        {
            QSurfaceFormat::FormatOptions*sipRes;

            sipRes = new QSurfaceFormat::FormatOptions(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat_FormatOptions,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___and__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State, &a1))
        {
            QSurfaceFormat::FormatOptions*sipRes;

            sipRes = new QSurfaceFormat::FormatOptions((*a0 & a1));
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat_FormatOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___xor__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;
        QSurfaceFormat::FormatOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State, sipType_QSurfaceFormat_FormatOptions, &a1, &a1State))
        {
            QSurfaceFormat::FormatOptions*sipRes;

            sipRes = new QSurfaceFormat::FormatOptions((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);
            sipReleaseType(a1,sipType_QSurfaceFormat_FormatOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat_FormatOptions,NULL);
        }
    }

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State, &a1))
        {
            QSurfaceFormat::FormatOptions*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QSurfaceFormat::FormatOptions(*a0 ^ a1);
#line 56286 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat_FormatOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___or__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;
        QSurfaceFormat::FormatOptions* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State, sipType_QSurfaceFormat_FormatOptions, &a1, &a1State))
        {
            QSurfaceFormat::FormatOptions*sipRes;

            sipRes = new QSurfaceFormat::FormatOptions((*a0 | *a1));
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);
            sipReleaseType(a1,sipType_QSurfaceFormat_FormatOptions,a1State);

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat_FormatOptions,NULL);
        }
    }

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State, &a1))
        {
            QSurfaceFormat::FormatOptions*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QSurfaceFormat::FormatOptions(*a0 | a1);
#line 56336 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat_FormatOptions,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___int__(PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___int__(PyObject *sipSelf)
{
    QSurfaceFormat::FormatOptions *sipCpp = reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat_FormatOptions));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QSurfaceFormat_FormatOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QSurfaceFormat::FormatOptions *sipCpp = reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat_FormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State))
        {
            sipCpp->QSurfaceFormat::FormatOptions::operator^=(*a0);
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___ior__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QSurfaceFormat_FormatOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QSurfaceFormat::FormatOptions *sipCpp = reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat_FormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State))
        {
            sipCpp->QSurfaceFormat::FormatOptions::operator|=(*a0);
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QSurfaceFormat_FormatOptions___iand__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat_FormatOptions___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QSurfaceFormat_FormatOptions)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QSurfaceFormat::FormatOptions *sipCpp = reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat_FormatOptions));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QSurfaceFormat::FormatOptions::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSurfaceFormat_FormatOptions(void *, const sipTypeDef *);}
static void *cast_QSurfaceFormat_FormatOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QSurfaceFormat_FormatOptions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QSurfaceFormat_FormatOptions(void *, int);}
static void release_QSurfaceFormat_FormatOptions(void *sipCppV,int)
{
    delete reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipCppV);
}


extern "C" {static void assign_QSurfaceFormat_FormatOptions(void *, SIP_SSIZE_T, const void *);}
static void assign_QSurfaceFormat_FormatOptions(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QSurfaceFormat::FormatOptions *>(sipSrc);
}


extern "C" {static void *array_QSurfaceFormat_FormatOptions(SIP_SSIZE_T);}
static void *array_QSurfaceFormat_FormatOptions(SIP_SSIZE_T sipNrElem)
{
    return new QSurfaceFormat::FormatOptions[sipNrElem];
}


extern "C" {static void *copy_QSurfaceFormat_FormatOptions(const void *, SIP_SSIZE_T);}
static void *copy_QSurfaceFormat_FormatOptions(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QSurfaceFormat::FormatOptions(reinterpret_cast<const QSurfaceFormat::FormatOptions *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QSurfaceFormat_FormatOptions(sipSimpleWrapper *);}
static void dealloc_QSurfaceFormat_FormatOptions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QSurfaceFormat_FormatOptions(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QSurfaceFormat_FormatOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QSurfaceFormat_FormatOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QSurfaceFormat::FormatOptions *sipCpp = 0;

    {
        const QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State))
        {
            sipCpp = new QSurfaceFormat::FormatOptions(*a0);
            sipReleaseType(const_cast<QSurfaceFormat::FormatOptions *>(a0),sipType_QSurfaceFormat_FormatOptions,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QSurfaceFormat::FormatOptions(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QSurfaceFormat::FormatOptions();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QSurfaceFormat_FormatOptions(PyObject *, void **, int *, PyObject *);}
static int convertTo_QSurfaceFormat_FormatOptions(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QSurfaceFormat::FormatOptions **sipCppPtr = reinterpret_cast<QSurfaceFormat::FormatOptions **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QSurfaceFormat::FormatOptions is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QSurfaceFormat_FormatOption)) ||
            sipCanConvertToType(sipPy, sipType_QSurfaceFormat_FormatOptions, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QSurfaceFormat_FormatOption)))
{
    *sipCppPtr = new QSurfaceFormat::FormatOptions(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QSurfaceFormat::FormatOptions *>(sipConvertToType(sipPy, sipType_QSurfaceFormat_FormatOptions, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 56613 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QSurfaceFormat_FormatOptions[] = {
    {(void *)slot_QSurfaceFormat_FormatOptions___bool__, bool_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___ne__, ne_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___eq__, eq_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___invert__, invert_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___and__, and_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___xor__, xor_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___or__, or_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___int__, int_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___ixor__, ixor_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___ior__, ior_slot},
    {(void *)slot_QSurfaceFormat_FormatOptions___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QSurfaceFormat_FormatOptions, "\1QSurfaceFormat.FormatOptions(QSurfaceFormat.FormatOptions)\n"
    "QSurfaceFormat.FormatOptions(int)\n"
    "QSurfaceFormat.FormatOptions()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QSurfaceFormat_FormatOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QSurfaceFormat__FormatOptions,
        {0}
    },
    {
        sipNameNr_FormatOptions,
        {259, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSurfaceFormat_FormatOptions,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QSurfaceFormat_FormatOptions,
    init_type_QSurfaceFormat_FormatOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSurfaceFormat_FormatOptions,
    assign_QSurfaceFormat_FormatOptions,
    array_QSurfaceFormat_FormatOptions,
    copy_QSurfaceFormat_FormatOptions,
    release_QSurfaceFormat_FormatOptions,
    cast_QSurfaceFormat_FormatOptions,
    convertTo_QSurfaceFormat_FormatOptions,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 56695 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 56699 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 133 "sip/QtCore/qpycore_qpair.sip"
#include <qpair.h>
#line 56702 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QSurfaceFormat_setDepthBufferSize, "QSurfaceFormat.setDepthBufferSize(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setDepthBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setDepthBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setDepthBufferSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setDepthBufferSize, doc_QSurfaceFormat_setDepthBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_depthBufferSize, "QSurfaceFormat.depthBufferSize() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_depthBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_depthBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->depthBufferSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_depthBufferSize, doc_QSurfaceFormat_depthBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setStencilBufferSize, "QSurfaceFormat.setStencilBufferSize(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setStencilBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setStencilBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setStencilBufferSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setStencilBufferSize, doc_QSurfaceFormat_setStencilBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_stencilBufferSize, "QSurfaceFormat.stencilBufferSize() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_stencilBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_stencilBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->stencilBufferSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_stencilBufferSize, doc_QSurfaceFormat_stencilBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setRedBufferSize, "QSurfaceFormat.setRedBufferSize(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setRedBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setRedBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setRedBufferSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setRedBufferSize, doc_QSurfaceFormat_setRedBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_redBufferSize, "QSurfaceFormat.redBufferSize() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_redBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_redBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->redBufferSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_redBufferSize, doc_QSurfaceFormat_redBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setGreenBufferSize, "QSurfaceFormat.setGreenBufferSize(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setGreenBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setGreenBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setGreenBufferSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setGreenBufferSize, doc_QSurfaceFormat_setGreenBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_greenBufferSize, "QSurfaceFormat.greenBufferSize() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_greenBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_greenBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->greenBufferSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_greenBufferSize, doc_QSurfaceFormat_greenBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setBlueBufferSize, "QSurfaceFormat.setBlueBufferSize(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setBlueBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setBlueBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setBlueBufferSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setBlueBufferSize, doc_QSurfaceFormat_setBlueBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_blueBufferSize, "QSurfaceFormat.blueBufferSize() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_blueBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_blueBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->blueBufferSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_blueBufferSize, doc_QSurfaceFormat_blueBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setAlphaBufferSize, "QSurfaceFormat.setAlphaBufferSize(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setAlphaBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setAlphaBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setAlphaBufferSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setAlphaBufferSize, doc_QSurfaceFormat_setAlphaBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_alphaBufferSize, "QSurfaceFormat.alphaBufferSize() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_alphaBufferSize(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_alphaBufferSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->alphaBufferSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_alphaBufferSize, doc_QSurfaceFormat_alphaBufferSize);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setSamples, "QSurfaceFormat.setSamples(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setSamples(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setSamples(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setSamples(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setSamples, doc_QSurfaceFormat_setSamples);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_samples, "QSurfaceFormat.samples() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_samples(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_samples(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->samples();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_samples, doc_QSurfaceFormat_samples);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setSwapBehavior, "QSurfaceFormat.setSwapBehavior(QSurfaceFormat.SwapBehavior)");

extern "C" {static PyObject *meth_QSurfaceFormat_setSwapBehavior(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setSwapBehavior(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::SwapBehavior a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSurfaceFormat, &sipCpp, sipType_QSurfaceFormat_SwapBehavior, &a0))
        {
            sipCpp->setSwapBehavior(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setSwapBehavior, doc_QSurfaceFormat_setSwapBehavior);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_swapBehavior, "QSurfaceFormat.swapBehavior() -> QSurfaceFormat.SwapBehavior");

extern "C" {static PyObject *meth_QSurfaceFormat_swapBehavior(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_swapBehavior(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            QSurfaceFormat::SwapBehavior sipRes;

            sipRes = sipCpp->swapBehavior();

            return sipConvertFromEnum(sipRes,sipType_QSurfaceFormat_SwapBehavior);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_swapBehavior, doc_QSurfaceFormat_swapBehavior);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_hasAlpha, "QSurfaceFormat.hasAlpha() -> bool");

extern "C" {static PyObject *meth_QSurfaceFormat_hasAlpha(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_hasAlpha(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasAlpha();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_hasAlpha, doc_QSurfaceFormat_hasAlpha);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setProfile, "QSurfaceFormat.setProfile(QSurfaceFormat.OpenGLContextProfile)");

extern "C" {static PyObject *meth_QSurfaceFormat_setProfile(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setProfile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::OpenGLContextProfile a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSurfaceFormat, &sipCpp, sipType_QSurfaceFormat_OpenGLContextProfile, &a0))
        {
            sipCpp->setProfile(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setProfile, doc_QSurfaceFormat_setProfile);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_profile, "QSurfaceFormat.profile() -> QSurfaceFormat.OpenGLContextProfile");

extern "C" {static PyObject *meth_QSurfaceFormat_profile(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_profile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            QSurfaceFormat::OpenGLContextProfile sipRes;

            sipRes = sipCpp->profile();

            return sipConvertFromEnum(sipRes,sipType_QSurfaceFormat_OpenGLContextProfile);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_profile, doc_QSurfaceFormat_profile);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setRenderableType, "QSurfaceFormat.setRenderableType(QSurfaceFormat.RenderableType)");

extern "C" {static PyObject *meth_QSurfaceFormat_setRenderableType(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setRenderableType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::RenderableType a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSurfaceFormat, &sipCpp, sipType_QSurfaceFormat_RenderableType, &a0))
        {
            sipCpp->setRenderableType(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setRenderableType, doc_QSurfaceFormat_setRenderableType);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_renderableType, "QSurfaceFormat.renderableType() -> QSurfaceFormat.RenderableType");

extern "C" {static PyObject *meth_QSurfaceFormat_renderableType(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_renderableType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            QSurfaceFormat::RenderableType sipRes;

            sipRes = sipCpp->renderableType();

            return sipConvertFromEnum(sipRes,sipType_QSurfaceFormat_RenderableType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_renderableType, doc_QSurfaceFormat_renderableType);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setMajorVersion, "QSurfaceFormat.setMajorVersion(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setMajorVersion(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setMajorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setMajorVersion(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setMajorVersion, doc_QSurfaceFormat_setMajorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_majorVersion, "QSurfaceFormat.majorVersion() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_majorVersion(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_majorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->majorVersion();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_majorVersion, doc_QSurfaceFormat_majorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setMinorVersion, "QSurfaceFormat.setMinorVersion(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setMinorVersion(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setMinorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setMinorVersion(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setMinorVersion, doc_QSurfaceFormat_setMinorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_minorVersion, "QSurfaceFormat.minorVersion() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_minorVersion(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_minorVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->minorVersion();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_minorVersion, doc_QSurfaceFormat_minorVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setStereo, "QSurfaceFormat.setStereo(bool)");

extern "C" {static PyObject *meth_QSurfaceFormat_setStereo(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setStereo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setStereo(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setStereo, doc_QSurfaceFormat_setStereo);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setOption, "QSurfaceFormat.setOption(QSurfaceFormat.FormatOptions)\n"
    "QSurfaceFormat.setOption(QSurfaceFormat.FormatOption, bool on=True)");

extern "C" {static PyObject *meth_QSurfaceFormat_setOption(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setOption(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;
        QSurfaceFormat *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QSurfaceFormat, &sipCpp, sipType_QSurfaceFormat_FormatOptions, &a0, &a0State))
        {
            sipCpp->setOption(*a0);
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QSurfaceFormat::FormatOption a0;
        bool a1 = 1;
        QSurfaceFormat *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_on,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|b", &sipSelf, sipType_QSurfaceFormat, &sipCpp, sipType_QSurfaceFormat_FormatOption, &a0, &a1))
        {
            sipCpp->setOption(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setOption, doc_QSurfaceFormat_setOption);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_testOption, "QSurfaceFormat.testOption(QSurfaceFormat.FormatOptions) -> bool\n"
    "QSurfaceFormat.testOption(QSurfaceFormat.FormatOption) -> bool");

extern "C" {static PyObject *meth_QSurfaceFormat_testOption(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_testOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSurfaceFormat, &sipCpp, sipType_QSurfaceFormat_FormatOptions, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->testOption(*a0);
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QSurfaceFormat::FormatOption a0;
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSurfaceFormat, &sipCpp, sipType_QSurfaceFormat_FormatOption, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->testOption(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_testOption, doc_QSurfaceFormat_testOption);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_stereo, "QSurfaceFormat.stereo() -> bool");

extern "C" {static PyObject *meth_QSurfaceFormat_stereo(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_stereo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->stereo();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_stereo, doc_QSurfaceFormat_stereo);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_version, "QSurfaceFormat.version() -> tuple-of-int-int");

extern "C" {static PyObject *meth_QSurfaceFormat_version(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_version(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            QPair<int,int>*sipRes;

            sipRes = new QPair<int,int>(sipCpp->version());

            return sipConvertFromNewType(sipRes,sipType_QPair_1800_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_version, doc_QSurfaceFormat_version);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setVersion, "QSurfaceFormat.setVersion(int, int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setVersion(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0, &a1))
        {
            sipCpp->setVersion(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setVersion, doc_QSurfaceFormat_setVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setOptions, "QSurfaceFormat.setOptions(QSurfaceFormat.FormatOptions)");

extern "C" {static PyObject *meth_QSurfaceFormat_setOptions(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setOptions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSurfaceFormat, &sipCpp, sipType_QSurfaceFormat_FormatOptions, &a0, &a0State))
        {
            sipCpp->setOptions(*a0);
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setOptions, doc_QSurfaceFormat_setOptions);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_options, "QSurfaceFormat.options() -> QSurfaceFormat.FormatOptions");

extern "C" {static PyObject *meth_QSurfaceFormat_options(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_options(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            QSurfaceFormat::FormatOptions*sipRes;

            sipRes = new QSurfaceFormat::FormatOptions(sipCpp->options());

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat_FormatOptions,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_options, doc_QSurfaceFormat_options);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_swapInterval, "QSurfaceFormat.swapInterval() -> int");

extern "C" {static PyObject *meth_QSurfaceFormat_swapInterval(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_swapInterval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurfaceFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->swapInterval();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_swapInterval, doc_QSurfaceFormat_swapInterval);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setSwapInterval, "QSurfaceFormat.setSwapInterval(int)");

extern "C" {static PyObject *meth_QSurfaceFormat_setSwapInterval(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setSwapInterval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QSurfaceFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QSurfaceFormat, &sipCpp, &a0))
        {
            sipCpp->setSwapInterval(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setSwapInterval, doc_QSurfaceFormat_setSwapInterval);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_setDefaultFormat, "QSurfaceFormat.setDefaultFormat(QSurfaceFormat)");

extern "C" {static PyObject *meth_QSurfaceFormat_setDefaultFormat(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_setDefaultFormat(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QSurfaceFormat, &a0))
        {
            QSurfaceFormat::setDefaultFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_setDefaultFormat, doc_QSurfaceFormat_setDefaultFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QSurfaceFormat_defaultFormat, "QSurfaceFormat.defaultFormat() -> QSurfaceFormat");

extern "C" {static PyObject *meth_QSurfaceFormat_defaultFormat(PyObject *, PyObject *);}
static PyObject *meth_QSurfaceFormat_defaultFormat(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QSurfaceFormat*sipRes;

            sipRes = new QSurfaceFormat(QSurfaceFormat::defaultFormat());

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurfaceFormat, sipName_defaultFormat, doc_QSurfaceFormat_defaultFormat);

    return NULL;
}


extern "C" {static PyObject *slot_QSurfaceFormat___eq__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QSurfaceFormat *sipCpp = reinterpret_cast<QSurfaceFormat *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QSurfaceFormat, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QSurfaceFormat,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QSurfaceFormat___ne__(PyObject *,PyObject *);}
static PyObject *slot_QSurfaceFormat___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QSurfaceFormat *sipCpp = reinterpret_cast<QSurfaceFormat *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QSurfaceFormat));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QSurfaceFormat, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QSurfaceFormat,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSurfaceFormat(void *, const sipTypeDef *);}
static void *cast_QSurfaceFormat(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QSurfaceFormat)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QSurfaceFormat(void *, int);}
static void release_QSurfaceFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QSurfaceFormat *>(sipCppV);
}


extern "C" {static void assign_QSurfaceFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QSurfaceFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QSurfaceFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QSurfaceFormat *>(sipSrc);
}


extern "C" {static void *array_QSurfaceFormat(SIP_SSIZE_T);}
static void *array_QSurfaceFormat(SIP_SSIZE_T sipNrElem)
{
    return new QSurfaceFormat[sipNrElem];
}


extern "C" {static void *copy_QSurfaceFormat(const void *, SIP_SSIZE_T);}
static void *copy_QSurfaceFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QSurfaceFormat(reinterpret_cast<const QSurfaceFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QSurfaceFormat(sipSimpleWrapper *);}
static void dealloc_QSurfaceFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QSurfaceFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QSurfaceFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QSurfaceFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QSurfaceFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QSurfaceFormat();

            return sipCpp;
        }
    }

    {
        QSurfaceFormat::FormatOptions* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QSurfaceFormat_FormatOptions, &a0, &a0State))
        {
            sipCpp = new QSurfaceFormat(*a0);
            sipReleaseType(a0,sipType_QSurfaceFormat_FormatOptions,a0State);

            return sipCpp;
        }
    }

    {
        const QSurfaceFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSurfaceFormat, &a0))
        {
            sipCpp = new QSurfaceFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QSurfaceFormat[] = {
    {(void *)slot_QSurfaceFormat___eq__, eq_slot},
    {(void *)slot_QSurfaceFormat___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QSurfaceFormat[] = {
    {SIP_MLNAME_CAST(sipName_alphaBufferSize), meth_QSurfaceFormat_alphaBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_alphaBufferSize)},
    {SIP_MLNAME_CAST(sipName_blueBufferSize), meth_QSurfaceFormat_blueBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_blueBufferSize)},
    {SIP_MLNAME_CAST(sipName_defaultFormat), meth_QSurfaceFormat_defaultFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_defaultFormat)},
    {SIP_MLNAME_CAST(sipName_depthBufferSize), meth_QSurfaceFormat_depthBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_depthBufferSize)},
    {SIP_MLNAME_CAST(sipName_greenBufferSize), meth_QSurfaceFormat_greenBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_greenBufferSize)},
    {SIP_MLNAME_CAST(sipName_hasAlpha), meth_QSurfaceFormat_hasAlpha, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_hasAlpha)},
    {SIP_MLNAME_CAST(sipName_majorVersion), meth_QSurfaceFormat_majorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_majorVersion)},
    {SIP_MLNAME_CAST(sipName_minorVersion), meth_QSurfaceFormat_minorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_minorVersion)},
    {SIP_MLNAME_CAST(sipName_options), meth_QSurfaceFormat_options, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_options)},
    {SIP_MLNAME_CAST(sipName_profile), meth_QSurfaceFormat_profile, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_profile)},
    {SIP_MLNAME_CAST(sipName_redBufferSize), meth_QSurfaceFormat_redBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_redBufferSize)},
    {SIP_MLNAME_CAST(sipName_renderableType), meth_QSurfaceFormat_renderableType, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_renderableType)},
    {SIP_MLNAME_CAST(sipName_samples), meth_QSurfaceFormat_samples, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_samples)},
    {SIP_MLNAME_CAST(sipName_setAlphaBufferSize), meth_QSurfaceFormat_setAlphaBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setAlphaBufferSize)},
    {SIP_MLNAME_CAST(sipName_setBlueBufferSize), meth_QSurfaceFormat_setBlueBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setBlueBufferSize)},
    {SIP_MLNAME_CAST(sipName_setDefaultFormat), meth_QSurfaceFormat_setDefaultFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setDefaultFormat)},
    {SIP_MLNAME_CAST(sipName_setDepthBufferSize), meth_QSurfaceFormat_setDepthBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setDepthBufferSize)},
    {SIP_MLNAME_CAST(sipName_setGreenBufferSize), meth_QSurfaceFormat_setGreenBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setGreenBufferSize)},
    {SIP_MLNAME_CAST(sipName_setMajorVersion), meth_QSurfaceFormat_setMajorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setMajorVersion)},
    {SIP_MLNAME_CAST(sipName_setMinorVersion), meth_QSurfaceFormat_setMinorVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setMinorVersion)},
    {SIP_MLNAME_CAST(sipName_setOption), (PyCFunction)meth_QSurfaceFormat_setOption, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setOption)},
    {SIP_MLNAME_CAST(sipName_setOptions), meth_QSurfaceFormat_setOptions, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setOptions)},
    {SIP_MLNAME_CAST(sipName_setProfile), meth_QSurfaceFormat_setProfile, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setProfile)},
    {SIP_MLNAME_CAST(sipName_setRedBufferSize), meth_QSurfaceFormat_setRedBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setRedBufferSize)},
    {SIP_MLNAME_CAST(sipName_setRenderableType), meth_QSurfaceFormat_setRenderableType, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setRenderableType)},
    {SIP_MLNAME_CAST(sipName_setSamples), meth_QSurfaceFormat_setSamples, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setSamples)},
    {SIP_MLNAME_CAST(sipName_setStencilBufferSize), meth_QSurfaceFormat_setStencilBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setStencilBufferSize)},
    {SIP_MLNAME_CAST(sipName_setStereo), meth_QSurfaceFormat_setStereo, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setStereo)},
    {SIP_MLNAME_CAST(sipName_setSwapBehavior), meth_QSurfaceFormat_setSwapBehavior, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setSwapBehavior)},
    {SIP_MLNAME_CAST(sipName_setSwapInterval), meth_QSurfaceFormat_setSwapInterval, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setSwapInterval)},
    {SIP_MLNAME_CAST(sipName_setVersion), meth_QSurfaceFormat_setVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_setVersion)},
    {SIP_MLNAME_CAST(sipName_stencilBufferSize), meth_QSurfaceFormat_stencilBufferSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_stencilBufferSize)},
    {SIP_MLNAME_CAST(sipName_stereo), meth_QSurfaceFormat_stereo, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_stereo)},
    {SIP_MLNAME_CAST(sipName_swapBehavior), meth_QSurfaceFormat_swapBehavior, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_swapBehavior)},
    {SIP_MLNAME_CAST(sipName_swapInterval), meth_QSurfaceFormat_swapInterval, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_swapInterval)},
    {SIP_MLNAME_CAST(sipName_testOption), meth_QSurfaceFormat_testOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_testOption)},
    {SIP_MLNAME_CAST(sipName_version), meth_QSurfaceFormat_version, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurfaceFormat_version)}
};

static sipEnumMemberDef enummembers_QSurfaceFormat[] = {
    {sipName_CompatibilityProfile, static_cast<int>(QSurfaceFormat::CompatibilityProfile), 262},
    {sipName_CoreProfile, static_cast<int>(QSurfaceFormat::CoreProfile), 262},
    {sipName_DebugContext, static_cast<int>(QSurfaceFormat::DebugContext), 260},
    {sipName_DefaultRenderableType, static_cast<int>(QSurfaceFormat::DefaultRenderableType), 263},
    {sipName_DefaultSwapBehavior, static_cast<int>(QSurfaceFormat::DefaultSwapBehavior), 264},
    {sipName_DeprecatedFunctions, static_cast<int>(QSurfaceFormat::DeprecatedFunctions), 260},
    {sipName_DoubleBuffer, static_cast<int>(QSurfaceFormat::DoubleBuffer), 264},
    {sipName_NoProfile, static_cast<int>(QSurfaceFormat::NoProfile), 262},
    {sipName_OpenGL, static_cast<int>(QSurfaceFormat::OpenGL), 263},
    {sipName_OpenGLES, static_cast<int>(QSurfaceFormat::OpenGLES), 263},
    {sipName_OpenVG, static_cast<int>(QSurfaceFormat::OpenVG), 263},
    {sipName_SingleBuffer, static_cast<int>(QSurfaceFormat::SingleBuffer), 264},
    {sipName_StereoBuffers, static_cast<int>(QSurfaceFormat::StereoBuffers), 260},
    {sipName_TripleBuffer, static_cast<int>(QSurfaceFormat::TripleBuffer), 264},
};

PyDoc_STRVAR(doc_QSurfaceFormat, "\1QSurfaceFormat()\n"
    "QSurfaceFormat(QSurfaceFormat.FormatOptions)\n"
    "QSurfaceFormat(QSurfaceFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QSurfaceFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QSurfaceFormat,
        {0}
    },
    {
        sipNameNr_QSurfaceFormat,
        {0, 0, 1},
        37, methods_QSurfaceFormat,
        14, enummembers_QSurfaceFormat,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QSurfaceFormat,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QSurfaceFormat,
    init_type_QSurfaceFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSurfaceFormat,
    assign_QSurfaceFormat,
    array_QSurfaceFormat,
    copy_QSurfaceFormat,
    release_QSurfaceFormat,
    cast_QSurfaceFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstylehints.sip"
#include <qstylehints.h>
#line 58027 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 58031 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 58034 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 58037 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 58040 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 58043 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 58046 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 58049 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 58052 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 58055 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 58058 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 58061 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 58064 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 58067 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 58070 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 58073 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 58076 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 58079 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QStyleHints_mouseDoubleClickInterval, "QStyleHints.mouseDoubleClickInterval() -> int");

extern "C" {static PyObject *meth_QStyleHints_mouseDoubleClickInterval(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_mouseDoubleClickInterval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->mouseDoubleClickInterval();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_mouseDoubleClickInterval, doc_QStyleHints_mouseDoubleClickInterval);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_startDragDistance, "QStyleHints.startDragDistance() -> int");

extern "C" {static PyObject *meth_QStyleHints_startDragDistance(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_startDragDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->startDragDistance();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_startDragDistance, doc_QStyleHints_startDragDistance);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_startDragTime, "QStyleHints.startDragTime() -> int");

extern "C" {static PyObject *meth_QStyleHints_startDragTime(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_startDragTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->startDragTime();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_startDragTime, doc_QStyleHints_startDragTime);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_startDragVelocity, "QStyleHints.startDragVelocity() -> int");

extern "C" {static PyObject *meth_QStyleHints_startDragVelocity(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_startDragVelocity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->startDragVelocity();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_startDragVelocity, doc_QStyleHints_startDragVelocity);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_keyboardInputInterval, "QStyleHints.keyboardInputInterval() -> int");

extern "C" {static PyObject *meth_QStyleHints_keyboardInputInterval(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_keyboardInputInterval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->keyboardInputInterval();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_keyboardInputInterval, doc_QStyleHints_keyboardInputInterval);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_keyboardAutoRepeatRate, "QStyleHints.keyboardAutoRepeatRate() -> int");

extern "C" {static PyObject *meth_QStyleHints_keyboardAutoRepeatRate(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_keyboardAutoRepeatRate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->keyboardAutoRepeatRate();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_keyboardAutoRepeatRate, doc_QStyleHints_keyboardAutoRepeatRate);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_cursorFlashTime, "QStyleHints.cursorFlashTime() -> int");

extern "C" {static PyObject *meth_QStyleHints_cursorFlashTime(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_cursorFlashTime(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->cursorFlashTime();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_cursorFlashTime, doc_QStyleHints_cursorFlashTime);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_showIsFullScreen, "QStyleHints.showIsFullScreen() -> bool");

extern "C" {static PyObject *meth_QStyleHints_showIsFullScreen(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_showIsFullScreen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showIsFullScreen();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_showIsFullScreen, doc_QStyleHints_showIsFullScreen);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_passwordMaskDelay, "QStyleHints.passwordMaskDelay() -> int");

extern "C" {static PyObject *meth_QStyleHints_passwordMaskDelay(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_passwordMaskDelay(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->passwordMaskDelay();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_passwordMaskDelay, doc_QStyleHints_passwordMaskDelay);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_fontSmoothingGamma, "QStyleHints.fontSmoothingGamma() -> float");

extern "C" {static PyObject *meth_QStyleHints_fontSmoothingGamma(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_fontSmoothingGamma(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->fontSmoothingGamma();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_fontSmoothingGamma, doc_QStyleHints_fontSmoothingGamma);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_useRtlExtensions, "QStyleHints.useRtlExtensions() -> bool");

extern "C" {static PyObject *meth_QStyleHints_useRtlExtensions(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_useRtlExtensions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->useRtlExtensions();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_useRtlExtensions, doc_QStyleHints_useRtlExtensions);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_passwordMaskCharacter, "QStyleHints.passwordMaskCharacter() -> str");

extern "C" {static PyObject *meth_QStyleHints_passwordMaskCharacter(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_passwordMaskCharacter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            QChar*sipRes;

            sipRes = new QChar(sipCpp->passwordMaskCharacter());

            return sipConvertFromNewType(sipRes,sipType_QChar,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_passwordMaskCharacter, doc_QStyleHints_passwordMaskCharacter);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_setFocusOnTouchRelease, "QStyleHints.setFocusOnTouchRelease() -> bool");

extern "C" {static PyObject *meth_QStyleHints_setFocusOnTouchRelease(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_setFocusOnTouchRelease(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->setFocusOnTouchRelease();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_setFocusOnTouchRelease, doc_QStyleHints_setFocusOnTouchRelease);

    return NULL;
}


PyDoc_STRVAR(doc_QStyleHints_mousePressAndHoldInterval, "QStyleHints.mousePressAndHoldInterval() -> int");

extern "C" {static PyObject *meth_QStyleHints_mousePressAndHoldInterval(PyObject *, PyObject *);}
static PyObject *meth_QStyleHints_mousePressAndHoldInterval(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStyleHints *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStyleHints, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->mousePressAndHoldInterval();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStyleHints, sipName_mousePressAndHoldInterval, doc_QStyleHints_mousePressAndHoldInterval);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QStyleHints(void *, const sipTypeDef *);}
static void *cast_QStyleHints(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QStyleHints)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QStyleHints *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QStyleHints(void *, int);}
static void release_QStyleHints(void *sipCppV,int)
{
    QStyleHints *sipCpp = reinterpret_cast<QStyleHints *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QStyleHints(sipSimpleWrapper *);}
static void dealloc_QStyleHints(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QStyleHints(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QStyleHints[] = {{162, 0, 1}};


static PyMethodDef methods_QStyleHints[] = {
    {SIP_MLNAME_CAST(sipName_cursorFlashTime), meth_QStyleHints_cursorFlashTime, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_cursorFlashTime)},
    {SIP_MLNAME_CAST(sipName_fontSmoothingGamma), meth_QStyleHints_fontSmoothingGamma, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_fontSmoothingGamma)},
    {SIP_MLNAME_CAST(sipName_keyboardAutoRepeatRate), meth_QStyleHints_keyboardAutoRepeatRate, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_keyboardAutoRepeatRate)},
    {SIP_MLNAME_CAST(sipName_keyboardInputInterval), meth_QStyleHints_keyboardInputInterval, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_keyboardInputInterval)},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickInterval), meth_QStyleHints_mouseDoubleClickInterval, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_mouseDoubleClickInterval)},
    {SIP_MLNAME_CAST(sipName_mousePressAndHoldInterval), meth_QStyleHints_mousePressAndHoldInterval, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_mousePressAndHoldInterval)},
    {SIP_MLNAME_CAST(sipName_passwordMaskCharacter), meth_QStyleHints_passwordMaskCharacter, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_passwordMaskCharacter)},
    {SIP_MLNAME_CAST(sipName_passwordMaskDelay), meth_QStyleHints_passwordMaskDelay, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_passwordMaskDelay)},
    {SIP_MLNAME_CAST(sipName_setFocusOnTouchRelease), meth_QStyleHints_setFocusOnTouchRelease, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_setFocusOnTouchRelease)},
    {SIP_MLNAME_CAST(sipName_showIsFullScreen), meth_QStyleHints_showIsFullScreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_showIsFullScreen)},
    {SIP_MLNAME_CAST(sipName_startDragDistance), meth_QStyleHints_startDragDistance, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_startDragDistance)},
    {SIP_MLNAME_CAST(sipName_startDragTime), meth_QStyleHints_startDragTime, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_startDragTime)},
    {SIP_MLNAME_CAST(sipName_startDragVelocity), meth_QStyleHints_startDragVelocity, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_startDragVelocity)},
    {SIP_MLNAME_CAST(sipName_useRtlExtensions), meth_QStyleHints_useRtlExtensions, METH_VARARGS, SIP_MLDOC_CAST(doc_QStyleHints_useRtlExtensions)}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QStyleHints = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QStyleHints,
        {0}
    },
    {
        sipNameNr_QStyleHints,
        {0, 0, 1},
        14, methods_QStyleHints,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QStyleHints,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QStyleHints,
    0,
    0,
    0,
    release_QStyleHints,
    cast_QStyleHints,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QStyleHints::staticMetaObject,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstatictext.sip"
#include <qstatictext.h>
#line 58577 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 58581 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 58584 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 58587 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 58590 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 58593 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 58596 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QStaticText_setText, "QStaticText.setText(str)");

extern "C" {static PyObject *meth_QStaticText_setText(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_setText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStaticText, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setText(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_setText, doc_QStaticText_setText);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_text, "QStaticText.text() -> str");

extern "C" {static PyObject *meth_QStaticText_text(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStaticText, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_text, doc_QStaticText_text);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_setTextFormat, "QStaticText.setTextFormat(Qt.TextFormat)");

extern "C" {static PyObject *meth_QStaticText_setTextFormat(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_setTextFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::TextFormat a0;
        QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QStaticText, &sipCpp, sipType_Qt_TextFormat, &a0))
        {
            sipCpp->setTextFormat(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_setTextFormat, doc_QStaticText_setTextFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_textFormat, "QStaticText.textFormat() -> Qt.TextFormat");

extern "C" {static PyObject *meth_QStaticText_textFormat(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_textFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStaticText, &sipCpp))
        {
            Qt::TextFormat sipRes;

            sipRes = sipCpp->textFormat();

            return sipConvertFromEnum(sipRes,sipType_Qt_TextFormat);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_textFormat, doc_QStaticText_textFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_setTextWidth, "QStaticText.setTextWidth(float)");

extern "C" {static PyObject *meth_QStaticText_setTextWidth(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_setTextWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QStaticText, &sipCpp, &a0))
        {
            sipCpp->setTextWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_setTextWidth, doc_QStaticText_setTextWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_textWidth, "QStaticText.textWidth() -> float");

extern "C" {static PyObject *meth_QStaticText_textWidth(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_textWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStaticText, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->textWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_textWidth, doc_QStaticText_textWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_setTextOption, "QStaticText.setTextOption(QTextOption)");

extern "C" {static PyObject *meth_QStaticText_setTextOption(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_setTextOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextOption* a0;
        QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStaticText, &sipCpp, sipType_QTextOption, &a0))
        {
            sipCpp->setTextOption(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_setTextOption, doc_QStaticText_setTextOption);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_textOption, "QStaticText.textOption() -> QTextOption");

extern "C" {static PyObject *meth_QStaticText_textOption(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_textOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStaticText, &sipCpp))
        {
            QTextOption*sipRes;

            sipRes = new QTextOption(sipCpp->textOption());

            return sipConvertFromNewType(sipRes,sipType_QTextOption,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_textOption, doc_QStaticText_textOption);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_size, "QStaticText.size() -> QSizeF");

extern "C" {static PyObject *meth_QStaticText_size(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStaticText, &sipCpp))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_size, doc_QStaticText_size);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_prepare, "QStaticText.prepare(QTransform matrix=QTransform(), QFont font=QFont())");

extern "C" {static PyObject *meth_QStaticText_prepare(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStaticText_prepare(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform& a0def = QTransform();
        const QTransform* a0 = &a0def;
        const QFont& a1def = QFont();
        const QFont* a1 = &a1def;
        QStaticText *sipCpp;

        static const char *sipKwdList[] = {
            sipName_matrix,
            sipName_font,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9J9", &sipSelf, sipType_QStaticText, &sipCpp, sipType_QTransform, &a0, sipType_QFont, &a1))
        {
            sipCpp->prepare(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_prepare, doc_QStaticText_prepare);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_setPerformanceHint, "QStaticText.setPerformanceHint(QStaticText.PerformanceHint)");

extern "C" {static PyObject *meth_QStaticText_setPerformanceHint(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_setPerformanceHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QStaticText::PerformanceHint a0;
        QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QStaticText, &sipCpp, sipType_QStaticText_PerformanceHint, &a0))
        {
            sipCpp->setPerformanceHint(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_setPerformanceHint, doc_QStaticText_setPerformanceHint);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_performanceHint, "QStaticText.performanceHint() -> QStaticText.PerformanceHint");

extern "C" {static PyObject *meth_QStaticText_performanceHint(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_performanceHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStaticText, &sipCpp))
        {
            QStaticText::PerformanceHint sipRes;

            sipRes = sipCpp->performanceHint();

            return sipConvertFromEnum(sipRes,sipType_QStaticText_PerformanceHint);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_performanceHint, doc_QStaticText_performanceHint);

    return NULL;
}


PyDoc_STRVAR(doc_QStaticText_swap, "QStaticText.swap(QStaticText)");

extern "C" {static PyObject *meth_QStaticText_swap(PyObject *, PyObject *);}
static PyObject *meth_QStaticText_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QStaticText* a0;
        QStaticText *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStaticText, &sipCpp, sipType_QStaticText, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStaticText, sipName_swap, doc_QStaticText_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QStaticText___ne__(PyObject *,PyObject *);}
static PyObject *slot_QStaticText___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QStaticText *sipCpp = reinterpret_cast<QStaticText *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QStaticText));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QStaticText* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QStaticText, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QStaticText::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QStaticText,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QStaticText___eq__(PyObject *,PyObject *);}
static PyObject *slot_QStaticText___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QStaticText *sipCpp = reinterpret_cast<QStaticText *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QStaticText));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QStaticText* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QStaticText, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QStaticText::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QStaticText,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QStaticText(void *, const sipTypeDef *);}
static void *cast_QStaticText(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QStaticText)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QStaticText(void *, int);}
static void release_QStaticText(void *sipCppV,int)
{
    delete reinterpret_cast<QStaticText *>(sipCppV);
}


extern "C" {static void assign_QStaticText(void *, SIP_SSIZE_T, const void *);}
static void assign_QStaticText(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QStaticText *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QStaticText *>(sipSrc);
}


extern "C" {static void *array_QStaticText(SIP_SSIZE_T);}
static void *array_QStaticText(SIP_SSIZE_T sipNrElem)
{
    return new QStaticText[sipNrElem];
}


extern "C" {static void *copy_QStaticText(const void *, SIP_SSIZE_T);}
static void *copy_QStaticText(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QStaticText(reinterpret_cast<const QStaticText *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QStaticText(sipSimpleWrapper *);}
static void dealloc_QStaticText(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QStaticText(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QStaticText(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QStaticText(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QStaticText *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QStaticText();

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            sipCpp = new QStaticText(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QStaticText* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QStaticText, &a0))
        {
            sipCpp = new QStaticText(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QStaticText[] = {
    {(void *)slot_QStaticText___ne__, ne_slot},
    {(void *)slot_QStaticText___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QStaticText[] = {
    {SIP_MLNAME_CAST(sipName_performanceHint), meth_QStaticText_performanceHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_performanceHint)},
    {SIP_MLNAME_CAST(sipName_prepare), (PyCFunction)meth_QStaticText_prepare, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStaticText_prepare)},
    {SIP_MLNAME_CAST(sipName_setPerformanceHint), meth_QStaticText_setPerformanceHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_setPerformanceHint)},
    {SIP_MLNAME_CAST(sipName_setText), meth_QStaticText_setText, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_setText)},
    {SIP_MLNAME_CAST(sipName_setTextFormat), meth_QStaticText_setTextFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_setTextFormat)},
    {SIP_MLNAME_CAST(sipName_setTextOption), meth_QStaticText_setTextOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_setTextOption)},
    {SIP_MLNAME_CAST(sipName_setTextWidth), meth_QStaticText_setTextWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_setTextWidth)},
    {SIP_MLNAME_CAST(sipName_size), meth_QStaticText_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_size)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QStaticText_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_swap)},
    {SIP_MLNAME_CAST(sipName_text), meth_QStaticText_text, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_text)},
    {SIP_MLNAME_CAST(sipName_textFormat), meth_QStaticText_textFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_textFormat)},
    {SIP_MLNAME_CAST(sipName_textOption), meth_QStaticText_textOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_textOption)},
    {SIP_MLNAME_CAST(sipName_textWidth), meth_QStaticText_textWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QStaticText_textWidth)}
};

static sipEnumMemberDef enummembers_QStaticText[] = {
    {sipName_AggressiveCaching, static_cast<int>(QStaticText::AggressiveCaching), 253},
    {sipName_ModerateCaching, static_cast<int>(QStaticText::ModerateCaching), 253},
};

PyDoc_STRVAR(doc_QStaticText, "\1QStaticText()\n"
    "QStaticText(str)\n"
    "QStaticText(QStaticText)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QStaticText = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QStaticText,
        {0}
    },
    {
        sipNameNr_QStaticText,
        {0, 0, 1},
        13, methods_QStaticText,
        2, enummembers_QStaticText,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QStaticText,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QStaticText,
    init_type_QStaticText,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QStaticText,
    assign_QStaticText,
    array_QStaticText,
    copy_QStaticText,
    release_QStaticText,
    cast_QStaticText,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 104 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 59207 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 59211 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 59214 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 59217 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 59220 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 59223 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 59226 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 59229 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 59232 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 59235 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 59238 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 59241 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 59244 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 59247 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQStandardItem : public QStandardItem
{
public:
    sipQStandardItem();
    sipQStandardItem(const QString&);
    sipQStandardItem(const QIcon&,const QString&);
    sipQStandardItem(int,int);
    sipQStandardItem(const QStandardItem&);
    virtual ~sipQStandardItem();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_emitDataChanged();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool operator<(const QStandardItem&) const;
    void write(QDataStream&) const;
    void read(QDataStream&);
    int type() const;
    QStandardItem* clone() const;
    void setData(const QVariant&,int);
    QVariant data(int) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQStandardItem(const sipQStandardItem &);
    sipQStandardItem &operator = (const sipQStandardItem &);

    char sipPyMethods[7];
};

sipQStandardItem::sipQStandardItem(): QStandardItem(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQStandardItem::sipQStandardItem(const QString& a0): QStandardItem(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQStandardItem::sipQStandardItem(const QIcon& a0,const QString& a1): QStandardItem(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQStandardItem::sipQStandardItem(int a0,int a1): QStandardItem(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQStandardItem::sipQStandardItem(const QStandardItem& a0): QStandardItem(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQStandardItem::~sipQStandardItem()
{
    sipCommonDtor(sipPySelf);
}

bool sipQStandardItem::operator<(const QStandardItem& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName___lt__);

    if (!sipMeth)
        return QStandardItem::operator<(a0);

    extern bool sipVH_QtGui_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QStandardItem&);

    return sipVH_QtGui_23(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQStandardItem::write(QDataStream& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_write);

    if (!sipMeth)
    {
        QStandardItem::write(a0);
        return;
    }

    extern void sipVH_QtGui_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDataStream&);

    sipVH_QtGui_24(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQStandardItem::read(QDataStream& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_read);

    if (!sipMeth)
    {
        QStandardItem::read(a0);
        return;
    }

    extern void sipVH_QtGui_24(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDataStream&);

    sipVH_QtGui_24(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQStandardItem::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_type);

    if (!sipMeth)
        return QStandardItem::type();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QStandardItem* sipQStandardItem::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_clone);

    if (!sipMeth)
        return QStandardItem::clone();

    extern QStandardItem* sipVH_QtGui_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_25(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQStandardItem::setData(const QVariant& a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
    {
        QStandardItem::setData(a0,a1);
        return;
    }

    extern void sipVH_QtGui_26(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QVariant&,int);

    sipVH_QtGui_26(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QVariant sipQStandardItem::data(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[6]),sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return QStandardItem::data(a0);

    extern QVariant sipVH_QtGui_27(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return sipVH_QtGui_27(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQStandardItem::sipProtect_emitDataChanged()
{
    QStandardItem::emitDataChanged();
}


PyDoc_STRVAR(doc_QStandardItem_data, "QStandardItem.data(int role=Qt.UserRole+1) -> QVariant");

extern "C" {static PyObject *meth_QStandardItem_data(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_data(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0 = Qt::UserRole+1;
        const QStandardItem *sipCpp;

        static const char *sipKwdList[] = {
            sipName_role,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            QVariant*sipRes;

            sipRes = new QVariant((sipSelfWasArg ? sipCpp->QStandardItem::data(a0) : sipCpp->data(a0)));

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_data, doc_QStandardItem_data);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setData, "QStandardItem.setData(QVariant, int role=Qt.UserRole+1)");

extern "C" {static PyObject *meth_QStandardItem_setData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QVariant* a0;
        int a0State = 0;
        int a1 = Qt::UserRole+1;
        QStandardItem *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_role,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|i", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QVariant, &a0, &a0State, &a1))
        {
            (sipSelfWasArg ? sipCpp->QStandardItem::setData(*a0,a1) : sipCpp->setData(*a0,a1));
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setData, doc_QStandardItem_setData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_text, "QStandardItem.text() -> str");

extern "C" {static PyObject *meth_QStandardItem_text(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_text, doc_QStandardItem_text);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_icon, "QStandardItem.icon() -> QIcon");

extern "C" {static PyObject *meth_QStandardItem_icon(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_icon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QIcon*sipRes;

            sipRes = new QIcon(sipCpp->icon());

            return sipConvertFromNewType(sipRes,sipType_QIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_icon, doc_QStandardItem_icon);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_toolTip, "QStandardItem.toolTip() -> str");

extern "C" {static PyObject *meth_QStandardItem_toolTip(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_toolTip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->toolTip());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_toolTip, doc_QStandardItem_toolTip);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_statusTip, "QStandardItem.statusTip() -> str");

extern "C" {static PyObject *meth_QStandardItem_statusTip(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_statusTip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->statusTip());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_statusTip, doc_QStandardItem_statusTip);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_whatsThis, "QStandardItem.whatsThis() -> str");

extern "C" {static PyObject *meth_QStandardItem_whatsThis(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_whatsThis(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->whatsThis());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_whatsThis, doc_QStandardItem_whatsThis);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_sizeHint, "QStandardItem.sizeHint() -> QSize");

extern "C" {static PyObject *meth_QStandardItem_sizeHint(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_sizeHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->sizeHint());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_sizeHint, doc_QStandardItem_sizeHint);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_font, "QStandardItem.font() -> QFont");

extern "C" {static PyObject *meth_QStandardItem_font(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_font(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QFont*sipRes;

            sipRes = new QFont(sipCpp->font());

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_font, doc_QStandardItem_font);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_textAlignment, "QStandardItem.textAlignment() -> Qt.Alignment");

extern "C" {static PyObject *meth_QStandardItem_textAlignment(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_textAlignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            Qt::Alignment*sipRes;

            sipRes = new Qt::Alignment(sipCpp->textAlignment());

            return sipConvertFromNewType(sipRes,sipType_Qt_Alignment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_textAlignment, doc_QStandardItem_textAlignment);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_background, "QStandardItem.background() -> QBrush");

extern "C" {static PyObject *meth_QStandardItem_background(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_background(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->background());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_background, doc_QStandardItem_background);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_foreground, "QStandardItem.foreground() -> QBrush");

extern "C" {static PyObject *meth_QStandardItem_foreground(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_foreground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->foreground());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_foreground, doc_QStandardItem_foreground);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_checkState, "QStandardItem.checkState() -> Qt.CheckState");

extern "C" {static PyObject *meth_QStandardItem_checkState(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_checkState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            Qt::CheckState sipRes;

            sipRes = sipCpp->checkState();

            return sipConvertFromEnum(sipRes,sipType_Qt_CheckState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_checkState, doc_QStandardItem_checkState);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_accessibleText, "QStandardItem.accessibleText() -> str");

extern "C" {static PyObject *meth_QStandardItem_accessibleText(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_accessibleText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->accessibleText());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_accessibleText, doc_QStandardItem_accessibleText);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_accessibleDescription, "QStandardItem.accessibleDescription() -> str");

extern "C" {static PyObject *meth_QStandardItem_accessibleDescription(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_accessibleDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->accessibleDescription());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_accessibleDescription, doc_QStandardItem_accessibleDescription);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_flags, "QStandardItem.flags() -> Qt.ItemFlags");

extern "C" {static PyObject *meth_QStandardItem_flags(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            Qt::ItemFlags*sipRes;

            sipRes = new Qt::ItemFlags(sipCpp->flags());

            return sipConvertFromNewType(sipRes,sipType_Qt_ItemFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_flags, doc_QStandardItem_flags);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setFlags, "QStandardItem.setFlags(Qt.ItemFlags)");

extern "C" {static PyObject *meth_QStandardItem_setFlags(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::ItemFlags* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_Qt_ItemFlags, &a0, &a0State))
        {
            sipCpp->setFlags(*a0);
            sipReleaseType(a0,sipType_Qt_ItemFlags,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setFlags, doc_QStandardItem_setFlags);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_isEnabled, "QStandardItem.isEnabled() -> bool");

extern "C" {static PyObject *meth_QStandardItem_isEnabled(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_isEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_isEnabled, doc_QStandardItem_isEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setEnabled, "QStandardItem.setEnabled(bool)");

extern "C" {static PyObject *meth_QStandardItem_setEnabled(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setEnabled, doc_QStandardItem_setEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_isEditable, "QStandardItem.isEditable() -> bool");

extern "C" {static PyObject *meth_QStandardItem_isEditable(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_isEditable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEditable();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_isEditable, doc_QStandardItem_isEditable);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setEditable, "QStandardItem.setEditable(bool)");

extern "C" {static PyObject *meth_QStandardItem_setEditable(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setEditable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setEditable(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setEditable, doc_QStandardItem_setEditable);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_isSelectable, "QStandardItem.isSelectable() -> bool");

extern "C" {static PyObject *meth_QStandardItem_isSelectable(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_isSelectable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isSelectable();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_isSelectable, doc_QStandardItem_isSelectable);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setSelectable, "QStandardItem.setSelectable(bool)");

extern "C" {static PyObject *meth_QStandardItem_setSelectable(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setSelectable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setSelectable(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setSelectable, doc_QStandardItem_setSelectable);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_isCheckable, "QStandardItem.isCheckable() -> bool");

extern "C" {static PyObject *meth_QStandardItem_isCheckable(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_isCheckable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCheckable();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_isCheckable, doc_QStandardItem_isCheckable);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setCheckable, "QStandardItem.setCheckable(bool)");

extern "C" {static PyObject *meth_QStandardItem_setCheckable(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setCheckable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setCheckable(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setCheckable, doc_QStandardItem_setCheckable);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_isTristate, "QStandardItem.isTristate() -> bool");

extern "C" {static PyObject *meth_QStandardItem_isTristate(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_isTristate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isTristate();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_isTristate, doc_QStandardItem_isTristate);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setTristate, "QStandardItem.setTristate(bool)");

extern "C" {static PyObject *meth_QStandardItem_setTristate(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setTristate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setTristate(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setTristate, doc_QStandardItem_setTristate);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_isDragEnabled, "QStandardItem.isDragEnabled() -> bool");

extern "C" {static PyObject *meth_QStandardItem_isDragEnabled(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_isDragEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isDragEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_isDragEnabled, doc_QStandardItem_isDragEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setDragEnabled, "QStandardItem.setDragEnabled(bool)");

extern "C" {static PyObject *meth_QStandardItem_setDragEnabled(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setDragEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setDragEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setDragEnabled, doc_QStandardItem_setDragEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_isDropEnabled, "QStandardItem.isDropEnabled() -> bool");

extern "C" {static PyObject *meth_QStandardItem_isDropEnabled(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_isDropEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isDropEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_isDropEnabled, doc_QStandardItem_isDropEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setDropEnabled, "QStandardItem.setDropEnabled(bool)");

extern "C" {static PyObject *meth_QStandardItem_setDropEnabled(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setDropEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setDropEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setDropEnabled, doc_QStandardItem_setDropEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_parent, "QStandardItem.parent() -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItem_parent(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_parent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->parent();

            return sipConvertFromType(sipRes,sipType_QStandardItem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_parent, doc_QStandardItem_parent);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_row, "QStandardItem.row() -> int");

extern "C" {static PyObject *meth_QStandardItem_row(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_row(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->row();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_row, doc_QStandardItem_row);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_column, "QStandardItem.column() -> int");

extern "C" {static PyObject *meth_QStandardItem_column(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_column(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->column();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_column, doc_QStandardItem_column);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_index, "QStandardItem.index() -> QModelIndex");

extern "C" {static PyObject *meth_QStandardItem_index(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_index(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QModelIndex*sipRes;

            sipRes = new QModelIndex(sipCpp->index());

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_index, doc_QStandardItem_index);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_model, "QStandardItem.model() -> QStandardItemModel");

extern "C" {static PyObject *meth_QStandardItem_model(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_model(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QStandardItemModel*sipRes;

            sipRes = sipCpp->model();

            return sipConvertFromType(sipRes,sipType_QStandardItemModel,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_model, doc_QStandardItem_model);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_rowCount, "QStandardItem.rowCount() -> int");

extern "C" {static PyObject *meth_QStandardItem_rowCount(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_rowCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->rowCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_rowCount, doc_QStandardItem_rowCount);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setRowCount, "QStandardItem.setRowCount(int)");

extern "C" {static PyObject *meth_QStandardItem_setRowCount(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setRowCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setRowCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setRowCount, doc_QStandardItem_setRowCount);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_columnCount, "QStandardItem.columnCount() -> int");

extern "C" {static PyObject *meth_QStandardItem_columnCount(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_columnCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->columnCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_columnCount, doc_QStandardItem_columnCount);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setColumnCount, "QStandardItem.setColumnCount(int)");

extern "C" {static PyObject *meth_QStandardItem_setColumnCount(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setColumnCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->setColumnCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setColumnCount, doc_QStandardItem_setColumnCount);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_hasChildren, "QStandardItem.hasChildren() -> bool");

extern "C" {static PyObject *meth_QStandardItem_hasChildren(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_hasChildren(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasChildren();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_hasChildren, doc_QStandardItem_hasChildren);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_child, "QStandardItem.child(int, int column=0) -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItem_child(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_child(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1 = 0;
        const QStandardItem *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_column,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|i", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, &a1))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->child(a0,a1);

            return sipConvertFromType(sipRes,sipType_QStandardItem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_child, doc_QStandardItem_child);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setChild, "QStandardItem.setChild(int, int, QStandardItem)\n"
    "QStandardItem.setChild(int, QStandardItem)");

extern "C" {static PyObject *meth_QStandardItem_setChild(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setChild(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QStandardItem* a2;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ:", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, &a1, sipType_QStandardItem, &a2))
        {
            sipCpp->setChild(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        QStandardItem* a1;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ:", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, sipType_QStandardItem, &a1))
        {
            sipCpp->setChild(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setChild, doc_QStandardItem_setChild);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_insertRow, "QStandardItem.insertRow(int, list-of-QStandardItem)\n"
    "QStandardItem.insertRow(int, QStandardItem)");

extern "C" {static PyObject *meth_QStandardItem_insertRow(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_insertRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QList<QStandardItem*>* a1;
        int a1State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ3", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, sipType_QList_0101QStandardItem,&a1, &a1State))
        {
            sipCpp->insertRow(a0,*a1);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a1),sipType_QList_0101QStandardItem,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        QStandardItem* a1;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ:", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, sipType_QStandardItem, &a1))
        {
            sipCpp->insertRow(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_insertRow, doc_QStandardItem_insertRow);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_insertRows, "QStandardItem.insertRows(int, int)\n"
    "QStandardItem.insertRows(int, list-of-QStandardItem)");

extern "C" {static PyObject *meth_QStandardItem_insertRows(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_insertRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, &a1))
        {
            sipCpp->insertRows(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QList<QStandardItem*>* a1;
        int a1State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ3", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, sipType_QList_0101QStandardItem,&a1, &a1State))
        {
            sipCpp->insertRows(a0,*a1);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a1),sipType_QList_0101QStandardItem,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_insertRows, doc_QStandardItem_insertRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_insertColumn, "QStandardItem.insertColumn(int, list-of-QStandardItem)");

extern "C" {static PyObject *meth_QStandardItem_insertColumn(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_insertColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QList<QStandardItem*>* a1;
        int a1State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ3", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, sipType_QList_0101QStandardItem,&a1, &a1State))
        {
            sipCpp->insertColumn(a0,*a1);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a1),sipType_QList_0101QStandardItem,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_insertColumn, doc_QStandardItem_insertColumn);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_insertColumns, "QStandardItem.insertColumns(int, int)");

extern "C" {static PyObject *meth_QStandardItem_insertColumns(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_insertColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, &a1))
        {
            sipCpp->insertColumns(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_insertColumns, doc_QStandardItem_insertColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_removeRow, "QStandardItem.removeRow(int)");

extern "C" {static PyObject *meth_QStandardItem_removeRow(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_removeRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->removeRow(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_removeRow, doc_QStandardItem_removeRow);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_removeColumn, "QStandardItem.removeColumn(int)");

extern "C" {static PyObject *meth_QStandardItem_removeColumn(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_removeColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            sipCpp->removeColumn(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_removeColumn, doc_QStandardItem_removeColumn);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_removeRows, "QStandardItem.removeRows(int, int)");

extern "C" {static PyObject *meth_QStandardItem_removeRows(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_removeRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, &a1))
        {
            sipCpp->removeRows(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_removeRows, doc_QStandardItem_removeRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_removeColumns, "QStandardItem.removeColumns(int, int)");

extern "C" {static PyObject *meth_QStandardItem_removeColumns(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_removeColumns(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, &a1))
        {
            sipCpp->removeColumns(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_removeColumns, doc_QStandardItem_removeColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_takeChild, "QStandardItem.takeChild(int, int column=0) -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItem_takeChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_takeChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1 = 0;
        QStandardItem *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_column,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|i", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, &a1))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->takeChild(a0,a1);

            return sipConvertFromType(sipRes,sipType_QStandardItem,Py_None);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_takeChild, doc_QStandardItem_takeChild);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_takeRow, "QStandardItem.takeRow(int) -> list-of-QStandardItem");

extern "C" {static PyObject *meth_QStandardItem_takeRow(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_takeRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            QList<QStandardItem*>*sipRes;

            sipRes = new QList<QStandardItem*>(sipCpp->takeRow(a0));

            return sipConvertFromNewType(sipRes,sipType_QList_0101QStandardItem,Py_None);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_takeRow, doc_QStandardItem_takeRow);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_takeColumn, "QStandardItem.takeColumn(int) -> list-of-QStandardItem");

extern "C" {static PyObject *meth_QStandardItem_takeColumn(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_takeColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItem, &sipCpp, &a0))
        {
            QList<QStandardItem*>*sipRes;

            sipRes = new QList<QStandardItem*>(sipCpp->takeColumn(a0));

            return sipConvertFromNewType(sipRes,sipType_QList_0101QStandardItem,Py_None);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_takeColumn, doc_QStandardItem_takeColumn);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_sortChildren, "QStandardItem.sortChildren(int, Qt.SortOrder order=Qt.AscendingOrder)");

extern "C" {static PyObject *meth_QStandardItem_sortChildren(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_sortChildren(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        Qt::SortOrder a1 = Qt::AscendingOrder;
        QStandardItem *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_order,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QStandardItem, &sipCpp, &a0, sipType_Qt_SortOrder, &a1))
        {
            sipCpp->sortChildren(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_sortChildren, doc_QStandardItem_sortChildren);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_clone, "QStandardItem.clone() -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItem_clone(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            QStandardItem*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItem::clone() : sipCpp->clone());

            return sipConvertFromNewType(sipRes,sipType_QStandardItem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_clone, doc_QStandardItem_clone);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_type, "QStandardItem.type() -> int");

extern "C" {static PyObject *meth_QStandardItem_type(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItem::type() : sipCpp->type());

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_type, doc_QStandardItem_type);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_read, "QStandardItem.read(QDataStream)");

extern "C" {static PyObject *meth_QStandardItem_read(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_read(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDataStream* a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QDataStream, &a0))
        {
            (sipSelfWasArg ? sipCpp->QStandardItem::read(*a0) : sipCpp->read(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_read, doc_QStandardItem_read);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_write, "QStandardItem.write(QDataStream)");

extern "C" {static PyObject *meth_QStandardItem_write(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_write(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDataStream* a0;
        const QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QDataStream, &a0))
        {
            (sipSelfWasArg ? sipCpp->QStandardItem::write(*a0) : sipCpp->write(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_write, doc_QStandardItem_write);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setText, "QStandardItem.setText(str)");

extern "C" {static PyObject *meth_QStandardItem_setText(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setText(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setText, doc_QStandardItem_setText);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setIcon, "QStandardItem.setIcon(QIcon)");

extern "C" {static PyObject *meth_QStandardItem_setIcon(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setIcon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QIcon* a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QIcon, &a0))
        {
            sipCpp->setIcon(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setIcon, doc_QStandardItem_setIcon);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setToolTip, "QStandardItem.setToolTip(str)");

extern "C" {static PyObject *meth_QStandardItem_setToolTip(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setToolTip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setToolTip(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setToolTip, doc_QStandardItem_setToolTip);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setStatusTip, "QStandardItem.setStatusTip(str)");

extern "C" {static PyObject *meth_QStandardItem_setStatusTip(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setStatusTip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setStatusTip(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setStatusTip, doc_QStandardItem_setStatusTip);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setWhatsThis, "QStandardItem.setWhatsThis(str)");

extern "C" {static PyObject *meth_QStandardItem_setWhatsThis(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setWhatsThis(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setWhatsThis(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setWhatsThis, doc_QStandardItem_setWhatsThis);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setSizeHint, "QStandardItem.setSizeHint(QSize)");

extern "C" {static PyObject *meth_QStandardItem_setSizeHint(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setSizeHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->setSizeHint(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setSizeHint, doc_QStandardItem_setSizeHint);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setFont, "QStandardItem.setFont(QFont)");

extern "C" {static PyObject *meth_QStandardItem_setFont(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QFont, &a0))
        {
            sipCpp->setFont(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setFont, doc_QStandardItem_setFont);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setTextAlignment, "QStandardItem.setTextAlignment(Qt.Alignment)");

extern "C" {static PyObject *meth_QStandardItem_setTextAlignment(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setTextAlignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::Alignment* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_Qt_Alignment, &a0, &a0State))
        {
            sipCpp->setTextAlignment(*a0);
            sipReleaseType(a0,sipType_Qt_Alignment,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setTextAlignment, doc_QStandardItem_setTextAlignment);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setBackground, "QStandardItem.setBackground(QBrush)");

extern "C" {static PyObject *meth_QStandardItem_setBackground(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setBackground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setBackground(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setBackground, doc_QStandardItem_setBackground);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setForeground, "QStandardItem.setForeground(QBrush)");

extern "C" {static PyObject *meth_QStandardItem_setForeground(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setForeground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setForeground(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setForeground, doc_QStandardItem_setForeground);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setCheckState, "QStandardItem.setCheckState(Qt.CheckState)");

extern "C" {static PyObject *meth_QStandardItem_setCheckState(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setCheckState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::CheckState a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_Qt_CheckState, &a0))
        {
            sipCpp->setCheckState(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setCheckState, doc_QStandardItem_setCheckState);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setAccessibleText, "QStandardItem.setAccessibleText(str)");

extern "C" {static PyObject *meth_QStandardItem_setAccessibleText(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setAccessibleText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setAccessibleText(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setAccessibleText, doc_QStandardItem_setAccessibleText);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_setAccessibleDescription, "QStandardItem.setAccessibleDescription(str)");

extern "C" {static PyObject *meth_QStandardItem_setAccessibleDescription(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_setAccessibleDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setAccessibleDescription(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_setAccessibleDescription, doc_QStandardItem_setAccessibleDescription);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_appendRow, "QStandardItem.appendRow(list-of-QStandardItem)\n"
    "QStandardItem.appendRow(QStandardItem)");

extern "C" {static PyObject *meth_QStandardItem_appendRow(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_appendRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QStandardItem*>* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ3", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QList_0101QStandardItem,&a0, &a0State))
        {
            sipCpp->appendRow(*a0);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a0),sipType_QList_0101QStandardItem,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QStandardItem* a0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QStandardItem, &a0))
        {
            sipCpp->appendRow(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_appendRow, doc_QStandardItem_appendRow);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_appendColumn, "QStandardItem.appendColumn(list-of-QStandardItem)");

extern "C" {static PyObject *meth_QStandardItem_appendColumn(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_appendColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QStandardItem*>* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ3", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QList_0101QStandardItem,&a0, &a0State))
        {
            sipCpp->appendColumn(*a0);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a0),sipType_QList_0101QStandardItem,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_appendColumn, doc_QStandardItem_appendColumn);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_appendRows, "QStandardItem.appendRows(list-of-QStandardItem)");

extern "C" {static PyObject *meth_QStandardItem_appendRows(PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_appendRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QStandardItem*>* a0;
        int a0State = 0;
        QStandardItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ3", &sipSelf, sipType_QStandardItem, &sipCpp, sipType_QList_0101QStandardItem,&a0, &a0State))
        {
            sipCpp->appendRows(*a0);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a0),sipType_QList_0101QStandardItem,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_appendRows, doc_QStandardItem_appendRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItem_emitDataChanged, "QStandardItem.emitDataChanged()");

extern "C" {static PyObject *meth_QStandardItem_emitDataChanged(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItem_emitDataChanged(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItem *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItem, &sipCpp))
        {
            sipCpp->sipProtect_emitDataChanged();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItem, sipName_emitDataChanged, doc_QStandardItem_emitDataChanged);

    return NULL;
}


extern "C" {static PyObject *slot_QStandardItem___ge__(PyObject *,PyObject *);}
static PyObject *slot_QStandardItem___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    QStandardItem *sipCpp = reinterpret_cast<QStandardItem *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QStandardItem));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QStandardItem* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QStandardItem, &a0))
        {
            bool sipRes;

            sipRes = !sipCpp->QStandardItem::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ge_slot,sipType_QStandardItem,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QStandardItem___lt__(PyObject *,PyObject *);}
static PyObject *slot_QStandardItem___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    QStandardItem *sipCpp = reinterpret_cast<QStandardItem *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QStandardItem));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QStandardItem* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QStandardItem, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QStandardItem::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,lt_slot,sipType_QStandardItem,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QStandardItem(void *, const sipTypeDef *);}
static void *cast_QStandardItem(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QStandardItem)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QStandardItem(void *, int);}
static void release_QStandardItem(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQStandardItem *>(sipCppV);
    else
        delete reinterpret_cast<QStandardItem *>(sipCppV);
}


extern "C" {static void dealloc_QStandardItem(sipSimpleWrapper *);}
static void dealloc_QStandardItem(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQStandardItem *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QStandardItem(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QStandardItem(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QStandardItem(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQStandardItem *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQStandardItem();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            sipCpp = new sipQStandardItem(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QIcon* a0;
        const QString* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1", sipType_QIcon, &a0, sipType_QString,&a1, &a1State))
        {
            sipCpp = new sipQStandardItem(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1 = 1;

        static const char *sipKwdList[] = {
            NULL,
            sipName_columns,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "i|i", &a0, &a1))
        {
            sipCpp = new sipQStandardItem(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QStandardItem* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QStandardItem, &a0))
        {
            sipCpp = new sipQStandardItem(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QStandardItem[] = {
    {(void *)slot_QStandardItem___ge__, ge_slot},
    {(void *)slot_QStandardItem___lt__, lt_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QStandardItem[] = {
    {SIP_MLNAME_CAST(sipName_accessibleDescription), meth_QStandardItem_accessibleDescription, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_accessibleDescription)},
    {SIP_MLNAME_CAST(sipName_accessibleText), meth_QStandardItem_accessibleText, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_accessibleText)},
    {SIP_MLNAME_CAST(sipName_appendColumn), meth_QStandardItem_appendColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_appendColumn)},
    {SIP_MLNAME_CAST(sipName_appendRow), meth_QStandardItem_appendRow, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_appendRow)},
    {SIP_MLNAME_CAST(sipName_appendRows), meth_QStandardItem_appendRows, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_appendRows)},
    {SIP_MLNAME_CAST(sipName_background), meth_QStandardItem_background, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_background)},
    {SIP_MLNAME_CAST(sipName_checkState), meth_QStandardItem_checkState, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_checkState)},
    {SIP_MLNAME_CAST(sipName_child), (PyCFunction)meth_QStandardItem_child, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItem_child)},
    {SIP_MLNAME_CAST(sipName_clone), meth_QStandardItem_clone, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_clone)},
    {SIP_MLNAME_CAST(sipName_column), meth_QStandardItem_column, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_column)},
    {SIP_MLNAME_CAST(sipName_columnCount), meth_QStandardItem_columnCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_columnCount)},
    {SIP_MLNAME_CAST(sipName_data), (PyCFunction)meth_QStandardItem_data, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItem_data)},
    {SIP_MLNAME_CAST(sipName_emitDataChanged), (PyCFunction)meth_QStandardItem_emitDataChanged, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItem_emitDataChanged)},
    {SIP_MLNAME_CAST(sipName_flags), meth_QStandardItem_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_flags)},
    {SIP_MLNAME_CAST(sipName_font), meth_QStandardItem_font, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_font)},
    {SIP_MLNAME_CAST(sipName_foreground), meth_QStandardItem_foreground, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_foreground)},
    {SIP_MLNAME_CAST(sipName_hasChildren), meth_QStandardItem_hasChildren, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_hasChildren)},
    {SIP_MLNAME_CAST(sipName_icon), meth_QStandardItem_icon, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_icon)},
    {SIP_MLNAME_CAST(sipName_index), meth_QStandardItem_index, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_index)},
    {SIP_MLNAME_CAST(sipName_insertColumn), meth_QStandardItem_insertColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_insertColumn)},
    {SIP_MLNAME_CAST(sipName_insertColumns), meth_QStandardItem_insertColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_insertColumns)},
    {SIP_MLNAME_CAST(sipName_insertRow), meth_QStandardItem_insertRow, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_insertRow)},
    {SIP_MLNAME_CAST(sipName_insertRows), meth_QStandardItem_insertRows, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_insertRows)},
    {SIP_MLNAME_CAST(sipName_isCheckable), meth_QStandardItem_isCheckable, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_isCheckable)},
    {SIP_MLNAME_CAST(sipName_isDragEnabled), meth_QStandardItem_isDragEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_isDragEnabled)},
    {SIP_MLNAME_CAST(sipName_isDropEnabled), meth_QStandardItem_isDropEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_isDropEnabled)},
    {SIP_MLNAME_CAST(sipName_isEditable), meth_QStandardItem_isEditable, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_isEditable)},
    {SIP_MLNAME_CAST(sipName_isEnabled), meth_QStandardItem_isEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_isEnabled)},
    {SIP_MLNAME_CAST(sipName_isSelectable), meth_QStandardItem_isSelectable, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_isSelectable)},
    {SIP_MLNAME_CAST(sipName_isTristate), meth_QStandardItem_isTristate, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_isTristate)},
    {SIP_MLNAME_CAST(sipName_model), meth_QStandardItem_model, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_model)},
    {SIP_MLNAME_CAST(sipName_parent), meth_QStandardItem_parent, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_parent)},
    {SIP_MLNAME_CAST(sipName_read), meth_QStandardItem_read, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_read)},
    {SIP_MLNAME_CAST(sipName_removeColumn), meth_QStandardItem_removeColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_removeColumn)},
    {SIP_MLNAME_CAST(sipName_removeColumns), meth_QStandardItem_removeColumns, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_removeColumns)},
    {SIP_MLNAME_CAST(sipName_removeRow), meth_QStandardItem_removeRow, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_removeRow)},
    {SIP_MLNAME_CAST(sipName_removeRows), meth_QStandardItem_removeRows, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_removeRows)},
    {SIP_MLNAME_CAST(sipName_row), meth_QStandardItem_row, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_row)},
    {SIP_MLNAME_CAST(sipName_rowCount), meth_QStandardItem_rowCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_rowCount)},
    {SIP_MLNAME_CAST(sipName_setAccessibleDescription), meth_QStandardItem_setAccessibleDescription, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setAccessibleDescription)},
    {SIP_MLNAME_CAST(sipName_setAccessibleText), meth_QStandardItem_setAccessibleText, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setAccessibleText)},
    {SIP_MLNAME_CAST(sipName_setBackground), meth_QStandardItem_setBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setBackground)},
    {SIP_MLNAME_CAST(sipName_setCheckState), meth_QStandardItem_setCheckState, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setCheckState)},
    {SIP_MLNAME_CAST(sipName_setCheckable), meth_QStandardItem_setCheckable, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setCheckable)},
    {SIP_MLNAME_CAST(sipName_setChild), meth_QStandardItem_setChild, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setChild)},
    {SIP_MLNAME_CAST(sipName_setColumnCount), meth_QStandardItem_setColumnCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setColumnCount)},
    {SIP_MLNAME_CAST(sipName_setData), (PyCFunction)meth_QStandardItem_setData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItem_setData)},
    {SIP_MLNAME_CAST(sipName_setDragEnabled), meth_QStandardItem_setDragEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setDragEnabled)},
    {SIP_MLNAME_CAST(sipName_setDropEnabled), meth_QStandardItem_setDropEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setDropEnabled)},
    {SIP_MLNAME_CAST(sipName_setEditable), meth_QStandardItem_setEditable, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setEditable)},
    {SIP_MLNAME_CAST(sipName_setEnabled), meth_QStandardItem_setEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setEnabled)},
    {SIP_MLNAME_CAST(sipName_setFlags), meth_QStandardItem_setFlags, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setFlags)},
    {SIP_MLNAME_CAST(sipName_setFont), meth_QStandardItem_setFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setFont)},
    {SIP_MLNAME_CAST(sipName_setForeground), meth_QStandardItem_setForeground, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setForeground)},
    {SIP_MLNAME_CAST(sipName_setIcon), meth_QStandardItem_setIcon, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setIcon)},
    {SIP_MLNAME_CAST(sipName_setRowCount), meth_QStandardItem_setRowCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setRowCount)},
    {SIP_MLNAME_CAST(sipName_setSelectable), meth_QStandardItem_setSelectable, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setSelectable)},
    {SIP_MLNAME_CAST(sipName_setSizeHint), meth_QStandardItem_setSizeHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setSizeHint)},
    {SIP_MLNAME_CAST(sipName_setStatusTip), meth_QStandardItem_setStatusTip, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setStatusTip)},
    {SIP_MLNAME_CAST(sipName_setText), meth_QStandardItem_setText, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setText)},
    {SIP_MLNAME_CAST(sipName_setTextAlignment), meth_QStandardItem_setTextAlignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setTextAlignment)},
    {SIP_MLNAME_CAST(sipName_setToolTip), meth_QStandardItem_setToolTip, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setToolTip)},
    {SIP_MLNAME_CAST(sipName_setTristate), meth_QStandardItem_setTristate, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setTristate)},
    {SIP_MLNAME_CAST(sipName_setWhatsThis), meth_QStandardItem_setWhatsThis, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_setWhatsThis)},
    {SIP_MLNAME_CAST(sipName_sizeHint), meth_QStandardItem_sizeHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_sizeHint)},
    {SIP_MLNAME_CAST(sipName_sortChildren), (PyCFunction)meth_QStandardItem_sortChildren, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItem_sortChildren)},
    {SIP_MLNAME_CAST(sipName_statusTip), meth_QStandardItem_statusTip, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_statusTip)},
    {SIP_MLNAME_CAST(sipName_takeChild), (PyCFunction)meth_QStandardItem_takeChild, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItem_takeChild)},
    {SIP_MLNAME_CAST(sipName_takeColumn), meth_QStandardItem_takeColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_takeColumn)},
    {SIP_MLNAME_CAST(sipName_takeRow), meth_QStandardItem_takeRow, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_takeRow)},
    {SIP_MLNAME_CAST(sipName_text), meth_QStandardItem_text, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_text)},
    {SIP_MLNAME_CAST(sipName_textAlignment), meth_QStandardItem_textAlignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_textAlignment)},
    {SIP_MLNAME_CAST(sipName_toolTip), meth_QStandardItem_toolTip, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_toolTip)},
    {SIP_MLNAME_CAST(sipName_type), meth_QStandardItem_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_type)},
    {SIP_MLNAME_CAST(sipName_whatsThis), meth_QStandardItem_whatsThis, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_whatsThis)},
    {SIP_MLNAME_CAST(sipName_write), meth_QStandardItem_write, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItem_write)}
};

static sipEnumMemberDef enummembers_QStandardItem[] = {
    {sipName_Type, static_cast<int>(QStandardItem::Type), 250},
    {sipName_UserType, static_cast<int>(QStandardItem::UserType), 250},
};

PyDoc_STRVAR(doc_QStandardItem, "\1QStandardItem()\n"
    "QStandardItem(str)\n"
    "QStandardItem(QIcon, str)\n"
    "QStandardItem(int, int columns=1)\n"
    "QStandardItem(QStandardItem)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QStandardItem = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QStandardItem,
        {0}
    },
    {
        sipNameNr_QStandardItem,
        {0, 0, 1},
        76, methods_QStandardItem,
        2, enummembers_QStandardItem,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QStandardItem,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    -1,
    0,
    slots_QStandardItem,
    init_type_QStandardItem,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QStandardItem,
    0,
    0,
    0,
    release_QStandardItem,
    cast_QStandardItem,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 61968 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 61972 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 104 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstandarditemmodel.sip"
#include <qstandarditemmodel.h>
#line 61975 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 61978 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 61981 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 61984 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 61987 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 61990 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 61993 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 61996 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 61999 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qmap.sip"
#include <qmap.h>
#line 62002 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 62005 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 62008 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 62011 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 266 "sip/QtCore/qpycore_qhash.sip"
#include <qhash.h>
#line 62014 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 62017 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 62020 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 62023 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 70 "sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 62026 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 105 "sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 62029 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 321 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 62032 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 62035 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 62038 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 62041 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 62044 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 62047 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 62050 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 62053 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 62056 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 62059 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 62062 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 62065 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 62068 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQStandardItemModel : public QStandardItemModel
{
public:
    sipQStandardItemModel(QObject*);
    sipQStandardItemModel(int,int,QObject*);
    virtual ~sipQStandardItemModel();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtect_encodeData(const QModelIndexList&,QDataStream&) const;
    bool sipProtect_decodeData(int,int,const QModelIndex&,QDataStream&);
    void sipProtect_beginInsertRows(const QModelIndex&,int,int);
    void sipProtect_endInsertRows();
    void sipProtect_beginRemoveRows(const QModelIndex&,int,int);
    void sipProtect_endRemoveRows();
    void sipProtect_beginInsertColumns(const QModelIndex&,int,int);
    void sipProtect_endInsertColumns();
    void sipProtect_beginRemoveColumns(const QModelIndex&,int,int);
    void sipProtect_endRemoveColumns();
    QModelIndexList sipProtect_persistentIndexList() const;
    void sipProtect_changePersistentIndex(const QModelIndex&,const QModelIndex&);
    void sipProtect_changePersistentIndexList(const QModelIndexList&,const QModelIndexList&);
    QModelIndex sipProtect_createIndex(int,int,void*) const;
    bool sipProtect_beginMoveRows(const QModelIndex&,int,int,const QModelIndex&,int);
    void sipProtect_endMoveRows();
    bool sipProtect_beginMoveColumns(const QModelIndex&,int,int,const QModelIndex&,int);
    void sipProtect_endMoveColumns();
    void sipProtect_beginResetModel();
    void sipProtect_endResetModel();
    void sipProtect_resetInternalData();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool moveColumns(const QModelIndex&,int,int,const QModelIndex&,int);
    bool moveRows(const QModelIndex&,int,int,const QModelIndex&,int);
    bool canDropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&) const;
    QHash<int,QByteArray> roleNames() const;
    Qt::DropActions supportedDragActions() const;
    void revert();
    bool submit();
    QSize span(const QModelIndex&) const;
    QModelIndexList match(const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags) const;
    QModelIndex buddy(const QModelIndex&) const;
    bool canFetchMore(const QModelIndex&) const;
    void fetchMore(const QModelIndex&);
    QModelIndex sibling(int,int,const QModelIndex&) const;
    bool dropMimeData(const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);
    QMimeData* mimeData(const QModelIndexList&) const;
    QStringList mimeTypes() const;
    void sort(int,Qt::SortOrder);
    bool setItemData(const QModelIndex&,const QMap<int,QVariant>&);
    QMap<int,QVariant> itemData(const QModelIndex&) const;
    Qt::DropActions supportedDropActions() const;
    Qt::ItemFlags flags(const QModelIndex&) const;
    bool removeColumns(int,int,const QModelIndex&);
    bool removeRows(int,int,const QModelIndex&);
    bool insertColumns(int,int,const QModelIndex&);
    bool insertRows(int,int,const QModelIndex&);
    bool setHeaderData(int,Qt::Orientation,const QVariant&,int);
    QVariant headerData(int,Qt::Orientation,int) const;
    bool setData(const QModelIndex&,const QVariant&,int);
    QVariant data(const QModelIndex&,int) const;
    bool hasChildren(const QModelIndex&) const;
    int columnCount(const QModelIndex&) const;
    int rowCount(const QModelIndex&) const;
    QModelIndex parent(const QModelIndex&) const;
    QModelIndex index(int,int,const QModelIndex&) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQStandardItemModel(const sipQStandardItemModel &);
    sipQStandardItemModel &operator = (const sipQStandardItemModel &);

    char sipPyMethods[41];
};

sipQStandardItemModel::sipQStandardItemModel(QObject*a0): QStandardItemModel(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQStandardItemModel::sipQStandardItemModel(int a0,int a1,QObject*a2): QStandardItemModel(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQStandardItemModel::~sipQStandardItemModel()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQStandardItemModel::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QStandardItemModel);
}

int sipQStandardItemModel::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QStandardItemModel::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QStandardItemModel,_c,_id,_a);

    return _id;
}

void *sipQStandardItemModel::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QStandardItemModel, _clname, &sipCpp) ? sipCpp : QStandardItemModel::qt_metacast(_clname));
}

void sipQStandardItemModel::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QStandardItemModel::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQStandardItemModel::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QStandardItemModel::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQStandardItemModel::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QStandardItemModel::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQStandardItemModel::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QStandardItemModel::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQStandardItemModel::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QStandardItemModel::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQStandardItemModel::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QStandardItemModel::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQStandardItemModel::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QStandardItemModel::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQStandardItemModel::moveColumns(const QModelIndex& a0,int a1,int a2,const QModelIndex& a3,int a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_moveColumns);

    if (!sipMeth)
        return QStandardItemModel::moveColumns(a0,a1,a2,a3,a4);

    typedef bool (*sipVH_QtCore_59)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,int,const QModelIndex&,int);

    return ((sipVH_QtCore_59)(sipModuleAPI_QtGui_QtCore->em_virthandlers[59]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

bool sipQStandardItemModel::moveRows(const QModelIndex& a0,int a1,int a2,const QModelIndex& a3,int a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_moveRows);

    if (!sipMeth)
        return QStandardItemModel::moveRows(a0,a1,a2,a3,a4);

    typedef bool (*sipVH_QtCore_59)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,int,const QModelIndex&,int);

    return ((sipVH_QtCore_59)(sipModuleAPI_QtGui_QtCore->em_virthandlers[59]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

bool sipQStandardItemModel::canDropMimeData(const QMimeData*a0,Qt::DropAction a1,int a2,int a3,const QModelIndex& a4) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_canDropMimeData);

    if (!sipMeth)
        return QStandardItemModel::canDropMimeData(a0,a1,a2,a3,a4);

    typedef bool (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);

    return ((sipVH_QtCore_33)(sipModuleAPI_QtGui_QtCore->em_virthandlers[33]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

QHash<int,QByteArray> sipQStandardItemModel::roleNames() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_roleNames);

    if (!sipMeth)
        return QStandardItemModel::roleNames();

    typedef QHash<int,QByteArray> (*sipVH_QtCore_60)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_60)(sipModuleAPI_QtGui_QtCore->em_virthandlers[60]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

Qt::DropActions sipQStandardItemModel::supportedDragActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,NULL,sipName_supportedDragActions);

    if (!sipMeth)
        return QStandardItemModel::supportedDragActions();

    typedef Qt::DropActions (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtGui_QtCore->em_virthandlers[18]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQStandardItemModel::revert()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_revert);

    if (!sipMeth)
    {
        QStandardItemModel::revert();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtGui_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQStandardItemModel::submit()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_submit);

    if (!sipMeth)
        return QStandardItemModel::submit();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtGui_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQStandardItemModel::span(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,NULL,sipName_span);

    if (!sipMeth)
        return QStandardItemModel::span(a0);

    typedef QSize (*sipVH_QtCore_29)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_29)(sipModuleAPI_QtGui_QtCore->em_virthandlers[29]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QModelIndexList sipQStandardItemModel::match(const QModelIndex& a0,int a1,const QVariant& a2,int a3,Qt::MatchFlags a4) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,NULL,sipName_match);

    if (!sipMeth)
        return QStandardItemModel::match(a0,a1,a2,a3,a4);

    typedef QList<QModelIndex> (*sipVH_QtCore_28)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int,const QVariant&,int,Qt::MatchFlags);

    return ((sipVH_QtCore_28)(sipModuleAPI_QtGui_QtCore->em_virthandlers[28]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

QModelIndex sipQStandardItemModel::buddy(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[16]),sipPySelf,NULL,sipName_buddy);

    if (!sipMeth)
        return QStandardItemModel::buddy(a0);

    typedef QModelIndex (*sipVH_QtCore_30)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_30)(sipModuleAPI_QtGui_QtCore->em_virthandlers[30]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQStandardItemModel::canFetchMore(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[17]),sipPySelf,NULL,sipName_canFetchMore);

    if (!sipMeth)
        return QStandardItemModel::canFetchMore(a0);

    typedef bool (*sipVH_QtCore_31)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_31)(sipModuleAPI_QtGui_QtCore->em_virthandlers[31]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQStandardItemModel::fetchMore(const QModelIndex& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_fetchMore);

    if (!sipMeth)
    {
        QStandardItemModel::fetchMore(a0);
        return;
    }

    typedef void (*sipVH_QtCore_32)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    ((sipVH_QtCore_32)(sipModuleAPI_QtGui_QtCore->em_virthandlers[32]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QModelIndex sipQStandardItemModel::sibling(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[19]),sipPySelf,NULL,sipName_sibling);

    if (!sipMeth)
        return QStandardItemModel::sibling(a0,a1,a2);

    typedef QModelIndex (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_17)(sipModuleAPI_QtGui_QtCore->em_virthandlers[17]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQStandardItemModel::dropMimeData(const QMimeData*a0,Qt::DropAction a1,int a2,int a3,const QModelIndex& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_dropMimeData);

    if (!sipMeth)
        return QStandardItemModel::dropMimeData(a0,a1,a2,a3,a4);

    typedef bool (*sipVH_QtCore_33)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMimeData*,Qt::DropAction,int,int,const QModelIndex&);

    return ((sipVH_QtCore_33)(sipModuleAPI_QtGui_QtCore->em_virthandlers[33]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

QMimeData* sipQStandardItemModel::mimeData(const QModelIndexList& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_mimeData);

    if (!sipMeth)
        return QStandardItemModel::mimeData(a0);

    typedef QMimeData* (*sipVH_QtCore_34)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList<QModelIndex>&);

    return ((sipVH_QtCore_34)(sipModuleAPI_QtGui_QtCore->em_virthandlers[34]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QStringList sipQStandardItemModel::mimeTypes() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_mimeTypes);

    if (!sipMeth)
        return QStandardItemModel::mimeTypes();

    typedef QStringList (*sipVH_QtCore_27)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_27)(sipModuleAPI_QtGui_QtCore->em_virthandlers[27]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQStandardItemModel::sort(int a0,Qt::SortOrder a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,NULL,sipName_sort);

    if (!sipMeth)
    {
        QStandardItemModel::sort(a0,a1);
        return;
    }

    typedef void (*sipVH_QtCore_19)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::SortOrder);

    ((sipVH_QtCore_19)(sipModuleAPI_QtGui_QtCore->em_virthandlers[19]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQStandardItemModel::setItemData(const QModelIndex& a0,const QMap<int,QVariant>& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,NULL,sipName_setItemData);

    if (!sipMeth)
        return QStandardItemModel::setItemData(a0,a1);

    typedef bool (*sipVH_QtCore_56)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QMap<int,QVariant>&);

    return ((sipVH_QtCore_56)(sipModuleAPI_QtGui_QtCore->em_virthandlers[56]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QMap<int,QVariant> sipQStandardItemModel::itemData(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,NULL,sipName_itemData);

    if (!sipMeth)
        return QStandardItemModel::itemData(a0);

    typedef QMap<int,QVariant> (*sipVH_QtCore_57)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_57)(sipModuleAPI_QtGui_QtCore->em_virthandlers[57]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

Qt::DropActions sipQStandardItemModel::supportedDropActions() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_supportedDropActions);

    if (!sipMeth)
        return QStandardItemModel::supportedDropActions();

    typedef Qt::DropActions (*sipVH_QtCore_18)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_18)(sipModuleAPI_QtGui_QtCore->em_virthandlers[18]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

Qt::ItemFlags sipQStandardItemModel::flags(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,NULL,sipName_flags);

    if (!sipMeth)
        return QStandardItemModel::flags(a0);

    typedef Qt::ItemFlags (*sipVH_QtCore_21)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_21)(sipModuleAPI_QtGui_QtCore->em_virthandlers[21]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQStandardItemModel::removeColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_removeColumns);

    if (!sipMeth)
        return QStandardItemModel::removeColumns(a0,a1,a2);

    typedef bool (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtGui_QtCore->em_virthandlers[20]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQStandardItemModel::removeRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_removeRows);

    if (!sipMeth)
        return QStandardItemModel::removeRows(a0,a1,a2);

    typedef bool (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtGui_QtCore->em_virthandlers[20]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQStandardItemModel::insertColumns(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_insertColumns);

    if (!sipMeth)
        return QStandardItemModel::insertColumns(a0,a1,a2);

    typedef bool (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtGui_QtCore->em_virthandlers[20]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQStandardItemModel::insertRows(int a0,int a1,const QModelIndex& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_insertRows);

    if (!sipMeth)
        return QStandardItemModel::insertRows(a0,a1,a2);

    typedef bool (*sipVH_QtCore_20)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_20)(sipModuleAPI_QtGui_QtCore->em_virthandlers[20]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQStandardItemModel::setHeaderData(int a0,Qt::Orientation a1,const QVariant& a2,int a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_setHeaderData);

    if (!sipMeth)
        return QStandardItemModel::setHeaderData(a0,a1,a2,a3);

    typedef bool (*sipVH_QtCore_35)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::Orientation,const QVariant&,int);

    return ((sipVH_QtCore_35)(sipModuleAPI_QtGui_QtCore->em_virthandlers[35]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3);
}

QVariant sipQStandardItemModel::headerData(int a0,Qt::Orientation a1,int a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,NULL,sipName_headerData);

    if (!sipMeth)
        return QStandardItemModel::headerData(a0,a1,a2);

    typedef QVariant (*sipVH_QtCore_36)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,Qt::Orientation,int);

    return ((sipVH_QtCore_36)(sipModuleAPI_QtGui_QtCore->em_virthandlers[36]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

bool sipQStandardItemModel::setData(const QModelIndex& a0,const QVariant& a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
        return QStandardItemModel::setData(a0,a1,a2);

    typedef bool (*sipVH_QtCore_22)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,const QVariant&,int);

    return ((sipVH_QtCore_22)(sipModuleAPI_QtGui_QtCore->em_virthandlers[22]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

QVariant sipQStandardItemModel::data(const QModelIndex& a0,int a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[35]),sipPySelf,NULL,sipName_data);

    if (!sipMeth)
        return QStandardItemModel::data(a0,a1);

    typedef QVariant (*sipVH_QtCore_23)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&,int);

    return ((sipVH_QtCore_23)(sipModuleAPI_QtGui_QtCore->em_virthandlers[23]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQStandardItemModel::hasChildren(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[36]),sipPySelf,NULL,sipName_hasChildren);

    if (!sipMeth)
        return QStandardItemModel::hasChildren(a0);

    typedef bool (*sipVH_QtCore_31)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_31)(sipModuleAPI_QtGui_QtCore->em_virthandlers[31]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQStandardItemModel::columnCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[37]),sipPySelf,NULL,sipName_columnCount);

    if (!sipMeth)
        return QStandardItemModel::columnCount(a0);

    typedef int (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_24)(sipModuleAPI_QtGui_QtCore->em_virthandlers[24]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQStandardItemModel::rowCount(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[38]),sipPySelf,NULL,sipName_rowCount);

    if (!sipMeth)
        return QStandardItemModel::rowCount(a0);

    typedef int (*sipVH_QtCore_24)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_24)(sipModuleAPI_QtGui_QtCore->em_virthandlers[24]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QModelIndex sipQStandardItemModel::parent(const QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[39]),sipPySelf,NULL,sipName_parent);

    if (!sipMeth)
        return QStandardItemModel::parent(a0);

    typedef QModelIndex (*sipVH_QtCore_30)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QModelIndex&);

    return ((sipVH_QtCore_30)(sipModuleAPI_QtGui_QtCore->em_virthandlers[30]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QModelIndex sipQStandardItemModel::index(int a0,int a1,const QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[40]),sipPySelf,NULL,sipName_index);

    if (!sipMeth)
        return QStandardItemModel::index(a0,a1,a2);

    typedef QModelIndex (*sipVH_QtCore_17)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,const QModelIndex&);

    return ((sipVH_QtCore_17)(sipModuleAPI_QtGui_QtCore->em_virthandlers[17]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

QObject* sipQStandardItemModel::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQStandardItemModel::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQStandardItemModel::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQStandardItemModel::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQStandardItemModel::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQStandardItemModel::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQStandardItemModel::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQStandardItemModel::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQStandardItemModel::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQStandardItemModel::sipProtect_encodeData(const QModelIndexList& a0,QDataStream& a1) const
{
    QAbstractItemModel::encodeData(a0,a1);
}

bool sipQStandardItemModel::sipProtect_decodeData(int a0,int a1,const QModelIndex& a2,QDataStream& a3)
{
    return QAbstractItemModel::decodeData(a0,a1,a2,a3);
}

void sipQStandardItemModel::sipProtect_beginInsertRows(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginInsertRows(a0,a1,a2);
}

void sipQStandardItemModel::sipProtect_endInsertRows()
{
    QAbstractItemModel::endInsertRows();
}

void sipQStandardItemModel::sipProtect_beginRemoveRows(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginRemoveRows(a0,a1,a2);
}

void sipQStandardItemModel::sipProtect_endRemoveRows()
{
    QAbstractItemModel::endRemoveRows();
}

void sipQStandardItemModel::sipProtect_beginInsertColumns(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginInsertColumns(a0,a1,a2);
}

void sipQStandardItemModel::sipProtect_endInsertColumns()
{
    QAbstractItemModel::endInsertColumns();
}

void sipQStandardItemModel::sipProtect_beginRemoveColumns(const QModelIndex& a0,int a1,int a2)
{
    QAbstractItemModel::beginRemoveColumns(a0,a1,a2);
}

void sipQStandardItemModel::sipProtect_endRemoveColumns()
{
    QAbstractItemModel::endRemoveColumns();
}

QModelIndexList sipQStandardItemModel::sipProtect_persistentIndexList() const
{
    return QAbstractItemModel::persistentIndexList();
}

void sipQStandardItemModel::sipProtect_changePersistentIndex(const QModelIndex& a0,const QModelIndex& a1)
{
    QAbstractItemModel::changePersistentIndex(a0,a1);
}

void sipQStandardItemModel::sipProtect_changePersistentIndexList(const QModelIndexList& a0,const QModelIndexList& a1)
{
    QAbstractItemModel::changePersistentIndexList(a0,a1);
}

QModelIndex sipQStandardItemModel::sipProtect_createIndex(int a0,int a1,void*a2) const
{
    return QAbstractItemModel::createIndex(a0,a1,a2);
}

bool sipQStandardItemModel::sipProtect_beginMoveRows(const QModelIndex& a0,int a1,int a2,const QModelIndex& a3,int a4)
{
    return QAbstractItemModel::beginMoveRows(a0,a1,a2,a3,a4);
}

void sipQStandardItemModel::sipProtect_endMoveRows()
{
    QAbstractItemModel::endMoveRows();
}

bool sipQStandardItemModel::sipProtect_beginMoveColumns(const QModelIndex& a0,int a1,int a2,const QModelIndex& a3,int a4)
{
    return QAbstractItemModel::beginMoveColumns(a0,a1,a2,a3,a4);
}

void sipQStandardItemModel::sipProtect_endMoveColumns()
{
    QAbstractItemModel::endMoveColumns();
}

void sipQStandardItemModel::sipProtect_beginResetModel()
{
    QAbstractItemModel::beginResetModel();
}

void sipQStandardItemModel::sipProtect_endResetModel()
{
    QAbstractItemModel::endResetModel();
}

void sipQStandardItemModel::sipProtect_resetInternalData()
{
    QAbstractItemModel::resetInternalData();
}


PyDoc_STRVAR(doc_QStandardItemModel_sender, "QStandardItemModel.sender() -> QObject");

extern "C" {static PyObject *meth_QStandardItemModel_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 63041 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_sender, doc_QStandardItemModel_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_receivers, "QStandardItemModel.receivers(signal) -> int");

extern "C" {static PyObject *meth_QStandardItemModel_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 63100 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_receivers, doc_QStandardItemModel_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_timerEvent, "QStandardItemModel.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QStandardItemModel_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_timerEvent, doc_QStandardItemModel_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_childEvent, "QStandardItemModel.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QStandardItemModel_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_childEvent, doc_QStandardItemModel_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_customEvent, "QStandardItemModel.customEvent(QEvent)");

extern "C" {static PyObject *meth_QStandardItemModel_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_customEvent, doc_QStandardItemModel_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_connectNotify, "QStandardItemModel.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QStandardItemModel_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_connectNotify, doc_QStandardItemModel_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_disconnectNotify, "QStandardItemModel.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QStandardItemModel_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_disconnectNotify, doc_QStandardItemModel_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_senderSignalIndex, "QStandardItemModel.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QStandardItemModel_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_senderSignalIndex, doc_QStandardItemModel_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_isSignalConnected, "QStandardItemModel.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_isSignalConnected, doc_QStandardItemModel_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_encodeData, "QStandardItemModel.encodeData(list-of-QModelIndex, QDataStream)");

extern "C" {static PyObject *meth_QStandardItemModel_encodeData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_encodeData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndexList* a0;
        int a0State = 0;
        QDataStream* a1;
        const sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QList_0100QModelIndex,&a0, &a0State, sipType_QDataStream, &a1))
        {
            sipCpp->sipProtect_encodeData(*a0,*a1);
            sipReleaseType(const_cast<QModelIndexList *>(a0),sipType_QList_0100QModelIndex,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_encodeData, doc_QStandardItemModel_encodeData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_decodeData, "QStandardItemModel.decodeData(int, int, QModelIndex, QDataStream) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_decodeData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_decodeData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const QModelIndex* a2;
        QDataStream* a3;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiiJ9J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2, sipType_QDataStream, &a3))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_decodeData(a0,a1,*a2,*a3);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_decodeData, doc_QStandardItemModel_decodeData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_beginInsertRows, "QStandardItemModel.beginInsertRows(QModelIndex, int, int)");

extern "C" {static PyObject *meth_QStandardItemModel_beginInsertRows(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_beginInsertRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex* a0;
        int a1;
        int a2;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9ii", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2))
        {
            sipCpp->sipProtect_beginInsertRows(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_beginInsertRows, doc_QStandardItemModel_beginInsertRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_endInsertRows, "QStandardItemModel.endInsertRows()");

extern "C" {static PyObject *meth_QStandardItemModel_endInsertRows(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_endInsertRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->sipProtect_endInsertRows();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_endInsertRows, doc_QStandardItemModel_endInsertRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_beginRemoveRows, "QStandardItemModel.beginRemoveRows(QModelIndex, int, int)");

extern "C" {static PyObject *meth_QStandardItemModel_beginRemoveRows(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_beginRemoveRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex* a0;
        int a1;
        int a2;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9ii", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2))
        {
            sipCpp->sipProtect_beginRemoveRows(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_beginRemoveRows, doc_QStandardItemModel_beginRemoveRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_endRemoveRows, "QStandardItemModel.endRemoveRows()");

extern "C" {static PyObject *meth_QStandardItemModel_endRemoveRows(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_endRemoveRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->sipProtect_endRemoveRows();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_endRemoveRows, doc_QStandardItemModel_endRemoveRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_beginInsertColumns, "QStandardItemModel.beginInsertColumns(QModelIndex, int, int)");

extern "C" {static PyObject *meth_QStandardItemModel_beginInsertColumns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_beginInsertColumns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex* a0;
        int a1;
        int a2;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9ii", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2))
        {
            sipCpp->sipProtect_beginInsertColumns(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_beginInsertColumns, doc_QStandardItemModel_beginInsertColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_endInsertColumns, "QStandardItemModel.endInsertColumns()");

extern "C" {static PyObject *meth_QStandardItemModel_endInsertColumns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_endInsertColumns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->sipProtect_endInsertColumns();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_endInsertColumns, doc_QStandardItemModel_endInsertColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_beginRemoveColumns, "QStandardItemModel.beginRemoveColumns(QModelIndex, int, int)");

extern "C" {static PyObject *meth_QStandardItemModel_beginRemoveColumns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_beginRemoveColumns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex* a0;
        int a1;
        int a2;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9ii", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2))
        {
            sipCpp->sipProtect_beginRemoveColumns(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_beginRemoveColumns, doc_QStandardItemModel_beginRemoveColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_endRemoveColumns, "QStandardItemModel.endRemoveColumns()");

extern "C" {static PyObject *meth_QStandardItemModel_endRemoveColumns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_endRemoveColumns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->sipProtect_endRemoveColumns();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_endRemoveColumns, doc_QStandardItemModel_endRemoveColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_persistentIndexList, "QStandardItemModel.persistentIndexList() -> list-of-QModelIndex");

extern "C" {static PyObject *meth_QStandardItemModel_persistentIndexList(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_persistentIndexList(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            QModelIndexList*sipRes;

            sipRes = new QModelIndexList(sipCpp->sipProtect_persistentIndexList());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_persistentIndexList, doc_QStandardItemModel_persistentIndexList);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_changePersistentIndex, "QStandardItemModel.changePersistentIndex(QModelIndex, QModelIndex)");

extern "C" {static PyObject *meth_QStandardItemModel_changePersistentIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_changePersistentIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex* a0;
        const QModelIndex* a1;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, sipType_QModelIndex, &a1))
        {
            sipCpp->sipProtect_changePersistentIndex(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_changePersistentIndex, doc_QStandardItemModel_changePersistentIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_changePersistentIndexList, "QStandardItemModel.changePersistentIndexList(list-of-QModelIndex, list-of-QModelIndex)");

extern "C" {static PyObject *meth_QStandardItemModel_changePersistentIndexList(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_changePersistentIndexList(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndexList* a0;
        int a0State = 0;
        const QModelIndexList* a1;
        int a1State = 0;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1J1", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QList_0100QModelIndex,&a0, &a0State, sipType_QList_0100QModelIndex,&a1, &a1State))
        {
            sipCpp->sipProtect_changePersistentIndexList(*a0,*a1);
            sipReleaseType(const_cast<QModelIndexList *>(a0),sipType_QList_0100QModelIndex,a0State);
            sipReleaseType(const_cast<QModelIndexList *>(a1),sipType_QList_0100QModelIndex,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_changePersistentIndexList, doc_QStandardItemModel_changePersistentIndexList);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_createIndex, "QStandardItemModel.createIndex(int, int, object object=0) -> QModelIndex");

extern "C" {static PyObject *meth_QStandardItemModel_createIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_createIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        PyObject * a2 = 0;
        const sipQStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_object,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|P0", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1, &a2))
        {
            QModelIndex*sipRes = 0;

#line 194 "sip/QtCore/qabstractitemmodel.sip"
        // The Qt API is broken (and won't be fixed as it would break binary
        // compatibility) regarding the internal id of a model index on different
        // architectures (32 vs 64 bits).  We choose to work around the breakage as it
        // is fairly subtle and continues to catch people out.  Instead of letting Qt
        // convert betweed an integer id and a pointer id (the internal format used by
        // Qt) we let Python do it.
        
        void *ptr;
        
        if (a2)
        {
            // Try and convert it to a Python long and fallback to the object's
            // address if it fails.
            ptr = PyLong_AsVoidPtr(a2);
        
            if (PyErr_Occurred())
            {
                PyErr_Clear();
                ptr = a2;
            }
        }
        else
        {
            ptr = 0;
        }
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = new QModelIndex(sipCpp->createIndex(a0, a1, ptr));
        #else
        sipRes = new QModelIndex(sipCpp->sipProtect_createIndex(a0, a1, ptr));
        #endif
#line 63739 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_createIndex, doc_QStandardItemModel_createIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_beginMoveRows, "QStandardItemModel.beginMoveRows(QModelIndex, int, int, QModelIndex, int) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_beginMoveRows(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_beginMoveRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex* a0;
        int a1;
        int a2;
        const QModelIndex* a3;
        int a4;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9iiJ9i", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2, sipType_QModelIndex, &a3, &a4))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_beginMoveRows(*a0,a1,a2,*a3,a4);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_beginMoveRows, doc_QStandardItemModel_beginMoveRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_endMoveRows, "QStandardItemModel.endMoveRows()");

extern "C" {static PyObject *meth_QStandardItemModel_endMoveRows(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_endMoveRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->sipProtect_endMoveRows();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_endMoveRows, doc_QStandardItemModel_endMoveRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_beginMoveColumns, "QStandardItemModel.beginMoveColumns(QModelIndex, int, int, QModelIndex, int) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_beginMoveColumns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_beginMoveColumns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex* a0;
        int a1;
        int a2;
        const QModelIndex* a3;
        int a4;
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9iiJ9i", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, &a1, &a2, sipType_QModelIndex, &a3, &a4))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_beginMoveColumns(*a0,a1,a2,*a3,a4);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_beginMoveColumns, doc_QStandardItemModel_beginMoveColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_endMoveColumns, "QStandardItemModel.endMoveColumns()");

extern "C" {static PyObject *meth_QStandardItemModel_endMoveColumns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_endMoveColumns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->sipProtect_endMoveColumns();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_endMoveColumns, doc_QStandardItemModel_endMoveColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_beginResetModel, "QStandardItemModel.beginResetModel()");

extern "C" {static PyObject *meth_QStandardItemModel_beginResetModel(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_beginResetModel(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->sipProtect_beginResetModel();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_beginResetModel, doc_QStandardItemModel_beginResetModel);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_endResetModel, "QStandardItemModel.endResetModel()");

extern "C" {static PyObject *meth_QStandardItemModel_endResetModel(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_endResetModel(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->sipProtect_endResetModel();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_endResetModel, doc_QStandardItemModel_endResetModel);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_resetInternalData, "QStandardItemModel.resetInternalData()");

extern "C" {static PyObject *meth_QStandardItemModel_resetInternalData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_resetInternalData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        sipQStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->sipProtect_resetInternalData();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_resetInternalData, doc_QStandardItemModel_resetInternalData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_index, "QStandardItemModel.index(int, int, QModelIndex parent=QModelIndex()) -> QModelIndex");

extern "C" {static PyObject *meth_QStandardItemModel_index(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_index(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        int a1;
        const QModelIndex& a2def = QModelIndex();
        const QModelIndex* a2 = &a2def;
        const QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            QModelIndex*sipRes;

            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->QStandardItemModel::index(a0,a1,*a2) : sipCpp->index(a0,a1,*a2)));

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_index, doc_QStandardItemModel_index);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_parent, "QStandardItemModel.parent(QModelIndex) -> QModelIndex\n"
    "QStandardItemModel.parent() -> QObject");

extern "C" {static PyObject *meth_QStandardItemModel_parent(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_parent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            QModelIndex*sipRes;

            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->QStandardItemModel::parent(*a0) : sipCpp->parent(*a0)));

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

    {
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            QObject*sipRes;

            sipRes = sipCpp->parent();

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_parent, doc_QStandardItemModel_parent);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_rowCount, "QStandardItemModel.rowCount(QModelIndex parent=QModelIndex()) -> int");

extern "C" {static PyObject *meth_QStandardItemModel_rowCount(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_rowCount(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex& a0def = QModelIndex();
        const QModelIndex* a0 = &a0def;
        const QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::rowCount(*a0) : sipCpp->rowCount(*a0));

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_rowCount, doc_QStandardItemModel_rowCount);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_columnCount, "QStandardItemModel.columnCount(QModelIndex parent=QModelIndex()) -> int");

extern "C" {static PyObject *meth_QStandardItemModel_columnCount(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_columnCount(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex& a0def = QModelIndex();
        const QModelIndex* a0 = &a0def;
        const QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::columnCount(*a0) : sipCpp->columnCount(*a0));

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_columnCount, doc_QStandardItemModel_columnCount);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_hasChildren, "QStandardItemModel.hasChildren(QModelIndex parent=QModelIndex()) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_hasChildren(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_hasChildren(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex& a0def = QModelIndex();
        const QModelIndex* a0 = &a0def;
        const QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::hasChildren(*a0) : sipCpp->hasChildren(*a0));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_hasChildren, doc_QStandardItemModel_hasChildren);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_data, "QStandardItemModel.data(QModelIndex, int role=Qt.DisplayRole) -> QVariant");

extern "C" {static PyObject *meth_QStandardItemModel_data(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_data(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        int a1 = Qt::DisplayRole;
        const QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_role,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|i", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, &a1))
        {
            QVariant*sipRes;

            sipRes = new QVariant((sipSelfWasArg ? sipCpp->QStandardItemModel::data(*a0,a1) : sipCpp->data(*a0,a1)));

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_data, doc_QStandardItemModel_data);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setData, "QStandardItemModel.setData(QModelIndex, QVariant, int role=Qt.EditRole) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_setData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        const QVariant* a1;
        int a1State = 0;
        int a2 = Qt::EditRole;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_role,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J1|i", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, sipType_QVariant, &a1, &a1State, &a2))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::setData(*a0,*a1,a2) : sipCpp->setData(*a0,*a1,a2));
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setData, doc_QStandardItemModel_setData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_headerData, "QStandardItemModel.headerData(int, Qt.Orientation, int role=Qt.DisplayRole) -> QVariant");

extern "C" {static PyObject *meth_QStandardItemModel_headerData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_headerData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        Qt::Orientation a1;
        int a2 = Qt::DisplayRole;
        const QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_role,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiE|i", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_Qt_Orientation, &a1, &a2))
        {
            QVariant*sipRes;

            sipRes = new QVariant((sipSelfWasArg ? sipCpp->QStandardItemModel::headerData(a0,a1,a2) : sipCpp->headerData(a0,a1,a2)));

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_headerData, doc_QStandardItemModel_headerData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setHeaderData, "QStandardItemModel.setHeaderData(int, Qt.Orientation, QVariant, int role=Qt.EditRole) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_setHeaderData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setHeaderData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        Qt::Orientation a1;
        const QVariant* a2;
        int a2State = 0;
        int a3 = Qt::EditRole;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_role,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiEJ1|i", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_Qt_Orientation, &a1, sipType_QVariant, &a2, &a2State, &a3))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::setHeaderData(a0,a1,*a2,a3) : sipCpp->setHeaderData(a0,a1,*a2,a3));
            sipReleaseType(const_cast<QVariant *>(a2),sipType_QVariant,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setHeaderData, doc_QStandardItemModel_setHeaderData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_insertRows, "QStandardItemModel.insertRows(int, int, QModelIndex parent=QModelIndex()) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_insertRows(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_insertRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        int a1;
        const QModelIndex& a2def = QModelIndex();
        const QModelIndex* a2 = &a2def;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::insertRows(a0,a1,*a2) : sipCpp->insertRows(a0,a1,*a2));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_insertRows, doc_QStandardItemModel_insertRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_insertColumns, "QStandardItemModel.insertColumns(int, int, QModelIndex parent=QModelIndex()) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_insertColumns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_insertColumns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        int a1;
        const QModelIndex& a2def = QModelIndex();
        const QModelIndex* a2 = &a2def;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::insertColumns(a0,a1,*a2) : sipCpp->insertColumns(a0,a1,*a2));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_insertColumns, doc_QStandardItemModel_insertColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_removeRows, "QStandardItemModel.removeRows(int, int, QModelIndex parent=QModelIndex()) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_removeRows(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_removeRows(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        int a1;
        const QModelIndex& a2def = QModelIndex();
        const QModelIndex* a2 = &a2def;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::removeRows(a0,a1,*a2) : sipCpp->removeRows(a0,a1,*a2));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_removeRows, doc_QStandardItemModel_removeRows);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_removeColumns, "QStandardItemModel.removeColumns(int, int, QModelIndex parent=QModelIndex()) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_removeColumns(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_removeColumns(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        int a1;
        const QModelIndex& a2def = QModelIndex();
        const QModelIndex* a2 = &a2def;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::removeColumns(a0,a1,*a2) : sipCpp->removeColumns(a0,a1,*a2));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_removeColumns, doc_QStandardItemModel_removeColumns);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_flags, "QStandardItemModel.flags(QModelIndex) -> Qt.ItemFlags");

extern "C" {static PyObject *meth_QStandardItemModel_flags(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            Qt::ItemFlags*sipRes;

            sipRes = new Qt::ItemFlags((sipSelfWasArg ? sipCpp->QStandardItemModel::flags(*a0) : sipCpp->flags(*a0)));

            return sipConvertFromNewType(sipRes,sipType_Qt_ItemFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_flags, doc_QStandardItemModel_flags);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_clear, "QStandardItemModel.clear()");

extern "C" {static PyObject *meth_QStandardItemModel_clear(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            sipCpp->clear();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_clear, doc_QStandardItemModel_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_supportedDropActions, "QStandardItemModel.supportedDropActions() -> Qt.DropActions");

extern "C" {static PyObject *meth_QStandardItemModel_supportedDropActions(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_supportedDropActions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            Qt::DropActions*sipRes;

            sipRes = new Qt::DropActions((sipSelfWasArg ? sipCpp->QStandardItemModel::supportedDropActions() : sipCpp->supportedDropActions()));

            return sipConvertFromNewType(sipRes,sipType_Qt_DropActions,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_supportedDropActions, doc_QStandardItemModel_supportedDropActions);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_itemData, "QStandardItemModel.itemData(QModelIndex) -> dict-of-int-QVariant");

extern "C" {static PyObject *meth_QStandardItemModel_itemData(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_itemData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            QMap<int,QVariant>*sipRes;

            sipRes = new QMap<int,QVariant>((sipSelfWasArg ? sipCpp->QStandardItemModel::itemData(*a0) : sipCpp->itemData(*a0)));

            return sipConvertFromNewType(sipRes,sipType_QMap_1800_0100QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_itemData, doc_QStandardItemModel_itemData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setItemData, "QStandardItemModel.setItemData(QModelIndex, dict-of-int-QVariant) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_setItemData(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setItemData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndex* a0;
        const QMap<int,QVariant>* a1;
        int a1State = 0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0, sipType_QMap_1800_0100QVariant,&a1, &a1State))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::setItemData(*a0,*a1) : sipCpp->setItemData(*a0,*a1));
            sipReleaseType(const_cast<QMap<int,QVariant> *>(a1),sipType_QMap_1800_0100QVariant,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setItemData, doc_QStandardItemModel_setItemData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_sort, "QStandardItemModel.sort(int, Qt.SortOrder order=Qt.AscendingOrder)");

extern "C" {static PyObject *meth_QStandardItemModel_sort(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_sort(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        Qt::SortOrder a1 = Qt::AscendingOrder;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_order,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_Qt_SortOrder, &a1))
        {
            (sipSelfWasArg ? sipCpp->QStandardItemModel::sort(a0,a1) : sipCpp->sort(a0,a1));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_sort, doc_QStandardItemModel_sort);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_itemFromIndex, "QStandardItemModel.itemFromIndex(QModelIndex) -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_itemFromIndex(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_itemFromIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QModelIndex* a0;
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QModelIndex, &a0))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->itemFromIndex(*a0);

            return sipConvertFromType(sipRes,sipType_QStandardItem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_itemFromIndex, doc_QStandardItemModel_itemFromIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_indexFromItem, "QStandardItemModel.indexFromItem(QStandardItem) -> QModelIndex");

extern "C" {static PyObject *meth_QStandardItemModel_indexFromItem(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_indexFromItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem* a0;
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QStandardItem, &a0))
        {
            QModelIndex*sipRes;

            sipRes = new QModelIndex(sipCpp->indexFromItem(a0));

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_indexFromItem, doc_QStandardItemModel_indexFromItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_item, "QStandardItemModel.item(int, int column=0) -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_item(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_item(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1 = 0;
        const QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_column,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|i", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->item(a0,a1);

            return sipConvertFromType(sipRes,sipType_QStandardItem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_item, doc_QStandardItemModel_item);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setItem, "QStandardItemModel.setItem(int, int, QStandardItem)\n"
    "QStandardItemModel.setItem(int, QStandardItem)");

extern "C" {static PyObject *meth_QStandardItemModel_setItem(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QStandardItem* a2;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ:", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1, sipType_QStandardItem, &a2))
        {
            sipCpp->setItem(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        QStandardItem* a1;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ:", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_QStandardItem, &a1))
        {
            sipCpp->setItem(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setItem, doc_QStandardItemModel_setItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_invisibleRootItem, "QStandardItemModel.invisibleRootItem() -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_invisibleRootItem(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_invisibleRootItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->invisibleRootItem();

            return sipConvertFromType(sipRes,sipType_QStandardItem,sipSelf);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_invisibleRootItem, doc_QStandardItemModel_invisibleRootItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_horizontalHeaderItem, "QStandardItemModel.horizontalHeaderItem(int) -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_horizontalHeaderItem(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_horizontalHeaderItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->horizontalHeaderItem(a0);

            return sipConvertFromType(sipRes,sipType_QStandardItem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_horizontalHeaderItem, doc_QStandardItemModel_horizontalHeaderItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setHorizontalHeaderItem, "QStandardItemModel.setHorizontalHeaderItem(int, QStandardItem)");

extern "C" {static PyObject *meth_QStandardItemModel_setHorizontalHeaderItem(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setHorizontalHeaderItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItem* a1;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ:", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_QStandardItem, &a1))
        {
            sipCpp->setHorizontalHeaderItem(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setHorizontalHeaderItem, doc_QStandardItemModel_setHorizontalHeaderItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_verticalHeaderItem, "QStandardItemModel.verticalHeaderItem(int) -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_verticalHeaderItem(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_verticalHeaderItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->verticalHeaderItem(a0);

            return sipConvertFromType(sipRes,sipType_QStandardItem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_verticalHeaderItem, doc_QStandardItemModel_verticalHeaderItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setVerticalHeaderItem, "QStandardItemModel.setVerticalHeaderItem(int, QStandardItem)");

extern "C" {static PyObject *meth_QStandardItemModel_setVerticalHeaderItem(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setVerticalHeaderItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItem* a1;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ:", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_QStandardItem, &a1))
        {
            sipCpp->setVerticalHeaderItem(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setVerticalHeaderItem, doc_QStandardItemModel_setVerticalHeaderItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setHorizontalHeaderLabels, "QStandardItemModel.setHorizontalHeaderLabels(list-of-str)");

extern "C" {static PyObject *meth_QStandardItemModel_setHorizontalHeaderLabels(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setHorizontalHeaderLabels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            sipCpp->setHorizontalHeaderLabels(*a0);
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setHorizontalHeaderLabels, doc_QStandardItemModel_setHorizontalHeaderLabels);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setVerticalHeaderLabels, "QStandardItemModel.setVerticalHeaderLabels(list-of-str)");

extern "C" {static PyObject *meth_QStandardItemModel_setVerticalHeaderLabels(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setVerticalHeaderLabels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            sipCpp->setVerticalHeaderLabels(*a0);
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setVerticalHeaderLabels, doc_QStandardItemModel_setVerticalHeaderLabels);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setRowCount, "QStandardItemModel.setRowCount(int)");

extern "C" {static PyObject *meth_QStandardItemModel_setRowCount(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setRowCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            sipCpp->setRowCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setRowCount, doc_QStandardItemModel_setRowCount);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setColumnCount, "QStandardItemModel.setColumnCount(int)");

extern "C" {static PyObject *meth_QStandardItemModel_setColumnCount(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setColumnCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            sipCpp->setColumnCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setColumnCount, doc_QStandardItemModel_setColumnCount);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_appendRow, "QStandardItemModel.appendRow(list-of-QStandardItem)\n"
    "QStandardItemModel.appendRow(QStandardItem)");

extern "C" {static PyObject *meth_QStandardItemModel_appendRow(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_appendRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QStandardItem*>* a0;
        int a0State = 0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ3", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QList_0101QStandardItem,&a0, &a0State))
        {
            sipCpp->appendRow(*a0);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a0),sipType_QList_0101QStandardItem,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QStandardItem* a0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QStandardItem, &a0))
        {
            sipCpp->appendRow(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_appendRow, doc_QStandardItemModel_appendRow);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_appendColumn, "QStandardItemModel.appendColumn(list-of-QStandardItem)");

extern "C" {static PyObject *meth_QStandardItemModel_appendColumn(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_appendColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QStandardItem*>* a0;
        int a0State = 0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ3", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QList_0101QStandardItem,&a0, &a0State))
        {
            sipCpp->appendColumn(*a0);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a0),sipType_QList_0101QStandardItem,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_appendColumn, doc_QStandardItemModel_appendColumn);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_insertRow, "QStandardItemModel.insertRow(int, list-of-QStandardItem)\n"
    "QStandardItemModel.insertRow(int, QStandardItem)\n"
    "QStandardItemModel.insertRow(int, QModelIndex parent=QModelIndex()) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_insertRow(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_insertRow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QList<QStandardItem*>* a1;
        int a1State = 0;
        QStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiJ3", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_QList_0101QStandardItem,&a1, &a1State))
        {
            sipCpp->insertRow(a0,*a1);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a1),sipType_QList_0101QStandardItem,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        QStandardItem* a1;
        QStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiJ:", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_QStandardItem, &a1))
        {
            sipCpp->insertRow(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QModelIndex& a1def = QModelIndex();
        const QModelIndex* a1 = &a1def;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->insertRow(a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_insertRow, doc_QStandardItemModel_insertRow);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_insertColumn, "QStandardItemModel.insertColumn(int, list-of-QStandardItem)\n"
    "QStandardItemModel.insertColumn(int, QModelIndex parent=QModelIndex()) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_insertColumn(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_insertColumn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QList<QStandardItem*>* a1;
        int a1State = 0;
        QStandardItemModel *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiJ3", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_QList_0101QStandardItem,&a1, &a1State))
        {
            sipCpp->insertColumn(a0,*a1);
            sipReleaseType(const_cast<QList<QStandardItem*> *>(a1),sipType_QList_0101QStandardItem,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QModelIndex& a1def = QModelIndex();
        const QModelIndex* a1 = &a1def;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|J9", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, sipType_QModelIndex, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->insertColumn(a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_insertColumn, doc_QStandardItemModel_insertColumn);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_takeItem, "QStandardItemModel.takeItem(int, int column=0) -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_takeItem(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_takeItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1 = 0;
        QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_column,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|i", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->takeItem(a0,a1);

            return sipConvertFromType(sipRes,sipType_QStandardItem,Py_None);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_takeItem, doc_QStandardItemModel_takeItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_takeRow, "QStandardItemModel.takeRow(int) -> list-of-QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_takeRow(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_takeRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            QList<QStandardItem*>*sipRes;

            sipRes = new QList<QStandardItem*>(sipCpp->takeRow(a0));

            return sipConvertFromNewType(sipRes,sipType_QList_0101QStandardItem,Py_None);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_takeRow, doc_QStandardItemModel_takeRow);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_takeColumn, "QStandardItemModel.takeColumn(int) -> list-of-QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_takeColumn(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_takeColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            QList<QStandardItem*>*sipRes;

            sipRes = new QList<QStandardItem*>(sipCpp->takeColumn(a0));

            return sipConvertFromNewType(sipRes,sipType_QList_0101QStandardItem,Py_None);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_takeColumn, doc_QStandardItemModel_takeColumn);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_takeHorizontalHeaderItem, "QStandardItemModel.takeHorizontalHeaderItem(int) -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_takeHorizontalHeaderItem(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_takeHorizontalHeaderItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->takeHorizontalHeaderItem(a0);

            return sipConvertFromType(sipRes,sipType_QStandardItem,Py_None);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_takeHorizontalHeaderItem, doc_QStandardItemModel_takeHorizontalHeaderItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_takeVerticalHeaderItem, "QStandardItemModel.takeVerticalHeaderItem(int) -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_takeVerticalHeaderItem(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_takeVerticalHeaderItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            QStandardItem*sipRes;

            sipRes = sipCpp->takeVerticalHeaderItem(a0);

            return sipConvertFromType(sipRes,sipType_QStandardItem,Py_None);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_takeVerticalHeaderItem, doc_QStandardItemModel_takeVerticalHeaderItem);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_itemPrototype, "QStandardItemModel.itemPrototype() -> QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_itemPrototype(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_itemPrototype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            const QStandardItem*sipRes;

            sipRes = sipCpp->itemPrototype();

            return sipConvertFromType(const_cast<QStandardItem *>(sipRes),sipType_QStandardItem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_itemPrototype, doc_QStandardItemModel_itemPrototype);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setItemPrototype, "QStandardItemModel.setItemPrototype(QStandardItem)");

extern "C" {static PyObject *meth_QStandardItemModel_setItemPrototype(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setItemPrototype(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItem* a0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QStandardItem, &a0))
        {
            sipCpp->setItemPrototype(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setItemPrototype, doc_QStandardItemModel_setItemPrototype);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_findItems, "QStandardItemModel.findItems(str, Qt.MatchFlags flags=Qt.MatchExactly, int column=0) -> list-of-QStandardItem");

extern "C" {static PyObject *meth_QStandardItemModel_findItems(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_findItems(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Qt::MatchFlags a1def = Qt::MatchExactly;
        Qt::MatchFlags* a1 = &a1def;
        int a1State = 0;
        int a2 = 0;
        const QStandardItemModel *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_flags,
            sipName_column,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1i", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QString,&a0, &a0State, sipType_Qt_MatchFlags, &a1, &a1State, &a2))
        {
            QList<QStandardItem*>*sipRes;

            sipRes = new QList<QStandardItem*>(sipCpp->findItems(*a0,*a1,a2));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(a1,sipType_Qt_MatchFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QList_0101QStandardItem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_findItems, doc_QStandardItemModel_findItems);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_sortRole, "QStandardItemModel.sortRole() -> int");

extern "C" {static PyObject *meth_QStandardItemModel_sortRole(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_sortRole(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sortRole();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_sortRole, doc_QStandardItemModel_sortRole);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_setSortRole, "QStandardItemModel.setSortRole(int)");

extern "C" {static PyObject *meth_QStandardItemModel_setSortRole(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_setSortRole(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0))
        {
            sipCpp->setSortRole(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_setSortRole, doc_QStandardItemModel_setSortRole);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_mimeTypes, "QStandardItemModel.mimeTypes() -> list-of-str");

extern "C" {static PyObject *meth_QStandardItemModel_mimeTypes(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_mimeTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStandardItemModel, &sipCpp))
        {
            QStringList*sipRes;

            sipRes = new QStringList((sipSelfWasArg ? sipCpp->QStandardItemModel::mimeTypes() : sipCpp->mimeTypes()));

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_mimeTypes, doc_QStandardItemModel_mimeTypes);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_mimeData, "QStandardItemModel.mimeData(list-of-QModelIndex) -> QMimeData");

extern "C" {static PyObject *meth_QStandardItemModel_mimeData(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_mimeData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QModelIndexList* a0;
        int a0State = 0;
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QList_0100QModelIndex,&a0, &a0State))
        {
            QMimeData*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::mimeData(*a0) : sipCpp->mimeData(*a0));
            sipReleaseType(const_cast<QModelIndexList *>(a0),sipType_QList_0100QModelIndex,a0State);

            return sipConvertFromType(sipRes,sipType_QMimeData,Py_None);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_mimeData, doc_QStandardItemModel_mimeData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_dropMimeData, "QStandardItemModel.dropMimeData(QMimeData, Qt.DropAction, int, int, QModelIndex) -> bool");

extern "C" {static PyObject *meth_QStandardItemModel_dropMimeData(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_dropMimeData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMimeData* a0;
        Qt::DropAction a1;
        int a2;
        int a3;
        const QModelIndex* a4;
        QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8EiiJ9", &sipSelf, sipType_QStandardItemModel, &sipCpp, sipType_QMimeData, &a0, sipType_Qt_DropAction, &a1, &a2, &a3, sipType_QModelIndex, &a4))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QStandardItemModel::dropMimeData(a0,a1,a2,a3,*a4) : sipCpp->dropMimeData(a0,a1,a2,a3,*a4));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_dropMimeData, doc_QStandardItemModel_dropMimeData);

    return NULL;
}


PyDoc_STRVAR(doc_QStandardItemModel_sibling, "QStandardItemModel.sibling(int, int, QModelIndex) -> QModelIndex");

extern "C" {static PyObject *meth_QStandardItemModel_sibling(PyObject *, PyObject *);}
static PyObject *meth_QStandardItemModel_sibling(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        int a1;
        const QModelIndex* a2;
        const QStandardItemModel *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9", &sipSelf, sipType_QStandardItemModel, &sipCpp, &a0, &a1, sipType_QModelIndex, &a2))
        {
            QModelIndex*sipRes;

            sipRes = new QModelIndex((sipSelfWasArg ? sipCpp->QStandardItemModel::sibling(a0,a1,*a2) : sipCpp->sibling(a0,a1,*a2)));

            return sipConvertFromNewType(sipRes,sipType_QModelIndex,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStandardItemModel, sipName_sibling, doc_QStandardItemModel_sibling);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QStandardItemModel(void *, const sipTypeDef *);}
static void *cast_QStandardItemModel(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QStandardItemModel)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QAbstractItemModel)->ctd_cast((QAbstractItemModel *)(QStandardItemModel *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QStandardItemModel(void *, int);}
static void release_QStandardItemModel(void *sipCppV,int)
{
    QStandardItemModel *sipCpp = reinterpret_cast<QStandardItemModel *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QStandardItemModel(sipSimpleWrapper *);}
static void dealloc_QStandardItemModel(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQStandardItemModel *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QStandardItemModel(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QStandardItemModel(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QStandardItemModel(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQStandardItemModel *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQStandardItemModel(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        QObject* a2 = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "ii|JH", &a0, &a1, sipType_QObject, &a2, sipOwner))
        {
            sipCpp = new sipQStandardItemModel(a0,a1,a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QStandardItemModel[] = {{6, 0, 1}};


static PyMethodDef methods_QStandardItemModel[] = {
    {SIP_MLNAME_CAST(sipName_appendColumn), meth_QStandardItemModel_appendColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_appendColumn)},
    {SIP_MLNAME_CAST(sipName_appendRow), meth_QStandardItemModel_appendRow, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_appendRow)},
    {SIP_MLNAME_CAST(sipName_beginInsertColumns), (PyCFunction)meth_QStandardItemModel_beginInsertColumns, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_beginInsertRows), (PyCFunction)meth_QStandardItemModel_beginInsertRows, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_beginMoveColumns), (PyCFunction)meth_QStandardItemModel_beginMoveColumns, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_beginMoveRows), (PyCFunction)meth_QStandardItemModel_beginMoveRows, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_beginRemoveColumns), (PyCFunction)meth_QStandardItemModel_beginRemoveColumns, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_beginRemoveRows), (PyCFunction)meth_QStandardItemModel_beginRemoveRows, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_beginResetModel), (PyCFunction)meth_QStandardItemModel_beginResetModel, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_changePersistentIndex), (PyCFunction)meth_QStandardItemModel_changePersistentIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_changePersistentIndexList), (PyCFunction)meth_QStandardItemModel_changePersistentIndexList, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QStandardItemModel_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_QStandardItemModel_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_clear)},
    {SIP_MLNAME_CAST(sipName_columnCount), (PyCFunction)meth_QStandardItemModel_columnCount, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_columnCount)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QStandardItemModel_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_createIndex), (PyCFunction)meth_QStandardItemModel_createIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QStandardItemModel_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_data), (PyCFunction)meth_QStandardItemModel_data, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_data)},
    {SIP_MLNAME_CAST(sipName_decodeData), (PyCFunction)meth_QStandardItemModel_decodeData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QStandardItemModel_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dropMimeData), meth_QStandardItemModel_dropMimeData, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_dropMimeData)},
    {SIP_MLNAME_CAST(sipName_encodeData), (PyCFunction)meth_QStandardItemModel_encodeData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_endInsertColumns), (PyCFunction)meth_QStandardItemModel_endInsertColumns, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_endInsertRows), (PyCFunction)meth_QStandardItemModel_endInsertRows, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_endMoveColumns), (PyCFunction)meth_QStandardItemModel_endMoveColumns, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_endMoveRows), (PyCFunction)meth_QStandardItemModel_endMoveRows, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_endRemoveColumns), (PyCFunction)meth_QStandardItemModel_endRemoveColumns, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_endRemoveRows), (PyCFunction)meth_QStandardItemModel_endRemoveRows, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_endResetModel), (PyCFunction)meth_QStandardItemModel_endResetModel, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_findItems), (PyCFunction)meth_QStandardItemModel_findItems, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_findItems)},
    {SIP_MLNAME_CAST(sipName_flags), meth_QStandardItemModel_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_flags)},
    {SIP_MLNAME_CAST(sipName_hasChildren), (PyCFunction)meth_QStandardItemModel_hasChildren, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_hasChildren)},
    {SIP_MLNAME_CAST(sipName_headerData), (PyCFunction)meth_QStandardItemModel_headerData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_headerData)},
    {SIP_MLNAME_CAST(sipName_horizontalHeaderItem), meth_QStandardItemModel_horizontalHeaderItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_horizontalHeaderItem)},
    {SIP_MLNAME_CAST(sipName_index), (PyCFunction)meth_QStandardItemModel_index, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_index)},
    {SIP_MLNAME_CAST(sipName_indexFromItem), meth_QStandardItemModel_indexFromItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_indexFromItem)},
    {SIP_MLNAME_CAST(sipName_insertColumn), (PyCFunction)meth_QStandardItemModel_insertColumn, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_insertColumn)},
    {SIP_MLNAME_CAST(sipName_insertColumns), (PyCFunction)meth_QStandardItemModel_insertColumns, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_insertColumns)},
    {SIP_MLNAME_CAST(sipName_insertRow), (PyCFunction)meth_QStandardItemModel_insertRow, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_insertRow)},
    {SIP_MLNAME_CAST(sipName_insertRows), (PyCFunction)meth_QStandardItemModel_insertRows, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_insertRows)},
    {SIP_MLNAME_CAST(sipName_invisibleRootItem), meth_QStandardItemModel_invisibleRootItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_invisibleRootItem)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QStandardItemModel_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_item), (PyCFunction)meth_QStandardItemModel_item, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_item)},
    {SIP_MLNAME_CAST(sipName_itemData), meth_QStandardItemModel_itemData, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_itemData)},
    {SIP_MLNAME_CAST(sipName_itemFromIndex), meth_QStandardItemModel_itemFromIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_itemFromIndex)},
    {SIP_MLNAME_CAST(sipName_itemPrototype), meth_QStandardItemModel_itemPrototype, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_itemPrototype)},
    {SIP_MLNAME_CAST(sipName_mimeData), meth_QStandardItemModel_mimeData, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_mimeData)},
    {SIP_MLNAME_CAST(sipName_mimeTypes), meth_QStandardItemModel_mimeTypes, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_mimeTypes)},
    {SIP_MLNAME_CAST(sipName_parent), meth_QStandardItemModel_parent, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_parent)},
    {SIP_MLNAME_CAST(sipName_persistentIndexList), (PyCFunction)meth_QStandardItemModel_persistentIndexList, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QStandardItemModel_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_removeColumns), (PyCFunction)meth_QStandardItemModel_removeColumns, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_removeColumns)},
    {SIP_MLNAME_CAST(sipName_removeRows), (PyCFunction)meth_QStandardItemModel_removeRows, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_removeRows)},
    {SIP_MLNAME_CAST(sipName_resetInternalData), (PyCFunction)meth_QStandardItemModel_resetInternalData, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_rowCount), (PyCFunction)meth_QStandardItemModel_rowCount, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_rowCount)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QStandardItemModel_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QStandardItemModel_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setColumnCount), meth_QStandardItemModel_setColumnCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setColumnCount)},
    {SIP_MLNAME_CAST(sipName_setData), (PyCFunction)meth_QStandardItemModel_setData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_setData)},
    {SIP_MLNAME_CAST(sipName_setHeaderData), (PyCFunction)meth_QStandardItemModel_setHeaderData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_setHeaderData)},
    {SIP_MLNAME_CAST(sipName_setHorizontalHeaderItem), meth_QStandardItemModel_setHorizontalHeaderItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setHorizontalHeaderItem)},
    {SIP_MLNAME_CAST(sipName_setHorizontalHeaderLabels), meth_QStandardItemModel_setHorizontalHeaderLabels, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setHorizontalHeaderLabels)},
    {SIP_MLNAME_CAST(sipName_setItem), meth_QStandardItemModel_setItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setItem)},
    {SIP_MLNAME_CAST(sipName_setItemData), meth_QStandardItemModel_setItemData, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setItemData)},
    {SIP_MLNAME_CAST(sipName_setItemPrototype), meth_QStandardItemModel_setItemPrototype, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setItemPrototype)},
    {SIP_MLNAME_CAST(sipName_setRowCount), meth_QStandardItemModel_setRowCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setRowCount)},
    {SIP_MLNAME_CAST(sipName_setSortRole), meth_QStandardItemModel_setSortRole, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setSortRole)},
    {SIP_MLNAME_CAST(sipName_setVerticalHeaderItem), meth_QStandardItemModel_setVerticalHeaderItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setVerticalHeaderItem)},
    {SIP_MLNAME_CAST(sipName_setVerticalHeaderLabels), meth_QStandardItemModel_setVerticalHeaderLabels, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_setVerticalHeaderLabels)},
    {SIP_MLNAME_CAST(sipName_sibling), meth_QStandardItemModel_sibling, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_sibling)},
    {SIP_MLNAME_CAST(sipName_sort), (PyCFunction)meth_QStandardItemModel_sort, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_sort)},
    {SIP_MLNAME_CAST(sipName_sortRole), meth_QStandardItemModel_sortRole, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_sortRole)},
    {SIP_MLNAME_CAST(sipName_supportedDropActions), meth_QStandardItemModel_supportedDropActions, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_supportedDropActions)},
    {SIP_MLNAME_CAST(sipName_takeColumn), meth_QStandardItemModel_takeColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_takeColumn)},
    {SIP_MLNAME_CAST(sipName_takeHorizontalHeaderItem), meth_QStandardItemModel_takeHorizontalHeaderItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_takeHorizontalHeaderItem)},
    {SIP_MLNAME_CAST(sipName_takeItem), (PyCFunction)meth_QStandardItemModel_takeItem, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QStandardItemModel_takeItem)},
    {SIP_MLNAME_CAST(sipName_takeRow), meth_QStandardItemModel_takeRow, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_takeRow)},
    {SIP_MLNAME_CAST(sipName_takeVerticalHeaderItem), meth_QStandardItemModel_takeVerticalHeaderItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_takeVerticalHeaderItem)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QStandardItemModel_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_verticalHeaderItem), meth_QStandardItemModel_verticalHeaderItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QStandardItemModel_verticalHeaderItem)}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QStandardItemModel[] = {
    {"itemChanged(QStandardItem*)", "\1QStandardItemModel.itemChanged[QStandardItem]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QStandardItemModel, "\1QStandardItemModel(QObject parent=None)\n"
    "QStandardItemModel(int, int, QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QStandardItemModel = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QStandardItemModel,
        {0}
    },
    {
        sipNameNr_QStandardItemModel,
        {0, 0, 1},
        80, methods_QStandardItemModel,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QStandardItemModel,
    -1,
    -1,
    supers_QStandardItemModel,
    0,
    init_type_QStandardItemModel,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QStandardItemModel,
    0,
    0,
    0,
    release_QStandardItemModel,
    cast_QStandardItemModel,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QStandardItemModel::staticMetaObject,
    0,
    signals_QStandardItemModel,
    0
};

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsessionmanager.sip"
#include <qsessionmanager.h>
#line 65849 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qguiapplication.sip"
#include <qguiapplication.h>
#line 65853 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 65856 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 65859 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 65862 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 65865 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 65868 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 65871 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 65874 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 65877 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 65880 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 65883 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 65886 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 65889 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 65892 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 65895 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 65898 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 65901 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 65904 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QSessionManager_sessionId, "QSessionManager.sessionId() -> str");

extern "C" {static PyObject *meth_QSessionManager_sessionId(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_sessionId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->sessionId());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_sessionId, doc_QSessionManager_sessionId);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_sessionKey, "QSessionManager.sessionKey() -> str");

extern "C" {static PyObject *meth_QSessionManager_sessionKey(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_sessionKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->sessionKey());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_sessionKey, doc_QSessionManager_sessionKey);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_allowsInteraction, "QSessionManager.allowsInteraction() -> bool");

extern "C" {static PyObject *meth_QSessionManager_allowsInteraction(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_allowsInteraction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->allowsInteraction();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_allowsInteraction, doc_QSessionManager_allowsInteraction);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_allowsErrorInteraction, "QSessionManager.allowsErrorInteraction() -> bool");

extern "C" {static PyObject *meth_QSessionManager_allowsErrorInteraction(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_allowsErrorInteraction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->allowsErrorInteraction();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_allowsErrorInteraction, doc_QSessionManager_allowsErrorInteraction);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_release, "QSessionManager.release()");

extern "C" {static PyObject *meth_QSessionManager_release(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_release(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            sipCpp->release();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_release, doc_QSessionManager_release);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_cancel, "QSessionManager.cancel()");

extern "C" {static PyObject *meth_QSessionManager_cancel(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_cancel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            sipCpp->cancel();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_cancel, doc_QSessionManager_cancel);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_setRestartHint, "QSessionManager.setRestartHint(QSessionManager.RestartHint)");

extern "C" {static PyObject *meth_QSessionManager_setRestartHint(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_setRestartHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSessionManager::RestartHint a0;
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QSessionManager, &sipCpp, sipType_QSessionManager_RestartHint, &a0))
        {
            sipCpp->setRestartHint(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_setRestartHint, doc_QSessionManager_setRestartHint);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_restartHint, "QSessionManager.restartHint() -> QSessionManager.RestartHint");

extern "C" {static PyObject *meth_QSessionManager_restartHint(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_restartHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            QSessionManager::RestartHint sipRes;

            sipRes = sipCpp->restartHint();

            return sipConvertFromEnum(sipRes,sipType_QSessionManager_RestartHint);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_restartHint, doc_QSessionManager_restartHint);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_setRestartCommand, "QSessionManager.setRestartCommand(list-of-str)");

extern "C" {static PyObject *meth_QSessionManager_setRestartCommand(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_setRestartCommand(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSessionManager, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            sipCpp->setRestartCommand(*a0);
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_setRestartCommand, doc_QSessionManager_setRestartCommand);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_restartCommand, "QSessionManager.restartCommand() -> list-of-str");

extern "C" {static PyObject *meth_QSessionManager_restartCommand(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_restartCommand(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            QStringList*sipRes;

            sipRes = new QStringList(sipCpp->restartCommand());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_restartCommand, doc_QSessionManager_restartCommand);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_setDiscardCommand, "QSessionManager.setDiscardCommand(list-of-str)");

extern "C" {static PyObject *meth_QSessionManager_setDiscardCommand(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_setDiscardCommand(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QSessionManager, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            sipCpp->setDiscardCommand(*a0);
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_setDiscardCommand, doc_QSessionManager_setDiscardCommand);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_discardCommand, "QSessionManager.discardCommand() -> list-of-str");

extern "C" {static PyObject *meth_QSessionManager_discardCommand(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_discardCommand(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            QStringList*sipRes;

            sipRes = new QStringList(sipCpp->discardCommand());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_discardCommand, doc_QSessionManager_discardCommand);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_setManagerProperty, "QSessionManager.setManagerProperty(str, str)\n"
    "QSessionManager.setManagerProperty(str, list-of-str)");

extern "C" {static PyObject *meth_QSessionManager_setManagerProperty(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_setManagerProperty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QSessionManager, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            sipCpp->setManagerProperty(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QStringList* a1;
        int a1State = 0;
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QSessionManager, &sipCpp, sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            sipCpp->setManagerProperty(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_setManagerProperty, doc_QSessionManager_setManagerProperty);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_isPhase2, "QSessionManager.isPhase2() -> bool");

extern "C" {static PyObject *meth_QSessionManager_isPhase2(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_isPhase2(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isPhase2();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_isPhase2, doc_QSessionManager_isPhase2);

    return NULL;
}


PyDoc_STRVAR(doc_QSessionManager_requestPhase2, "QSessionManager.requestPhase2()");

extern "C" {static PyObject *meth_QSessionManager_requestPhase2(PyObject *, PyObject *);}
static PyObject *meth_QSessionManager_requestPhase2(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSessionManager *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSessionManager, &sipCpp))
        {
            sipCpp->requestPhase2();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSessionManager, sipName_requestPhase2, doc_QSessionManager_requestPhase2);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSessionManager(void *, const sipTypeDef *);}
static void *cast_QSessionManager(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QSessionManager)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QSessionManager *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QSessionManager(void *, int);}
static void release_QSessionManager(void *,int)
{
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QSessionManager[] = {{162, 0, 1}};


static PyMethodDef methods_QSessionManager[] = {
    {SIP_MLNAME_CAST(sipName_allowsErrorInteraction), meth_QSessionManager_allowsErrorInteraction, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_allowsErrorInteraction)},
    {SIP_MLNAME_CAST(sipName_allowsInteraction), meth_QSessionManager_allowsInteraction, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_allowsInteraction)},
    {SIP_MLNAME_CAST(sipName_cancel), meth_QSessionManager_cancel, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_cancel)},
    {SIP_MLNAME_CAST(sipName_discardCommand), meth_QSessionManager_discardCommand, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_discardCommand)},
    {SIP_MLNAME_CAST(sipName_isPhase2), meth_QSessionManager_isPhase2, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_isPhase2)},
    {SIP_MLNAME_CAST(sipName_release), meth_QSessionManager_release, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_release)},
    {SIP_MLNAME_CAST(sipName_requestPhase2), meth_QSessionManager_requestPhase2, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_requestPhase2)},
    {SIP_MLNAME_CAST(sipName_restartCommand), meth_QSessionManager_restartCommand, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_restartCommand)},
    {SIP_MLNAME_CAST(sipName_restartHint), meth_QSessionManager_restartHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_restartHint)},
    {SIP_MLNAME_CAST(sipName_sessionId), meth_QSessionManager_sessionId, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_sessionId)},
    {SIP_MLNAME_CAST(sipName_sessionKey), meth_QSessionManager_sessionKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_sessionKey)},
    {SIP_MLNAME_CAST(sipName_setDiscardCommand), meth_QSessionManager_setDiscardCommand, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_setDiscardCommand)},
    {SIP_MLNAME_CAST(sipName_setManagerProperty), meth_QSessionManager_setManagerProperty, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_setManagerProperty)},
    {SIP_MLNAME_CAST(sipName_setRestartCommand), meth_QSessionManager_setRestartCommand, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_setRestartCommand)},
    {SIP_MLNAME_CAST(sipName_setRestartHint), meth_QSessionManager_setRestartHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QSessionManager_setRestartHint)}
};

static sipEnumMemberDef enummembers_QSessionManager[] = {
    {sipName_RestartAnyway, static_cast<int>(QSessionManager::RestartAnyway), 245},
    {sipName_RestartIfRunning, static_cast<int>(QSessionManager::RestartIfRunning), 245},
    {sipName_RestartImmediately, static_cast<int>(QSessionManager::RestartImmediately), 245},
    {sipName_RestartNever, static_cast<int>(QSessionManager::RestartNever), 245},
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QSessionManager = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QSessionManager,
        {0}
    },
    {
        sipNameNr_QSessionManager,
        {0, 0, 1},
        15, methods_QSessionManager,
        4, enummembers_QSessionManager,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QSessionManager,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_QSessionManager,
    cast_QSessionManager,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QSessionManager::staticMetaObject,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 66446 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 66450 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 66453 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 66456 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 66459 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 66462 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 66465 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 66468 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 66471 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 66474 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 66477 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 66480 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 66483 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 66486 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 66489 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 66492 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 66495 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 66498 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 66501 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 66504 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 66507 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 66510 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 66513 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 66516 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 66519 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QScreen_name, "QScreen.name() -> str");

extern "C" {static PyObject *meth_QScreen_name(PyObject *, PyObject *);}
static PyObject *meth_QScreen_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->name());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_name, doc_QScreen_name);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_depth, "QScreen.depth() -> int");

extern "C" {static PyObject *meth_QScreen_depth(PyObject *, PyObject *);}
static PyObject *meth_QScreen_depth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->depth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_depth, doc_QScreen_depth);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_size, "QScreen.size() -> QSize");

extern "C" {static PyObject *meth_QScreen_size(PyObject *, PyObject *);}
static PyObject *meth_QScreen_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_size, doc_QScreen_size);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_geometry, "QScreen.geometry() -> QRect");

extern "C" {static PyObject *meth_QScreen_geometry(PyObject *, PyObject *);}
static PyObject *meth_QScreen_geometry(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->geometry());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_geometry, doc_QScreen_geometry);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_physicalSize, "QScreen.physicalSize() -> QSizeF");

extern "C" {static PyObject *meth_QScreen_physicalSize(PyObject *, PyObject *);}
static PyObject *meth_QScreen_physicalSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(sipCpp->physicalSize());

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_physicalSize, doc_QScreen_physicalSize);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_physicalDotsPerInchX, "QScreen.physicalDotsPerInchX() -> float");

extern "C" {static PyObject *meth_QScreen_physicalDotsPerInchX(PyObject *, PyObject *);}
static PyObject *meth_QScreen_physicalDotsPerInchX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->physicalDotsPerInchX();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_physicalDotsPerInchX, doc_QScreen_physicalDotsPerInchX);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_physicalDotsPerInchY, "QScreen.physicalDotsPerInchY() -> float");

extern "C" {static PyObject *meth_QScreen_physicalDotsPerInchY(PyObject *, PyObject *);}
static PyObject *meth_QScreen_physicalDotsPerInchY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->physicalDotsPerInchY();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_physicalDotsPerInchY, doc_QScreen_physicalDotsPerInchY);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_physicalDotsPerInch, "QScreen.physicalDotsPerInch() -> float");

extern "C" {static PyObject *meth_QScreen_physicalDotsPerInch(PyObject *, PyObject *);}
static PyObject *meth_QScreen_physicalDotsPerInch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->physicalDotsPerInch();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_physicalDotsPerInch, doc_QScreen_physicalDotsPerInch);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_logicalDotsPerInchX, "QScreen.logicalDotsPerInchX() -> float");

extern "C" {static PyObject *meth_QScreen_logicalDotsPerInchX(PyObject *, PyObject *);}
static PyObject *meth_QScreen_logicalDotsPerInchX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->logicalDotsPerInchX();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_logicalDotsPerInchX, doc_QScreen_logicalDotsPerInchX);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_logicalDotsPerInchY, "QScreen.logicalDotsPerInchY() -> float");

extern "C" {static PyObject *meth_QScreen_logicalDotsPerInchY(PyObject *, PyObject *);}
static PyObject *meth_QScreen_logicalDotsPerInchY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->logicalDotsPerInchY();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_logicalDotsPerInchY, doc_QScreen_logicalDotsPerInchY);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_logicalDotsPerInch, "QScreen.logicalDotsPerInch() -> float");

extern "C" {static PyObject *meth_QScreen_logicalDotsPerInch(PyObject *, PyObject *);}
static PyObject *meth_QScreen_logicalDotsPerInch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->logicalDotsPerInch();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_logicalDotsPerInch, doc_QScreen_logicalDotsPerInch);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_availableSize, "QScreen.availableSize() -> QSize");

extern "C" {static PyObject *meth_QScreen_availableSize(PyObject *, PyObject *);}
static PyObject *meth_QScreen_availableSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->availableSize());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_availableSize, doc_QScreen_availableSize);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_availableGeometry, "QScreen.availableGeometry() -> QRect");

extern "C" {static PyObject *meth_QScreen_availableGeometry(PyObject *, PyObject *);}
static PyObject *meth_QScreen_availableGeometry(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->availableGeometry());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_availableGeometry, doc_QScreen_availableGeometry);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_virtualSiblings, "QScreen.virtualSiblings() -> list-of-QScreen");

extern "C" {static PyObject *meth_QScreen_virtualSiblings(PyObject *, PyObject *);}
static PyObject *meth_QScreen_virtualSiblings(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QList<QScreen*>*sipRes;

            sipRes = new QList<QScreen*>(sipCpp->virtualSiblings());

            return sipConvertFromNewType(sipRes,sipType_QList_0101QScreen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_virtualSiblings, doc_QScreen_virtualSiblings);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_virtualSize, "QScreen.virtualSize() -> QSize");

extern "C" {static PyObject *meth_QScreen_virtualSize(PyObject *, PyObject *);}
static PyObject *meth_QScreen_virtualSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->virtualSize());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_virtualSize, doc_QScreen_virtualSize);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_virtualGeometry, "QScreen.virtualGeometry() -> QRect");

extern "C" {static PyObject *meth_QScreen_virtualGeometry(PyObject *, PyObject *);}
static PyObject *meth_QScreen_virtualGeometry(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->virtualGeometry());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_virtualGeometry, doc_QScreen_virtualGeometry);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_availableVirtualSize, "QScreen.availableVirtualSize() -> QSize");

extern "C" {static PyObject *meth_QScreen_availableVirtualSize(PyObject *, PyObject *);}
static PyObject *meth_QScreen_availableVirtualSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->availableVirtualSize());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_availableVirtualSize, doc_QScreen_availableVirtualSize);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_availableVirtualGeometry, "QScreen.availableVirtualGeometry() -> QRect");

extern "C" {static PyObject *meth_QScreen_availableVirtualGeometry(PyObject *, PyObject *);}
static PyObject *meth_QScreen_availableVirtualGeometry(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->availableVirtualGeometry());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_availableVirtualGeometry, doc_QScreen_availableVirtualGeometry);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_nativeOrientation, "QScreen.nativeOrientation() -> Qt.ScreenOrientation");

extern "C" {static PyObject *meth_QScreen_nativeOrientation(PyObject *, PyObject *);}
static PyObject *meth_QScreen_nativeOrientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            Qt::ScreenOrientation sipRes;

            sipRes = sipCpp->nativeOrientation();

            return sipConvertFromEnum(sipRes,sipType_Qt_ScreenOrientation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_nativeOrientation, doc_QScreen_nativeOrientation);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_primaryOrientation, "QScreen.primaryOrientation() -> Qt.ScreenOrientation");

extern "C" {static PyObject *meth_QScreen_primaryOrientation(PyObject *, PyObject *);}
static PyObject *meth_QScreen_primaryOrientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            Qt::ScreenOrientation sipRes;

            sipRes = sipCpp->primaryOrientation();

            return sipConvertFromEnum(sipRes,sipType_Qt_ScreenOrientation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_primaryOrientation, doc_QScreen_primaryOrientation);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_orientation, "QScreen.orientation() -> Qt.ScreenOrientation");

extern "C" {static PyObject *meth_QScreen_orientation(PyObject *, PyObject *);}
static PyObject *meth_QScreen_orientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            Qt::ScreenOrientation sipRes;

            sipRes = sipCpp->orientation();

            return sipConvertFromEnum(sipRes,sipType_Qt_ScreenOrientation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_orientation, doc_QScreen_orientation);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_orientationUpdateMask, "QScreen.orientationUpdateMask() -> Qt.ScreenOrientations");

extern "C" {static PyObject *meth_QScreen_orientationUpdateMask(PyObject *, PyObject *);}
static PyObject *meth_QScreen_orientationUpdateMask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            Qt::ScreenOrientations*sipRes;

            sipRes = new Qt::ScreenOrientations(sipCpp->orientationUpdateMask());

            return sipConvertFromNewType(sipRes,sipType_Qt_ScreenOrientations,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_orientationUpdateMask, doc_QScreen_orientationUpdateMask);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_setOrientationUpdateMask, "QScreen.setOrientationUpdateMask(Qt.ScreenOrientations)");

extern "C" {static PyObject *meth_QScreen_setOrientationUpdateMask(PyObject *, PyObject *);}
static PyObject *meth_QScreen_setOrientationUpdateMask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::ScreenOrientations* a0;
        int a0State = 0;
        QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QScreen, &sipCpp, sipType_Qt_ScreenOrientations, &a0, &a0State))
        {
            sipCpp->setOrientationUpdateMask(*a0);
            sipReleaseType(a0,sipType_Qt_ScreenOrientations,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_setOrientationUpdateMask, doc_QScreen_setOrientationUpdateMask);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_angleBetween, "QScreen.angleBetween(Qt.ScreenOrientation, Qt.ScreenOrientation) -> int");

extern "C" {static PyObject *meth_QScreen_angleBetween(PyObject *, PyObject *);}
static PyObject *meth_QScreen_angleBetween(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::ScreenOrientation a0;
        Qt::ScreenOrientation a1;
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEE", &sipSelf, sipType_QScreen, &sipCpp, sipType_Qt_ScreenOrientation, &a0, sipType_Qt_ScreenOrientation, &a1))
        {
            int sipRes;

            sipRes = sipCpp->angleBetween(a0,a1);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_angleBetween, doc_QScreen_angleBetween);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_transformBetween, "QScreen.transformBetween(Qt.ScreenOrientation, Qt.ScreenOrientation, QRect) -> QTransform");

extern "C" {static PyObject *meth_QScreen_transformBetween(PyObject *, PyObject *);}
static PyObject *meth_QScreen_transformBetween(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::ScreenOrientation a0;
        Qt::ScreenOrientation a1;
        const QRect* a2;
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEEJ9", &sipSelf, sipType_QScreen, &sipCpp, sipType_Qt_ScreenOrientation, &a0, sipType_Qt_ScreenOrientation, &a1, sipType_QRect, &a2))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->transformBetween(a0,a1,*a2));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_transformBetween, doc_QScreen_transformBetween);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_mapBetween, "QScreen.mapBetween(Qt.ScreenOrientation, Qt.ScreenOrientation, QRect) -> QRect");

extern "C" {static PyObject *meth_QScreen_mapBetween(PyObject *, PyObject *);}
static PyObject *meth_QScreen_mapBetween(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::ScreenOrientation a0;
        Qt::ScreenOrientation a1;
        const QRect* a2;
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEEJ9", &sipSelf, sipType_QScreen, &sipCpp, sipType_Qt_ScreenOrientation, &a0, sipType_Qt_ScreenOrientation, &a1, sipType_QRect, &a2))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->mapBetween(a0,a1,*a2));

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_mapBetween, doc_QScreen_mapBetween);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_isPortrait, "QScreen.isPortrait(Qt.ScreenOrientation) -> bool");

extern "C" {static PyObject *meth_QScreen_isPortrait(PyObject *, PyObject *);}
static PyObject *meth_QScreen_isPortrait(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::ScreenOrientation a0;
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QScreen, &sipCpp, sipType_Qt_ScreenOrientation, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isPortrait(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_isPortrait, doc_QScreen_isPortrait);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_isLandscape, "QScreen.isLandscape(Qt.ScreenOrientation) -> bool");

extern "C" {static PyObject *meth_QScreen_isLandscape(PyObject *, PyObject *);}
static PyObject *meth_QScreen_isLandscape(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::ScreenOrientation a0;
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QScreen, &sipCpp, sipType_Qt_ScreenOrientation, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isLandscape(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_isLandscape, doc_QScreen_isLandscape);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_grabWindow, "QScreen.grabWindow(sip.voidptr, int x=0, int y=0, int width=-1, int height=-1) -> QPixmap");

extern "C" {static PyObject *meth_QScreen_grabWindow(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QScreen_grabWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        WId* a0;
        int a0State = 0;
        int a1 = 0;
        int a2 = 0;
        int a3 = -1;
        int a4 = -1;
        QScreen *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_x,
            sipName_y,
            sipName_width,
            sipName_height,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|iiii", &sipSelf, sipType_QScreen, &sipCpp, sipType_quintptr,&a0, &a0State, &a1, &a2, &a3, &a4))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->grabWindow(*a0,a1,a2,a3,a4));
            sipReleaseType(a0,sipType_quintptr,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_grabWindow, doc_QScreen_grabWindow);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_refreshRate, "QScreen.refreshRate() -> float");

extern "C" {static PyObject *meth_QScreen_refreshRate(PyObject *, PyObject *);}
static PyObject *meth_QScreen_refreshRate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->refreshRate();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_refreshRate, doc_QScreen_refreshRate);

    return NULL;
}


PyDoc_STRVAR(doc_QScreen_devicePixelRatio, "QScreen.devicePixelRatio() -> float");

extern "C" {static PyObject *meth_QScreen_devicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QScreen_devicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScreen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScreen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->devicePixelRatio();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScreen, sipName_devicePixelRatio, doc_QScreen_devicePixelRatio);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QScreen(void *, const sipTypeDef *);}
static void *cast_QScreen(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QScreen)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QScreen *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScreen(void *, int);}
static void release_QScreen(void *sipCppV,int)
{
    QScreen *sipCpp = reinterpret_cast<QScreen *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QScreen(sipSimpleWrapper *);}
static void dealloc_QScreen(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QScreen(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QScreen[] = {{162, 0, 1}};


static PyMethodDef methods_QScreen[] = {
    {SIP_MLNAME_CAST(sipName_angleBetween), meth_QScreen_angleBetween, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_angleBetween)},
    {SIP_MLNAME_CAST(sipName_availableGeometry), meth_QScreen_availableGeometry, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_availableGeometry)},
    {SIP_MLNAME_CAST(sipName_availableSize), meth_QScreen_availableSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_availableSize)},
    {SIP_MLNAME_CAST(sipName_availableVirtualGeometry), meth_QScreen_availableVirtualGeometry, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_availableVirtualGeometry)},
    {SIP_MLNAME_CAST(sipName_availableVirtualSize), meth_QScreen_availableVirtualSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_availableVirtualSize)},
    {SIP_MLNAME_CAST(sipName_depth), meth_QScreen_depth, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_depth)},
    {SIP_MLNAME_CAST(sipName_devicePixelRatio), meth_QScreen_devicePixelRatio, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_devicePixelRatio)},
    {SIP_MLNAME_CAST(sipName_geometry), meth_QScreen_geometry, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_geometry)},
    {SIP_MLNAME_CAST(sipName_grabWindow), (PyCFunction)meth_QScreen_grabWindow, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QScreen_grabWindow)},
    {SIP_MLNAME_CAST(sipName_isLandscape), meth_QScreen_isLandscape, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_isLandscape)},
    {SIP_MLNAME_CAST(sipName_isPortrait), meth_QScreen_isPortrait, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_isPortrait)},
    {SIP_MLNAME_CAST(sipName_logicalDotsPerInch), meth_QScreen_logicalDotsPerInch, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_logicalDotsPerInch)},
    {SIP_MLNAME_CAST(sipName_logicalDotsPerInchX), meth_QScreen_logicalDotsPerInchX, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_logicalDotsPerInchX)},
    {SIP_MLNAME_CAST(sipName_logicalDotsPerInchY), meth_QScreen_logicalDotsPerInchY, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_logicalDotsPerInchY)},
    {SIP_MLNAME_CAST(sipName_mapBetween), meth_QScreen_mapBetween, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_mapBetween)},
    {SIP_MLNAME_CAST(sipName_name), meth_QScreen_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_name)},
    {SIP_MLNAME_CAST(sipName_nativeOrientation), meth_QScreen_nativeOrientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_nativeOrientation)},
    {SIP_MLNAME_CAST(sipName_orientation), meth_QScreen_orientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_orientation)},
    {SIP_MLNAME_CAST(sipName_orientationUpdateMask), meth_QScreen_orientationUpdateMask, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_orientationUpdateMask)},
    {SIP_MLNAME_CAST(sipName_physicalDotsPerInch), meth_QScreen_physicalDotsPerInch, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_physicalDotsPerInch)},
    {SIP_MLNAME_CAST(sipName_physicalDotsPerInchX), meth_QScreen_physicalDotsPerInchX, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_physicalDotsPerInchX)},
    {SIP_MLNAME_CAST(sipName_physicalDotsPerInchY), meth_QScreen_physicalDotsPerInchY, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_physicalDotsPerInchY)},
    {SIP_MLNAME_CAST(sipName_physicalSize), meth_QScreen_physicalSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_physicalSize)},
    {SIP_MLNAME_CAST(sipName_primaryOrientation), meth_QScreen_primaryOrientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_primaryOrientation)},
    {SIP_MLNAME_CAST(sipName_refreshRate), meth_QScreen_refreshRate, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_refreshRate)},
    {SIP_MLNAME_CAST(sipName_setOrientationUpdateMask), meth_QScreen_setOrientationUpdateMask, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_setOrientationUpdateMask)},
    {SIP_MLNAME_CAST(sipName_size), meth_QScreen_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_size)},
    {SIP_MLNAME_CAST(sipName_transformBetween), meth_QScreen_transformBetween, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_transformBetween)},
    {SIP_MLNAME_CAST(sipName_virtualGeometry), meth_QScreen_virtualGeometry, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_virtualGeometry)},
    {SIP_MLNAME_CAST(sipName_virtualSiblings), meth_QScreen_virtualSiblings, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_virtualSiblings)},
    {SIP_MLNAME_CAST(sipName_virtualSize), meth_QScreen_virtualSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QScreen_virtualSize)}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QScreen[] = {
    {"availableGeometryChanged(QRect)", "\1QScreen.availableGeometryChanged[QRect]", 0, 0},
    {"virtualGeometryChanged(QRect)", "\1QScreen.virtualGeometryChanged[QRect]", 0, 0},
    {"physicalSizeChanged(QSizeF)", "\1QScreen.physicalSizeChanged[QSizeF]", 0, 0},
    {"refreshRateChanged(qreal)", "\1QScreen.refreshRateChanged[float]", 0, 0},
    {"orientationChanged(Qt::ScreenOrientation)", "\1QScreen.orientationChanged[Qt.ScreenOrientation]", 0, 0},
    {"primaryOrientationChanged(Qt::ScreenOrientation)", "\1QScreen.primaryOrientationChanged[Qt.ScreenOrientation]", 0, 0},
    {"logicalDotsPerInchChanged(qreal)", "\1QScreen.logicalDotsPerInchChanged[float]", 0, 0},
    {"physicalDotsPerInchChanged(qreal)", "\1QScreen.physicalDotsPerInchChanged[float]", 0, 0},
    {"geometryChanged(QRect)", "\1QScreen.geometryChanged[QRect]", 0, 0},
    {0, 0, 0, 0}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QScreen = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QScreen,
        {0}
    },
    {
        sipNameNr_QScreen,
        {0, 0, 1},
        31, methods_QScreen,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QScreen,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScreen,
    0,
    0,
    0,
    release_QScreen,
    cast_QScreen,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QScreen::staticMetaObject,
    0,
    signals_QScreen,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 67535 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 67539 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 67542 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 67545 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 67548 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 67551 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 67554 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 67557 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 67560 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QRegion_isEmpty, "QRegion.isEmpty() -> bool");

extern "C" {static PyObject *meth_QRegion_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_QRegion_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRegion, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEmpty();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_isEmpty, doc_QRegion_isEmpty);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_contains, "QRegion.contains(QPoint) -> bool\n"
    "QRegion.contains(QRect) -> bool");

extern "C" {static PyObject *meth_QRegion_contains(PyObject *, PyObject *);}
static PyObject *meth_QRegion_contains(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QPoint, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->contains(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QRect* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRect, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->contains(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_contains, doc_QRegion_contains);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_translate, "QRegion.translate(int, int)\n"
    "QRegion.translate(QPoint)");

extern "C" {static PyObject *meth_QRegion_translate(PyObject *, PyObject *);}
static PyObject *meth_QRegion_translate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QRegion, &sipCpp, &a0, &a1))
        {
            sipCpp->translate(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->translate(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_translate, doc_QRegion_translate);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_translated, "QRegion.translated(int, int) -> QRegion\n"
    "QRegion.translated(QPoint) -> QRegion");

extern "C" {static PyObject *meth_QRegion_translated(PyObject *, PyObject *);}
static PyObject *meth_QRegion_translated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QRegion, &sipCpp, &a0, &a1))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->translated(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    {
        const QPoint* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QPoint, &a0))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->translated(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_translated, doc_QRegion_translated);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_united, "QRegion.united(QRegion) -> QRegion\n"
    "QRegion.united(QRect) -> QRegion");

extern "C" {static PyObject *meth_QRegion_united(PyObject *, PyObject *);}
static PyObject *meth_QRegion_united(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRegion, &a0))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->united(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    {
        const QRect* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRect, &a0))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->united(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_united, doc_QRegion_united);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_boundingRect, "QRegion.boundingRect() -> QRect");

extern "C" {static PyObject *meth_QRegion_boundingRect(PyObject *, PyObject *);}
static PyObject *meth_QRegion_boundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRegion, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->boundingRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_boundingRect, doc_QRegion_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_rects, "QRegion.rects() -> list-of-QRect");

extern "C" {static PyObject *meth_QRegion_rects(PyObject *, PyObject *);}
static PyObject *meth_QRegion_rects(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRegion, &sipCpp))
        {
            QVector<QRect>*sipRes;

            sipRes = new QVector<QRect>(sipCpp->rects());

            return sipConvertFromNewType(sipRes,sipType_QVector_0100QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_rects, doc_QRegion_rects);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_intersected, "QRegion.intersected(QRegion) -> QRegion\n"
    "QRegion.intersected(QRect) -> QRegion");

extern "C" {static PyObject *meth_QRegion_intersected(PyObject *, PyObject *);}
static PyObject *meth_QRegion_intersected(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRegion, &a0))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->intersected(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    {
        const QRect* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRect, &a0))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->intersected(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_intersected, doc_QRegion_intersected);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_subtracted, "QRegion.subtracted(QRegion) -> QRegion");

extern "C" {static PyObject *meth_QRegion_subtracted(PyObject *, PyObject *);}
static PyObject *meth_QRegion_subtracted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRegion, &a0))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->subtracted(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_subtracted, doc_QRegion_subtracted);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_xored, "QRegion.xored(QRegion) -> QRegion");

extern "C" {static PyObject *meth_QRegion_xored(PyObject *, PyObject *);}
static PyObject *meth_QRegion_xored(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRegion, &a0))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->xored(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_xored, doc_QRegion_xored);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_intersects, "QRegion.intersects(QRegion) -> bool\n"
    "QRegion.intersects(QRect) -> bool");

extern "C" {static PyObject *meth_QRegion_intersects(PyObject *, PyObject *);}
static PyObject *meth_QRegion_intersects(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRegion, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->intersects(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QRect* a0;
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRect, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->intersects(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_intersects, doc_QRegion_intersects);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_rectCount, "QRegion.rectCount() -> int");

extern "C" {static PyObject *meth_QRegion_rectCount(PyObject *, PyObject *);}
static PyObject *meth_QRegion_rectCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRegion, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->rectCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_rectCount, doc_QRegion_rectCount);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_swap, "QRegion.swap(QRegion)");

extern "C" {static PyObject *meth_QRegion_swap(PyObject *, PyObject *);}
static PyObject *meth_QRegion_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRegion* a0;
        QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRegion, &sipCpp, sipType_QRegion, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_swap, doc_QRegion_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QRegion_isNull, "QRegion.isNull() -> bool");

extern "C" {static PyObject *meth_QRegion_isNull(PyObject *, PyObject *);}
static PyObject *meth_QRegion_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRegion, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName_isNull, doc_QRegion_isNull);

    return NULL;
}


extern "C" {static PyObject *slot_QRegion___mul__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QRegion, &a0, sipType_QTransform, &a1))
        {
            QRegion*sipRes;

            sipRes = new QRegion((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QRegion___ne__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QRegion *sipCpp = reinterpret_cast<QRegion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRegion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRegion, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QRegion::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QRegion,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QRegion___eq__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QRegion *sipCpp = reinterpret_cast<QRegion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRegion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRegion, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QRegion::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QRegion,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QRegion___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QRegion)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QRegion *sipCpp = reinterpret_cast<QRegion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRegion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRegion, &a0))
        {
            sipCpp->QRegion::operator^=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QRegion___isub__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QRegion)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QRegion *sipCpp = reinterpret_cast<QRegion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRegion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRegion, &a0))
        {
            sipCpp->QRegion::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QRegion___iand__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QRegion)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QRegion *sipCpp = reinterpret_cast<QRegion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRegion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRegion, &a0))
        {
            sipCpp->QRegion::operator&=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const QRect* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRect, &a0))
        {
            sipCpp->QRegion::operator&=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QRegion___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QRegion)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QRegion *sipCpp = reinterpret_cast<QRegion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRegion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRegion, &a0))
        {
            sipCpp->QRegion::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const QRect* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRect, &a0))
        {
            sipCpp->QRegion::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QRegion___ior__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QRegion)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QRegion *sipCpp = reinterpret_cast<QRegion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRegion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRegion, &a0))
        {
            sipCpp->QRegion::operator|=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QRegion___xor__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QRegion* a0;
        const QRegion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QRegion, &a0, sipType_QRegion, &a1))
        {
            QRegion*sipRes;

            sipRes = new QRegion((*a0 ^ *a1));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QRegion___sub__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___sub__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QRegion* a0;
        const QRegion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QRegion, &a0, sipType_QRegion, &a1))
        {
            QRegion*sipRes;

            sipRes = new QRegion((*a0 - *a1));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,sub_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QRegion___and__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QRegion* a0;
        const QRegion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QRegion, &a0, sipType_QRegion, &a1))
        {
            QRegion*sipRes;

            sipRes = new QRegion((*a0 & *a1));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    {
        QRegion* a0;
        const QRect* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QRegion, &a0, sipType_QRect, &a1))
        {
            QRegion*sipRes;

            sipRes = new QRegion((*a0 & *a1));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QRegion___add__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___add__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QRegion* a0;
        const QRegion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QRegion, &a0, sipType_QRegion, &a1))
        {
            QRegion*sipRes;

            sipRes = new QRegion((*a0 + *a1));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    {
        QRegion* a0;
        const QRect* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QRegion, &a0, sipType_QRect, &a1))
        {
            QRegion*sipRes;

            sipRes = new QRegion((*a0 + *a1));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,add_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QRegion___or__(PyObject *,PyObject *);}
static PyObject *slot_QRegion___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QRegion* a0;
        const QRegion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QRegion, &a0, sipType_QRegion, &a1))
        {
            QRegion*sipRes;

            sipRes = new QRegion((*a0 | *a1));

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static int slot_QRegion___contains__(PyObject *,PyObject *);}
static int slot_QRegion___contains__(PyObject *sipSelf,PyObject *sipArg)
{
    QRegion *sipCpp = reinterpret_cast<QRegion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRegion));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPoint, &a0))
        {
            int sipRes = 0;

#line 64 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
        sipRes = sipCpp->contains(*a0);
#line 68542 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    {
        const QRect* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRect, &a0))
        {
            int sipRes = 0;

#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
        sipRes = sipCpp->contains(*a0);
#line 68557 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRegion, sipName___contains__, NULL);

    return -1;
}


extern "C" {static int slot_QRegion___bool__(PyObject *);}
static int slot_QRegion___bool__(PyObject *sipSelf)
{
    QRegion *sipCpp = reinterpret_cast<QRegion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRegion));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 58 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
        sipRes = !sipCpp->isEmpty();
#line 68585 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QRegion(void *, const sipTypeDef *);}
static void *cast_QRegion(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QRegion)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QRegion(void *, int);}
static void release_QRegion(void *sipCppV,int)
{
    delete reinterpret_cast<QRegion *>(sipCppV);
}


extern "C" {static void assign_QRegion(void *, SIP_SSIZE_T, const void *);}
static void assign_QRegion(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QRegion *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QRegion *>(sipSrc);
}


extern "C" {static void *array_QRegion(SIP_SSIZE_T);}
static void *array_QRegion(SIP_SSIZE_T sipNrElem)
{
    return new QRegion[sipNrElem];
}


extern "C" {static void *copy_QRegion(const void *, SIP_SSIZE_T);}
static void *copy_QRegion(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QRegion(reinterpret_cast<const QRegion *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QRegion(sipSimpleWrapper *);}
static void dealloc_QRegion(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QRegion(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QRegion(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QRegion(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QRegion *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QRegion();

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QRegion::RegionType a4 = QRegion::Rectangle;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_type,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "iiii|E", &a0, &a1, &a2, &a3, sipType_QRegion_RegionType, &a4))
        {
            sipCpp = new QRegion(a0,a1,a2,a3,a4);

            return sipCpp;
        }
    }

    {
        const QRect* a0;
        QRegion::RegionType a1 = QRegion::Rectangle;

        static const char *sipKwdList[] = {
            NULL,
            sipName_type,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|E", sipType_QRect, &a0, sipType_QRegion_RegionType, &a1))
        {
            sipCpp = new QRegion(*a0,a1);

            return sipCpp;
        }
    }

    {
        const QPolygon* a0;
        Qt::FillRule a1 = Qt::OddEvenFill;

        static const char *sipKwdList[] = {
            NULL,
            sipName_fillRule,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|E", sipType_QPolygon, &a0, sipType_Qt_FillRule, &a1))
        {
            sipCpp = new QRegion(*a0,a1);

            return sipCpp;
        }
    }

    {
        const QBitmap* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QBitmap, &a0))
        {
            sipCpp = new QRegion(*a0);

            return sipCpp;
        }
    }

    {
        const QRegion* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QRegion, &a0))
        {
            sipCpp = new QRegion(*a0);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
        if (a0->canConvert<QRegion>())
            sipCpp = new QRegion(a0->value<QRegion>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 68752 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QRegion[] = {
    {(void *)slot_QRegion___mul__, mul_slot},
    {(void *)slot_QRegion___ne__, ne_slot},
    {(void *)slot_QRegion___eq__, eq_slot},
    {(void *)slot_QRegion___ixor__, ixor_slot},
    {(void *)slot_QRegion___isub__, isub_slot},
    {(void *)slot_QRegion___iand__, iand_slot},
    {(void *)slot_QRegion___iadd__, iadd_slot},
    {(void *)slot_QRegion___ior__, ior_slot},
    {(void *)slot_QRegion___xor__, xor_slot},
    {(void *)slot_QRegion___sub__, sub_slot},
    {(void *)slot_QRegion___and__, and_slot},
    {(void *)slot_QRegion___add__, add_slot},
    {(void *)slot_QRegion___or__, or_slot},
    {(void *)slot_QRegion___contains__, contains_slot},
    {(void *)slot_QRegion___bool__, bool_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QRegion[] = {
    {SIP_MLNAME_CAST(sipName_boundingRect), meth_QRegion_boundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_boundingRect)},
    {SIP_MLNAME_CAST(sipName_contains), meth_QRegion_contains, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_contains)},
    {SIP_MLNAME_CAST(sipName_intersected), meth_QRegion_intersected, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_intersected)},
    {SIP_MLNAME_CAST(sipName_intersects), meth_QRegion_intersects, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_intersects)},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_QRegion_isEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_isEmpty)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QRegion_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_isNull)},
    {SIP_MLNAME_CAST(sipName_rectCount), meth_QRegion_rectCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_rectCount)},
    {SIP_MLNAME_CAST(sipName_rects), meth_QRegion_rects, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_rects)},
    {SIP_MLNAME_CAST(sipName_subtracted), meth_QRegion_subtracted, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_subtracted)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QRegion_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_swap)},
    {SIP_MLNAME_CAST(sipName_translate), meth_QRegion_translate, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_translate)},
    {SIP_MLNAME_CAST(sipName_translated), meth_QRegion_translated, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_translated)},
    {SIP_MLNAME_CAST(sipName_united), meth_QRegion_united, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_united)},
    {SIP_MLNAME_CAST(sipName_xored), meth_QRegion_xored, METH_VARARGS, SIP_MLDOC_CAST(doc_QRegion_xored)}
};

static sipEnumMemberDef enummembers_QRegion[] = {
    {sipName_Ellipse, static_cast<int>(QRegion::Ellipse), 237},
    {sipName_Rectangle, static_cast<int>(QRegion::Rectangle), 237},
};

PyDoc_STRVAR(doc_QRegion, "\1QRegion()\n"
    "QRegion(int, int, int, int, QRegion.RegionType type=QRegion.Rectangle)\n"
    "QRegion(QRect, QRegion.RegionType type=QRegion.Rectangle)\n"
    "QRegion(QPolygon, Qt.FillRule fillRule=Qt.OddEvenFill)\n"
    "QRegion(QBitmap)\n"
    "QRegion(QRegion)\n"
    "QRegion(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QRegion = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QRegion,
        {0}
    },
    {
        sipNameNr_QRegion,
        {0, 0, 1},
        14, methods_QRegion,
        2, enummembers_QRegion,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRegion,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QRegion,
    init_type_QRegion,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QRegion,
    assign_QRegion,
    array_QRegion,
    copy_QRegion,
    release_QRegion,
    cast_QRegion,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 68883 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 68887 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QRawFont_LayoutFlags___bool__(PyObject *);}
static int slot_QRawFont_LayoutFlags___bool__(PyObject *sipSelf)
{
    QRawFont::LayoutFlags *sipCpp = reinterpret_cast<QRawFont::LayoutFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont_LayoutFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QRawFont::LayoutFlags::Int() != 0);
#line 68905 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QRawFont::LayoutFlags *sipCpp = reinterpret_cast<QRawFont::LayoutFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont_LayoutFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRawFont::LayoutFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QRawFont_LayoutFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QRawFont::LayoutFlags::Int() != a0->operator QRawFont::LayoutFlags::Int());
#line 68935 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QRawFont::LayoutFlags *>(a0),sipType_QRawFont_LayoutFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QRawFont_LayoutFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QRawFont::LayoutFlags *sipCpp = reinterpret_cast<QRawFont::LayoutFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont_LayoutFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRawFont::LayoutFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QRawFont_LayoutFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QRawFont::LayoutFlags::Int() == a0->operator QRawFont::LayoutFlags::Int());
#line 68971 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QRawFont::LayoutFlags *>(a0),sipType_QRawFont_LayoutFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QRawFont_LayoutFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___invert__(PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___invert__(PyObject *sipSelf)
{
    QRawFont::LayoutFlags *sipCpp = reinterpret_cast<QRawFont::LayoutFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont_LayoutFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QRawFont::LayoutFlags*sipRes;

            sipRes = new QRawFont::LayoutFlags(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QRawFont_LayoutFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QRawFont::LayoutFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QRawFont_LayoutFlags, &a0, &a0State, &a1))
        {
            QRawFont::LayoutFlags*sipRes;

            sipRes = new QRawFont::LayoutFlags((*a0 & a1));
            sipReleaseType(a0,sipType_QRawFont_LayoutFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QRawFont_LayoutFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QRawFont::LayoutFlags* a0;
        int a0State = 0;
        QRawFont::LayoutFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QRawFont_LayoutFlags, &a0, &a0State, sipType_QRawFont_LayoutFlags, &a1, &a1State))
        {
            QRawFont::LayoutFlags*sipRes;

            sipRes = new QRawFont::LayoutFlags((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QRawFont_LayoutFlags,a0State);
            sipReleaseType(a1,sipType_QRawFont_LayoutFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QRawFont_LayoutFlags,NULL);
        }
    }

    {
        QRawFont::LayoutFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QRawFont_LayoutFlags, &a0, &a0State, &a1))
        {
            QRawFont::LayoutFlags*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QRawFont::LayoutFlags(*a0 ^ a1);
#line 69074 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QRawFont_LayoutFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QRawFont_LayoutFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QRawFont::LayoutFlags* a0;
        int a0State = 0;
        QRawFont::LayoutFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QRawFont_LayoutFlags, &a0, &a0State, sipType_QRawFont_LayoutFlags, &a1, &a1State))
        {
            QRawFont::LayoutFlags*sipRes;

            sipRes = new QRawFont::LayoutFlags((*a0 | *a1));
            sipReleaseType(a0,sipType_QRawFont_LayoutFlags,a0State);
            sipReleaseType(a1,sipType_QRawFont_LayoutFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QRawFont_LayoutFlags,NULL);
        }
    }

    {
        QRawFont::LayoutFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QRawFont_LayoutFlags, &a0, &a0State, &a1))
        {
            QRawFont::LayoutFlags*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QRawFont::LayoutFlags(*a0 | a1);
#line 69124 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QRawFont_LayoutFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QRawFont_LayoutFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___int__(PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___int__(PyObject *sipSelf)
{
    QRawFont::LayoutFlags *sipCpp = reinterpret_cast<QRawFont::LayoutFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont_LayoutFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QRawFont_LayoutFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QRawFont::LayoutFlags *sipCpp = reinterpret_cast<QRawFont::LayoutFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont_LayoutFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QRawFont::LayoutFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QRawFont_LayoutFlags, &a0, &a0State))
        {
            sipCpp->QRawFont::LayoutFlags::operator^=(*a0);
            sipReleaseType(a0,sipType_QRawFont_LayoutFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QRawFont_LayoutFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QRawFont::LayoutFlags *sipCpp = reinterpret_cast<QRawFont::LayoutFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont_LayoutFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QRawFont::LayoutFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QRawFont_LayoutFlags, &a0, &a0State))
        {
            sipCpp->QRawFont::LayoutFlags::operator|=(*a0);
            sipReleaseType(a0,sipType_QRawFont_LayoutFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QRawFont_LayoutFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont_LayoutFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QRawFont_LayoutFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QRawFont::LayoutFlags *sipCpp = reinterpret_cast<QRawFont::LayoutFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont_LayoutFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QRawFont::LayoutFlags::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QRawFont_LayoutFlags(void *, const sipTypeDef *);}
static void *cast_QRawFont_LayoutFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QRawFont_LayoutFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QRawFont_LayoutFlags(void *, int);}
static void release_QRawFont_LayoutFlags(void *sipCppV,int)
{
    delete reinterpret_cast<QRawFont::LayoutFlags *>(sipCppV);
}


extern "C" {static void assign_QRawFont_LayoutFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QRawFont_LayoutFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QRawFont::LayoutFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QRawFont::LayoutFlags *>(sipSrc);
}


extern "C" {static void *array_QRawFont_LayoutFlags(SIP_SSIZE_T);}
static void *array_QRawFont_LayoutFlags(SIP_SSIZE_T sipNrElem)
{
    return new QRawFont::LayoutFlags[sipNrElem];
}


extern "C" {static void *copy_QRawFont_LayoutFlags(const void *, SIP_SSIZE_T);}
static void *copy_QRawFont_LayoutFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QRawFont::LayoutFlags(reinterpret_cast<const QRawFont::LayoutFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QRawFont_LayoutFlags(sipSimpleWrapper *);}
static void dealloc_QRawFont_LayoutFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QRawFont_LayoutFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QRawFont_LayoutFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QRawFont_LayoutFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QRawFont::LayoutFlags *sipCpp = 0;

    {
        const QRawFont::LayoutFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QRawFont_LayoutFlags, &a0, &a0State))
        {
            sipCpp = new QRawFont::LayoutFlags(*a0);
            sipReleaseType(const_cast<QRawFont::LayoutFlags *>(a0),sipType_QRawFont_LayoutFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QRawFont::LayoutFlags(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QRawFont::LayoutFlags();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QRawFont_LayoutFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QRawFont_LayoutFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QRawFont::LayoutFlags **sipCppPtr = reinterpret_cast<QRawFont::LayoutFlags **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QRawFont::LayoutFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QRawFont_LayoutFlag)) ||
            sipCanConvertToType(sipPy, sipType_QRawFont_LayoutFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QRawFont_LayoutFlag)))
{
    *sipCppPtr = new QRawFont::LayoutFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QRawFont::LayoutFlags *>(sipConvertToType(sipPy, sipType_QRawFont_LayoutFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 69401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QRawFont_LayoutFlags[] = {
    {(void *)slot_QRawFont_LayoutFlags___bool__, bool_slot},
    {(void *)slot_QRawFont_LayoutFlags___ne__, ne_slot},
    {(void *)slot_QRawFont_LayoutFlags___eq__, eq_slot},
    {(void *)slot_QRawFont_LayoutFlags___invert__, invert_slot},
    {(void *)slot_QRawFont_LayoutFlags___and__, and_slot},
    {(void *)slot_QRawFont_LayoutFlags___xor__, xor_slot},
    {(void *)slot_QRawFont_LayoutFlags___or__, or_slot},
    {(void *)slot_QRawFont_LayoutFlags___int__, int_slot},
    {(void *)slot_QRawFont_LayoutFlags___ixor__, ixor_slot},
    {(void *)slot_QRawFont_LayoutFlags___ior__, ior_slot},
    {(void *)slot_QRawFont_LayoutFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QRawFont_LayoutFlags, "\1QRawFont.LayoutFlags(QRawFont.LayoutFlags)\n"
    "QRawFont.LayoutFlags(int)\n"
    "QRawFont.LayoutFlags()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QRawFont_LayoutFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QRawFont__LayoutFlags,
        {0}
    },
    {
        sipNameNr_LayoutFlags,
        {231, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRawFont_LayoutFlags,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QRawFont_LayoutFlags,
    init_type_QRawFont_LayoutFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QRawFont_LayoutFlags,
    assign_QRawFont_LayoutFlags,
    array_QRawFont_LayoutFlags,
    copy_QRawFont_LayoutFlags,
    release_QRawFont_LayoutFlags,
    cast_QRawFont_LayoutFlags,
    convertTo_QRawFont_LayoutFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 69483 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 69487 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 69490 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 69493 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 69496 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 69499 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qlist.sip"
#include <qfontdatabase.h>
#line 69502 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 69505 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 69508 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 69511 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 69514 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 69517 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 69520 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 69523 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 69526 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QRawFont_isValid, "QRawFont.isValid() -> bool");

extern "C" {static PyObject *meth_QRawFont_isValid(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_isValid, doc_QRawFont_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_familyName, "QRawFont.familyName() -> str");

extern "C" {static PyObject *meth_QRawFont_familyName(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_familyName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->familyName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_familyName, doc_QRawFont_familyName);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_styleName, "QRawFont.styleName() -> str");

extern "C" {static PyObject *meth_QRawFont_styleName(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_styleName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->styleName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_styleName, doc_QRawFont_styleName);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_style, "QRawFont.style() -> QFont.Style");

extern "C" {static PyObject *meth_QRawFont_style(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_style(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            QFont::Style sipRes;

            sipRes = sipCpp->style();

            return sipConvertFromEnum(sipRes,sipType_QFont_Style);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_style, doc_QRawFont_style);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_weight, "QRawFont.weight() -> int");

extern "C" {static PyObject *meth_QRawFont_weight(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_weight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->weight();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_weight, doc_QRawFont_weight);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_glyphIndexesForString, "QRawFont.glyphIndexesForString(str) -> list-of-int");

extern "C" {static PyObject *meth_QRawFont_glyphIndexesForString(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_glyphIndexesForString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QRawFont, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QVector<uint>*sipRes;

            sipRes = new QVector<uint>(sipCpp->glyphIndexesForString(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QVector_1900,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_glyphIndexesForString, doc_QRawFont_glyphIndexesForString);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_advancesForGlyphIndexes, "QRawFont.advancesForGlyphIndexes(list-of-int) -> list-of-QPointF\n"
    "QRawFont.advancesForGlyphIndexes(list-of-int, QRawFont.LayoutFlags) -> list-of-QPointF");

extern "C" {static PyObject *meth_QRawFont_advancesForGlyphIndexes(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_advancesForGlyphIndexes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector<uint>* a0;
        int a0State = 0;
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QRawFont, &sipCpp, sipType_QVector_1900,&a0, &a0State))
        {
            QVector<QPointF>*sipRes;

            sipRes = new QVector<QPointF>(sipCpp->advancesForGlyphIndexes(*a0));
            sipReleaseType(const_cast<QVector<uint> *>(a0),sipType_QVector_1900,a0State);

            return sipConvertFromNewType(sipRes,sipType_QVector_0100QPointF,NULL);
        }
    }

    {
        const QVector<uint>* a0;
        int a0State = 0;
        QRawFont::LayoutFlags* a1;
        int a1State = 0;
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QRawFont, &sipCpp, sipType_QVector_1900,&a0, &a0State, sipType_QRawFont_LayoutFlags, &a1, &a1State))
        {
            QVector<QPointF>*sipRes;

            sipRes = new QVector<QPointF>(sipCpp->advancesForGlyphIndexes(*a0,*a1));
            sipReleaseType(const_cast<QVector<uint> *>(a0),sipType_QVector_1900,a0State);
            sipReleaseType(a1,sipType_QRawFont_LayoutFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QVector_0100QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_advancesForGlyphIndexes, doc_QRawFont_advancesForGlyphIndexes);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_alphaMapForGlyph, "QRawFont.alphaMapForGlyph(int, QRawFont.AntialiasingType antialiasingType=QRawFont.SubPixelAntialiasing, QTransform transform=QTransform()) -> QImage");

extern "C" {static PyObject *meth_QRawFont_alphaMapForGlyph(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRawFont_alphaMapForGlyph(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        quint32 a0;
        QRawFont::AntialiasingType a1 = QRawFont::SubPixelAntialiasing;
        const QTransform& a2def = QTransform();
        const QTransform* a2 = &a2def;
        const QRawFont *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_antialiasingType,
            sipName_transform,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bu|EJ9", &sipSelf, sipType_QRawFont, &sipCpp, &a0, sipType_QRawFont_AntialiasingType, &a1, sipType_QTransform, &a2))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->alphaMapForGlyph(a0,a1,*a2));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_alphaMapForGlyph, doc_QRawFont_alphaMapForGlyph);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_pathForGlyph, "QRawFont.pathForGlyph(int) -> QPainterPath");

extern "C" {static PyObject *meth_QRawFont_pathForGlyph(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_pathForGlyph(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        quint32 a0;
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QRawFont, &sipCpp, &a0))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->pathForGlyph(a0));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_pathForGlyph, doc_QRawFont_pathForGlyph);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_setPixelSize, "QRawFont.setPixelSize(float)");

extern "C" {static PyObject *meth_QRawFont_setPixelSize(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_setPixelSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QRawFont, &sipCpp, &a0))
        {
            sipCpp->setPixelSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_setPixelSize, doc_QRawFont_setPixelSize);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_pixelSize, "QRawFont.pixelSize() -> float");

extern "C" {static PyObject *meth_QRawFont_pixelSize(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_pixelSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->pixelSize();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_pixelSize, doc_QRawFont_pixelSize);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_hintingPreference, "QRawFont.hintingPreference() -> QFont.HintingPreference");

extern "C" {static PyObject *meth_QRawFont_hintingPreference(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_hintingPreference(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            QFont::HintingPreference sipRes;

            sipRes = sipCpp->hintingPreference();

            return sipConvertFromEnum(sipRes,sipType_QFont_HintingPreference);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_hintingPreference, doc_QRawFont_hintingPreference);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_ascent, "QRawFont.ascent() -> float");

extern "C" {static PyObject *meth_QRawFont_ascent(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_ascent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->ascent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_ascent, doc_QRawFont_ascent);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_descent, "QRawFont.descent() -> float");

extern "C" {static PyObject *meth_QRawFont_descent(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_descent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->descent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_descent, doc_QRawFont_descent);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_leading, "QRawFont.leading() -> float");

extern "C" {static PyObject *meth_QRawFont_leading(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_leading(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->leading();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_leading, doc_QRawFont_leading);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_xHeight, "QRawFont.xHeight() -> float");

extern "C" {static PyObject *meth_QRawFont_xHeight(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_xHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->xHeight();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_xHeight, doc_QRawFont_xHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_averageCharWidth, "QRawFont.averageCharWidth() -> float");

extern "C" {static PyObject *meth_QRawFont_averageCharWidth(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_averageCharWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->averageCharWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_averageCharWidth, doc_QRawFont_averageCharWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_maxCharWidth, "QRawFont.maxCharWidth() -> float");

extern "C" {static PyObject *meth_QRawFont_maxCharWidth(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_maxCharWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->maxCharWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_maxCharWidth, doc_QRawFont_maxCharWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_unitsPerEm, "QRawFont.unitsPerEm() -> float");

extern "C" {static PyObject *meth_QRawFont_unitsPerEm(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_unitsPerEm(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->unitsPerEm();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_unitsPerEm, doc_QRawFont_unitsPerEm);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_loadFromFile, "QRawFont.loadFromFile(str, float, QFont.HintingPreference)");

extern "C" {static PyObject *meth_QRawFont_loadFromFile(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_loadFromFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        qreal a1;
        QFont::HintingPreference a2;
        QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1dE", &sipSelf, sipType_QRawFont, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QFont_HintingPreference, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->loadFromFile(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_loadFromFile, doc_QRawFont_loadFromFile);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_loadFromData, "QRawFont.loadFromData(QByteArray, float, QFont.HintingPreference)");

extern "C" {static PyObject *meth_QRawFont_loadFromData(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_loadFromData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        qreal a1;
        QFont::HintingPreference a2;
        QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1dE", &sipSelf, sipType_QRawFont, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1, sipType_QFont_HintingPreference, &a2))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->loadFromData(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_loadFromData, doc_QRawFont_loadFromData);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_supportsCharacter, "QRawFont.supportsCharacter(int) -> bool\n"
    "QRawFont.supportsCharacter(str) -> bool");

extern "C" {static PyObject *meth_QRawFont_supportsCharacter(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_supportsCharacter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        uint a0;
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QRawFont, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->supportsCharacter(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QChar* a0;
        int a0State = 0;
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QRawFont, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->supportsCharacter(*a0);
            sipReleaseType(a0,sipType_QChar,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_supportsCharacter, doc_QRawFont_supportsCharacter);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_supportedWritingSystems, "QRawFont.supportedWritingSystems() -> list-of-QFontDatabase.WritingSystem");

extern "C" {static PyObject *meth_QRawFont_supportedWritingSystems(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_supportedWritingSystems(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            QList<QFontDatabase::WritingSystem>*sipRes;

            sipRes = new QList<QFontDatabase::WritingSystem>(sipCpp->supportedWritingSystems());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QFontDatabase_WritingSystem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_supportedWritingSystems, doc_QRawFont_supportedWritingSystems);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_fontTable, "QRawFont.fontTable(str) -> QByteArray");

extern "C" {static PyObject *meth_QRawFont_fontTable(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_fontTable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char* a0;
        PyObject *a0Keep;
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_QRawFont, &sipCpp, &a0Keep, &a0))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(sipCpp->fontTable(a0));
            Py_DECREF(a0Keep);

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_fontTable, doc_QRawFont_fontTable);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_fromFont, "QRawFont.fromFont(QFont, QFontDatabase.WritingSystem writingSystem=QFontDatabase.Any) -> QRawFont");

extern "C" {static PyObject *meth_QRawFont_fromFont(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRawFont_fromFont(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;
        QFontDatabase::WritingSystem a1 = QFontDatabase::Any;

        static const char *sipKwdList[] = {
            NULL,
            sipName_writingSystem,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J9|E", sipType_QFont, &a0, sipType_QFontDatabase_WritingSystem, &a1))
        {
            QRawFont*sipRes;

            sipRes = new QRawFont(QRawFont::fromFont(*a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QRawFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_fromFont, doc_QRawFont_fromFont);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_boundingRect, "QRawFont.boundingRect(int) -> QRectF");

extern "C" {static PyObject *meth_QRawFont_boundingRect(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_boundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        quint32 a0;
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QRawFont, &sipCpp, &a0))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->boundingRect(a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_boundingRect, doc_QRawFont_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_lineThickness, "QRawFont.lineThickness() -> float");

extern "C" {static PyObject *meth_QRawFont_lineThickness(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_lineThickness(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->lineThickness();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_lineThickness, doc_QRawFont_lineThickness);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_underlinePosition, "QRawFont.underlinePosition() -> float");

extern "C" {static PyObject *meth_QRawFont_underlinePosition(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_underlinePosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRawFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->underlinePosition();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_underlinePosition, doc_QRawFont_underlinePosition);

    return NULL;
}


PyDoc_STRVAR(doc_QRawFont_swap, "QRawFont.swap(QRawFont)");

extern "C" {static PyObject *meth_QRawFont_swap(PyObject *, PyObject *);}
static PyObject *meth_QRawFont_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRawFont* a0;
        QRawFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QRawFont, &sipCpp, sipType_QRawFont, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRawFont, sipName_swap, doc_QRawFont_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QRawFont___ne__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QRawFont *sipCpp = reinterpret_cast<QRawFont *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRawFont* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRawFont, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QRawFont::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QRawFont,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QRawFont___eq__(PyObject *,PyObject *);}
static PyObject *slot_QRawFont___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QRawFont *sipCpp = reinterpret_cast<QRawFont *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QRawFont));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QRawFont* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QRawFont, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QRawFont::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QRawFont,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QRawFont(void *, const sipTypeDef *);}
static void *cast_QRawFont(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QRawFont)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QRawFont(void *, int);}
static void release_QRawFont(void *sipCppV,int)
{
    delete reinterpret_cast<QRawFont *>(sipCppV);
}


extern "C" {static void assign_QRawFont(void *, SIP_SSIZE_T, const void *);}
static void assign_QRawFont(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QRawFont *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QRawFont *>(sipSrc);
}


extern "C" {static void *array_QRawFont(SIP_SSIZE_T);}
static void *array_QRawFont(SIP_SSIZE_T sipNrElem)
{
    return new QRawFont[sipNrElem];
}


extern "C" {static void *copy_QRawFont(const void *, SIP_SSIZE_T);}
static void *copy_QRawFont(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QRawFont(reinterpret_cast<const QRawFont *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QRawFont(sipSimpleWrapper *);}
static void dealloc_QRawFont(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QRawFont(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QRawFont(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QRawFont(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QRawFont *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QRawFont();

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        qreal a1;
        QFont::HintingPreference a2 = QFont::PreferDefaultHinting;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_hintingPreference,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1d|E", sipType_QString,&a0, &a0State, &a1, sipType_QFont_HintingPreference, &a2))
        {
            sipCpp = new QRawFont(*a0,a1,a2);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QByteArray* a0;
        int a0State = 0;
        qreal a1;
        QFont::HintingPreference a2 = QFont::PreferDefaultHinting;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_hintingPreference,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1d|E", sipType_QByteArray, &a0, &a0State, &a1, sipType_QFont_HintingPreference, &a2))
        {
            sipCpp = new QRawFont(*a0,a1,a2);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return sipCpp;
        }
    }

    {
        const QRawFont* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QRawFont, &a0))
        {
            sipCpp = new QRawFont(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QRawFont[] = {
    {(void *)slot_QRawFont___ne__, ne_slot},
    {(void *)slot_QRawFont___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QRawFont[] = {
    {SIP_MLNAME_CAST(sipName_advancesForGlyphIndexes), meth_QRawFont_advancesForGlyphIndexes, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_advancesForGlyphIndexes)},
    {SIP_MLNAME_CAST(sipName_alphaMapForGlyph), (PyCFunction)meth_QRawFont_alphaMapForGlyph, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QRawFont_alphaMapForGlyph)},
    {SIP_MLNAME_CAST(sipName_ascent), meth_QRawFont_ascent, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_ascent)},
    {SIP_MLNAME_CAST(sipName_averageCharWidth), meth_QRawFont_averageCharWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_averageCharWidth)},
    {SIP_MLNAME_CAST(sipName_boundingRect), meth_QRawFont_boundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_boundingRect)},
    {SIP_MLNAME_CAST(sipName_descent), meth_QRawFont_descent, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_descent)},
    {SIP_MLNAME_CAST(sipName_familyName), meth_QRawFont_familyName, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_familyName)},
    {SIP_MLNAME_CAST(sipName_fontTable), meth_QRawFont_fontTable, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_fontTable)},
    {SIP_MLNAME_CAST(sipName_fromFont), (PyCFunction)meth_QRawFont_fromFont, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QRawFont_fromFont)},
    {SIP_MLNAME_CAST(sipName_glyphIndexesForString), meth_QRawFont_glyphIndexesForString, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_glyphIndexesForString)},
    {SIP_MLNAME_CAST(sipName_hintingPreference), meth_QRawFont_hintingPreference, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_hintingPreference)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QRawFont_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_isValid)},
    {SIP_MLNAME_CAST(sipName_leading), meth_QRawFont_leading, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_leading)},
    {SIP_MLNAME_CAST(sipName_lineThickness), meth_QRawFont_lineThickness, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_lineThickness)},
    {SIP_MLNAME_CAST(sipName_loadFromData), meth_QRawFont_loadFromData, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_loadFromData)},
    {SIP_MLNAME_CAST(sipName_loadFromFile), meth_QRawFont_loadFromFile, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_loadFromFile)},
    {SIP_MLNAME_CAST(sipName_maxCharWidth), meth_QRawFont_maxCharWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_maxCharWidth)},
    {SIP_MLNAME_CAST(sipName_pathForGlyph), meth_QRawFont_pathForGlyph, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_pathForGlyph)},
    {SIP_MLNAME_CAST(sipName_pixelSize), meth_QRawFont_pixelSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_pixelSize)},
    {SIP_MLNAME_CAST(sipName_setPixelSize), meth_QRawFont_setPixelSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_setPixelSize)},
    {SIP_MLNAME_CAST(sipName_style), meth_QRawFont_style, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_style)},
    {SIP_MLNAME_CAST(sipName_styleName), meth_QRawFont_styleName, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_styleName)},
    {SIP_MLNAME_CAST(sipName_supportedWritingSystems), meth_QRawFont_supportedWritingSystems, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_supportedWritingSystems)},
    {SIP_MLNAME_CAST(sipName_supportsCharacter), meth_QRawFont_supportsCharacter, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_supportsCharacter)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QRawFont_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_swap)},
    {SIP_MLNAME_CAST(sipName_underlinePosition), meth_QRawFont_underlinePosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_underlinePosition)},
    {SIP_MLNAME_CAST(sipName_unitsPerEm), meth_QRawFont_unitsPerEm, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_unitsPerEm)},
    {SIP_MLNAME_CAST(sipName_weight), meth_QRawFont_weight, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_weight)},
    {SIP_MLNAME_CAST(sipName_xHeight), meth_QRawFont_xHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QRawFont_xHeight)}
};

static sipEnumMemberDef enummembers_QRawFont[] = {
    {sipName_KernedAdvances, static_cast<int>(QRawFont::KernedAdvances), 233},
    {sipName_PixelAntialiasing, static_cast<int>(QRawFont::PixelAntialiasing), 232},
    {sipName_SeparateAdvances, static_cast<int>(QRawFont::SeparateAdvances), 233},
    {sipName_SubPixelAntialiasing, static_cast<int>(QRawFont::SubPixelAntialiasing), 232},
    {sipName_UseDesignMetrics, static_cast<int>(QRawFont::UseDesignMetrics), 233},
};

PyDoc_STRVAR(doc_QRawFont, "\1QRawFont()\n"
    "QRawFont(str, float, QFont.HintingPreference hintingPreference=QFont.PreferDefaultHinting)\n"
    "QRawFont(QByteArray, float, QFont.HintingPreference hintingPreference=QFont.PreferDefaultHinting)\n"
    "QRawFont(QRawFont)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QRawFont = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QRawFont,
        {0}
    },
    {
        sipNameNr_QRawFont,
        {0, 0, 1},
        29, methods_QRawFont,
        5, enummembers_QRawFont,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRawFont,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QRawFont,
    init_type_QRawFont,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QRawFont,
    assign_QRawFont,
    array_QRawFont,
    copy_QRawFont,
    release_QRawFont,
    cast_QRawFont,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrasterwindow.sip"
#include <qrasterwindow.h>
#line 70685 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 70689 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 70692 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 70695 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 743 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70698 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70701 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 70704 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 70707 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 70710 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70713 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70716 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 247 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70719 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 202 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70722 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 333 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70725 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 441 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70728 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 430 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70731 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 354 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70734 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70737 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 395 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 70740 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 70743 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 70746 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 70749 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 70752 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 70755 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 70758 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 70761 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 70764 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 70767 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 70770 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 70773 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 70776 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 70779 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 70782 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 70785 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 70788 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 70791 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 70794 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 70797 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 70800 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 70803 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 70806 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 70809 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 70812 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 70815 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQRasterWindow : public QRasterWindow
{
public:
    sipQRasterWindow(QWindow*);
    virtual ~sipQRasterWindow();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtectVirt_resizeEvent(bool,QResizeEvent*);
    void sipProtectVirt_moveEvent(bool,QMoveEvent*);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent*);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent*);
    void sipProtectVirt_showEvent(bool,QShowEvent*);
    void sipProtectVirt_hideEvent(bool,QHideEvent*);
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent*);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent*);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent*);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent*);
    void sipProtectVirt_touchEvent(bool,QTouchEvent*);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent*);
    void sipProtectVirt_paintEvent(bool,QPaintEvent*);
    void sipProtectVirt_exposeEvent(bool,QExposeEvent*);
    bool sipProtectVirt_event(bool,QEvent*);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QPaintEngine* paintEngine() const;
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    void tabletEvent(QTabletEvent*);
    void touchEvent(QTouchEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void keyPressEvent(QKeyEvent*);
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void moveEvent(QMoveEvent*);
    void resizeEvent(QResizeEvent*);
    QObject* focusObject() const;
    QSize size() const;
    QSurfaceFormat format() const;
    QSurface::SurfaceType surfaceType() const;
    bool event(QEvent*);
    void exposeEvent(QExposeEvent*);
    void paintEvent(QPaintEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQRasterWindow(const sipQRasterWindow &);
    sipQRasterWindow &operator = (const sipQRasterWindow &);

    char sipPyMethods[30];
};

sipQRasterWindow::sipQRasterWindow(QWindow*a0): QRasterWindow(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQRasterWindow::~sipQRasterWindow()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQRasterWindow::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QRasterWindow);
}

int sipQRasterWindow::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QRasterWindow::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QRasterWindow,_c,_id,_a);

    return _id;
}

void *sipQRasterWindow::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QRasterWindow, _clname, &sipCpp) ? sipCpp : QRasterWindow::qt_metacast(_clname));
}

QPaintEngine* sipQRasterWindow::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_QRasterWindow,sipName_paintEngine);

    if (!sipMeth)
        return 0;

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQRasterWindow::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QRasterWindow::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QRasterWindow::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QRasterWindow::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QRasterWindow::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QRasterWindow::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQRasterWindow::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QRasterWindow::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQRasterWindow::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        QRasterWindow::tabletEvent(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    sipVH_QtGui_0(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::touchEvent(QTouchEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_touchEvent);

    if (!sipMeth)
    {
        QRasterWindow::touchEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTouchEvent*);

    sipVH_QtGui_1(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        QRasterWindow::wheelEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    sipVH_QtGui_2(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        QRasterWindow::mouseMoveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        QRasterWindow::mouseDoubleClickEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        QRasterWindow::mouseReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        QRasterWindow::mousePressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        QRasterWindow::keyReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    sipVH_QtGui_4(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        QRasterWindow::keyPressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    sipVH_QtGui_4(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        QRasterWindow::hideEvent(a0);
        return;
    }

    extern void sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    sipVH_QtGui_5(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        QRasterWindow::showEvent(a0);
        return;
    }

    extern void sipVH_QtGui_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    sipVH_QtGui_6(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        QRasterWindow::focusOutEvent(a0);
        return;
    }

    extern void sipVH_QtGui_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    sipVH_QtGui_7(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        QRasterWindow::focusInEvent(a0);
        return;
    }

    extern void sipVH_QtGui_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    sipVH_QtGui_7(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        QRasterWindow::moveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    sipVH_QtGui_8(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        QRasterWindow::resizeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    sipVH_QtGui_9(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQRasterWindow::focusObject() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_focusObject);

    if (!sipMeth)
        return QRasterWindow::focusObject();

    extern QObject* sipVH_QtGui_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_11(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQRasterWindow::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return QRasterWindow::size();

    extern QSize sipVH_QtGui_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_12(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSurfaceFormat sipQRasterWindow::format() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_format);

    if (!sipMeth)
        return QRasterWindow::format();

    extern QSurfaceFormat sipVH_QtGui_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_13(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSurface::SurfaceType sipQRasterWindow::surfaceType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,NULL,sipName_surfaceType);

    if (!sipMeth)
        return QRasterWindow::surfaceType();

    extern QSurface::SurfaceType sipVH_QtGui_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_14(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQRasterWindow::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QRasterWindow::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::exposeEvent(QExposeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,NULL,sipName_exposeEvent);

    if (!sipMeth)
    {
        QRasterWindow::exposeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QExposeEvent*);

    sipVH_QtGui_10(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQRasterWindow::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        QRasterWindow::paintEvent(a0);
        return;
    }

    extern void sipVH_QtGui_52(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    sipVH_QtGui_52(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQRasterWindow::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[29]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QRasterWindow::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQRasterWindow::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQRasterWindow::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQRasterWindow::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQRasterWindow::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQRasterWindow::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQRasterWindow::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQRasterWindow::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent*a0)
{
    (sipSelfWasArg ? QWindow::resizeEvent(a0) : resizeEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent*a0)
{
    (sipSelfWasArg ? QWindow::moveEvent(a0) : moveEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWindow::focusInEvent(a0) : focusInEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWindow::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent*a0)
{
    (sipSelfWasArg ? QWindow::showEvent(a0) : showEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent*a0)
{
    (sipSelfWasArg ? QWindow::hideEvent(a0) : hideEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWindow::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWindow::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent*a0)
{
    (sipSelfWasArg ? QWindow::wheelEvent(a0) : wheelEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_touchEvent(bool sipSelfWasArg,QTouchEvent*a0)
{
    (sipSelfWasArg ? QWindow::touchEvent(a0) : touchEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent*a0)
{
    (sipSelfWasArg ? QWindow::tabletEvent(a0) : tabletEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent*a0)
{
    (sipSelfWasArg ? QPaintDeviceWindow::paintEvent(a0) : paintEvent(a0));
}

void sipQRasterWindow::sipProtectVirt_exposeEvent(bool sipSelfWasArg,QExposeEvent*a0)
{
    (sipSelfWasArg ? QPaintDeviceWindow::exposeEvent(a0) : exposeEvent(a0));
}

bool sipQRasterWindow::sipProtectVirt_event(bool sipSelfWasArg,QEvent*a0)
{
    return (sipSelfWasArg ? QPaintDeviceWindow::event(a0) : event(a0));
}

int sipQRasterWindow::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QRasterWindow::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QRasterWindow_sender, "QRasterWindow.sender() -> QObject");

extern "C" {static PyObject *meth_QRasterWindow_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QRasterWindow, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 71636 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_sender, doc_QRasterWindow_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_receivers, "QRasterWindow.receivers(signal) -> int");

extern "C" {static PyObject *meth_QRasterWindow_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QRasterWindow, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 71695 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_receivers, doc_QRasterWindow_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_timerEvent, "QRasterWindow.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QRasterWindow_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_timerEvent, doc_QRasterWindow_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_childEvent, "QRasterWindow.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QRasterWindow_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_childEvent, doc_QRasterWindow_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_customEvent, "QRasterWindow.customEvent(QEvent)");

extern "C" {static PyObject *meth_QRasterWindow_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_customEvent, doc_QRasterWindow_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_connectNotify, "QRasterWindow.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QRasterWindow_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_connectNotify, doc_QRasterWindow_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_disconnectNotify, "QRasterWindow.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QRasterWindow_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_disconnectNotify, doc_QRasterWindow_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_senderSignalIndex, "QRasterWindow.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QRasterWindow_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QRasterWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_senderSignalIndex, doc_QRasterWindow_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_isSignalConnected, "QRasterWindow.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QRasterWindow_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_isSignalConnected, doc_QRasterWindow_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_resizeEvent, "QRasterWindow.resizeEvent(QResizeEvent)");

extern "C" {static PyObject *meth_QRasterWindow_resizeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_resizeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QResizeEvent, &a0))
        {
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_resizeEvent, doc_QRasterWindow_resizeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_moveEvent, "QRasterWindow.moveEvent(QMoveEvent)");

extern "C" {static PyObject *meth_QRasterWindow_moveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_moveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_moveEvent, doc_QRasterWindow_moveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_focusInEvent, "QRasterWindow.focusInEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QRasterWindow_focusInEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_focusInEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_focusInEvent, doc_QRasterWindow_focusInEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_focusOutEvent, "QRasterWindow.focusOutEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QRasterWindow_focusOutEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_focusOutEvent, doc_QRasterWindow_focusOutEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_showEvent, "QRasterWindow.showEvent(QShowEvent)");

extern "C" {static PyObject *meth_QRasterWindow_showEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_showEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QShowEvent, &a0))
        {
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_showEvent, doc_QRasterWindow_showEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_hideEvent, "QRasterWindow.hideEvent(QHideEvent)");

extern "C" {static PyObject *meth_QRasterWindow_hideEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_hideEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QHideEvent, &a0))
        {
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_hideEvent, doc_QRasterWindow_hideEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_keyPressEvent, "QRasterWindow.keyPressEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QRasterWindow_keyPressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_keyPressEvent, doc_QRasterWindow_keyPressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_keyReleaseEvent, "QRasterWindow.keyReleaseEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QRasterWindow_keyReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_keyReleaseEvent, doc_QRasterWindow_keyReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_mousePressEvent, "QRasterWindow.mousePressEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QRasterWindow_mousePressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_mousePressEvent, doc_QRasterWindow_mousePressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_mouseReleaseEvent, "QRasterWindow.mouseReleaseEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QRasterWindow_mouseReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_mouseReleaseEvent, doc_QRasterWindow_mouseReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_mouseDoubleClickEvent, "QRasterWindow.mouseDoubleClickEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QRasterWindow_mouseDoubleClickEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_mouseDoubleClickEvent, doc_QRasterWindow_mouseDoubleClickEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_mouseMoveEvent, "QRasterWindow.mouseMoveEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QRasterWindow_mouseMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_mouseMoveEvent, doc_QRasterWindow_mouseMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_wheelEvent, "QRasterWindow.wheelEvent(QWheelEvent)");

extern "C" {static PyObject *meth_QRasterWindow_wheelEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_wheelEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QWheelEvent, &a0))
        {
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_wheelEvent, doc_QRasterWindow_wheelEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_touchEvent, "QRasterWindow.touchEvent(QTouchEvent)");

extern "C" {static PyObject *meth_QRasterWindow_touchEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_touchEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTouchEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QTouchEvent, &a0))
        {
            sipCpp->sipProtectVirt_touchEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_touchEvent, doc_QRasterWindow_touchEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_tabletEvent, "QRasterWindow.tabletEvent(QTabletEvent)");

extern "C" {static PyObject *meth_QRasterWindow_tabletEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_tabletEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QTabletEvent, &a0))
        {
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_tabletEvent, doc_QRasterWindow_tabletEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_paintEvent, "QRasterWindow.paintEvent(QPaintEvent)");

extern "C" {static PyObject *meth_QRasterWindow_paintEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_paintEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QPaintEvent, &a0))
        {
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_paintEvent, doc_QRasterWindow_paintEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_exposeEvent, "QRasterWindow.exposeEvent(QExposeEvent)");

extern "C" {static PyObject *meth_QRasterWindow_exposeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_exposeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QExposeEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QExposeEvent, &a0))
        {
            sipCpp->sipProtectVirt_exposeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_exposeEvent, doc_QRasterWindow_exposeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_event, "QRasterWindow.event(QEvent) -> bool");

extern "C" {static PyObject *meth_QRasterWindow_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_event, doc_QRasterWindow_event);

    return NULL;
}


PyDoc_STRVAR(doc_QRasterWindow_metric, "QRasterWindow.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QRasterWindow_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QRasterWindow_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQRasterWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QRasterWindow, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRasterWindow, sipName_metric, doc_QRasterWindow_metric);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QRasterWindow(void *, const sipTypeDef *);}
static void *cast_QRasterWindow(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QRasterWindow)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPaintDeviceWindow)->ctd_cast((QPaintDeviceWindow *)(QRasterWindow *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QRasterWindow(void *, int);}
static void release_QRasterWindow(void *sipCppV,int)
{
    QRasterWindow *sipCpp = reinterpret_cast<QRasterWindow *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QRasterWindow(sipSimpleWrapper *);}
static void dealloc_QRasterWindow(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQRasterWindow *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QRasterWindow(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QRasterWindow(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QRasterWindow(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQRasterWindow *sipCpp = 0;

    {
        QWindow* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QWindow, &a0, sipOwner))
        {
            sipCpp = new sipQRasterWindow(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QRasterWindow[] = {{185, 255, 1}};


static PyMethodDef methods_QRasterWindow[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QRasterWindow_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QRasterWindow_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QRasterWindow_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QRasterWindow_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_QRasterWindow_event, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_exposeEvent), (PyCFunction)meth_QRasterWindow_exposeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), (PyCFunction)meth_QRasterWindow_focusInEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), (PyCFunction)meth_QRasterWindow_focusOutEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_hideEvent), (PyCFunction)meth_QRasterWindow_hideEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QRasterWindow_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), (PyCFunction)meth_QRasterWindow_keyPressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), (PyCFunction)meth_QRasterWindow_keyReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QRasterWindow_metric, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QRasterWindow_metric)},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), (PyCFunction)meth_QRasterWindow_mouseDoubleClickEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), (PyCFunction)meth_QRasterWindow_mouseMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), (PyCFunction)meth_QRasterWindow_mousePressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), (PyCFunction)meth_QRasterWindow_mouseReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), (PyCFunction)meth_QRasterWindow_moveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), (PyCFunction)meth_QRasterWindow_paintEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QRasterWindow_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), (PyCFunction)meth_QRasterWindow_resizeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QRasterWindow_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QRasterWindow_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), (PyCFunction)meth_QRasterWindow_showEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), (PyCFunction)meth_QRasterWindow_tabletEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QRasterWindow_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_touchEvent), (PyCFunction)meth_QRasterWindow_touchEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_wheelEvent), (PyCFunction)meth_QRasterWindow_wheelEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QRasterWindow, "\1QRasterWindow(QWindow parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QRasterWindow = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QRasterWindow,
        {0}
    },
    {
        sipNameNr_QRasterWindow,
        {0, 0, 1},
        28, methods_QRasterWindow,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRasterWindow,
    -1,
    -1,
    supers_QRasterWindow,
    0,
    init_type_QRasterWindow,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QRasterWindow,
    0,
    0,
    0,
    release_QRasterWindow,
    cast_QRasterWindow,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QRasterWindow::staticMetaObject,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qquaternion.sip"
#include <qquaternion.h>
#line 72608 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 72612 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 72615 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QQuaternion_length, "QQuaternion.length() -> float");

extern "C" {static PyObject *meth_QQuaternion_length(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->length();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_length, doc_QQuaternion_length);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_lengthSquared, "QQuaternion.lengthSquared() -> float");

extern "C" {static PyObject *meth_QQuaternion_lengthSquared(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_lengthSquared(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->lengthSquared();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_lengthSquared, doc_QQuaternion_lengthSquared);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_normalized, "QQuaternion.normalized() -> QQuaternion");

extern "C" {static PyObject *meth_QQuaternion_normalized(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_normalized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion(sipCpp->normalized());

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_normalized, doc_QQuaternion_normalized);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_normalize, "QQuaternion.normalize()");

extern "C" {static PyObject *meth_QQuaternion_normalize(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_normalize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            sipCpp->normalize();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_normalize, doc_QQuaternion_normalize);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_rotatedVector, "QQuaternion.rotatedVector(QVector3D) -> QVector3D");

extern "C" {static PyObject *meth_QQuaternion_rotatedVector(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_rotatedVector(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QQuaternion, &sipCpp, sipType_QVector3D, &a0))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(sipCpp->rotatedVector(*a0));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_rotatedVector, doc_QQuaternion_rotatedVector);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_fromAxisAndAngle, "QQuaternion.fromAxisAndAngle(QVector3D, float) -> QQuaternion\n"
    "QQuaternion.fromAxisAndAngle(float, float, float, float) -> QQuaternion");

extern "C" {static PyObject *meth_QQuaternion_fromAxisAndAngle(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_fromAxisAndAngle(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        float a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9f", sipType_QVector3D, &a0, &a1))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion(QQuaternion::fromAxisAndAngle(*a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    {
        float a0;
        float a1;
        float a2;
        float a3;

        if (sipParseArgs(&sipParseErr, sipArgs, "ffff", &a0, &a1, &a2, &a3))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion(QQuaternion::fromAxisAndAngle(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_fromAxisAndAngle, doc_QQuaternion_fromAxisAndAngle);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_slerp, "QQuaternion.slerp(QQuaternion, QQuaternion, float) -> QQuaternion");

extern "C" {static PyObject *meth_QQuaternion_slerp(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_slerp(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;
        const QQuaternion* a1;
        float a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9f", sipType_QQuaternion, &a0, sipType_QQuaternion, &a1, &a2))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion(QQuaternion::slerp(*a0,*a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_slerp, doc_QQuaternion_slerp);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_nlerp, "QQuaternion.nlerp(QQuaternion, QQuaternion, float) -> QQuaternion");

extern "C" {static PyObject *meth_QQuaternion_nlerp(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_nlerp(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;
        const QQuaternion* a1;
        float a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9f", sipType_QQuaternion, &a0, sipType_QQuaternion, &a1, &a2))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion(QQuaternion::nlerp(*a0,*a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_nlerp, doc_QQuaternion_nlerp);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_isNull, "QQuaternion.isNull() -> bool");

extern "C" {static PyObject *meth_QQuaternion_isNull(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_isNull, doc_QQuaternion_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_isIdentity, "QQuaternion.isIdentity() -> bool");

extern "C" {static PyObject *meth_QQuaternion_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_isIdentity, doc_QQuaternion_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_x, "QQuaternion.x() -> float");

extern "C" {static PyObject *meth_QQuaternion_x(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->x();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_x, doc_QQuaternion_x);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_y, "QQuaternion.y() -> float");

extern "C" {static PyObject *meth_QQuaternion_y(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->y();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_y, doc_QQuaternion_y);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_z, "QQuaternion.z() -> float");

extern "C" {static PyObject *meth_QQuaternion_z(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_z(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->z();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_z, doc_QQuaternion_z);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_scalar, "QQuaternion.scalar() -> float");

extern "C" {static PyObject *meth_QQuaternion_scalar(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_scalar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->scalar();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_scalar, doc_QQuaternion_scalar);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_setX, "QQuaternion.setX(float)");

extern "C" {static PyObject *meth_QQuaternion_setX(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_setX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QQuaternion, &sipCpp, &a0))
        {
            sipCpp->setX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_setX, doc_QQuaternion_setX);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_setY, "QQuaternion.setY(float)");

extern "C" {static PyObject *meth_QQuaternion_setY(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_setY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QQuaternion, &sipCpp, &a0))
        {
            sipCpp->setY(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_setY, doc_QQuaternion_setY);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_setZ, "QQuaternion.setZ(float)");

extern "C" {static PyObject *meth_QQuaternion_setZ(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_setZ(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QQuaternion, &sipCpp, &a0))
        {
            sipCpp->setZ(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_setZ, doc_QQuaternion_setZ);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_setScalar, "QQuaternion.setScalar(float)");

extern "C" {static PyObject *meth_QQuaternion_setScalar(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_setScalar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QQuaternion, &sipCpp, &a0))
        {
            sipCpp->setScalar(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_setScalar, doc_QQuaternion_setScalar);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_conjugate, "QQuaternion.conjugate() -> QQuaternion");

extern "C" {static PyObject *meth_QQuaternion_conjugate(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_conjugate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion(sipCpp->conjugate());

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_conjugate, doc_QQuaternion_conjugate);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_setVector, "QQuaternion.setVector(QVector3D)\n"
    "QQuaternion.setVector(float, float, float)");

extern "C" {static PyObject *meth_QQuaternion_setVector(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_setVector(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QQuaternion, &sipCpp, sipType_QVector3D, &a0))
        {
            sipCpp->setVector(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        float a0;
        float a1;
        float a2;
        QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bfff", &sipSelf, sipType_QQuaternion, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setVector(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_setVector, doc_QQuaternion_setVector);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_vector, "QQuaternion.vector() -> QVector3D");

extern "C" {static PyObject *meth_QQuaternion_vector(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_vector(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(sipCpp->vector());

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_vector, doc_QQuaternion_vector);

    return NULL;
}


PyDoc_STRVAR(doc_QQuaternion_toVector4D, "QQuaternion.toVector4D() -> QVector4D");

extern "C" {static PyObject *meth_QQuaternion_toVector4D(PyObject *, PyObject *);}
static PyObject *meth_QQuaternion_toVector4D(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QQuaternion, &sipCpp))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D(sipCpp->toVector4D());

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QQuaternion, sipName_toVector4D, doc_QQuaternion_toVector4D);

    return NULL;
}


extern "C" {static PyObject *slot_QQuaternion___eq__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QQuaternion *sipCpp = reinterpret_cast<QQuaternion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QQuaternion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QQuaternion, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QQuaternion,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QQuaternion___div__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___div__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QQuaternion, &a0, &a1))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion((*a0 / a1));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,div_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QQuaternion___add__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___add__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;
        const QQuaternion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QQuaternion, &a0, sipType_QQuaternion, &a1))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion((*a0 + *a1));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,add_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QQuaternion___sub__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___sub__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;
        const QQuaternion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QQuaternion, &a0, sipType_QQuaternion, &a1))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion((*a0 - *a1));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,sub_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QQuaternion___mul__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;
        const QQuaternion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QQuaternion, &a0, sipType_QQuaternion, &a1))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    {
        float a0;
        const QQuaternion* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "fJ9", &a0, sipType_QQuaternion, &a1))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion((a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    {
        const QQuaternion* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QQuaternion, &a0, &a1))
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion((*a0 * a1));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QQuaternion___neg__(PyObject *);}
static PyObject *slot_QQuaternion___neg__(PyObject *sipSelf)
{
    QQuaternion *sipCpp = reinterpret_cast<QQuaternion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QQuaternion));

    if (!sipCpp)
        return 0;


    {
        {
            QQuaternion*sipRes;

            sipRes = new QQuaternion(-(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QQuaternion,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QQuaternion___ne__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QQuaternion *sipCpp = reinterpret_cast<QQuaternion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QQuaternion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QQuaternion, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QQuaternion,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QQuaternion___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QQuaternion)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QQuaternion *sipCpp = reinterpret_cast<QQuaternion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QQuaternion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QQuaternion::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QQuaternion___imul__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QQuaternion)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QQuaternion *sipCpp = reinterpret_cast<QQuaternion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QQuaternion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QQuaternion::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const QQuaternion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QQuaternion, &a0))
        {
            sipCpp->QQuaternion::operator*=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QQuaternion___isub__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QQuaternion)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QQuaternion *sipCpp = reinterpret_cast<QQuaternion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QQuaternion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QQuaternion, &a0))
        {
            sipCpp->QQuaternion::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QQuaternion___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QQuaternion___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QQuaternion)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QQuaternion *sipCpp = reinterpret_cast<QQuaternion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QQuaternion));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QQuaternion* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QQuaternion, &a0))
        {
            sipCpp->QQuaternion::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QQuaternion___repr__(PyObject *);}
static PyObject *slot_QQuaternion___repr__(PyObject *sipSelf)
{
    QQuaternion *sipCpp = reinterpret_cast<QQuaternion *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QQuaternion));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 45 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qquaternion.sip"
        PyObject *scalar = PyFloat_FromDouble(sipCpp->scalar());
        PyObject *x = PyFloat_FromDouble(sipCpp->x());
        PyObject *y = PyFloat_FromDouble(sipCpp->y());
        PyObject *z = PyFloat_FromDouble(sipCpp->z());
        
        if (scalar && x && y && z)
        {
        #if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QQuaternion(%R, %R, %R, %R)",
                    scalar, x, y, z);
        #else
            sipRes = PyString_FromString("PyQt5.QtGui.QQuaternion(");
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(scalar));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(x));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(y));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
            PyString_ConcatAndDel(&sipRes, PyObject_Repr(z));
            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
        #endif
        }
        
        Py_XDECREF(scalar);
        Py_XDECREF(x);
        Py_XDECREF(y);
        Py_XDECREF(z);
#line 73690 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QQuaternion(void *, const sipTypeDef *);}
static void *cast_QQuaternion(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QQuaternion)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QQuaternion(void *, int);}
static void release_QQuaternion(void *sipCppV,int)
{
    delete reinterpret_cast<QQuaternion *>(sipCppV);
}


extern "C" {static PyObject *pickle_QQuaternion(void *);}
static PyObject *pickle_QQuaternion(void *sipCppV)
{
    QQuaternion *sipCpp = reinterpret_cast<QQuaternion *>(sipCppV);
    PyObject *sipRes;

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qquaternion.sip"
    sipRes = Py_BuildValue((char *)"dddd", (double)sipCpp->scalar(),
            (double)sipCpp->x(), (double)sipCpp->y(), (double)sipCpp->z());
#line 73728 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QQuaternion(void *, SIP_SSIZE_T, const void *);}
static void assign_QQuaternion(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QQuaternion *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QQuaternion *>(sipSrc);
}


extern "C" {static void *array_QQuaternion(SIP_SSIZE_T);}
static void *array_QQuaternion(SIP_SSIZE_T sipNrElem)
{
    return new QQuaternion[sipNrElem];
}


extern "C" {static void *copy_QQuaternion(const void *, SIP_SSIZE_T);}
static void *copy_QQuaternion(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QQuaternion(reinterpret_cast<const QQuaternion *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QQuaternion(sipSimpleWrapper *);}
static void dealloc_QQuaternion(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QQuaternion(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QQuaternion(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QQuaternion(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QQuaternion *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QQuaternion();

            return sipCpp;
        }
    }

    {
        float a0;
        float a1;
        float a2;
        float a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ffff", &a0, &a1, &a2, &a3))
        {
            sipCpp = new QQuaternion(a0,a1,a2,a3);

            return sipCpp;
        }
    }

    {
        float a0;
        const QVector3D* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "fJ9", &a0, sipType_QVector3D, &a1))
        {
            sipCpp = new QQuaternion(a0,*a1);

            return sipCpp;
        }
    }

    {
        const QVector4D* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QVector4D, &a0))
        {
            sipCpp = new QQuaternion(*a0);

            return sipCpp;
        }
    }

    {
        const QQuaternion* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QQuaternion, &a0))
        {
            sipCpp = new QQuaternion(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QQuaternion[] = {
    {(void *)slot_QQuaternion___eq__, eq_slot},
    {(void *)slot_QQuaternion___div__, div_slot},
    {(void *)slot_QQuaternion___add__, add_slot},
    {(void *)slot_QQuaternion___sub__, sub_slot},
    {(void *)slot_QQuaternion___mul__, mul_slot},
    {(void *)slot_QQuaternion___neg__, neg_slot},
    {(void *)slot_QQuaternion___ne__, ne_slot},
    {(void *)slot_QQuaternion___idiv__, idiv_slot},
    {(void *)slot_QQuaternion___imul__, imul_slot},
    {(void *)slot_QQuaternion___isub__, isub_slot},
    {(void *)slot_QQuaternion___iadd__, iadd_slot},
    {(void *)slot_QQuaternion___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QQuaternion[] = {
    {SIP_MLNAME_CAST(sipName_conjugate), meth_QQuaternion_conjugate, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_conjugate)},
    {SIP_MLNAME_CAST(sipName_fromAxisAndAngle), meth_QQuaternion_fromAxisAndAngle, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_fromAxisAndAngle)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QQuaternion_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_isIdentity)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QQuaternion_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_isNull)},
    {SIP_MLNAME_CAST(sipName_length), meth_QQuaternion_length, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_length)},
    {SIP_MLNAME_CAST(sipName_lengthSquared), meth_QQuaternion_lengthSquared, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_lengthSquared)},
    {SIP_MLNAME_CAST(sipName_nlerp), meth_QQuaternion_nlerp, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_nlerp)},
    {SIP_MLNAME_CAST(sipName_normalize), meth_QQuaternion_normalize, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_normalize)},
    {SIP_MLNAME_CAST(sipName_normalized), meth_QQuaternion_normalized, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_normalized)},
    {SIP_MLNAME_CAST(sipName_rotatedVector), meth_QQuaternion_rotatedVector, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_rotatedVector)},
    {SIP_MLNAME_CAST(sipName_scalar), meth_QQuaternion_scalar, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_scalar)},
    {SIP_MLNAME_CAST(sipName_setScalar), meth_QQuaternion_setScalar, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_setScalar)},
    {SIP_MLNAME_CAST(sipName_setVector), meth_QQuaternion_setVector, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_setVector)},
    {SIP_MLNAME_CAST(sipName_setX), meth_QQuaternion_setX, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_setX)},
    {SIP_MLNAME_CAST(sipName_setY), meth_QQuaternion_setY, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_setY)},
    {SIP_MLNAME_CAST(sipName_setZ), meth_QQuaternion_setZ, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_setZ)},
    {SIP_MLNAME_CAST(sipName_slerp), meth_QQuaternion_slerp, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_slerp)},
    {SIP_MLNAME_CAST(sipName_toVector4D), meth_QQuaternion_toVector4D, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_toVector4D)},
    {SIP_MLNAME_CAST(sipName_vector), meth_QQuaternion_vector, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_vector)},
    {SIP_MLNAME_CAST(sipName_x), meth_QQuaternion_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QQuaternion_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_y)},
    {SIP_MLNAME_CAST(sipName_z), meth_QQuaternion_z, METH_VARARGS, SIP_MLDOC_CAST(doc_QQuaternion_z)}
};

PyDoc_STRVAR(doc_QQuaternion, "\1QQuaternion()\n"
    "QQuaternion(float, float, float, float)\n"
    "QQuaternion(float, QVector3D)\n"
    "QQuaternion(QVector4D)\n"
    "QQuaternion(QQuaternion)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QQuaternion = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QQuaternion,
        {0}
    },
    {
        sipNameNr_QQuaternion,
        {0, 0, 1},
        22, methods_QQuaternion,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QQuaternion,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QQuaternion,
    init_type_QQuaternion,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QQuaternion,
    assign_QQuaternion,
    array_QQuaternion,
    copy_QQuaternion,
    release_QQuaternion,
    cast_QQuaternion,
    0,
    0,
    0,
    pickle_QQuaternion,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 330 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 73938 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 73942 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 73945 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 73948 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 73951 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 73954 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 73957 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPolygonF_translate, "QPolygonF.translate(QPointF)\n"
    "QPolygonF.translate(float, float)");

extern "C" {static PyObject *meth_QPolygonF_translate(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_translate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->translate(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QPolygonF, &sipCpp, &a0, &a1))
        {
            sipCpp->translate(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_translate, doc_QPolygonF_translate);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_toPolygon, "QPolygonF.toPolygon() -> QPolygon");

extern "C" {static PyObject *meth_QPolygonF_toPolygon(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_toPolygon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->toPolygon());

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_toPolygon, doc_QPolygonF_toPolygon);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_isClosed, "QPolygonF.isClosed() -> bool");

extern "C" {static PyObject *meth_QPolygonF_isClosed(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_isClosed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isClosed();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_isClosed, doc_QPolygonF_isClosed);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_boundingRect, "QPolygonF.boundingRect() -> QRectF");

extern "C" {static PyObject *meth_QPolygonF_boundingRect(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_boundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->boundingRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_boundingRect, doc_QPolygonF_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_containsPoint, "QPolygonF.containsPoint(QPointF, Qt.FillRule) -> bool");

extern "C" {static PyObject *meth_QPolygonF_containsPoint(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_containsPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        Qt::FillRule a1;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_Qt_FillRule, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->containsPoint(*a0,a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_containsPoint, doc_QPolygonF_containsPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_united, "QPolygonF.united(QPolygonF) -> QPolygonF");

extern "C" {static PyObject *meth_QPolygonF_united(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_united(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPolygonF, &a0))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF(sipCpp->united(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_united, doc_QPolygonF_united);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_intersected, "QPolygonF.intersected(QPolygonF) -> QPolygonF");

extern "C" {static PyObject *meth_QPolygonF_intersected(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_intersected(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPolygonF, &a0))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF(sipCpp->intersected(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_intersected, doc_QPolygonF_intersected);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_subtracted, "QPolygonF.subtracted(QPolygonF) -> QPolygonF");

extern "C" {static PyObject *meth_QPolygonF_subtracted(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_subtracted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPolygonF, &a0))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF(sipCpp->subtracted(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_subtracted, doc_QPolygonF_subtracted);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_translated, "QPolygonF.translated(QPointF) -> QPolygonF\n"
    "QPolygonF.translated(float, float) -> QPolygonF");

extern "C" {static PyObject *meth_QPolygonF_translated(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_translated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF(sipCpp->translated(*a0));
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    {
        qreal a0;
        qreal a1;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QPolygonF, &sipCpp, &a0, &a1))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF(sipCpp->translated(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_translated, doc_QPolygonF_translated);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_append, "QPolygonF.append(QPointF)");

extern "C" {static PyObject *meth_QPolygonF_append(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_append(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->append(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_append, doc_QPolygonF_append);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_at, "QPolygonF.at(int) -> QPointF");

extern "C" {static PyObject *meth_QPolygonF_at(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_at(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPolygonF, &sipCpp, &a0))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->at(a0));

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_at, doc_QPolygonF_at);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_clear, "QPolygonF.clear()");

extern "C" {static PyObject *meth_QPolygonF_clear(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            sipCpp->clear();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_clear, doc_QPolygonF_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_contains, "QPolygonF.contains(QPointF) -> bool");

extern "C" {static PyObject *meth_QPolygonF_contains(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_contains(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->contains(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_contains, doc_QPolygonF_contains);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_count, "QPolygonF.count(QPointF) -> int\n"
    "QPolygonF.count() -> int");

extern "C" {static PyObject *meth_QPolygonF_count(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_count(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            int sipRes;

            sipRes = sipCpp->count(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->count();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_count, doc_QPolygonF_count);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_data, "QPolygonF.data() -> sip.voidptr");

extern "C" {static PyObject *meth_QPolygonF_data(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            void*sipRes;

            sipRes = sipCpp->data();

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_data, doc_QPolygonF_data);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_fill, "QPolygonF.fill(QPointF, int size=-1)");

extern "C" {static PyObject *meth_QPolygonF_fill(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_fill(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        int a1 = -1;
        QPolygonF *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_size,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|i", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State, &a1))
        {
            sipCpp->fill(*a0,a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_fill, doc_QPolygonF_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_first, "QPolygonF.first() -> QPointF");

extern "C" {static PyObject *meth_QPolygonF_first(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_first(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = &sipCpp->first();

            return sipConvertFromType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_first, doc_QPolygonF_first);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_indexOf, "QPolygonF.indexOf(QPointF, int from=0) -> int");

extern "C" {static PyObject *meth_QPolygonF_indexOf(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_indexOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        int a1 = 0;
        const QPolygonF *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_from,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|i", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State, &a1))
        {
            int sipRes;

            sipRes = sipCpp->indexOf(*a0,a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_indexOf, doc_QPolygonF_indexOf);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_insert, "QPolygonF.insert(int, QPointF)");

extern "C" {static PyObject *meth_QPolygonF_insert(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_insert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPointF* a1;
        int a1State = 0;
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QPolygonF, &sipCpp, &a0, sipType_QPointF, &a1, &a1State))
        {
            sipCpp->insert(a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_insert, doc_QPolygonF_insert);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_isEmpty, "QPolygonF.isEmpty() -> bool");

extern "C" {static PyObject *meth_QPolygonF_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEmpty();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_isEmpty, doc_QPolygonF_isEmpty);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_last, "QPolygonF.last() -> QPointF");

extern "C" {static PyObject *meth_QPolygonF_last(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_last(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = &sipCpp->last();

            return sipConvertFromType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_last, doc_QPolygonF_last);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_lastIndexOf, "QPolygonF.lastIndexOf(QPointF, int from=-1) -> int");

extern "C" {static PyObject *meth_QPolygonF_lastIndexOf(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_lastIndexOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        int a1 = -1;
        const QPolygonF *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_from,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|i", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State, &a1))
        {
            int sipRes;

            sipRes = sipCpp->lastIndexOf(*a0,a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_lastIndexOf, doc_QPolygonF_lastIndexOf);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_mid, "QPolygonF.mid(int, int length=-1) -> QPolygonF");

extern "C" {static PyObject *meth_QPolygonF_mid(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_mid(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1 = -1;
        const QPolygonF *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|i", &sipSelf, sipType_QPolygonF, &sipCpp, &a0, &a1))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF(sipCpp->mid(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_mid, doc_QPolygonF_mid);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_prepend, "QPolygonF.prepend(QPointF)");

extern "C" {static PyObject *meth_QPolygonF_prepend(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_prepend(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->prepend(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_prepend, doc_QPolygonF_prepend);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_remove, "QPolygonF.remove(int)\n"
    "QPolygonF.remove(int, int)");

extern "C" {static PyObject *meth_QPolygonF_remove(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPolygonF, &sipCpp, &a0))
        {
            sipCpp->remove(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QPolygonF, &sipCpp, &a0, &a1))
        {
            sipCpp->remove(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_remove, doc_QPolygonF_remove);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_replace, "QPolygonF.replace(int, QPointF)");

extern "C" {static PyObject *meth_QPolygonF_replace(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_replace(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPointF* a1;
        int a1State = 0;
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QPolygonF, &sipCpp, &a0, sipType_QPointF, &a1, &a1State))
        {
            sipCpp->replace(a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_replace, doc_QPolygonF_replace);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_size, "QPolygonF.size() -> int");

extern "C" {static PyObject *meth_QPolygonF_size(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygonF, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->size();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_size, doc_QPolygonF_size);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_value, "QPolygonF.value(int) -> QPointF\n"
    "QPolygonF.value(int, QPointF) -> QPointF");

extern "C" {static PyObject *meth_QPolygonF_value(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPolygonF, &sipCpp, &a0))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->value(a0));

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    {
        int a0;
        const QPointF* a1;
        int a1State = 0;
        const QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QPolygonF, &sipCpp, &a0, sipType_QPointF, &a1, &a1State))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->value(a0,*a1));
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_value, doc_QPolygonF_value);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygonF_swap, "QPolygonF.swap(QPolygonF)");

extern "C" {static PyObject *meth_QPolygonF_swap(PyObject *, PyObject *);}
static PyObject *meth_QPolygonF_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygonF* a0;
        QPolygonF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPolygonF, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_swap, doc_QPolygonF_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QPolygonF___mul__(PyObject *,PyObject *);}
static PyObject *slot_QPolygonF___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPolygonF, &a0, sipType_QTransform, &a1))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static int slot_QPolygonF___contains__(PyObject *,PyObject *);}
static int slot_QPolygonF___contains__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygonF *sipCpp = reinterpret_cast<QPolygonF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygonF));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPointF, &a0, &a0State))
        {
            int sipRes = 0;

#line 518 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
// It looks like you can't assign QBool to int.
sipRes = bool(sipCpp->contains(*a0));
#line 74932 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName___contains__, NULL);

    return -1;
}


extern "C" {static int slot_QPolygonF___delitem__(PyObject *,PyObject *);}
static int slot_QPolygonF___delitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygonF *sipCpp = reinterpret_cast<QPolygonF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygonF));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            int sipIsErr = 0;

#line 462 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
int len;

len = sipCpp->count();

if ((a0 = (int)sipConvertFromSequenceIndex(a0, len)) < 0)
    sipIsErr = 1;
else
    sipCpp->remove(a0);
#line 74972 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1T", &PySlice_Type, &a0))
        {
            int sipIsErr = 0;

#line 474 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
SIP_SSIZE_T len, start, stop, step, slicelength, i;

len = sipCpp->count();

#if PY_VERSION_HEX >= 0x03020000
if (PySlice_GetIndicesEx(a0, len, &start, &stop, &step, &slicelength) < 0)
#else
if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0)
#endif
    sipIsErr = 1;
else
    for (i = 0; i < slicelength; ++i)
    {
        sipCpp->remove(start);
        start += step - 1;
    }
#line 75005 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName___delitem__, NULL);

    return -1;
}


extern "C" {static int slot_QPolygonF___setitem__(PyObject *,PyObject *);}
static int slot_QPolygonF___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QPolygonF *sipCpp = reinterpret_cast<QPolygonF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygonF));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPointF* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "iJ1", &a0, sipType_QPointF, &a1, &a1State))
        {
            int sipIsErr = 0;

#line 415 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
int len;

len = sipCpp->count();

if ((a0 = (int)sipConvertFromSequenceIndex(a0, len)) < 0)
    sipIsErr = 1;
else
    (*sipCpp)[a0] = *a1;
#line 75049 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    {
        PyObject * a0;
        const QPolygonF* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "TJ9", &PySlice_Type, &a0, sipType_QPolygonF, &a1))
        {
            int sipIsErr = 0;

#line 427 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
SIP_SSIZE_T len, start, stop, step, slicelength, i;

len = sipCpp->count();

#if PY_VERSION_HEX >= 0x03020000
if (PySlice_GetIndicesEx(a0, len, &start, &stop, &step, &slicelength) < 0)
#else
if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0)
#endif
    sipIsErr = 1;
else
{
    int vlen = a1->count();

    if (vlen != slicelength)
    {
        sipBadLengthForSlice(vlen, slicelength);
        sipIsErr = 1;
    }
    else
    {
        QVector<QPointF>::const_iterator it = a1->begin();

        for (i = 0; i < slicelength; ++i)
        {
            (*sipCpp)[start] = *it;
            start += step;
            ++it;
        }
    }
}
#line 75099 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QPolygonF___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QPolygonF___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygonF *sipCpp = reinterpret_cast<QPolygonF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygonF));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            QPointF*sipRes = 0;
            int sipIsErr = 0;

#line 403 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
SIP_SSIZE_T idx = sipConvertFromSequenceIndex(a0, sipCpp->count());

if (idx < 0)
    sipIsErr = 1;
else
    sipRes = new QPointF(sipCpp->operator[]((int)idx));
#line 75140 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return 0;

            return sipConvertFromType(sipRes,sipType_QPointF,NULL);
        }
    }

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1T", &PySlice_Type, &a0))
        {
            QPolygonF*sipRes = 0;
            int sipIsErr = 0;

#line 494 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
SIP_SSIZE_T len, start, stop, step, slicelength, i;

len = sipCpp->count();

#if PY_VERSION_HEX >= 0x03020000
if (PySlice_GetIndicesEx(a0, len, &start, &stop, &step, &slicelength) < 0)
#else
if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0)
#endif
    sipIsErr = 1;
else
{
    sipRes = new QPolygonF();

    for (i = 0; i < slicelength; ++i)
    {
        (*sipRes) += (*sipCpp)[start];
        start += step;
    }
}
#line 75178 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return 0;

            return sipConvertFromType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygonF, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QPolygonF___lshift__(PyObject *,PyObject *);}
static PyObject *slot_QPolygonF___lshift__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygonF* a0;
        const QPointF* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J1", sipType_QPolygonF, &a0, sipType_QPointF, &a1, &a1State))
        {
            PyObject * sipRes = 0;

#line 395 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
    *a0 << *a1;

    sipRes = sipArg0;
    Py_INCREF(sipRes);
#line 75213 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            return sipRes;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,lshift_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPolygonF___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPolygonF___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygonF *sipCpp = reinterpret_cast<QPolygonF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygonF));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPolygonF, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPolygonF::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPolygonF,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPolygonF___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QPolygonF___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygonF *sipCpp = reinterpret_cast<QPolygonF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygonF));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPolygonF, &a0))
        {
            sipCpp->QPolygonF::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPointF, &a0, &a0State))
        {
            sipCpp->QPolygonF::operator+=(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,iconcat_slot);

    return NULL;
}


extern "C" {static PyObject *slot_QPolygonF___add__(PyObject *,PyObject *);}
static PyObject *slot_QPolygonF___add__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygonF *sipCpp = reinterpret_cast<QPolygonF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygonF));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPolygonF, &a0))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF(sipCpp->QPolygonF::operator+(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,concat_slot);

    return NULL;
}


extern "C" {static PyObject *slot_QPolygonF___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPolygonF___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygonF *sipCpp = reinterpret_cast<QPolygonF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygonF));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPolygonF, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPolygonF::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPolygonF,sipSelf,sipArg);
}


extern "C" {static SIP_SSIZE_T slot_QPolygonF___len__(PyObject *);}
static SIP_SSIZE_T slot_QPolygonF___len__(PyObject *sipSelf)
{
    QPolygonF *sipCpp = reinterpret_cast<QPolygonF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygonF));

    if (!sipCpp)
        return 0;


    {
        {
            SIP_SSIZE_T sipRes = 0;

#line 1 "Auto-generated"
            sipRes = (SIP_SSIZE_T)sipCpp->count();
#line 75381 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPolygonF(void *, const sipTypeDef *);}
static void *cast_QPolygonF(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPolygonF)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPolygonF(void *, int);}
static void release_QPolygonF(void *sipCppV,int)
{
    delete reinterpret_cast<QPolygonF *>(sipCppV);
}


extern "C" {static void assign_QPolygonF(void *, SIP_SSIZE_T, const void *);}
static void assign_QPolygonF(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPolygonF *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPolygonF *>(sipSrc);
}


extern "C" {static void *array_QPolygonF(SIP_SSIZE_T);}
static void *array_QPolygonF(SIP_SSIZE_T sipNrElem)
{
    return new QPolygonF[sipNrElem];
}


extern "C" {static void *copy_QPolygonF(const void *, SIP_SSIZE_T);}
static void *copy_QPolygonF(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPolygonF(reinterpret_cast<const QPolygonF *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPolygonF(sipSimpleWrapper *);}
static void dealloc_QPolygonF(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPolygonF(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPolygonF(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPolygonF(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPolygonF *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPolygonF();

            return sipCpp;
        }
    }

    {
        const QPolygonF* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPolygonF, &a0))
        {
            sipCpp = new QPolygonF(*a0);

            return sipCpp;
        }
    }

    {
        const QVector<QPointF>* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QVector_0100QPointF,&a0, &a0State))
        {
            sipCpp = new QPolygonF(*a0);
            sipReleaseType(const_cast<QVector<QPointF> *>(a0),sipType_QVector_0100QPointF,a0State);

            return sipCpp;
        }
    }

    {
        const QRectF* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QRectF, &a0))
        {
            sipCpp = new QPolygonF(*a0);

            return sipCpp;
        }
    }

    {
        const QPolygon* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPolygon, &a0))
        {
            sipCpp = new QPolygonF(*a0);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QPolygonF(a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPolygonF[] = {
    {(void *)slot_QPolygonF___mul__, mul_slot},
    {(void *)slot_QPolygonF___contains__, contains_slot},
    {(void *)slot_QPolygonF___delitem__, delitem_slot},
    {(void *)slot_QPolygonF___setitem__, setitem_slot},
    {(void *)slot_QPolygonF___getitem__, getitem_slot},
    {(void *)slot_QPolygonF___lshift__, lshift_slot},
    {(void *)slot_QPolygonF___eq__, eq_slot},
    {(void *)slot_QPolygonF___iadd__, iconcat_slot},
    {(void *)slot_QPolygonF___add__, concat_slot},
    {(void *)slot_QPolygonF___ne__, ne_slot},
    {(void *)slot_QPolygonF___len__, len_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPolygonF[] = {
    {SIP_MLNAME_CAST(sipName_append), meth_QPolygonF_append, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_append)},
    {SIP_MLNAME_CAST(sipName_at), meth_QPolygonF_at, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_at)},
    {SIP_MLNAME_CAST(sipName_boundingRect), meth_QPolygonF_boundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_boundingRect)},
    {SIP_MLNAME_CAST(sipName_clear), meth_QPolygonF_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_clear)},
    {SIP_MLNAME_CAST(sipName_contains), meth_QPolygonF_contains, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_contains)},
    {SIP_MLNAME_CAST(sipName_containsPoint), meth_QPolygonF_containsPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_containsPoint)},
    {SIP_MLNAME_CAST(sipName_count), meth_QPolygonF_count, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_count)},
    {SIP_MLNAME_CAST(sipName_data), meth_QPolygonF_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_data)},
    {SIP_MLNAME_CAST(sipName_fill), (PyCFunction)meth_QPolygonF_fill, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPolygonF_fill)},
    {SIP_MLNAME_CAST(sipName_first), meth_QPolygonF_first, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_first)},
    {SIP_MLNAME_CAST(sipName_indexOf), (PyCFunction)meth_QPolygonF_indexOf, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPolygonF_indexOf)},
    {SIP_MLNAME_CAST(sipName_insert), meth_QPolygonF_insert, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_insert)},
    {SIP_MLNAME_CAST(sipName_intersected), meth_QPolygonF_intersected, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_intersected)},
    {SIP_MLNAME_CAST(sipName_isClosed), meth_QPolygonF_isClosed, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_isClosed)},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_QPolygonF_isEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_isEmpty)},
    {SIP_MLNAME_CAST(sipName_last), meth_QPolygonF_last, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_last)},
    {SIP_MLNAME_CAST(sipName_lastIndexOf), (PyCFunction)meth_QPolygonF_lastIndexOf, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPolygonF_lastIndexOf)},
    {SIP_MLNAME_CAST(sipName_mid), (PyCFunction)meth_QPolygonF_mid, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPolygonF_mid)},
    {SIP_MLNAME_CAST(sipName_prepend), meth_QPolygonF_prepend, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_prepend)},
    {SIP_MLNAME_CAST(sipName_remove), meth_QPolygonF_remove, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_remove)},
    {SIP_MLNAME_CAST(sipName_replace), meth_QPolygonF_replace, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_replace)},
    {SIP_MLNAME_CAST(sipName_size), meth_QPolygonF_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_size)},
    {SIP_MLNAME_CAST(sipName_subtracted), meth_QPolygonF_subtracted, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_subtracted)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPolygonF_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_swap)},
    {SIP_MLNAME_CAST(sipName_toPolygon), meth_QPolygonF_toPolygon, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_toPolygon)},
    {SIP_MLNAME_CAST(sipName_translate), meth_QPolygonF_translate, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_translate)},
    {SIP_MLNAME_CAST(sipName_translated), meth_QPolygonF_translated, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_translated)},
    {SIP_MLNAME_CAST(sipName_united), meth_QPolygonF_united, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_united)},
    {SIP_MLNAME_CAST(sipName_value), meth_QPolygonF_value, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygonF_value)}
};

PyDoc_STRVAR(doc_QPolygonF, "\1QPolygonF()\n"
    "QPolygonF(QPolygonF)\n"
    "QPolygonF(list-of-QPointF)\n"
    "QPolygonF(QRectF)\n"
    "QPolygonF(QPolygon)\n"
    "QPolygonF(int)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPolygonF = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPolygonF,
        {0}
    },
    {
        sipNameNr_QPolygonF,
        {0, 0, 1},
        29, methods_QPolygonF,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPolygonF,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPolygonF,
    init_type_QPolygonF,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPolygonF,
    assign_QPolygonF,
    array_QPolygonF,
    copy_QPolygonF,
    release_QPolygonF,
    cast_QPolygonF,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 75630 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 75634 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 75637 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 75640 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 75643 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 75646 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 75649 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
// Set the points of a polygon from a Python list.
static bool setPointsFromList(QPolygon *poly, PyObject *l)
{
    int *coords = new int[PyList_GET_SIZE(l)];

    for (SIP_SSIZE_T i = 0; i < PyList_GET_SIZE(l); ++i)
    {
        coords[i] = SIPLong_AsLong(PyList_GET_ITEM(l, i));

        if (PyErr_Occurred() != NULL)
        {
            delete[] coords;
            return false;
        }
    }

    poly->setPoints(PyList_GET_SIZE(l) >> 1, coords);

    delete[] coords;
    return true;
}
#line 75672 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPolygon_translate, "QPolygon.translate(int, int)\n"
    "QPolygon.translate(QPoint)");

extern "C" {static PyObject *meth_QPolygon_translate(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_translate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QPolygon, &sipCpp, &a0, &a1))
        {
            sipCpp->translate(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->translate(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_translate, doc_QPolygon_translate);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_boundingRect, "QPolygon.boundingRect() -> QRect");

extern "C" {static PyObject *meth_QPolygon_boundingRect(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_boundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygon, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->boundingRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_boundingRect, doc_QPolygon_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_point, "QPolygon.point(int) -> QPoint");

extern "C" {static PyObject *meth_QPolygon_point(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_point(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPolygon, &sipCpp, &a0))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->point(a0));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_point, doc_QPolygon_point);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_setPoints, "QPolygon.setPoints(list-of-int)\n"
    "QPolygon.setPoints(int, int, ...)");

extern "C" {static PyObject *meth_QPolygon_setPoints(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_setPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BT", &sipSelf, sipType_QPolygon, &sipCpp, &PyList_Type, &a0))
        {
            int sipIsErr = 0;

#line 105 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
        if (!setPointsFromList(sipCpp, a0))
            sipIsErr = 1;
#line 75791 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        PyObject * a2;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiW", &sipSelf, sipType_QPolygon, &sipCpp, &a0, &a1, &a2))
        {
#line 111 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
        // Accept at least one pair of integer coordinates.
        int nPoints = 1 + ((PyTuple_GET_SIZE(a2) + 1) >> 1);
        
        int *points = new int[nPoints * 2];
        
        points[0] = a0;
        points[1] = a1;
        
        for (SIP_SSIZE_T i = 0; i < PyTuple_GET_SIZE(a2); ++i)
            points[2 + i] = SIPLong_AsLong(PyTuple_GET_ITEM(a2, i));
        
        sipCpp->setPoints(nPoints, points);
        
        delete[] points;
#line 75824 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_setPoints, doc_QPolygon_setPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_putPoints, "QPolygon.putPoints(int, int, int, ...)\n"
    "QPolygon.putPoints(int, int, QPolygon, int from=0)");

extern "C" {static PyObject *meth_QPolygon_putPoints(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPolygon_putPoints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        PyObject * a3;
        QPolygon *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiiiW", &sipSelf, sipType_QPolygon, &sipCpp, &a0, &a1, &a2, &a3))
        {
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
        // Accept at least one pair of integer coordinates.
        int nPoints = 1 + ((PyTuple_GET_SIZE(a3) + 1) >> 1);
        
        int *points = new int[nPoints * 2];
        
        points[0] = a1;
        points[1] = a2;
        
        for (SIP_SSIZE_T i = 0; i < PyTuple_GET_SIZE(a3); ++i)
            points[2 + i] = SIPLong_AsLong(PyTuple_GET_ITEM(a3, i));
        
        sipCpp->putPoints(a0, nPoints, points);
        
        delete[] points;
#line 75872 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        const QPolygon* a2;
        int a3 = 0;
        QPolygon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_from,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiJ9|i", &sipSelf, sipType_QPolygon, &sipCpp, &a0, &a1, sipType_QPolygon, &a2, &a3))
        {
            sipCpp->putPoints(a0,a1,*a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_putPoints, doc_QPolygon_putPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_setPoint, "QPolygon.setPoint(int, QPoint)\n"
    "QPolygon.setPoint(int, int, int)");

extern "C" {static PyObject *meth_QPolygon_setPoint(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_setPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPoint* a1;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QPolygon, &sipCpp, &a0, sipType_QPoint, &a1))
        {
            sipCpp->setPoint(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biii", &sipSelf, sipType_QPolygon, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setPoint(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_setPoint, doc_QPolygon_setPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_containsPoint, "QPolygon.containsPoint(QPoint, Qt.FillRule) -> bool");

extern "C" {static PyObject *meth_QPolygon_containsPoint(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_containsPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        Qt::FillRule a1;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0, sipType_Qt_FillRule, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->containsPoint(*a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_containsPoint, doc_QPolygon_containsPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_united, "QPolygon.united(QPolygon) -> QPolygon");

extern "C" {static PyObject *meth_QPolygon_united(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_united(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygon* a0;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPolygon, &a0))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->united(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_united, doc_QPolygon_united);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_intersected, "QPolygon.intersected(QPolygon) -> QPolygon");

extern "C" {static PyObject *meth_QPolygon_intersected(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_intersected(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygon* a0;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPolygon, &a0))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->intersected(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_intersected, doc_QPolygon_intersected);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_subtracted, "QPolygon.subtracted(QPolygon) -> QPolygon");

extern "C" {static PyObject *meth_QPolygon_subtracted(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_subtracted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygon* a0;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPolygon, &a0))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->subtracted(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_subtracted, doc_QPolygon_subtracted);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_translated, "QPolygon.translated(int, int) -> QPolygon\n"
    "QPolygon.translated(QPoint) -> QPolygon");

extern "C" {static PyObject *meth_QPolygon_translated(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_translated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QPolygon, &sipCpp, &a0, &a1))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->translated(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    {
        const QPoint* a0;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->translated(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_translated, doc_QPolygon_translated);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_append, "QPolygon.append(QPoint)");

extern "C" {static PyObject *meth_QPolygon_append(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_append(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->append(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_append, doc_QPolygon_append);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_at, "QPolygon.at(int) -> QPoint");

extern "C" {static PyObject *meth_QPolygon_at(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_at(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPolygon, &sipCpp, &a0))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->at(a0));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_at, doc_QPolygon_at);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_clear, "QPolygon.clear()");

extern "C" {static PyObject *meth_QPolygon_clear(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygon, &sipCpp))
        {
            sipCpp->clear();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_clear, doc_QPolygon_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_contains, "QPolygon.contains(QPoint) -> bool");

extern "C" {static PyObject *meth_QPolygon_contains(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_contains(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->contains(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_contains, doc_QPolygon_contains);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_count, "QPolygon.count(QPoint) -> int\n"
    "QPolygon.count() -> int");

extern "C" {static PyObject *meth_QPolygon_count(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_count(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0))
        {
            int sipRes;

            sipRes = sipCpp->count(*a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygon, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->count();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_count, doc_QPolygon_count);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_data, "QPolygon.data() -> sip.voidptr");

extern "C" {static PyObject *meth_QPolygon_data(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygon, &sipCpp))
        {
            void*sipRes;

            sipRes = sipCpp->data();

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_data, doc_QPolygon_data);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_fill, "QPolygon.fill(QPoint, int size=-1)");

extern "C" {static PyObject *meth_QPolygon_fill(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPolygon_fill(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        int a1 = -1;
        QPolygon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_size,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|i", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            sipCpp->fill(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_fill, doc_QPolygon_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_first, "QPolygon.first() -> QPoint");

extern "C" {static PyObject *meth_QPolygon_first(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_first(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygon, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = &sipCpp->first();

            return sipConvertFromType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_first, doc_QPolygon_first);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_indexOf, "QPolygon.indexOf(QPoint, int from=0) -> int");

extern "C" {static PyObject *meth_QPolygon_indexOf(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPolygon_indexOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        int a1 = 0;
        const QPolygon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_from,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|i", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            int sipRes;

            sipRes = sipCpp->indexOf(*a0,a1);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_indexOf, doc_QPolygon_indexOf);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_insert, "QPolygon.insert(int, QPoint)");

extern "C" {static PyObject *meth_QPolygon_insert(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_insert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPoint* a1;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QPolygon, &sipCpp, &a0, sipType_QPoint, &a1))
        {
            sipCpp->insert(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_insert, doc_QPolygon_insert);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_isEmpty, "QPolygon.isEmpty() -> bool");

extern "C" {static PyObject *meth_QPolygon_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygon, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEmpty();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_isEmpty, doc_QPolygon_isEmpty);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_last, "QPolygon.last() -> QPoint");

extern "C" {static PyObject *meth_QPolygon_last(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_last(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygon, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = &sipCpp->last();

            return sipConvertFromType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_last, doc_QPolygon_last);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_lastIndexOf, "QPolygon.lastIndexOf(QPoint, int from=-1) -> int");

extern "C" {static PyObject *meth_QPolygon_lastIndexOf(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPolygon_lastIndexOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        int a1 = -1;
        const QPolygon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_from,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|i", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            int sipRes;

            sipRes = sipCpp->lastIndexOf(*a0,a1);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_lastIndexOf, doc_QPolygon_lastIndexOf);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_mid, "QPolygon.mid(int, int length=-1) -> QPolygon");

extern "C" {static PyObject *meth_QPolygon_mid(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPolygon_mid(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1 = -1;
        const QPolygon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|i", &sipSelf, sipType_QPolygon, &sipCpp, &a0, &a1))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->mid(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_mid, doc_QPolygon_mid);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_prepend, "QPolygon.prepend(QPoint)");

extern "C" {static PyObject *meth_QPolygon_prepend(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_prepend(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->prepend(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_prepend, doc_QPolygon_prepend);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_remove, "QPolygon.remove(int)\n"
    "QPolygon.remove(int, int)");

extern "C" {static PyObject *meth_QPolygon_remove(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_remove(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPolygon, &sipCpp, &a0))
        {
            sipCpp->remove(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QPolygon, &sipCpp, &a0, &a1))
        {
            sipCpp->remove(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_remove, doc_QPolygon_remove);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_replace, "QPolygon.replace(int, QPoint)");

extern "C" {static PyObject *meth_QPolygon_replace(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_replace(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPoint* a1;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QPolygon, &sipCpp, &a0, sipType_QPoint, &a1))
        {
            sipCpp->replace(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_replace, doc_QPolygon_replace);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_size, "QPolygon.size() -> int");

extern "C" {static PyObject *meth_QPolygon_size(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPolygon, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->size();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_size, doc_QPolygon_size);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_value, "QPolygon.value(int) -> QPoint\n"
    "QPolygon.value(int, QPoint) -> QPoint");

extern "C" {static PyObject *meth_QPolygon_value(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPolygon, &sipCpp, &a0))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->value(a0));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    {
        int a0;
        const QPoint* a1;
        const QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QPolygon, &sipCpp, &a0, sipType_QPoint, &a1))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->value(a0,*a1));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_value, doc_QPolygon_value);

    return NULL;
}


PyDoc_STRVAR(doc_QPolygon_swap, "QPolygon.swap(QPolygon)");

extern "C" {static PyObject *meth_QPolygon_swap(PyObject *, PyObject *);}
static PyObject *meth_QPolygon_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygon* a0;
        QPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPolygon, &sipCpp, sipType_QPolygon, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName_swap, doc_QPolygon_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QPolygon___mul__(PyObject *,PyObject *);}
static PyObject *slot_QPolygon___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygon* a0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPolygon, &a0, sipType_QTransform, &a1))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static int slot_QPolygon___contains__(PyObject *,PyObject *);}
static int slot_QPolygon___contains__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygon));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPoint, &a0))
        {
            int sipRes = 0;

#line 321 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
// It looks like you can't assign QBool to int.
sipRes = bool(sipCpp->contains(*a0));
#line 76777 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName___contains__, NULL);

    return -1;
}


extern "C" {static int slot_QPolygon___delitem__(PyObject *,PyObject *);}
static int slot_QPolygon___delitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygon));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            int sipIsErr = 0;

#line 265 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
int len;

len = sipCpp->count();

if ((a0 = (int)sipConvertFromSequenceIndex(a0, len)) < 0)
    sipIsErr = 1;
else
    sipCpp->remove(a0);
#line 76816 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1T", &PySlice_Type, &a0))
        {
            int sipIsErr = 0;

#line 277 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
SIP_SSIZE_T len, start, stop, step, slicelength, i;

len = sipCpp->count();

#if PY_VERSION_HEX >= 0x03020000
if (PySlice_GetIndicesEx(a0, len, &start, &stop, &step, &slicelength) < 0)
#else
if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0)
#endif
    sipIsErr = 1;
else
    for (i = 0; i < slicelength; ++i)
    {
        sipCpp->remove(start);
        start += step - 1;
    }
#line 76849 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName___delitem__, NULL);

    return -1;
}


extern "C" {static int slot_QPolygon___setitem__(PyObject *,PyObject *);}
static int slot_QPolygon___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygon));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPoint* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "iJ9", &a0, sipType_QPoint, &a1))
        {
            int sipIsErr = 0;

#line 218 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
int len;

len = sipCpp->count();

if ((a0 = (int)sipConvertFromSequenceIndex(a0, len)) < 0)
    sipIsErr = 1;
else
    (*sipCpp)[a0] = *a1;
#line 76892 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    {
        PyObject * a0;
        const QPolygon* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "TJ9", &PySlice_Type, &a0, sipType_QPolygon, &a1))
        {
            int sipIsErr = 0;

#line 230 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
SIP_SSIZE_T len, start, stop, step, slicelength, i;

len = sipCpp->count();

#if PY_VERSION_HEX >= 0x03020000
if (PySlice_GetIndicesEx(a0, len, &start, &stop, &step, &slicelength) < 0)
#else
if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0)
#endif
    sipIsErr = 1;
else
{
    int vlen = a1->count();

    if (vlen != slicelength)
    {
        sipBadLengthForSlice(vlen, slicelength);
        sipIsErr = 1;
    }
    else
    {
        QVector<QPoint>::const_iterator it = a1->begin();

        for (i = 0; i < slicelength; ++i)
        {
            (*sipCpp)[start] = *it;
            start += step;
            ++it;
        }
    }
}
#line 76941 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return -1;

            return 0;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QPolygon___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QPolygon___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygon));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            QPoint*sipRes = 0;
            int sipIsErr = 0;

#line 206 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
SIP_SSIZE_T idx = sipConvertFromSequenceIndex(a0, sipCpp->count());

if (idx < 0)
    sipIsErr = 1;
else
    sipRes = new QPoint(sipCpp->operator[]((int)idx));
#line 76982 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return 0;

            return sipConvertFromType(sipRes,sipType_QPoint,NULL);
        }
    }

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1T", &PySlice_Type, &a0))
        {
            QPolygon*sipRes = 0;
            int sipIsErr = 0;

#line 297 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
SIP_SSIZE_T len, start, stop, step, slicelength, i;

len = sipCpp->count();

#if PY_VERSION_HEX >= 0x03020000
if (PySlice_GetIndicesEx(a0, len, &start, &stop, &step, &slicelength) < 0)
#else
if (PySlice_GetIndicesEx((PySliceObject *)a0, len, &start, &stop, &step, &slicelength) < 0)
#endif
    sipIsErr = 1;
else
{
    sipRes = new QPolygon();

    for (i = 0; i < slicelength; ++i)
    {
        (*sipRes) += (*sipCpp)[start];
        start += step;
    }
}
#line 77020 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return 0;

            return sipConvertFromType(sipRes,sipType_QPolygon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPolygon, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QPolygon___lshift__(PyObject *,PyObject *);}
static PyObject *slot_QPolygon___lshift__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPolygon* a0;
        const QPoint* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPolygon, &a0, sipType_QPoint, &a1))
        {
            PyObject * sipRes = 0;

#line 198 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
    *a0 << *a1;

    sipRes = sipArg0;
    Py_INCREF(sipRes);
#line 77054 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,lshift_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPolygon___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPolygon___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygon));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPolygon* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPolygon, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPolygon::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPolygon,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPolygon___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QPolygon___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygon));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPolygon* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPolygon, &a0))
        {
            sipCpp->QPolygon::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        const QPoint* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPoint, &a0))
        {
            sipCpp->QPolygon::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,iconcat_slot);

    return NULL;
}


extern "C" {static PyObject *slot_QPolygon___add__(PyObject *,PyObject *);}
static PyObject *slot_QPolygon___add__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygon));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPolygon* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPolygon, &a0))
        {
            QPolygon*sipRes;

            sipRes = new QPolygon(sipCpp->QPolygon::operator+(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygon,NULL);
        }
    }

    /* Raise an exception if the argument couldn't be parsed. */
    sipBadOperatorArg(sipSelf,sipArg,concat_slot);

    return NULL;
}


extern "C" {static PyObject *slot_QPolygon___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPolygon___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygon));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPolygon* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPolygon, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPolygon::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPolygon,sipSelf,sipArg);
}


extern "C" {static SIP_SSIZE_T slot_QPolygon___len__(PyObject *);}
static SIP_SSIZE_T slot_QPolygon___len__(PyObject *sipSelf)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPolygon));

    if (!sipCpp)
        return 0;


    {
        {
            SIP_SSIZE_T sipRes = 0;

#line 1 "Auto-generated"
            sipRes = (SIP_SSIZE_T)sipCpp->count();
#line 77219 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPolygon(void *, const sipTypeDef *);}
static void *cast_QPolygon(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPolygon)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPolygon(void *, int);}
static void release_QPolygon(void *sipCppV,int)
{
    delete reinterpret_cast<QPolygon *>(sipCppV);
}


extern "C" {static PyObject *pickle_QPolygon(void *);}
static PyObject *pickle_QPolygon(void *sipCppV)
{
    QPolygon *sipCpp = reinterpret_cast<QPolygon *>(sipCppV);
    PyObject *sipRes;

#line 58 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
    PyObject *pl = PyList_New(sipCpp->count() * 2);
    
    for (int p = 0, i = 0; i < sipCpp->count(); ++i, p += 2)
    {
        int x, y;
    
        sipCpp->point(i, &x, &y);
    
        PyList_SET_ITEM(pl, p, SIPLong_FromLong(x));
        PyList_SET_ITEM(pl, p + 1, SIPLong_FromLong(y));
    }
    
    sipRes = Py_BuildValue((char *)"(N)", pl);
#line 77268 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QPolygon(void *, SIP_SSIZE_T, const void *);}
static void assign_QPolygon(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPolygon *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPolygon *>(sipSrc);
}


extern "C" {static void *array_QPolygon(SIP_SSIZE_T);}
static void *array_QPolygon(SIP_SSIZE_T sipNrElem)
{
    return new QPolygon[sipNrElem];
}


extern "C" {static void *copy_QPolygon(const void *, SIP_SSIZE_T);}
static void *copy_QPolygon(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPolygon(reinterpret_cast<const QPolygon *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPolygon(sipSimpleWrapper *);}
static void dealloc_QPolygon(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPolygon(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPolygon(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPolygon(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPolygon *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPolygon();

            return sipCpp;
        }
    }

    {
        const QPolygon* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPolygon, &a0))
        {
            sipCpp = new QPolygon(*a0);

            return sipCpp;
        }
    }

    {
        const QVector<QPoint>* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QVector_0100QPoint,&a0, &a0State))
        {
            sipCpp = new QPolygon(*a0);
            sipReleaseType(const_cast<QVector<QPoint> *>(a0),sipType_QVector_0100QPoint,a0State);

            return sipCpp;
        }
    }

    {
        const QRect* a0;
        bool a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_closed,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|b", sipType_QRect, &a0, &a1))
        {
            sipCpp = new QPolygon(*a0,a1);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QPolygon(a0);

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "T", &PyList_Type, &a0))
        {
            int sipIsErr = 0;

#line 82 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
        sipCpp = new QPolygon();
        
        if (!setPointsFromList(sipCpp, a0))
        {
            delete sipCpp;
            sipCpp = 0;
            sipIsErr = 1;
        }
#line 77387 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
            {
                if (sipUnused)
                {
                    Py_XDECREF(*sipUnused);
                }

                sipAddException(sipErrorFail, sipParseErr);
                return NULL;
            }

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 94 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
        if (a0->canConvert<QPolygon>())
            sipCpp = new QPolygon(a0->value<QPolygon>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 77418 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPolygon[] = {
    {(void *)slot_QPolygon___mul__, mul_slot},
    {(void *)slot_QPolygon___contains__, contains_slot},
    {(void *)slot_QPolygon___delitem__, delitem_slot},
    {(void *)slot_QPolygon___setitem__, setitem_slot},
    {(void *)slot_QPolygon___getitem__, getitem_slot},
    {(void *)slot_QPolygon___lshift__, lshift_slot},
    {(void *)slot_QPolygon___eq__, eq_slot},
    {(void *)slot_QPolygon___iadd__, iconcat_slot},
    {(void *)slot_QPolygon___add__, concat_slot},
    {(void *)slot_QPolygon___ne__, ne_slot},
    {(void *)slot_QPolygon___len__, len_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPolygon[] = {
    {SIP_MLNAME_CAST(sipName_append), meth_QPolygon_append, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_append)},
    {SIP_MLNAME_CAST(sipName_at), meth_QPolygon_at, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_at)},
    {SIP_MLNAME_CAST(sipName_boundingRect), meth_QPolygon_boundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_boundingRect)},
    {SIP_MLNAME_CAST(sipName_clear), meth_QPolygon_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_clear)},
    {SIP_MLNAME_CAST(sipName_contains), meth_QPolygon_contains, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_contains)},
    {SIP_MLNAME_CAST(sipName_containsPoint), meth_QPolygon_containsPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_containsPoint)},
    {SIP_MLNAME_CAST(sipName_count), meth_QPolygon_count, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_count)},
    {SIP_MLNAME_CAST(sipName_data), meth_QPolygon_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_data)},
    {SIP_MLNAME_CAST(sipName_fill), (PyCFunction)meth_QPolygon_fill, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPolygon_fill)},
    {SIP_MLNAME_CAST(sipName_first), meth_QPolygon_first, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_first)},
    {SIP_MLNAME_CAST(sipName_indexOf), (PyCFunction)meth_QPolygon_indexOf, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPolygon_indexOf)},
    {SIP_MLNAME_CAST(sipName_insert), meth_QPolygon_insert, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_insert)},
    {SIP_MLNAME_CAST(sipName_intersected), meth_QPolygon_intersected, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_intersected)},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_QPolygon_isEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_isEmpty)},
    {SIP_MLNAME_CAST(sipName_last), meth_QPolygon_last, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_last)},
    {SIP_MLNAME_CAST(sipName_lastIndexOf), (PyCFunction)meth_QPolygon_lastIndexOf, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPolygon_lastIndexOf)},
    {SIP_MLNAME_CAST(sipName_mid), (PyCFunction)meth_QPolygon_mid, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPolygon_mid)},
    {SIP_MLNAME_CAST(sipName_point), meth_QPolygon_point, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_point)},
    {SIP_MLNAME_CAST(sipName_prepend), meth_QPolygon_prepend, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_prepend)},
    {SIP_MLNAME_CAST(sipName_putPoints), (PyCFunction)meth_QPolygon_putPoints, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPolygon_putPoints)},
    {SIP_MLNAME_CAST(sipName_remove), meth_QPolygon_remove, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_remove)},
    {SIP_MLNAME_CAST(sipName_replace), meth_QPolygon_replace, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_replace)},
    {SIP_MLNAME_CAST(sipName_setPoint), meth_QPolygon_setPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_setPoint)},
    {SIP_MLNAME_CAST(sipName_setPoints), meth_QPolygon_setPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_setPoints)},
    {SIP_MLNAME_CAST(sipName_size), meth_QPolygon_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_size)},
    {SIP_MLNAME_CAST(sipName_subtracted), meth_QPolygon_subtracted, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_subtracted)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPolygon_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_swap)},
    {SIP_MLNAME_CAST(sipName_translate), meth_QPolygon_translate, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_translate)},
    {SIP_MLNAME_CAST(sipName_translated), meth_QPolygon_translated, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_translated)},
    {SIP_MLNAME_CAST(sipName_united), meth_QPolygon_united, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_united)},
    {SIP_MLNAME_CAST(sipName_value), meth_QPolygon_value, METH_VARARGS, SIP_MLDOC_CAST(doc_QPolygon_value)}
};

PyDoc_STRVAR(doc_QPolygon, "\1QPolygon()\n"
    "QPolygon(QPolygon)\n"
    "QPolygon(list-of-QPoint)\n"
    "QPolygon(QRect, bool closed=False)\n"
    "QPolygon(int)\n"
    "QPolygon(list-of-int)\n"
    "QPolygon(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPolygon = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPolygon,
        {0}
    },
    {
        sipNameNr_QPolygon,
        {0, 0, 1},
        31, methods_QPolygon,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPolygon,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPolygon,
    init_type_QPolygon,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPolygon,
    assign_QPolygon,
    array_QPolygon,
    copy_QPolygon,
    release_QPolygon,
    cast_QPolygon,
    0,
    0,
    0,
    pickle_QPolygon,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 33 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 77559 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



extern "C" {static PyObject *slot_QPixmapCache_Key___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPixmapCache_Key___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPixmapCache::Key *sipCpp = reinterpret_cast<QPixmapCache::Key *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPixmapCache_Key));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPixmapCache::Key* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPixmapCache_Key, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPixmapCache::Key::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPixmapCache_Key,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPixmapCache_Key___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPixmapCache_Key___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPixmapCache::Key *sipCpp = reinterpret_cast<QPixmapCache::Key *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPixmapCache_Key));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPixmapCache::Key* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPixmapCache_Key, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPixmapCache::Key::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPixmapCache_Key,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPixmapCache_Key(void *, const sipTypeDef *);}
static void *cast_QPixmapCache_Key(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPixmapCache_Key)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPixmapCache_Key(void *, int);}
static void release_QPixmapCache_Key(void *sipCppV,int)
{
    delete reinterpret_cast<QPixmapCache::Key *>(sipCppV);
}


extern "C" {static void assign_QPixmapCache_Key(void *, SIP_SSIZE_T, const void *);}
static void assign_QPixmapCache_Key(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPixmapCache::Key *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPixmapCache::Key *>(sipSrc);
}


extern "C" {static void *array_QPixmapCache_Key(SIP_SSIZE_T);}
static void *array_QPixmapCache_Key(SIP_SSIZE_T sipNrElem)
{
    return new QPixmapCache::Key[sipNrElem];
}


extern "C" {static void *copy_QPixmapCache_Key(const void *, SIP_SSIZE_T);}
static void *copy_QPixmapCache_Key(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPixmapCache::Key(reinterpret_cast<const QPixmapCache::Key *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPixmapCache_Key(sipSimpleWrapper *);}
static void dealloc_QPixmapCache_Key(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPixmapCache_Key(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPixmapCache_Key(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPixmapCache_Key(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPixmapCache::Key *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPixmapCache::Key();

            return sipCpp;
        }
    }

    {
        const QPixmapCache::Key* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPixmapCache_Key, &a0))
        {
            sipCpp = new QPixmapCache::Key(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPixmapCache_Key[] = {
    {(void *)slot_QPixmapCache_Key___ne__, ne_slot},
    {(void *)slot_QPixmapCache_Key___eq__, eq_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QPixmapCache_Key, "\1QPixmapCache.Key()\n"
    "QPixmapCache.Key(QPixmapCache.Key)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPixmapCache_Key = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPixmapCache__Key,
        {0}
    },
    {
        sipNameNr_Key,
        {224, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPixmapCache_Key,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPixmapCache_Key,
    init_type_QPixmapCache_Key,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPixmapCache_Key,
    assign_QPixmapCache_Key,
    array_QPixmapCache_Key,
    copy_QPixmapCache_Key,
    release_QPixmapCache_Key,
    cast_QPixmapCache_Key,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 77774 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 33 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
#include <qpixmapcache.h>
#line 77780 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 77783 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 77786 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPixmapCache_cacheLimit, "QPixmapCache.cacheLimit() -> int");

extern "C" {static PyObject *meth_QPixmapCache_cacheLimit(PyObject *, PyObject *);}
static PyObject *meth_QPixmapCache_cacheLimit(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            int sipRes;

            sipRes = QPixmapCache::cacheLimit();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmapCache, sipName_cacheLimit, doc_QPixmapCache_cacheLimit);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmapCache_clear, "QPixmapCache.clear()");

extern "C" {static PyObject *meth_QPixmapCache_clear(PyObject *, PyObject *);}
static PyObject *meth_QPixmapCache_clear(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QPixmapCache::clear();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmapCache, sipName_clear, doc_QPixmapCache_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmapCache_find, "QPixmapCache.find(str) -> QPixmap\n"
    "QPixmapCache.find(QPixmapCache.Key) -> QPixmap");

extern "C" {static PyObject *meth_QPixmapCache_find(PyObject *, PyObject *);}
static PyObject *meth_QPixmapCache_find(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QPixmap*sipRes = 0;

#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
        sipRes = new QPixmap;
        
        if (!QPixmapCache::find(*a0, sipRes))
        {
            delete sipRes;
            sipRes = 0;
        }
#line 77862 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    {
        const QPixmapCache::Key* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QPixmapCache_Key, &a0))
        {
            QPixmap*sipRes = 0;

#line 59 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmapcache.sip"
        sipRes = new QPixmap;
        
        if (!QPixmapCache::find(*a0, sipRes))
        {
            delete sipRes;
            sipRes = 0;
        }
#line 77884 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmapCache, sipName_find, doc_QPixmapCache_find);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmapCache_insert, "QPixmapCache.insert(str, QPixmap) -> bool\n"
    "QPixmapCache.insert(QPixmap) -> QPixmapCache.Key");

extern "C" {static PyObject *meth_QPixmapCache_insert(PyObject *, PyObject *);}
static PyObject *meth_QPixmapCache_insert(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QPixmap* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J9", sipType_QString,&a0, &a0State, sipType_QPixmap, &a1))
        {
            bool sipRes;

            sipRes = QPixmapCache::insert(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QPixmap* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QPixmap, &a0))
        {
            QPixmapCache::Key*sipRes;

            sipRes = new QPixmapCache::Key(QPixmapCache::insert(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPixmapCache_Key,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmapCache, sipName_insert, doc_QPixmapCache_insert);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmapCache_remove, "QPixmapCache.remove(str)\n"
    "QPixmapCache.remove(QPixmapCache.Key)");

extern "C" {static PyObject *meth_QPixmapCache_remove(PyObject *, PyObject *);}
static PyObject *meth_QPixmapCache_remove(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QPixmapCache::remove(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPixmapCache::Key* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QPixmapCache_Key, &a0))
        {
            QPixmapCache::remove(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmapCache, sipName_remove, doc_QPixmapCache_remove);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmapCache_replace, "QPixmapCache.replace(QPixmapCache.Key, QPixmap) -> bool");

extern "C" {static PyObject *meth_QPixmapCache_replace(PyObject *, PyObject *);}
static PyObject *meth_QPixmapCache_replace(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmapCache::Key* a0;
        const QPixmap* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9J9", sipType_QPixmapCache_Key, &a0, sipType_QPixmap, &a1))
        {
            bool sipRes;

            sipRes = QPixmapCache::replace(*a0,*a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmapCache, sipName_replace, doc_QPixmapCache_replace);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmapCache_setCacheLimit, "QPixmapCache.setCacheLimit(int)");

extern "C" {static PyObject *meth_QPixmapCache_setCacheLimit(PyObject *, PyObject *);}
static PyObject *meth_QPixmapCache_setCacheLimit(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            QPixmapCache::setCacheLimit(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmapCache, sipName_setCacheLimit, doc_QPixmapCache_setCacheLimit);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPixmapCache(void *, const sipTypeDef *);}
static void *cast_QPixmapCache(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPixmapCache)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPixmapCache(void *, int);}
static void release_QPixmapCache(void *sipCppV,int)
{
    delete reinterpret_cast<QPixmapCache *>(sipCppV);
}


extern "C" {static void assign_QPixmapCache(void *, SIP_SSIZE_T, const void *);}
static void assign_QPixmapCache(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPixmapCache *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPixmapCache *>(sipSrc);
}


extern "C" {static void *array_QPixmapCache(SIP_SSIZE_T);}
static void *array_QPixmapCache(SIP_SSIZE_T sipNrElem)
{
    return new QPixmapCache[sipNrElem];
}


extern "C" {static void *copy_QPixmapCache(const void *, SIP_SSIZE_T);}
static void *copy_QPixmapCache(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPixmapCache(reinterpret_cast<const QPixmapCache *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPixmapCache(sipSimpleWrapper *);}
static void dealloc_QPixmapCache(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPixmapCache(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPixmapCache(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPixmapCache(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPixmapCache *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPixmapCache();

            return sipCpp;
        }
    }

    {
        const QPixmapCache* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPixmapCache, &a0))
        {
            sipCpp = new QPixmapCache(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPixmapCache[] = {
    {SIP_MLNAME_CAST(sipName_cacheLimit), meth_QPixmapCache_cacheLimit, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmapCache_cacheLimit)},
    {SIP_MLNAME_CAST(sipName_clear), meth_QPixmapCache_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmapCache_clear)},
    {SIP_MLNAME_CAST(sipName_find), meth_QPixmapCache_find, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmapCache_find)},
    {SIP_MLNAME_CAST(sipName_insert), meth_QPixmapCache_insert, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmapCache_insert)},
    {SIP_MLNAME_CAST(sipName_remove), meth_QPixmapCache_remove, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmapCache_remove)},
    {SIP_MLNAME_CAST(sipName_replace), meth_QPixmapCache_replace, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmapCache_replace)},
    {SIP_MLNAME_CAST(sipName_setCacheLimit), meth_QPixmapCache_setCacheLimit, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmapCache_setCacheLimit)}
};

PyDoc_STRVAR(doc_QPixmapCache, "\1QPixmapCache()\n"
    "QPixmapCache(QPixmapCache)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPixmapCache = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPixmapCache,
        {0}
    },
    {
        sipNameNr_QPixmapCache,
        {0, 0, 1},
        7, methods_QPixmapCache,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPixmapCache,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPixmapCache,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPixmapCache,
    assign_QPixmapCache,
    array_QPixmapCache,
    copy_QPixmapCache,
    release_QPixmapCache,
    cast_QPixmapCache,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixelformat.sip"
#include <qpixelformat.h>
#line 78186 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QPixelFormat_colorModel, "QPixelFormat.colorModel() -> QPixelFormat.ColorModel");

extern "C" {static PyObject *meth_QPixelFormat_colorModel(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_colorModel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            QPixelFormat::ColorModel sipRes;

            sipRes = sipCpp->colorModel();

            return sipConvertFromEnum(sipRes,sipType_QPixelFormat_ColorModel);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_colorModel, doc_QPixelFormat_colorModel);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_channelCount, "QPixelFormat.channelCount() -> int");

extern "C" {static PyObject *meth_QPixelFormat_channelCount(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_channelCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->channelCount();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_channelCount, doc_QPixelFormat_channelCount);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_redSize, "QPixelFormat.redSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_redSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_redSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->redSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_redSize, doc_QPixelFormat_redSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_greenSize, "QPixelFormat.greenSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_greenSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_greenSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->greenSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_greenSize, doc_QPixelFormat_greenSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_blueSize, "QPixelFormat.blueSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_blueSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_blueSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->blueSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_blueSize, doc_QPixelFormat_blueSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_cyanSize, "QPixelFormat.cyanSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_cyanSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_cyanSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->cyanSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_cyanSize, doc_QPixelFormat_cyanSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_magentaSize, "QPixelFormat.magentaSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_magentaSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_magentaSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->magentaSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_magentaSize, doc_QPixelFormat_magentaSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_yellowSize, "QPixelFormat.yellowSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_yellowSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_yellowSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->yellowSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_yellowSize, doc_QPixelFormat_yellowSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_blackSize, "QPixelFormat.blackSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_blackSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_blackSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->blackSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_blackSize, doc_QPixelFormat_blackSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_hueSize, "QPixelFormat.hueSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_hueSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_hueSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->hueSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_hueSize, doc_QPixelFormat_hueSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_saturationSize, "QPixelFormat.saturationSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_saturationSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_saturationSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->saturationSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_saturationSize, doc_QPixelFormat_saturationSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_lightnessSize, "QPixelFormat.lightnessSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_lightnessSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_lightnessSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->lightnessSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_lightnessSize, doc_QPixelFormat_lightnessSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_brightnessSize, "QPixelFormat.brightnessSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_brightnessSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_brightnessSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->brightnessSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_brightnessSize, doc_QPixelFormat_brightnessSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_alphaSize, "QPixelFormat.alphaSize() -> int");

extern "C" {static PyObject *meth_QPixelFormat_alphaSize(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_alphaSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->alphaSize();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_alphaSize, doc_QPixelFormat_alphaSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_bitsPerPixel, "QPixelFormat.bitsPerPixel() -> int");

extern "C" {static PyObject *meth_QPixelFormat_bitsPerPixel(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_bitsPerPixel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->bitsPerPixel();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_bitsPerPixel, doc_QPixelFormat_bitsPerPixel);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_alphaUsage, "QPixelFormat.alphaUsage() -> QPixelFormat.AlphaUsage");

extern "C" {static PyObject *meth_QPixelFormat_alphaUsage(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_alphaUsage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            QPixelFormat::AlphaUsage sipRes;

            sipRes = sipCpp->alphaUsage();

            return sipConvertFromEnum(sipRes,sipType_QPixelFormat_AlphaUsage);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_alphaUsage, doc_QPixelFormat_alphaUsage);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_alphaPosition, "QPixelFormat.alphaPosition() -> QPixelFormat.AlphaPosition");

extern "C" {static PyObject *meth_QPixelFormat_alphaPosition(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_alphaPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            QPixelFormat::AlphaPosition sipRes;

            sipRes = sipCpp->alphaPosition();

            return sipConvertFromEnum(sipRes,sipType_QPixelFormat_AlphaPosition);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_alphaPosition, doc_QPixelFormat_alphaPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_premultiplied, "QPixelFormat.premultiplied() -> QPixelFormat.AlphaPremultiplied");

extern "C" {static PyObject *meth_QPixelFormat_premultiplied(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_premultiplied(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            QPixelFormat::AlphaPremultiplied sipRes;

            sipRes = sipCpp->premultiplied();

            return sipConvertFromEnum(sipRes,sipType_QPixelFormat_AlphaPremultiplied);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_premultiplied, doc_QPixelFormat_premultiplied);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_typeInterpretation, "QPixelFormat.typeInterpretation() -> QPixelFormat.TypeInterpretation");

extern "C" {static PyObject *meth_QPixelFormat_typeInterpretation(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_typeInterpretation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            QPixelFormat::TypeInterpretation sipRes;

            sipRes = sipCpp->typeInterpretation();

            return sipConvertFromEnum(sipRes,sipType_QPixelFormat_TypeInterpretation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_typeInterpretation, doc_QPixelFormat_typeInterpretation);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_byteOrder, "QPixelFormat.byteOrder() -> QPixelFormat.ByteOrder");

extern "C" {static PyObject *meth_QPixelFormat_byteOrder(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_byteOrder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            QPixelFormat::ByteOrder sipRes;

            sipRes = sipCpp->byteOrder();

            return sipConvertFromEnum(sipRes,sipType_QPixelFormat_ByteOrder);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_byteOrder, doc_QPixelFormat_byteOrder);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_yuvLayout, "QPixelFormat.yuvLayout() -> QPixelFormat.YUVLayout");

extern "C" {static PyObject *meth_QPixelFormat_yuvLayout(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_yuvLayout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            QPixelFormat::YUVLayout sipRes;

            sipRes = sipCpp->yuvLayout();

            return sipConvertFromEnum(sipRes,sipType_QPixelFormat_YUVLayout);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_yuvLayout, doc_QPixelFormat_yuvLayout);

    return NULL;
}


PyDoc_STRVAR(doc_QPixelFormat_subEnum, "QPixelFormat.subEnum() -> int");

extern "C" {static PyObject *meth_QPixelFormat_subEnum(PyObject *, PyObject *);}
static PyObject *meth_QPixelFormat_subEnum(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixelFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixelFormat, &sipCpp))
        {
            uchar sipRes;

            sipRes = sipCpp->subEnum();

#if PY_MAJOR_VERSION >= 3
            return PyLong_FromUnsignedLong(sipRes);
#else
            return PyInt_FromLong(sipRes);
#endif
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixelFormat, sipName_subEnum, doc_QPixelFormat_subEnum);

    return NULL;
}


extern "C" {static PyObject *slot_QPixelFormat___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPixelFormat___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPixelFormat *sipCpp = reinterpret_cast<QPixelFormat *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPixelFormat));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPixelFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPixelFormat, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPixelFormat,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPixelFormat___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPixelFormat___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPixelFormat *sipCpp = reinterpret_cast<QPixelFormat *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPixelFormat));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPixelFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPixelFormat, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPixelFormat,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPixelFormat(void *, const sipTypeDef *);}
static void *cast_QPixelFormat(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPixelFormat)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPixelFormat(void *, int);}
static void release_QPixelFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QPixelFormat *>(sipCppV);
}


extern "C" {static void assign_QPixelFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QPixelFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPixelFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPixelFormat *>(sipSrc);
}


extern "C" {static void *array_QPixelFormat(SIP_SSIZE_T);}
static void *array_QPixelFormat(SIP_SSIZE_T sipNrElem)
{
    return new QPixelFormat[sipNrElem];
}


extern "C" {static void *copy_QPixelFormat(const void *, SIP_SSIZE_T);}
static void *copy_QPixelFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPixelFormat(reinterpret_cast<const QPixelFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPixelFormat(sipSimpleWrapper *);}
static void dealloc_QPixelFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPixelFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPixelFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPixelFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPixelFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPixelFormat();

            return sipCpp;
        }
    }

    {
        QPixelFormat::ColorModel a0;
        uchar a1;
        uchar a2;
        uchar a3;
        uchar a4;
        uchar a5;
        uchar a6;
        QPixelFormat::AlphaUsage a7;
        QPixelFormat::AlphaPosition a8;
        QPixelFormat::AlphaPremultiplied a9;
        QPixelFormat::TypeInterpretation a10;
        QPixelFormat::ByteOrder a11 = QPixelFormat::CurrentSystemEndian;
        uchar a12 = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_byteOrder,
            sipName_subEnum,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "EMMMMMMEEEE|EM", sipType_QPixelFormat_ColorModel, &a0, &a1, &a2, &a3, &a4, &a5, &a6, sipType_QPixelFormat_AlphaUsage, &a7, sipType_QPixelFormat_AlphaPosition, &a8, sipType_QPixelFormat_AlphaPremultiplied, &a9, sipType_QPixelFormat_TypeInterpretation, &a10, sipType_QPixelFormat_ByteOrder, &a11, &a12))
        {
            sipCpp = new QPixelFormat(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12);

            return sipCpp;
        }
    }

    {
        const QPixelFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPixelFormat, &a0))
        {
            sipCpp = new QPixelFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPixelFormat[] = {
    {(void *)slot_QPixelFormat___eq__, eq_slot},
    {(void *)slot_QPixelFormat___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPixelFormat[] = {
    {SIP_MLNAME_CAST(sipName_alphaPosition), meth_QPixelFormat_alphaPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_alphaPosition)},
    {SIP_MLNAME_CAST(sipName_alphaSize), meth_QPixelFormat_alphaSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_alphaSize)},
    {SIP_MLNAME_CAST(sipName_alphaUsage), meth_QPixelFormat_alphaUsage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_alphaUsage)},
    {SIP_MLNAME_CAST(sipName_bitsPerPixel), meth_QPixelFormat_bitsPerPixel, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_bitsPerPixel)},
    {SIP_MLNAME_CAST(sipName_blackSize), meth_QPixelFormat_blackSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_blackSize)},
    {SIP_MLNAME_CAST(sipName_blueSize), meth_QPixelFormat_blueSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_blueSize)},
    {SIP_MLNAME_CAST(sipName_brightnessSize), meth_QPixelFormat_brightnessSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_brightnessSize)},
    {SIP_MLNAME_CAST(sipName_byteOrder), meth_QPixelFormat_byteOrder, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_byteOrder)},
    {SIP_MLNAME_CAST(sipName_channelCount), meth_QPixelFormat_channelCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_channelCount)},
    {SIP_MLNAME_CAST(sipName_colorModel), meth_QPixelFormat_colorModel, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_colorModel)},
    {SIP_MLNAME_CAST(sipName_cyanSize), meth_QPixelFormat_cyanSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_cyanSize)},
    {SIP_MLNAME_CAST(sipName_greenSize), meth_QPixelFormat_greenSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_greenSize)},
    {SIP_MLNAME_CAST(sipName_hueSize), meth_QPixelFormat_hueSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_hueSize)},
    {SIP_MLNAME_CAST(sipName_lightnessSize), meth_QPixelFormat_lightnessSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_lightnessSize)},
    {SIP_MLNAME_CAST(sipName_magentaSize), meth_QPixelFormat_magentaSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_magentaSize)},
    {SIP_MLNAME_CAST(sipName_premultiplied), meth_QPixelFormat_premultiplied, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_premultiplied)},
    {SIP_MLNAME_CAST(sipName_redSize), meth_QPixelFormat_redSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_redSize)},
    {SIP_MLNAME_CAST(sipName_saturationSize), meth_QPixelFormat_saturationSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_saturationSize)},
    {SIP_MLNAME_CAST(sipName_subEnum), meth_QPixelFormat_subEnum, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_subEnum)},
    {SIP_MLNAME_CAST(sipName_typeInterpretation), meth_QPixelFormat_typeInterpretation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_typeInterpretation)},
    {SIP_MLNAME_CAST(sipName_yellowSize), meth_QPixelFormat_yellowSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_yellowSize)},
    {SIP_MLNAME_CAST(sipName_yuvLayout), meth_QPixelFormat_yuvLayout, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixelFormat_yuvLayout)}
};

static sipEnumMemberDef enummembers_QPixelFormat[] = {
    {sipName_AtBeginning, static_cast<int>(QPixelFormat::AtBeginning), 216},
    {sipName_AtEnd, static_cast<int>(QPixelFormat::AtEnd), 216},
    {sipName_BGR, static_cast<int>(QPixelFormat::BGR), 220},
    {sipName_BigEndian, static_cast<int>(QPixelFormat::BigEndian), 219},
    {sipName_CMYK, static_cast<int>(QPixelFormat::CMYK), 220},
    {sipName_CurrentSystemEndian, static_cast<int>(QPixelFormat::CurrentSystemEndian), 219},
    {sipName_FloatingPoint, static_cast<int>(QPixelFormat::FloatingPoint), 221},
    {sipName_Grayscale, static_cast<int>(QPixelFormat::Grayscale), 220},
    {sipName_HSL, static_cast<int>(QPixelFormat::HSL), 220},
    {sipName_HSV, static_cast<int>(QPixelFormat::HSV), 220},
    {sipName_IMC1, static_cast<int>(QPixelFormat::IMC1), 222},
    {sipName_IMC2, static_cast<int>(QPixelFormat::IMC2), 222},
    {sipName_IMC3, static_cast<int>(QPixelFormat::IMC3), 222},
    {sipName_IMC4, static_cast<int>(QPixelFormat::IMC4), 222},
    {sipName_IgnoresAlpha, static_cast<int>(QPixelFormat::IgnoresAlpha), 218},
    {sipName_Indexed, static_cast<int>(QPixelFormat::Indexed), 220},
    {sipName_LittleEndian, static_cast<int>(QPixelFormat::LittleEndian), 219},
    {sipName_NV12, static_cast<int>(QPixelFormat::NV12), 222},
    {sipName_NV21, static_cast<int>(QPixelFormat::NV21), 222},
    {sipName_NotPremultiplied, static_cast<int>(QPixelFormat::NotPremultiplied), 217},
    {sipName_Premultiplied, static_cast<int>(QPixelFormat::Premultiplied), 217},
    {sipName_RGB, static_cast<int>(QPixelFormat::RGB), 220},
    {sipName_UYVY, static_cast<int>(QPixelFormat::UYVY), 222},
    {sipName_UnsignedByte, static_cast<int>(QPixelFormat::UnsignedByte), 221},
    {sipName_UnsignedInteger, static_cast<int>(QPixelFormat::UnsignedInteger), 221},
    {sipName_UnsignedShort, static_cast<int>(QPixelFormat::UnsignedShort), 221},
    {sipName_UsesAlpha, static_cast<int>(QPixelFormat::UsesAlpha), 218},
    {sipName_Y16, static_cast<int>(QPixelFormat::Y16), 222},
    {sipName_Y8, static_cast<int>(QPixelFormat::Y8), 222},
    {sipName_YUV, static_cast<int>(QPixelFormat::YUV), 220},
    {sipName_YUV411, static_cast<int>(QPixelFormat::YUV411), 222},
    {sipName_YUV420P, static_cast<int>(QPixelFormat::YUV420P), 222},
    {sipName_YUV420SP, static_cast<int>(QPixelFormat::YUV420SP), 222},
    {sipName_YUV422, static_cast<int>(QPixelFormat::YUV422), 222},
    {sipName_YUV444, static_cast<int>(QPixelFormat::YUV444), 222},
    {sipName_YUYV, static_cast<int>(QPixelFormat::YUYV), 222},
    {sipName_YV12, static_cast<int>(QPixelFormat::YV12), 222},
};

PyDoc_STRVAR(doc_QPixelFormat, "\1QPixelFormat()\n"
    "QPixelFormat(QPixelFormat.ColorModel, int, int, int, int, int, int, QPixelFormat.AlphaUsage, QPixelFormat.AlphaPosition, QPixelFormat.AlphaPremultiplied, QPixelFormat.TypeInterpretation, QPixelFormat.ByteOrder byteOrder=QPixelFormat.CurrentSystemEndian, int subEnum=0)\n"
    "QPixelFormat(QPixelFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPixelFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPixelFormat,
        {0}
    },
    {
        sipNameNr_QPixelFormat,
        {0, 0, 1},
        22, methods_QPixelFormat,
        37, enummembers_QPixelFormat,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPixelFormat,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPixelFormat,
    init_type_QPixelFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPixelFormat,
    assign_QPixelFormat,
    array_QPixelFormat,
    copy_QPixelFormat,
    release_QPixelFormat,
    cast_QPixelFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 79161 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 79165 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 79168 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 79171 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 79174 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 79177 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 67 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpicture.sip"
// This defines the mapping between picture formats and the corresponding
// Python i/o handler callables.
struct qtgui_pio {
    const char *format;     // The format.
    PyObject *read;         // The read handler.
    PyObject *write;        // The write handler.
    qtgui_pio *next;        // The next in the list.
};


// The head of the list.
static qtgui_pio *qtgui_pio_head = 0;


// Find the entry for the given picture.
static const qtgui_pio *qtgui_pio_find(QPictureIO *pio)
{
    for (const qtgui_pio *p = qtgui_pio_head; p; p = p->next)
        if (qstrcmp(pio->format(), p->format) == 0)
            return p;

    return 0;
}


// This is the C++ read handler.
static void qtgui_pio_read(QPictureIO *pio)
{
    const qtgui_pio *p = qtgui_pio_find(pio);

    if (p && p->read)
    {
        Py_XDECREF(sipCallMethod(0, p->read, "D", pio, sipType_QPictureIO, NULL));
    }
}


// This is the C++ write handler.
static void qtgui_pio_write(QPictureIO *pio)
{
    const qtgui_pio *p = qtgui_pio_find(pio);

    if (p && p->write)
    {
        Py_XDECREF(sipCallMethod(0, p->write, "D", pio, sipType_QPictureIO, NULL));
    }
}
#line 79226 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPictureIO_picture, "QPictureIO.picture() -> QPicture");

extern "C" {static PyObject *meth_QPictureIO_picture(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_picture(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            QPicture*sipRes;

            sipRes = new QPicture(sipCpp->picture());

            return sipConvertFromNewType(sipRes,sipType_QPicture,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_picture, doc_QPictureIO_picture);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_status, "QPictureIO.status() -> int");

extern "C" {static PyObject *meth_QPictureIO_status(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_status(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->status();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_status, doc_QPictureIO_status);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_format, "QPictureIO.format() -> str");

extern "C" {static PyObject *meth_QPictureIO_format(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            const char*sipRes;

            sipRes = sipCpp->format();

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_format, doc_QPictureIO_format);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_ioDevice, "QPictureIO.ioDevice() -> QIODevice");

extern "C" {static PyObject *meth_QPictureIO_ioDevice(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_ioDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            QIODevice*sipRes;

            sipRes = sipCpp->ioDevice();

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_ioDevice, doc_QPictureIO_ioDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_fileName, "QPictureIO.fileName() -> str");

extern "C" {static PyObject *meth_QPictureIO_fileName(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_fileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->fileName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_fileName, doc_QPictureIO_fileName);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_quality, "QPictureIO.quality() -> int");

extern "C" {static PyObject *meth_QPictureIO_quality(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_quality(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->quality();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_quality, doc_QPictureIO_quality);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_description, "QPictureIO.description() -> str");

extern "C" {static PyObject *meth_QPictureIO_description(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_description(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->description());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_description, doc_QPictureIO_description);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_parameters, "QPictureIO.parameters() -> str");

extern "C" {static PyObject *meth_QPictureIO_parameters(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_parameters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            const char*sipRes;

            sipRes = sipCpp->parameters();

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return PyUnicode_DecodeASCII(sipRes, strlen(sipRes), NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_parameters, doc_QPictureIO_parameters);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_gamma, "QPictureIO.gamma() -> float");

extern "C" {static PyObject *meth_QPictureIO_gamma(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_gamma(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->gamma();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_gamma, doc_QPictureIO_gamma);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_setPicture, "QPictureIO.setPicture(QPicture)");

extern "C" {static PyObject *meth_QPictureIO_setPicture(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_setPicture(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPicture* a0;
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPictureIO, &sipCpp, sipType_QPicture, &a0))
        {
            sipCpp->setPicture(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_setPicture, doc_QPictureIO_setPicture);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_setStatus, "QPictureIO.setStatus(int)");

extern "C" {static PyObject *meth_QPictureIO_setStatus(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_setStatus(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPictureIO, &sipCpp, &a0))
        {
            sipCpp->setStatus(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_setStatus, doc_QPictureIO_setStatus);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_setFormat, "QPictureIO.setFormat(str)");

extern "C" {static PyObject *meth_QPictureIO_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char* a0;
        PyObject *a0Keep;
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_QPictureIO, &sipCpp, &a0Keep, &a0))
        {
            sipCpp->setFormat(a0);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_setFormat, doc_QPictureIO_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_setIODevice, "QPictureIO.setIODevice(QIODevice)");

extern "C" {static PyObject *meth_QPictureIO_setIODevice(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_setIODevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QPictureIO, &sipCpp, sipType_QIODevice, &a0))
        {
            sipCpp->setIODevice(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_setIODevice, doc_QPictureIO_setIODevice);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_setFileName, "QPictureIO.setFileName(str)");

extern "C" {static PyObject *meth_QPictureIO_setFileName(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_setFileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPictureIO, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setFileName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_setFileName, doc_QPictureIO_setFileName);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_setQuality, "QPictureIO.setQuality(int)");

extern "C" {static PyObject *meth_QPictureIO_setQuality(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_setQuality(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPictureIO, &sipCpp, &a0))
        {
            sipCpp->setQuality(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_setQuality, doc_QPictureIO_setQuality);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_setDescription, "QPictureIO.setDescription(str)");

extern "C" {static PyObject *meth_QPictureIO_setDescription(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_setDescription(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPictureIO, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setDescription(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_setDescription, doc_QPictureIO_setDescription);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_setParameters, "QPictureIO.setParameters(str)");

extern "C" {static PyObject *meth_QPictureIO_setParameters(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_setParameters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char* a0;
        PyObject *a0Keep;
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_QPictureIO, &sipCpp, &a0Keep, &a0))
        {
            sipCpp->setParameters(a0);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_setParameters, doc_QPictureIO_setParameters);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_setGamma, "QPictureIO.setGamma(float)");

extern "C" {static PyObject *meth_QPictureIO_setGamma(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_setGamma(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QPictureIO, &sipCpp, &a0))
        {
            sipCpp->setGamma(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_setGamma, doc_QPictureIO_setGamma);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_read, "QPictureIO.read() -> bool");

extern "C" {static PyObject *meth_QPictureIO_read(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_read(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->read();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_read, doc_QPictureIO_read);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_write, "QPictureIO.write() -> bool");

extern "C" {static PyObject *meth_QPictureIO_write(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_write(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPictureIO *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPictureIO, &sipCpp))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->write();
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_write, doc_QPictureIO_write);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_pictureFormat, "QPictureIO.pictureFormat(str) -> QByteArray\n"
    "QPictureIO.pictureFormat(QIODevice) -> QByteArray");

extern "C" {static PyObject *meth_QPictureIO_pictureFormat(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_pictureFormat(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(QPictureIO::pictureFormat(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    {
        QIODevice* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QIODevice, &a0))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(QPictureIO::pictureFormat(a0));

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_pictureFormat, doc_QPictureIO_pictureFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_inputFormats, "QPictureIO.inputFormats() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QPictureIO_inputFormats(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_inputFormats(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(QPictureIO::inputFormats());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_inputFormats, doc_QPictureIO_inputFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_outputFormats, "QPictureIO.outputFormats() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QPictureIO_outputFormats(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_outputFormats(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(QPictureIO::outputFormats());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_outputFormats, doc_QPictureIO_outputFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QPictureIO_defineIOHandler, "QPictureIO.defineIOHandler(str, str, str, callable, callable)");

extern "C" {static PyObject *meth_QPictureIO_defineIOHandler(PyObject *, PyObject *);}
static PyObject *meth_QPictureIO_defineIOHandler(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const char* a0;
        PyObject *a0Keep;
        const char* a1;
        PyObject *a1Keep;
        const char* a2;
        PyObject *a2Keep;
        PyObject * a3;
        PyObject * a4;

        if (sipParseArgs(&sipParseErr, sipArgs, "AAAAAAHH", &a0Keep, &a0, &a1Keep, &a1, &a2Keep, &a2, &a3, &a4))
        {
#line 147 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpicture.sip"
        // Convert None to NULL.
        if (a3 == Py_None)
            a3 = 0;
        
        if (a4 == Py_None)
            a4 = 0;
        
        // See if we already know about the format.
        qtgui_pio *p;
        
        for (p = qtgui_pio_head; p; p = p->next)
            if (qstrcmp(a0, p->format) == 0)
                break;
        
        if (!p)
        {
            // Handle the new format.
            p = new qtgui_pio;
            p->format = qstrdup(a0);
            p->read = 0;
            p->write = 0;
            p->next = qtgui_pio_head;
        
            qtgui_pio_head = p;
        }
        
        // Replace the old callables with the new ones.
        Py_XDECREF(p->read);
        p->read = a3;
        Py_XINCREF(p->read);
        
        Py_XDECREF(p->write);
        p->write = a4;
        Py_XINCREF(p->write);
        
        // Install the generic handlers.
        QPictureIO::defineIOHandler(a0, a1, a2, qtgui_pio_read, qtgui_pio_write);
#line 79943 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            Py_DECREF(a0Keep);
            Py_DECREF(a1Keep);
            Py_DECREF(a2Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPictureIO, sipName_defineIOHandler, doc_QPictureIO_defineIOHandler);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPictureIO(void *, const sipTypeDef *);}
static void *cast_QPictureIO(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPictureIO)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPictureIO(void *, int);}
static void release_QPictureIO(void *sipCppV,int)
{
    delete reinterpret_cast<QPictureIO *>(sipCppV);
}


extern "C" {static void dealloc_QPictureIO(sipSimpleWrapper *);}
static void dealloc_QPictureIO(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPictureIO(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPictureIO(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPictureIO(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPictureIO *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPictureIO();

            return sipCpp;
        }
    }

    {
        QIODevice* a0;
        const char* a1;
        PyObject *a1Keep;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8AA", sipType_QIODevice, &a0, &a1Keep, &a1))
        {
            sipCpp = new QPictureIO(a0,a1);
            Py_DECREF(a1Keep);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const char* a1;
        PyObject *a1Keep;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1AA", sipType_QString,&a0, &a0State, &a1Keep, &a1))
        {
            sipCpp = new QPictureIO(*a0,a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_DECREF(a1Keep);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPictureIO[] = {
    {SIP_MLNAME_CAST(sipName_defineIOHandler), meth_QPictureIO_defineIOHandler, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_defineIOHandler)},
    {SIP_MLNAME_CAST(sipName_description), meth_QPictureIO_description, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_description)},
    {SIP_MLNAME_CAST(sipName_fileName), meth_QPictureIO_fileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_fileName)},
    {SIP_MLNAME_CAST(sipName_format), meth_QPictureIO_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_format)},
    {SIP_MLNAME_CAST(sipName_gamma), meth_QPictureIO_gamma, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_gamma)},
    {SIP_MLNAME_CAST(sipName_inputFormats), meth_QPictureIO_inputFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_inputFormats)},
    {SIP_MLNAME_CAST(sipName_ioDevice), meth_QPictureIO_ioDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_ioDevice)},
    {SIP_MLNAME_CAST(sipName_outputFormats), meth_QPictureIO_outputFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_outputFormats)},
    {SIP_MLNAME_CAST(sipName_parameters), meth_QPictureIO_parameters, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_parameters)},
    {SIP_MLNAME_CAST(sipName_picture), meth_QPictureIO_picture, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_picture)},
    {SIP_MLNAME_CAST(sipName_pictureFormat), meth_QPictureIO_pictureFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_pictureFormat)},
    {SIP_MLNAME_CAST(sipName_quality), meth_QPictureIO_quality, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_quality)},
    {SIP_MLNAME_CAST(sipName_read), meth_QPictureIO_read, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_read)},
    {SIP_MLNAME_CAST(sipName_setDescription), meth_QPictureIO_setDescription, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_setDescription)},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_QPictureIO_setFileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_setFileName)},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QPictureIO_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_setFormat)},
    {SIP_MLNAME_CAST(sipName_setGamma), meth_QPictureIO_setGamma, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_setGamma)},
    {SIP_MLNAME_CAST(sipName_setIODevice), meth_QPictureIO_setIODevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_setIODevice)},
    {SIP_MLNAME_CAST(sipName_setParameters), meth_QPictureIO_setParameters, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_setParameters)},
    {SIP_MLNAME_CAST(sipName_setPicture), meth_QPictureIO_setPicture, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_setPicture)},
    {SIP_MLNAME_CAST(sipName_setQuality), meth_QPictureIO_setQuality, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_setQuality)},
    {SIP_MLNAME_CAST(sipName_setStatus), meth_QPictureIO_setStatus, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_setStatus)},
    {SIP_MLNAME_CAST(sipName_status), meth_QPictureIO_status, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_status)},
    {SIP_MLNAME_CAST(sipName_write), meth_QPictureIO_write, METH_VARARGS, SIP_MLDOC_CAST(doc_QPictureIO_write)}
};

PyDoc_STRVAR(doc_QPictureIO, "\1QPictureIO()\n"
    "QPictureIO(QIODevice, str)\n"
    "QPictureIO(str, str)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPictureIO = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPictureIO,
        {0}
    },
    {
        sipNameNr_QPictureIO,
        {0, 0, 1},
        24, methods_QPictureIO,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPictureIO,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPictureIO,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPictureIO,
    0,
    0,
    0,
    release_QPictureIO,
    cast_QPictureIO,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 80126 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 80130 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 80133 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 80136 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 80139 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 80142 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 80145 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQPicture : public QPicture
{
public:
    sipQPicture(int);
    sipQPicture(const QPicture&);
    virtual ~sipQPicture();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int metric(QPaintDevice::PaintDeviceMetric) const;
    QPaintEngine* paintEngine() const;
    void setData(const char*,uint);
    int devType() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPicture(const sipQPicture &);
    sipQPicture &operator = (const sipQPicture &);

    char sipPyMethods[4];
};

sipQPicture::sipQPicture(int a0): QPicture(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPicture::sipQPicture(const QPicture& a0): QPicture(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPicture::~sipQPicture()
{
    sipCommonDtor(sipPySelf);
}

int sipQPicture::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPicture::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPicture::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QPicture::paintEngine();

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPicture::setData(const char*a0,uint a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setData);

    if (!sipMeth)
    {
        QPicture::setData(a0,a1);
        return;
    }

    extern void sipVH_QtGui_30(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const char*,uint);

    sipVH_QtGui_30(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

int sipQPicture::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return QPicture::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPicture::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QPicture::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QPicture_isNull, "QPicture.isNull() -> bool");

extern "C" {static PyObject *meth_QPicture_isNull(PyObject *, PyObject *);}
static PyObject *meth_QPicture_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPicture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_isNull, doc_QPicture_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_devType, "QPicture.devType() -> int");

extern "C" {static PyObject *meth_QPicture_devType(PyObject *, PyObject *);}
static PyObject *meth_QPicture_devType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPicture, &sipCpp))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QPicture::devType() : sipCpp->devType());

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_devType, doc_QPicture_devType);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_size, "QPicture.size() -> int");

extern "C" {static PyObject *meth_QPicture_size(PyObject *, PyObject *);}
static PyObject *meth_QPicture_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPicture, &sipCpp))
        {
            uint sipRes;

            sipRes = sipCpp->size();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_size, doc_QPicture_size);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_data, "QPicture.data() -> str");

extern "C" {static PyObject *meth_QPicture_data(PyObject *, PyObject *);}
static PyObject *meth_QPicture_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPicture, &sipCpp))
        {
            const char*sipRes;

            sipRes = sipCpp->data();

            if (sipRes == NULL)
            {
                Py_INCREF(Py_None);
                return Py_None;
            }

            return SIPBytes_FromString(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_data, doc_QPicture_data);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_setData, "QPicture.setData(str)");

extern "C" {static PyObject *meth_QPicture_setData(PyObject *, PyObject *);}
static PyObject *meth_QPicture_setData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const char* a0;
        SIP_SSIZE_T a1;
        QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bk", &sipSelf, sipType_QPicture, &sipCpp, &a0, &a1))
        {
            (sipSelfWasArg ? sipCpp->QPicture::setData(a0,(uint)a1) : sipCpp->setData(a0,(uint)a1));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_setData, doc_QPicture_setData);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_play, "QPicture.play(QPainter) -> bool");

extern "C" {static PyObject *meth_QPicture_play(PyObject *, PyObject *);}
static PyObject *meth_QPicture_play(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter* a0;
        QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QPicture, &sipCpp, sipType_QPainter, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->play(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_play, doc_QPicture_play);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_load, "QPicture.load(QIODevice, str format=None) -> bool\n"
    "QPicture.load(str, str format=None) -> bool");

extern "C" {static PyObject *meth_QPicture_load(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPicture_load(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        QPicture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|AA", &sipSelf, sipType_QPicture, &sipCpp, sipType_QIODevice, &a0, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(a0,a1);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        QPicture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|AA", &sipSelf, sipType_QPicture, &sipCpp, sipType_QString,&a0, &a0State, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_load, doc_QPicture_load);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_save, "QPicture.save(QIODevice, str format=None) -> bool\n"
    "QPicture.save(str, str format=None) -> bool");

extern "C" {static PyObject *meth_QPicture_save(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPicture_save(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        QPicture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|AA", &sipSelf, sipType_QPicture, &sipCpp, sipType_QIODevice, &a0, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->save(a0,a1);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        QPicture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|AA", &sipSelf, sipType_QPicture, &sipCpp, sipType_QString,&a0, &a0State, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->save(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_save, doc_QPicture_save);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_boundingRect, "QPicture.boundingRect() -> QRect");

extern "C" {static PyObject *meth_QPicture_boundingRect(PyObject *, PyObject *);}
static PyObject *meth_QPicture_boundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPicture, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->boundingRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_boundingRect, doc_QPicture_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_setBoundingRect, "QPicture.setBoundingRect(QRect)");

extern "C" {static PyObject *meth_QPicture_setBoundingRect(PyObject *, PyObject *);}
static PyObject *meth_QPicture_setBoundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPicture, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->setBoundingRect(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_setBoundingRect, doc_QPicture_setBoundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_detach, "QPicture.detach()");

extern "C" {static PyObject *meth_QPicture_detach(PyObject *, PyObject *);}
static PyObject *meth_QPicture_detach(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPicture, &sipCpp))
        {
            sipCpp->detach();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_detach, doc_QPicture_detach);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_isDetached, "QPicture.isDetached() -> bool");

extern "C" {static PyObject *meth_QPicture_isDetached(PyObject *, PyObject *);}
static PyObject *meth_QPicture_isDetached(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPicture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isDetached();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_isDetached, doc_QPicture_isDetached);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_paintEngine, "QPicture.paintEngine() -> QPaintEngine");

extern "C" {static PyObject *meth_QPicture_paintEngine(PyObject *, PyObject *);}
static PyObject *meth_QPicture_paintEngine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPicture, &sipCpp))
        {
            QPaintEngine*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QPicture::paintEngine() : sipCpp->paintEngine());

            return sipConvertFromType(sipRes,sipType_QPaintEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_paintEngine, doc_QPicture_paintEngine);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_metric, "QPicture.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPicture_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPicture_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPicture *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPicture, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_metric, doc_QPicture_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPicture_swap, "QPicture.swap(QPicture)");

extern "C" {static PyObject *meth_QPicture_swap(PyObject *, PyObject *);}
static PyObject *meth_QPicture_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPicture* a0;
        QPicture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPicture, &sipCpp, sipType_QPicture, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPicture, sipName_swap, doc_QPicture_swap);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPicture(void *, const sipTypeDef *);}
static void *cast_QPicture(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPicture)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPaintDevice)->ctd_cast((QPaintDevice *)(QPicture *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPicture(void *, int);}
static void release_QPicture(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQPicture *>(sipCppV);
    else
        delete reinterpret_cast<QPicture *>(sipCppV);
}


extern "C" {static void assign_QPicture(void *, SIP_SSIZE_T, const void *);}
static void assign_QPicture(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPicture *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPicture *>(sipSrc);
}


extern "C" {static void *array_QPicture(SIP_SSIZE_T);}
static void *array_QPicture(SIP_SSIZE_T sipNrElem)
{
    return new QPicture[sipNrElem];
}


extern "C" {static void *copy_QPicture(const void *, SIP_SSIZE_T);}
static void *copy_QPicture(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPicture(reinterpret_cast<const QPicture *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPicture(sipSimpleWrapper *);}
static void dealloc_QPicture(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPicture *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPicture(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPicture(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPicture(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQPicture *sipCpp = 0;

    {
        int a0 = -1;

        static const char *sipKwdList[] = {
            sipName_formatVersion,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|i", &a0))
        {
            sipCpp = new sipQPicture(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QPicture* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPicture, &a0))
        {
            sipCpp = new sipQPicture(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPicture[] = {{183, 255, 1}};


static PyMethodDef methods_QPicture[] = {
    {SIP_MLNAME_CAST(sipName_boundingRect), meth_QPicture_boundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_boundingRect)},
    {SIP_MLNAME_CAST(sipName_data), meth_QPicture_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_data)},
    {SIP_MLNAME_CAST(sipName_detach), meth_QPicture_detach, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_detach)},
    {SIP_MLNAME_CAST(sipName_devType), meth_QPicture_devType, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_devType)},
    {SIP_MLNAME_CAST(sipName_isDetached), meth_QPicture_isDetached, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_isDetached)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QPicture_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_isNull)},
    {SIP_MLNAME_CAST(sipName_load), (PyCFunction)meth_QPicture_load, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPicture_load)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPicture_metric, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPicture_metric)},
    {SIP_MLNAME_CAST(sipName_paintEngine), meth_QPicture_paintEngine, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_paintEngine)},
    {SIP_MLNAME_CAST(sipName_play), meth_QPicture_play, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_play)},
    {SIP_MLNAME_CAST(sipName_save), (PyCFunction)meth_QPicture_save, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPicture_save)},
    {SIP_MLNAME_CAST(sipName_setBoundingRect), meth_QPicture_setBoundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_setBoundingRect)},
    {SIP_MLNAME_CAST(sipName_setData), meth_QPicture_setData, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_setData)},
    {SIP_MLNAME_CAST(sipName_size), meth_QPicture_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_size)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPicture_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPicture_swap)}
};

PyDoc_STRVAR(doc_QPicture, "\1QPicture(int formatVersion=-1)\n"
    "QPicture(QPicture)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPicture = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPicture,
        {0}
    },
    {
        sipNameNr_QPicture,
        {0, 0, 1},
        15, methods_QPicture,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPicture,
    -1,
    -1,
    supers_QPicture,
    0,
    init_type_QPicture,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPicture,
    assign_QPicture,
    array_QPicture,
    copy_QPicture,
    release_QPicture,
    cast_QPicture,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 80941 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 80945 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 80948 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 80951 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 80954 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 233 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 80957 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPen_style, "QPen.style() -> Qt.PenStyle");

extern "C" {static PyObject *meth_QPen_style(PyObject *, PyObject *);}
static PyObject *meth_QPen_style(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            Qt::PenStyle sipRes;

            sipRes = sipCpp->style();

            return sipConvertFromEnum(sipRes,sipType_Qt_PenStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_style, doc_QPen_style);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setStyle, "QPen.setStyle(Qt.PenStyle)");

extern "C" {static PyObject *meth_QPen_setStyle(PyObject *, PyObject *);}
static PyObject *meth_QPen_setStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::PenStyle a0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPen, &sipCpp, sipType_Qt_PenStyle, &a0))
        {
            sipCpp->setStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setStyle, doc_QPen_setStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_widthF, "QPen.widthF() -> float");

extern "C" {static PyObject *meth_QPen_widthF(PyObject *, PyObject *);}
static PyObject *meth_QPen_widthF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->widthF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_widthF, doc_QPen_widthF);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setWidthF, "QPen.setWidthF(float)");

extern "C" {static PyObject *meth_QPen_setWidthF(PyObject *, PyObject *);}
static PyObject *meth_QPen_setWidthF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPen, &sipCpp, &a0))
        {
            sipCpp->setWidthF(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setWidthF, doc_QPen_setWidthF);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_width, "QPen.width() -> int");

extern "C" {static PyObject *meth_QPen_width(PyObject *, PyObject *);}
static PyObject *meth_QPen_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->width();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_width, doc_QPen_width);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setWidth, "QPen.setWidth(int)");

extern "C" {static PyObject *meth_QPen_setWidth(PyObject *, PyObject *);}
static PyObject *meth_QPen_setWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPen, &sipCpp, &a0))
        {
            sipCpp->setWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setWidth, doc_QPen_setWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_color, "QPen.color() -> QColor");

extern "C" {static PyObject *meth_QPen_color(PyObject *, PyObject *);}
static PyObject *meth_QPen_color(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->color());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_color, doc_QPen_color);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setColor, "QPen.setColor(QColor)");

extern "C" {static PyObject *meth_QPen_setColor(PyObject *, PyObject *);}
static PyObject *meth_QPen_setColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPen, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setColor(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setColor, doc_QPen_setColor);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_brush, "QPen.brush() -> QBrush");

extern "C" {static PyObject *meth_QPen_brush(PyObject *, PyObject *);}
static PyObject *meth_QPen_brush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->brush());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_brush, doc_QPen_brush);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setBrush, "QPen.setBrush(QBrush)");

extern "C" {static PyObject *meth_QPen_setBrush(PyObject *, PyObject *);}
static PyObject *meth_QPen_setBrush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPen, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setBrush(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setBrush, doc_QPen_setBrush);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_isSolid, "QPen.isSolid() -> bool");

extern "C" {static PyObject *meth_QPen_isSolid(PyObject *, PyObject *);}
static PyObject *meth_QPen_isSolid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isSolid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_isSolid, doc_QPen_isSolid);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_capStyle, "QPen.capStyle() -> Qt.PenCapStyle");

extern "C" {static PyObject *meth_QPen_capStyle(PyObject *, PyObject *);}
static PyObject *meth_QPen_capStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            Qt::PenCapStyle sipRes;

            sipRes = sipCpp->capStyle();

            return sipConvertFromEnum(sipRes,sipType_Qt_PenCapStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_capStyle, doc_QPen_capStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setCapStyle, "QPen.setCapStyle(Qt.PenCapStyle)");

extern "C" {static PyObject *meth_QPen_setCapStyle(PyObject *, PyObject *);}
static PyObject *meth_QPen_setCapStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::PenCapStyle a0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPen, &sipCpp, sipType_Qt_PenCapStyle, &a0))
        {
            sipCpp->setCapStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setCapStyle, doc_QPen_setCapStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_joinStyle, "QPen.joinStyle() -> Qt.PenJoinStyle");

extern "C" {static PyObject *meth_QPen_joinStyle(PyObject *, PyObject *);}
static PyObject *meth_QPen_joinStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            Qt::PenJoinStyle sipRes;

            sipRes = sipCpp->joinStyle();

            return sipConvertFromEnum(sipRes,sipType_Qt_PenJoinStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_joinStyle, doc_QPen_joinStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setJoinStyle, "QPen.setJoinStyle(Qt.PenJoinStyle)");

extern "C" {static PyObject *meth_QPen_setJoinStyle(PyObject *, PyObject *);}
static PyObject *meth_QPen_setJoinStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::PenJoinStyle a0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPen, &sipCpp, sipType_Qt_PenJoinStyle, &a0))
        {
            sipCpp->setJoinStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setJoinStyle, doc_QPen_setJoinStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_dashPattern, "QPen.dashPattern() -> list-of-float");

extern "C" {static PyObject *meth_QPen_dashPattern(PyObject *, PyObject *);}
static PyObject *meth_QPen_dashPattern(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            QVector<qreal>*sipRes;

            sipRes = new QVector<qreal>(sipCpp->dashPattern());

            return sipConvertFromNewType(sipRes,sipType_QVector_2400,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_dashPattern, doc_QPen_dashPattern);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setDashPattern, "QPen.setDashPattern(list-of-float)");

extern "C" {static PyObject *meth_QPen_setDashPattern(PyObject *, PyObject *);}
static PyObject *meth_QPen_setDashPattern(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector<qreal>* a0;
        int a0State = 0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPen, &sipCpp, sipType_QVector_2400,&a0, &a0State))
        {
            sipCpp->setDashPattern(*a0);
            sipReleaseType(const_cast<QVector<qreal> *>(a0),sipType_QVector_2400,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setDashPattern, doc_QPen_setDashPattern);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_miterLimit, "QPen.miterLimit() -> float");

extern "C" {static PyObject *meth_QPen_miterLimit(PyObject *, PyObject *);}
static PyObject *meth_QPen_miterLimit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->miterLimit();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_miterLimit, doc_QPen_miterLimit);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setMiterLimit, "QPen.setMiterLimit(float)");

extern "C" {static PyObject *meth_QPen_setMiterLimit(PyObject *, PyObject *);}
static PyObject *meth_QPen_setMiterLimit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPen, &sipCpp, &a0))
        {
            sipCpp->setMiterLimit(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setMiterLimit, doc_QPen_setMiterLimit);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_dashOffset, "QPen.dashOffset() -> float");

extern "C" {static PyObject *meth_QPen_dashOffset(PyObject *, PyObject *);}
static PyObject *meth_QPen_dashOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->dashOffset();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_dashOffset, doc_QPen_dashOffset);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setDashOffset, "QPen.setDashOffset(float)");

extern "C" {static PyObject *meth_QPen_setDashOffset(PyObject *, PyObject *);}
static PyObject *meth_QPen_setDashOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPen, &sipCpp, &a0))
        {
            sipCpp->setDashOffset(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setDashOffset, doc_QPen_setDashOffset);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_isCosmetic, "QPen.isCosmetic() -> bool");

extern "C" {static PyObject *meth_QPen_isCosmetic(PyObject *, PyObject *);}
static PyObject *meth_QPen_isCosmetic(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPen, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCosmetic();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_isCosmetic, doc_QPen_isCosmetic);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_setCosmetic, "QPen.setCosmetic(bool)");

extern "C" {static PyObject *meth_QPen_setCosmetic(PyObject *, PyObject *);}
static PyObject *meth_QPen_setCosmetic(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPen, &sipCpp, &a0))
        {
            sipCpp->setCosmetic(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_setCosmetic, doc_QPen_setCosmetic);

    return NULL;
}


PyDoc_STRVAR(doc_QPen_swap, "QPen.swap(QPen)");

extern "C" {static PyObject *meth_QPen_swap(PyObject *, PyObject *);}
static PyObject *meth_QPen_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPen* a0;
        int a0State = 0;
        QPen *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPen, &sipCpp, sipType_QPen, &a0, &a0State))
        {
            sipCpp->swap(*a0);
            sipReleaseType(a0,sipType_QPen,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPen, sipName_swap, doc_QPen_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QPen___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPen___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPen *sipCpp = reinterpret_cast<QPen *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPen));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPen* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPen, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QPen::operator!=(*a0);
            sipReleaseType(const_cast<QPen *>(a0),sipType_QPen,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPen,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPen___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPen___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPen *sipCpp = reinterpret_cast<QPen *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPen));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPen* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPen, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QPen::operator==(*a0);
            sipReleaseType(const_cast<QPen *>(a0),sipType_QPen,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPen,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPen(void *, const sipTypeDef *);}
static void *cast_QPen(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPen)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPen(void *, int);}
static void release_QPen(void *sipCppV,int)
{
    delete reinterpret_cast<QPen *>(sipCppV);
}


extern "C" {static void assign_QPen(void *, SIP_SSIZE_T, const void *);}
static void assign_QPen(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPen *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPen *>(sipSrc);
}


extern "C" {static void *array_QPen(SIP_SSIZE_T);}
static void *array_QPen(SIP_SSIZE_T sipNrElem)
{
    return new QPen[sipNrElem];
}


extern "C" {static void *copy_QPen(const void *, SIP_SSIZE_T);}
static void *copy_QPen(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPen(reinterpret_cast<const QPen *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPen(sipSimpleWrapper *);}
static void dealloc_QPen(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPen(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPen(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPen(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPen *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPen();

            return sipCpp;
        }
    }

    {
        Qt::PenStyle a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_Qt_PenStyle, &a0))
        {
            sipCpp = new QPen(a0);

            return sipCpp;
        }
    }

    {
        const QColor* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QColor, &a0, &a0State))
        {
            sipCpp = new QPen(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            return sipCpp;
        }
    }

    {
        const QBrush* a0;
        int a0State = 0;
        qreal a1;
        Qt::PenStyle a2 = Qt::SolidLine;
        Qt::PenCapStyle a3 = Qt::SquareCap;
        Qt::PenJoinStyle a4 = Qt::BevelJoin;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_style,
            sipName_cap,
            sipName_join,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1d|EEE", sipType_QBrush, &a0, &a0State, &a1, sipType_Qt_PenStyle, &a2, sipType_Qt_PenCapStyle, &a3, sipType_Qt_PenJoinStyle, &a4))
        {
            sipCpp = new QPen(*a0,a1,a2,a3,a4);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            return sipCpp;
        }
    }

    {
        const QPen* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPen, &a0, &a0State))
        {
            sipCpp = new QPen(*a0);
            sipReleaseType(const_cast<QPen *>(a0),sipType_QPen,a0State);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 72 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
        if (a0->canConvert<QPen>())
            sipCpp = new QPen(a0->value<QPen>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 81824 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QPen(PyObject *, void **, int *, PyObject *);}
static int convertTo_QPen(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QPen **sipCppPtr = reinterpret_cast<QPen **>(sipCppPtrV);

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
// SIP doesn't support automatic type convertors so we explicitly allow a
// QColor to be used whenever a QPen is expected.

if (sipIsErr == NULL)
    return (sipCanConvertToType(sipPy, sipType_QPen, SIP_NO_CONVERTORS) ||
            sipCanConvertToType(sipPy, sipType_QColor, 0));

if (sipCanConvertToType(sipPy, sipType_QPen, SIP_NO_CONVERTORS))
{
    *sipCppPtr = reinterpret_cast<QPen *>(sipConvertToType(sipPy, sipType_QPen, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

    return 0;
}

int state;
QColor *c = reinterpret_cast<QColor *>(sipConvertToType(sipPy, sipType_QColor, 0, 0, &state, sipIsErr));

if (*sipIsErr)
{
    sipReleaseType(c, sipType_QColor, state);
    return 0;
}

*sipCppPtr = new QPen(*c);

sipReleaseType(c, sipType_QColor, state);

return sipGetState(sipTransferObj);
#line 81880 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPen[] = {
    {(void *)slot_QPen___ne__, ne_slot},
    {(void *)slot_QPen___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPen[] = {
    {SIP_MLNAME_CAST(sipName_brush), meth_QPen_brush, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_brush)},
    {SIP_MLNAME_CAST(sipName_capStyle), meth_QPen_capStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_capStyle)},
    {SIP_MLNAME_CAST(sipName_color), meth_QPen_color, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_color)},
    {SIP_MLNAME_CAST(sipName_dashOffset), meth_QPen_dashOffset, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_dashOffset)},
    {SIP_MLNAME_CAST(sipName_dashPattern), meth_QPen_dashPattern, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_dashPattern)},
    {SIP_MLNAME_CAST(sipName_isCosmetic), meth_QPen_isCosmetic, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_isCosmetic)},
    {SIP_MLNAME_CAST(sipName_isSolid), meth_QPen_isSolid, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_isSolid)},
    {SIP_MLNAME_CAST(sipName_joinStyle), meth_QPen_joinStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_joinStyle)},
    {SIP_MLNAME_CAST(sipName_miterLimit), meth_QPen_miterLimit, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_miterLimit)},
    {SIP_MLNAME_CAST(sipName_setBrush), meth_QPen_setBrush, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setBrush)},
    {SIP_MLNAME_CAST(sipName_setCapStyle), meth_QPen_setCapStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setCapStyle)},
    {SIP_MLNAME_CAST(sipName_setColor), meth_QPen_setColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setColor)},
    {SIP_MLNAME_CAST(sipName_setCosmetic), meth_QPen_setCosmetic, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setCosmetic)},
    {SIP_MLNAME_CAST(sipName_setDashOffset), meth_QPen_setDashOffset, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setDashOffset)},
    {SIP_MLNAME_CAST(sipName_setDashPattern), meth_QPen_setDashPattern, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setDashPattern)},
    {SIP_MLNAME_CAST(sipName_setJoinStyle), meth_QPen_setJoinStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setJoinStyle)},
    {SIP_MLNAME_CAST(sipName_setMiterLimit), meth_QPen_setMiterLimit, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setMiterLimit)},
    {SIP_MLNAME_CAST(sipName_setStyle), meth_QPen_setStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setStyle)},
    {SIP_MLNAME_CAST(sipName_setWidth), meth_QPen_setWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setWidth)},
    {SIP_MLNAME_CAST(sipName_setWidthF), meth_QPen_setWidthF, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_setWidthF)},
    {SIP_MLNAME_CAST(sipName_style), meth_QPen_style, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_style)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPen_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_swap)},
    {SIP_MLNAME_CAST(sipName_width), meth_QPen_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_width)},
    {SIP_MLNAME_CAST(sipName_widthF), meth_QPen_widthF, METH_VARARGS, SIP_MLDOC_CAST(doc_QPen_widthF)}
};

PyDoc_STRVAR(doc_QPen, "\1QPen()\n"
    "QPen(Qt.PenStyle)\n"
    "QPen(QColor)\n"
    "QPen(QBrush, float, Qt.PenStyle style=Qt.SolidLine, Qt.PenCapStyle cap=Qt.SquareCap, Qt.PenJoinStyle join=Qt.BevelJoin)\n"
    "QPen(QPen)\n"
    "QPen(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPen = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPen,
        {0}
    },
    {
        sipNameNr_QPen,
        {0, 0, 1},
        24, methods_QPen,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPen,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPen,
    init_type_QPen,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPen,
    assign_QPen,
    array_QPen,
    copy_QPen,
    release_QPen,
    cast_QPen,
    convertTo_QPen,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpdfwriter.sip"
#include <qpdfwriter.h>
#line 81984 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 81988 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 81991 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 81994 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 81997 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 362 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 82002 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 82005 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 82008 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 82011 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 82014 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 82017 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 82020 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 82023 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 82026 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 82029 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 82032 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 82035 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 82038 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 82041 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 82044 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 82047 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 82050 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 82053 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 82056 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 119 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 82059 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQPdfWriter : public QPdfWriter
{
public:
    sipQPdfWriter(const QString&);
    sipQPdfWriter(QIODevice*);
    virtual ~sipQPdfWriter();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    QPaintEngine* sipProtectVirt_paintEngine(bool) const;
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    QPaintEngine* paintEngine() const;
    void setMargins(const QPagedPaintDevice::Margins&);
    void setPageSizeMM(const QSizeF&);
    void setPageSize(QPagedPaintDevice::PageSize);
    bool newPage();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPdfWriter(const sipQPdfWriter &);
    sipQPdfWriter &operator = (const sipQPdfWriter &);

    char sipPyMethods[13];
};

sipQPdfWriter::sipQPdfWriter(const QString& a0): QPdfWriter(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPdfWriter::sipQPdfWriter(QIODevice*a0): QPdfWriter(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPdfWriter::~sipQPdfWriter()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQPdfWriter::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QPdfWriter);
}

int sipQPdfWriter::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QPdfWriter::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QPdfWriter,_c,_id,_a);

    return _id;
}

void *sipQPdfWriter::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QPdfWriter, _clname, &sipCpp) ? sipCpp : QPdfWriter::qt_metacast(_clname));
}

void sipQPdfWriter::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QPdfWriter::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QPdfWriter::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QPdfWriter::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QPdfWriter::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QPdfWriter::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPdfWriter::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QPdfWriter::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQPdfWriter::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QPdfWriter::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQPdfWriter::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPdfWriter::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPdfWriter::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QPdfWriter::paintEngine();

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPdfWriter::setMargins(const QPagedPaintDevice::Margins& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_setMargins);

    if (!sipMeth)
    {
        QPdfWriter::setMargins(a0);
        return;
    }

    extern void sipVH_QtGui_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPagedPaintDevice::Margins&);

    sipVH_QtGui_31(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::setPageSizeMM(const QSizeF& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_setPageSizeMM);

    if (!sipMeth)
    {
        QPdfWriter::setPageSizeMM(a0);
        return;
    }

    extern void sipVH_QtGui_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QSizeF&);

    sipVH_QtGui_32(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPdfWriter::setPageSize(QPagedPaintDevice::PageSize a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_setPageSize);

    if (!sipMeth)
    {
        QPdfWriter::setPageSize(a0);
        return;
    }

    extern void sipVH_QtGui_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPagedPaintDevice::PageSize);

    sipVH_QtGui_33(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPdfWriter::newPage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_newPage);

    if (!sipMeth)
        return QPdfWriter::newPage();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtGui_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QObject* sipQPdfWriter::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQPdfWriter::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQPdfWriter::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQPdfWriter::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQPdfWriter::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQPdfWriter::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQPdfWriter::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQPdfWriter::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQPdfWriter::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

QPaintEngine* sipQPdfWriter::sipProtectVirt_paintEngine(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? QPdfWriter::paintEngine() : paintEngine());
}

int sipQPdfWriter::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QPdfWriter::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QPdfWriter_sender, "QPdfWriter.sender() -> QObject");

extern "C" {static PyObject *meth_QPdfWriter_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPdfWriter, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 82470 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_sender, doc_QPdfWriter_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_receivers, "QPdfWriter.receivers(signal) -> int");

extern "C" {static PyObject *meth_QPdfWriter_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QPdfWriter, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 82529 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_receivers, doc_QPdfWriter_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_timerEvent, "QPdfWriter.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QPdfWriter_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_timerEvent, doc_QPdfWriter_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_childEvent, "QPdfWriter.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QPdfWriter_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_childEvent, doc_QPdfWriter_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_customEvent, "QPdfWriter.customEvent(QEvent)");

extern "C" {static PyObject *meth_QPdfWriter_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_customEvent, doc_QPdfWriter_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_connectNotify, "QPdfWriter.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPdfWriter_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_connectNotify, doc_QPdfWriter_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_disconnectNotify, "QPdfWriter.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QPdfWriter_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_disconnectNotify, doc_QPdfWriter_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_senderSignalIndex, "QPdfWriter.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QPdfWriter_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPdfWriter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_senderSignalIndex, doc_QPdfWriter_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_isSignalConnected, "QPdfWriter.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QPdfWriter_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_isSignalConnected, doc_QPdfWriter_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_title, "QPdfWriter.title() -> str");

extern "C" {static PyObject *meth_QPdfWriter_title(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_title(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPdfWriter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->title());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_title, doc_QPdfWriter_title);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_setTitle, "QPdfWriter.setTitle(str)");

extern "C" {static PyObject *meth_QPdfWriter_setTitle(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_setTitle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setTitle(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_setTitle, doc_QPdfWriter_setTitle);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_creator, "QPdfWriter.creator() -> str");

extern "C" {static PyObject *meth_QPdfWriter_creator(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_creator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPdfWriter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->creator());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_creator, doc_QPdfWriter_creator);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_setCreator, "QPdfWriter.setCreator(str)");

extern "C" {static PyObject *meth_QPdfWriter_setCreator(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_setCreator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setCreator(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_setCreator, doc_QPdfWriter_setCreator);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_newPage, "QPdfWriter.newPage() -> bool");

extern "C" {static PyObject *meth_QPdfWriter_newPage(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_newPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPdfWriter, &sipCpp))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QPdfWriter::newPage() : sipCpp->newPage());

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_newPage, doc_QPdfWriter_newPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_setPageSize, "QPdfWriter.setPageSize(QPagedPaintDevice.PageSize)");

extern "C" {static PyObject *meth_QPdfWriter_setPageSize(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_setPageSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPagedPaintDevice::PageSize a0;
        QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QPagedPaintDevice_PageSize, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPdfWriter::setPageSize(a0) : sipCpp->setPageSize(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_setPageSize, doc_QPdfWriter_setPageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_setPageSizeMM, "QPdfWriter.setPageSizeMM(QSizeF)");

extern "C" {static PyObject *meth_QPdfWriter_setPageSizeMM(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_setPageSizeMM(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QSizeF* a0;
        QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QSizeF, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPdfWriter::setPageSizeMM(*a0) : sipCpp->setPageSizeMM(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_setPageSizeMM, doc_QPdfWriter_setPageSizeMM);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_setMargins, "QPdfWriter.setMargins(QPagedPaintDevice.Margins)");

extern "C" {static PyObject *meth_QPdfWriter_setMargins(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_setMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPagedPaintDevice::Margins* a0;
        QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QPagedPaintDevice_Margins, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPdfWriter::setMargins(*a0) : sipCpp->setMargins(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_setMargins, doc_QPdfWriter_setMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_paintEngine, "QPdfWriter.paintEngine() -> QPaintEngine");

extern "C" {static PyObject *meth_QPdfWriter_paintEngine(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_paintEngine(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPdfWriter, &sipCpp))
        {
            QPaintEngine*sipRes;

            sipRes = sipCpp->sipProtectVirt_paintEngine(sipSelfWasArg);

            return sipConvertFromType(sipRes,sipType_QPaintEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_paintEngine, doc_QPdfWriter_paintEngine);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_metric, "QPdfWriter.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPdfWriter_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPdfWriter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPdfWriter, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_metric, doc_QPdfWriter_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_setResolution, "QPdfWriter.setResolution(int)");

extern "C" {static PyObject *meth_QPdfWriter_setResolution(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_setResolution(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPdfWriter, &sipCpp, &a0))
        {
            sipCpp->setResolution(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_setResolution, doc_QPdfWriter_setResolution);

    return NULL;
}


PyDoc_STRVAR(doc_QPdfWriter_resolution, "QPdfWriter.resolution() -> int");

extern "C" {static PyObject *meth_QPdfWriter_resolution(PyObject *, PyObject *);}
static PyObject *meth_QPdfWriter_resolution(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPdfWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPdfWriter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->resolution();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPdfWriter, sipName_resolution, doc_QPdfWriter_resolution);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPdfWriter(void *, const sipTypeDef *);}
static void *cast_QPdfWriter(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPdfWriter)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QPdfWriter *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_QPagedPaintDevice)->ctd_cast((QPagedPaintDevice *)(QPdfWriter *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPdfWriter(void *, int);}
static void release_QPdfWriter(void *sipCppV,int)
{
    QPdfWriter *sipCpp = reinterpret_cast<QPdfWriter *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QPdfWriter(sipSimpleWrapper *);}
static void dealloc_QPdfWriter(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPdfWriter *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPdfWriter(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPdfWriter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPdfWriter(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQPdfWriter *sipCpp = 0;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            sipCpp = new sipQPdfWriter(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QIODevice* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QIODevice, &a0))
        {
            sipCpp = new sipQPdfWriter(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPdfWriter[] = {{162, 0, 0}, {180, 255, 1}};


static PyMethodDef methods_QPdfWriter[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QPdfWriter_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QPdfWriter_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_creator), meth_QPdfWriter_creator, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_creator)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QPdfWriter_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QPdfWriter_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QPdfWriter_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPdfWriter_metric, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPdfWriter_metric)},
    {SIP_MLNAME_CAST(sipName_newPage), meth_QPdfWriter_newPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_newPage)},
    {SIP_MLNAME_CAST(sipName_paintEngine), (PyCFunction)meth_QPdfWriter_paintEngine, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPdfWriter_paintEngine)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QPdfWriter_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_resolution), meth_QPdfWriter_resolution, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_resolution)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QPdfWriter_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QPdfWriter_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setCreator), meth_QPdfWriter_setCreator, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_setCreator)},
    {SIP_MLNAME_CAST(sipName_setMargins), meth_QPdfWriter_setMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_setMargins)},
    {SIP_MLNAME_CAST(sipName_setPageSize), meth_QPdfWriter_setPageSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_setPageSize)},
    {SIP_MLNAME_CAST(sipName_setPageSizeMM), meth_QPdfWriter_setPageSizeMM, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_setPageSizeMM)},
    {SIP_MLNAME_CAST(sipName_setResolution), meth_QPdfWriter_setResolution, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_setResolution)},
    {SIP_MLNAME_CAST(sipName_setTitle), meth_QPdfWriter_setTitle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_setTitle)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QPdfWriter_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_title), meth_QPdfWriter_title, METH_VARARGS, SIP_MLDOC_CAST(doc_QPdfWriter_title)}
};

PyDoc_STRVAR(doc_QPdfWriter, "\1QPdfWriter(str)\n"
    "QPdfWriter(QIODevice)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPdfWriter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPdfWriter,
        {0}
    },
    {
        sipNameNr_QPdfWriter,
        {0, 0, 1},
        21, methods_QPdfWriter,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPdfWriter,
    -1,
    -1,
    supers_QPdfWriter,
    0,
    init_type_QPdfWriter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPdfWriter,
    0,
    0,
    0,
    release_QPdfWriter,
    cast_QPdfWriter,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QPdfWriter::staticMetaObject,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 83251 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 83255 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 83258 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 83261 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 83264 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPalette_currentColorGroup, "QPalette.currentColorGroup() -> QPalette.ColorGroup");

extern "C" {static PyObject *meth_QPalette_currentColorGroup(PyObject *, PyObject *);}
static PyObject *meth_QPalette_currentColorGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QPalette::ColorGroup sipRes;

            sipRes = sipCpp->currentColorGroup();

            return sipConvertFromEnum(sipRes,sipType_QPalette_ColorGroup);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_currentColorGroup, doc_QPalette_currentColorGroup);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_setCurrentColorGroup, "QPalette.setCurrentColorGroup(QPalette.ColorGroup)");

extern "C" {static PyObject *meth_QPalette_setCurrentColorGroup(PyObject *, PyObject *);}
static PyObject *meth_QPalette_setCurrentColorGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPalette::ColorGroup a0;
        QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorGroup, &a0))
        {
            sipCpp->setCurrentColorGroup(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_setCurrentColorGroup, doc_QPalette_setCurrentColorGroup);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_color, "QPalette.color(QPalette.ColorGroup, QPalette.ColorRole) -> QColor\n"
    "QPalette.color(QPalette.ColorRole) -> QColor");

extern "C" {static PyObject *meth_QPalette_color(PyObject *, PyObject *);}
static PyObject *meth_QPalette_color(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPalette::ColorGroup a0;
        QPalette::ColorRole a1;
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEE", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorGroup, &a0, sipType_QPalette_ColorRole, &a1))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->color(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    {
        QPalette::ColorRole a0;
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorRole, &a0))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->color(a0));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_color, doc_QPalette_color);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_brush, "QPalette.brush(QPalette.ColorGroup, QPalette.ColorRole) -> QBrush\n"
    "QPalette.brush(QPalette.ColorRole) -> QBrush");

extern "C" {static PyObject *meth_QPalette_brush(PyObject *, PyObject *);}
static PyObject *meth_QPalette_brush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPalette::ColorGroup a0;
        QPalette::ColorRole a1;
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEE", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorGroup, &a0, sipType_QPalette_ColorRole, &a1))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->brush(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    {
        QPalette::ColorRole a0;
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorRole, &a0))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->brush(a0));

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_brush, doc_QPalette_brush);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_setBrush, "QPalette.setBrush(QPalette.ColorGroup, QPalette.ColorRole, QBrush)\n"
    "QPalette.setBrush(QPalette.ColorRole, QBrush)");

extern "C" {static PyObject *meth_QPalette_setBrush(PyObject *, PyObject *);}
static PyObject *meth_QPalette_setBrush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPalette::ColorGroup a0;
        QPalette::ColorRole a1;
        const QBrush* a2;
        int a2State = 0;
        QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEEJ1", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorGroup, &a0, sipType_QPalette_ColorRole, &a1, sipType_QBrush, &a2, &a2State))
        {
            sipCpp->setBrush(a0,a1,*a2);
            sipReleaseType(const_cast<QBrush *>(a2),sipType_QBrush,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QPalette::ColorRole a0;
        const QBrush* a1;
        int a1State = 0;
        QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorRole, &a0, sipType_QBrush, &a1, &a1State))
        {
            sipCpp->setBrush(a0,*a1);
            sipReleaseType(const_cast<QBrush *>(a1),sipType_QBrush,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_setBrush, doc_QPalette_setBrush);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_setColorGroup, "QPalette.setColorGroup(QPalette.ColorGroup, QBrush, QBrush, QBrush, QBrush, QBrush, QBrush, QBrush, QBrush, QBrush)");

extern "C" {static PyObject *meth_QPalette_setColorGroup(PyObject *, PyObject *);}
static PyObject *meth_QPalette_setColorGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPalette::ColorGroup a0;
        const QBrush* a1;
        int a1State = 0;
        const QBrush* a2;
        int a2State = 0;
        const QBrush* a3;
        int a3State = 0;
        const QBrush* a4;
        int a4State = 0;
        const QBrush* a5;
        int a5State = 0;
        const QBrush* a6;
        int a6State = 0;
        const QBrush* a7;
        int a7State = 0;
        const QBrush* a8;
        int a8State = 0;
        const QBrush* a9;
        int a9State = 0;
        QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1J1J1J1J1J1J1J1J1", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorGroup, &a0, sipType_QBrush, &a1, &a1State, sipType_QBrush, &a2, &a2State, sipType_QBrush, &a3, &a3State, sipType_QBrush, &a4, &a4State, sipType_QBrush, &a5, &a5State, sipType_QBrush, &a6, &a6State, sipType_QBrush, &a7, &a7State, sipType_QBrush, &a8, &a8State, sipType_QBrush, &a9, &a9State))
        {
            sipCpp->setColorGroup(a0,*a1,*a2,*a3,*a4,*a5,*a6,*a7,*a8,*a9);
            sipReleaseType(const_cast<QBrush *>(a1),sipType_QBrush,a1State);
            sipReleaseType(const_cast<QBrush *>(a2),sipType_QBrush,a2State);
            sipReleaseType(const_cast<QBrush *>(a3),sipType_QBrush,a3State);
            sipReleaseType(const_cast<QBrush *>(a4),sipType_QBrush,a4State);
            sipReleaseType(const_cast<QBrush *>(a5),sipType_QBrush,a5State);
            sipReleaseType(const_cast<QBrush *>(a6),sipType_QBrush,a6State);
            sipReleaseType(const_cast<QBrush *>(a7),sipType_QBrush,a7State);
            sipReleaseType(const_cast<QBrush *>(a8),sipType_QBrush,a8State);
            sipReleaseType(const_cast<QBrush *>(a9),sipType_QBrush,a9State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_setColorGroup, doc_QPalette_setColorGroup);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_isEqual, "QPalette.isEqual(QPalette.ColorGroup, QPalette.ColorGroup) -> bool");

extern "C" {static PyObject *meth_QPalette_isEqual(PyObject *, PyObject *);}
static PyObject *meth_QPalette_isEqual(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPalette::ColorGroup a0;
        QPalette::ColorGroup a1;
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEE", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorGroup, &a0, sipType_QPalette_ColorGroup, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->isEqual(a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_isEqual, doc_QPalette_isEqual);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_windowText, "QPalette.windowText() -> QBrush");

extern "C" {static PyObject *meth_QPalette_windowText(PyObject *, PyObject *);}
static PyObject *meth_QPalette_windowText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->windowText());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_windowText, doc_QPalette_windowText);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_button, "QPalette.button() -> QBrush");

extern "C" {static PyObject *meth_QPalette_button(PyObject *, PyObject *);}
static PyObject *meth_QPalette_button(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->button());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_button, doc_QPalette_button);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_light, "QPalette.light() -> QBrush");

extern "C" {static PyObject *meth_QPalette_light(PyObject *, PyObject *);}
static PyObject *meth_QPalette_light(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->light());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_light, doc_QPalette_light);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_dark, "QPalette.dark() -> QBrush");

extern "C" {static PyObject *meth_QPalette_dark(PyObject *, PyObject *);}
static PyObject *meth_QPalette_dark(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->dark());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_dark, doc_QPalette_dark);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_mid, "QPalette.mid() -> QBrush");

extern "C" {static PyObject *meth_QPalette_mid(PyObject *, PyObject *);}
static PyObject *meth_QPalette_mid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->mid());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_mid, doc_QPalette_mid);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_text, "QPalette.text() -> QBrush");

extern "C" {static PyObject *meth_QPalette_text(PyObject *, PyObject *);}
static PyObject *meth_QPalette_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->text());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_text, doc_QPalette_text);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_base, "QPalette.base() -> QBrush");

extern "C" {static PyObject *meth_QPalette_base(PyObject *, PyObject *);}
static PyObject *meth_QPalette_base(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->base());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_base, doc_QPalette_base);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_alternateBase, "QPalette.alternateBase() -> QBrush");

extern "C" {static PyObject *meth_QPalette_alternateBase(PyObject *, PyObject *);}
static PyObject *meth_QPalette_alternateBase(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->alternateBase());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_alternateBase, doc_QPalette_alternateBase);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_window, "QPalette.window() -> QBrush");

extern "C" {static PyObject *meth_QPalette_window(PyObject *, PyObject *);}
static PyObject *meth_QPalette_window(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->window());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_window, doc_QPalette_window);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_midlight, "QPalette.midlight() -> QBrush");

extern "C" {static PyObject *meth_QPalette_midlight(PyObject *, PyObject *);}
static PyObject *meth_QPalette_midlight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->midlight());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_midlight, doc_QPalette_midlight);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_brightText, "QPalette.brightText() -> QBrush");

extern "C" {static PyObject *meth_QPalette_brightText(PyObject *, PyObject *);}
static PyObject *meth_QPalette_brightText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->brightText());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_brightText, doc_QPalette_brightText);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_buttonText, "QPalette.buttonText() -> QBrush");

extern "C" {static PyObject *meth_QPalette_buttonText(PyObject *, PyObject *);}
static PyObject *meth_QPalette_buttonText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->buttonText());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_buttonText, doc_QPalette_buttonText);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_shadow, "QPalette.shadow() -> QBrush");

extern "C" {static PyObject *meth_QPalette_shadow(PyObject *, PyObject *);}
static PyObject *meth_QPalette_shadow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->shadow());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_shadow, doc_QPalette_shadow);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_highlight, "QPalette.highlight() -> QBrush");

extern "C" {static PyObject *meth_QPalette_highlight(PyObject *, PyObject *);}
static PyObject *meth_QPalette_highlight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->highlight());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_highlight, doc_QPalette_highlight);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_highlightedText, "QPalette.highlightedText() -> QBrush");

extern "C" {static PyObject *meth_QPalette_highlightedText(PyObject *, PyObject *);}
static PyObject *meth_QPalette_highlightedText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->highlightedText());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_highlightedText, doc_QPalette_highlightedText);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_link, "QPalette.link() -> QBrush");

extern "C" {static PyObject *meth_QPalette_link(PyObject *, PyObject *);}
static PyObject *meth_QPalette_link(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->link());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_link, doc_QPalette_link);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_linkVisited, "QPalette.linkVisited() -> QBrush");

extern "C" {static PyObject *meth_QPalette_linkVisited(PyObject *, PyObject *);}
static PyObject *meth_QPalette_linkVisited(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->linkVisited());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_linkVisited, doc_QPalette_linkVisited);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_toolTipBase, "QPalette.toolTipBase() -> QBrush");

extern "C" {static PyObject *meth_QPalette_toolTipBase(PyObject *, PyObject *);}
static PyObject *meth_QPalette_toolTipBase(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->toolTipBase());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_toolTipBase, doc_QPalette_toolTipBase);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_toolTipText, "QPalette.toolTipText() -> QBrush");

extern "C" {static PyObject *meth_QPalette_toolTipText(PyObject *, PyObject *);}
static PyObject *meth_QPalette_toolTipText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->toolTipText());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_toolTipText, doc_QPalette_toolTipText);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_isCopyOf, "QPalette.isCopyOf(QPalette) -> bool");

extern "C" {static PyObject *meth_QPalette_isCopyOf(PyObject *, PyObject *);}
static PyObject *meth_QPalette_isCopyOf(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette* a0;
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isCopyOf(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_isCopyOf, doc_QPalette_isCopyOf);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_resolve, "QPalette.resolve(QPalette) -> QPalette\n"
    "QPalette.resolve() -> int\n"
    "QPalette.resolve(int)");

extern "C" {static PyObject *meth_QPalette_resolve(PyObject *, PyObject *);}
static PyObject *meth_QPalette_resolve(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette* a0;
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette, &a0))
        {
            QPalette*sipRes;

            sipRes = new QPalette(sipCpp->resolve(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPalette,NULL);
        }
    }

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            uint sipRes;

            sipRes = sipCpp->resolve();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        uint a0;
        QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QPalette, &sipCpp, &a0))
        {
            sipCpp->resolve(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_resolve, doc_QPalette_resolve);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_setColor, "QPalette.setColor(QPalette.ColorGroup, QPalette.ColorRole, QColor)\n"
    "QPalette.setColor(QPalette.ColorRole, QColor)");

extern "C" {static PyObject *meth_QPalette_setColor(PyObject *, PyObject *);}
static PyObject *meth_QPalette_setColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPalette::ColorGroup a0;
        QPalette::ColorRole a1;
        const QColor* a2;
        int a2State = 0;
        QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEEJ1", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorGroup, &a0, sipType_QPalette_ColorRole, &a1, sipType_QColor, &a2, &a2State))
        {
            sipCpp->setColor(a0,a1,*a2);
            sipReleaseType(const_cast<QColor *>(a2),sipType_QColor,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QPalette::ColorRole a0;
        const QColor* a1;
        int a1State = 0;
        QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorRole, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->setColor(a0,*a1);
            sipReleaseType(const_cast<QColor *>(a1),sipType_QColor,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_setColor, doc_QPalette_setColor);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_isBrushSet, "QPalette.isBrushSet(QPalette.ColorGroup, QPalette.ColorRole) -> bool");

extern "C" {static PyObject *meth_QPalette_isBrushSet(PyObject *, PyObject *);}
static PyObject *meth_QPalette_isBrushSet(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPalette::ColorGroup a0;
        QPalette::ColorRole a1;
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEE", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette_ColorGroup, &a0, sipType_QPalette_ColorRole, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->isBrushSet(a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_isBrushSet, doc_QPalette_isBrushSet);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_cacheKey, "QPalette.cacheKey() -> int");

extern "C" {static PyObject *meth_QPalette_cacheKey(PyObject *, PyObject *);}
static PyObject *meth_QPalette_cacheKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPalette, &sipCpp))
        {
            qint64 sipRes;

            sipRes = sipCpp->cacheKey();

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_cacheKey, doc_QPalette_cacheKey);

    return NULL;
}


PyDoc_STRVAR(doc_QPalette_swap, "QPalette.swap(QPalette)");

extern "C" {static PyObject *meth_QPalette_swap(PyObject *, PyObject *);}
static PyObject *meth_QPalette_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPalette* a0;
        QPalette *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPalette, &sipCpp, sipType_QPalette, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPalette, sipName_swap, doc_QPalette_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QPalette___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPalette___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPalette *sipCpp = reinterpret_cast<QPalette *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPalette));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPalette* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPalette, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPalette::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPalette,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPalette___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPalette___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPalette *sipCpp = reinterpret_cast<QPalette *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPalette));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPalette* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPalette, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPalette::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPalette,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPalette(void *, const sipTypeDef *);}
static void *cast_QPalette(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPalette)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPalette(void *, int);}
static void release_QPalette(void *sipCppV,int)
{
    delete reinterpret_cast<QPalette *>(sipCppV);
}


extern "C" {static void assign_QPalette(void *, SIP_SSIZE_T, const void *);}
static void assign_QPalette(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPalette *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPalette *>(sipSrc);
}


extern "C" {static void *array_QPalette(SIP_SSIZE_T);}
static void *array_QPalette(SIP_SSIZE_T sipNrElem)
{
    return new QPalette[sipNrElem];
}


extern "C" {static void *copy_QPalette(const void *, SIP_SSIZE_T);}
static void *copy_QPalette(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPalette(reinterpret_cast<const QPalette *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPalette(sipSimpleWrapper *);}
static void dealloc_QPalette(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPalette(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPalette(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPalette(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPalette *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPalette();

            return sipCpp;
        }
    }

    {
        const QColor* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QColor, &a0, &a0State))
        {
            sipCpp = new QPalette(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            return sipCpp;
        }
    }

    {
        Qt::GlobalColor a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_Qt_GlobalColor, &a0))
        {
            sipCpp = new QPalette(a0);

            return sipCpp;
        }
    }

    {
        const QColor* a0;
        int a0State = 0;
        const QColor* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QColor, &a0, &a0State, sipType_QColor, &a1, &a1State))
        {
            sipCpp = new QPalette(*a0,*a1);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);
            sipReleaseType(const_cast<QColor *>(a1),sipType_QColor,a1State);

            return sipCpp;
        }
    }

    {
        const QBrush* a0;
        int a0State = 0;
        const QBrush* a1;
        int a1State = 0;
        const QBrush* a2;
        int a2State = 0;
        const QBrush* a3;
        int a3State = 0;
        const QBrush* a4;
        int a4State = 0;
        const QBrush* a5;
        int a5State = 0;
        const QBrush* a6;
        int a6State = 0;
        const QBrush* a7;
        int a7State = 0;
        const QBrush* a8;
        int a8State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J1J1J1J1J1J1J1", sipType_QBrush, &a0, &a0State, sipType_QBrush, &a1, &a1State, sipType_QBrush, &a2, &a2State, sipType_QBrush, &a3, &a3State, sipType_QBrush, &a4, &a4State, sipType_QBrush, &a5, &a5State, sipType_QBrush, &a6, &a6State, sipType_QBrush, &a7, &a7State, sipType_QBrush, &a8, &a8State))
        {
            sipCpp = new QPalette(*a0,*a1,*a2,*a3,*a4,*a5,*a6,*a7,*a8);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);
            sipReleaseType(const_cast<QBrush *>(a1),sipType_QBrush,a1State);
            sipReleaseType(const_cast<QBrush *>(a2),sipType_QBrush,a2State);
            sipReleaseType(const_cast<QBrush *>(a3),sipType_QBrush,a3State);
            sipReleaseType(const_cast<QBrush *>(a4),sipType_QBrush,a4State);
            sipReleaseType(const_cast<QBrush *>(a5),sipType_QBrush,a5State);
            sipReleaseType(const_cast<QBrush *>(a6),sipType_QBrush,a6State);
            sipReleaseType(const_cast<QBrush *>(a7),sipType_QBrush,a7State);
            sipReleaseType(const_cast<QBrush *>(a8),sipType_QBrush,a8State);

            return sipCpp;
        }
    }

    {
        const QPalette* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPalette, &a0))
        {
            sipCpp = new QPalette(*a0);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 42 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpalette.sip"
        if (a0->canConvert<QPalette>())
            sipCpp = new QPalette(a0->value<QPalette>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 84498 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPalette[] = {
    {(void *)slot_QPalette___ne__, ne_slot},
    {(void *)slot_QPalette___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPalette[] = {
    {SIP_MLNAME_CAST(sipName_alternateBase), meth_QPalette_alternateBase, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_alternateBase)},
    {SIP_MLNAME_CAST(sipName_base), meth_QPalette_base, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_base)},
    {SIP_MLNAME_CAST(sipName_brightText), meth_QPalette_brightText, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_brightText)},
    {SIP_MLNAME_CAST(sipName_brush), meth_QPalette_brush, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_brush)},
    {SIP_MLNAME_CAST(sipName_button), meth_QPalette_button, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_button)},
    {SIP_MLNAME_CAST(sipName_buttonText), meth_QPalette_buttonText, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_buttonText)},
    {SIP_MLNAME_CAST(sipName_cacheKey), meth_QPalette_cacheKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_cacheKey)},
    {SIP_MLNAME_CAST(sipName_color), meth_QPalette_color, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_color)},
    {SIP_MLNAME_CAST(sipName_currentColorGroup), meth_QPalette_currentColorGroup, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_currentColorGroup)},
    {SIP_MLNAME_CAST(sipName_dark), meth_QPalette_dark, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_dark)},
    {SIP_MLNAME_CAST(sipName_highlight), meth_QPalette_highlight, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_highlight)},
    {SIP_MLNAME_CAST(sipName_highlightedText), meth_QPalette_highlightedText, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_highlightedText)},
    {SIP_MLNAME_CAST(sipName_isBrushSet), meth_QPalette_isBrushSet, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_isBrushSet)},
    {SIP_MLNAME_CAST(sipName_isCopyOf), meth_QPalette_isCopyOf, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_isCopyOf)},
    {SIP_MLNAME_CAST(sipName_isEqual), meth_QPalette_isEqual, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_isEqual)},
    {SIP_MLNAME_CAST(sipName_light), meth_QPalette_light, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_light)},
    {SIP_MLNAME_CAST(sipName_link), meth_QPalette_link, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_link)},
    {SIP_MLNAME_CAST(sipName_linkVisited), meth_QPalette_linkVisited, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_linkVisited)},
    {SIP_MLNAME_CAST(sipName_mid), meth_QPalette_mid, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_mid)},
    {SIP_MLNAME_CAST(sipName_midlight), meth_QPalette_midlight, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_midlight)},
    {SIP_MLNAME_CAST(sipName_resolve), meth_QPalette_resolve, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_resolve)},
    {SIP_MLNAME_CAST(sipName_setBrush), meth_QPalette_setBrush, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_setBrush)},
    {SIP_MLNAME_CAST(sipName_setColor), meth_QPalette_setColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_setColor)},
    {SIP_MLNAME_CAST(sipName_setColorGroup), meth_QPalette_setColorGroup, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_setColorGroup)},
    {SIP_MLNAME_CAST(sipName_setCurrentColorGroup), meth_QPalette_setCurrentColorGroup, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_setCurrentColorGroup)},
    {SIP_MLNAME_CAST(sipName_shadow), meth_QPalette_shadow, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_shadow)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPalette_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_swap)},
    {SIP_MLNAME_CAST(sipName_text), meth_QPalette_text, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_text)},
    {SIP_MLNAME_CAST(sipName_toolTipBase), meth_QPalette_toolTipBase, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_toolTipBase)},
    {SIP_MLNAME_CAST(sipName_toolTipText), meth_QPalette_toolTipText, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_toolTipText)},
    {SIP_MLNAME_CAST(sipName_window), meth_QPalette_window, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_window)},
    {SIP_MLNAME_CAST(sipName_windowText), meth_QPalette_windowText, METH_VARARGS, SIP_MLDOC_CAST(doc_QPalette_windowText)}
};

static sipEnumMemberDef enummembers_QPalette[] = {
    {sipName_Active, static_cast<int>(QPalette::Active), 209},
    {sipName_All, static_cast<int>(QPalette::All), 209},
    {sipName_AlternateBase, static_cast<int>(QPalette::AlternateBase), 210},
    {sipName_Background, static_cast<int>(QPalette::Background), 210},
    {sipName_Base, static_cast<int>(QPalette::Base), 210},
    {sipName_BrightText, static_cast<int>(QPalette::BrightText), 210},
    {sipName_Button, static_cast<int>(QPalette::Button), 210},
    {sipName_ButtonText, static_cast<int>(QPalette::ButtonText), 210},
    {sipName_Current, static_cast<int>(QPalette::Current), 209},
    {sipName_Dark, static_cast<int>(QPalette::Dark), 210},
    {sipName_Disabled, static_cast<int>(QPalette::Disabled), 209},
    {sipName_Foreground, static_cast<int>(QPalette::Foreground), 210},
    {sipName_Highlight, static_cast<int>(QPalette::Highlight), 210},
    {sipName_HighlightedText, static_cast<int>(QPalette::HighlightedText), 210},
    {sipName_Inactive, static_cast<int>(QPalette::Inactive), 209},
    {sipName_Light, static_cast<int>(QPalette::Light), 210},
    {sipName_Link, static_cast<int>(QPalette::Link), 210},
    {sipName_LinkVisited, static_cast<int>(QPalette::LinkVisited), 210},
    {sipName_Mid, static_cast<int>(QPalette::Mid), 210},
    {sipName_Midlight, static_cast<int>(QPalette::Midlight), 210},
    {sipName_NColorGroups, static_cast<int>(QPalette::NColorGroups), 209},
    {sipName_NColorRoles, static_cast<int>(QPalette::NColorRoles), 210},
    {sipName_NoRole, static_cast<int>(QPalette::NoRole), 210},
    {sipName_Normal, static_cast<int>(QPalette::Normal), 209},
    {sipName_Shadow, static_cast<int>(QPalette::Shadow), 210},
    {sipName_Text, static_cast<int>(QPalette::Text), 210},
    {sipName_ToolTipBase, static_cast<int>(QPalette::ToolTipBase), 210},
    {sipName_ToolTipText, static_cast<int>(QPalette::ToolTipText), 210},
    {sipName_Window, static_cast<int>(QPalette::Window), 210},
    {sipName_WindowText, static_cast<int>(QPalette::WindowText), 210},
};

PyDoc_STRVAR(doc_QPalette, "\1QPalette()\n"
    "QPalette(QColor)\n"
    "QPalette(Qt.GlobalColor)\n"
    "QPalette(QColor, QColor)\n"
    "QPalette(QBrush, QBrush, QBrush, QBrush, QBrush, QBrush, QBrush, QBrush, QBrush)\n"
    "QPalette(QPalette)\n"
    "QPalette(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPalette = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPalette,
        {0}
    },
    {
        sipNameNr_QPalette,
        {0, 0, 1},
        32, methods_QPalette,
        30, enummembers_QPalette,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPalette,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPalette,
    init_type_QPalette,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPalette,
    assign_QPalette,
    array_QPalette,
    copy_QPalette,
    release_QPalette,
    cast_QPalette,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 140 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 84662 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 84666 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 84669 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 233 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 84672 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 84675 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainterPathStroker_setWidth, "QPainterPathStroker.setWidth(float)");

extern "C" {static PyObject *meth_QPainterPathStroker_setWidth(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_setWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainterPathStroker, &sipCpp, &a0))
        {
            sipCpp->setWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_setWidth, doc_QPainterPathStroker_setWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_width, "QPainterPathStroker.width() -> float");

extern "C" {static PyObject *meth_QPainterPathStroker_width(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPathStroker, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->width();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_width, doc_QPainterPathStroker_width);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_setCapStyle, "QPainterPathStroker.setCapStyle(Qt.PenCapStyle)");

extern "C" {static PyObject *meth_QPainterPathStroker_setCapStyle(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_setCapStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::PenCapStyle a0;
        QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainterPathStroker, &sipCpp, sipType_Qt_PenCapStyle, &a0))
        {
            sipCpp->setCapStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_setCapStyle, doc_QPainterPathStroker_setCapStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_capStyle, "QPainterPathStroker.capStyle() -> Qt.PenCapStyle");

extern "C" {static PyObject *meth_QPainterPathStroker_capStyle(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_capStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPathStroker, &sipCpp))
        {
            Qt::PenCapStyle sipRes;

            sipRes = sipCpp->capStyle();

            return sipConvertFromEnum(sipRes,sipType_Qt_PenCapStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_capStyle, doc_QPainterPathStroker_capStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_setJoinStyle, "QPainterPathStroker.setJoinStyle(Qt.PenJoinStyle)");

extern "C" {static PyObject *meth_QPainterPathStroker_setJoinStyle(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_setJoinStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::PenJoinStyle a0;
        QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainterPathStroker, &sipCpp, sipType_Qt_PenJoinStyle, &a0))
        {
            sipCpp->setJoinStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_setJoinStyle, doc_QPainterPathStroker_setJoinStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_joinStyle, "QPainterPathStroker.joinStyle() -> Qt.PenJoinStyle");

extern "C" {static PyObject *meth_QPainterPathStroker_joinStyle(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_joinStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPathStroker, &sipCpp))
        {
            Qt::PenJoinStyle sipRes;

            sipRes = sipCpp->joinStyle();

            return sipConvertFromEnum(sipRes,sipType_Qt_PenJoinStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_joinStyle, doc_QPainterPathStroker_joinStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_setMiterLimit, "QPainterPathStroker.setMiterLimit(float)");

extern "C" {static PyObject *meth_QPainterPathStroker_setMiterLimit(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_setMiterLimit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainterPathStroker, &sipCpp, &a0))
        {
            sipCpp->setMiterLimit(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_setMiterLimit, doc_QPainterPathStroker_setMiterLimit);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_miterLimit, "QPainterPathStroker.miterLimit() -> float");

extern "C" {static PyObject *meth_QPainterPathStroker_miterLimit(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_miterLimit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPathStroker, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->miterLimit();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_miterLimit, doc_QPainterPathStroker_miterLimit);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_setCurveThreshold, "QPainterPathStroker.setCurveThreshold(float)");

extern "C" {static PyObject *meth_QPainterPathStroker_setCurveThreshold(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_setCurveThreshold(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainterPathStroker, &sipCpp, &a0))
        {
            sipCpp->setCurveThreshold(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_setCurveThreshold, doc_QPainterPathStroker_setCurveThreshold);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_curveThreshold, "QPainterPathStroker.curveThreshold() -> float");

extern "C" {static PyObject *meth_QPainterPathStroker_curveThreshold(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_curveThreshold(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPathStroker, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->curveThreshold();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_curveThreshold, doc_QPainterPathStroker_curveThreshold);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_setDashPattern, "QPainterPathStroker.setDashPattern(Qt.PenStyle)\n"
    "QPainterPathStroker.setDashPattern(list-of-float)");

extern "C" {static PyObject *meth_QPainterPathStroker_setDashPattern(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_setDashPattern(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::PenStyle a0;
        QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainterPathStroker, &sipCpp, sipType_Qt_PenStyle, &a0))
        {
            sipCpp->setDashPattern(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<qreal>* a0;
        int a0State = 0;
        QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainterPathStroker, &sipCpp, sipType_QVector_2400,&a0, &a0State))
        {
            sipCpp->setDashPattern(*a0);
            sipReleaseType(const_cast<QVector<qreal> *>(a0),sipType_QVector_2400,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_setDashPattern, doc_QPainterPathStroker_setDashPattern);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_dashPattern, "QPainterPathStroker.dashPattern() -> list-of-float");

extern "C" {static PyObject *meth_QPainterPathStroker_dashPattern(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_dashPattern(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPathStroker, &sipCpp))
        {
            QVector<qreal>*sipRes;

            sipRes = new QVector<qreal>(sipCpp->dashPattern());

            return sipConvertFromNewType(sipRes,sipType_QVector_2400,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_dashPattern, doc_QPainterPathStroker_dashPattern);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_createStroke, "QPainterPathStroker.createStroke(QPainterPath) -> QPainterPath");

extern "C" {static PyObject *meth_QPainterPathStroker_createStroke(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_createStroke(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        const QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPathStroker, &sipCpp, sipType_QPainterPath, &a0))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->createStroke(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_createStroke, doc_QPainterPathStroker_createStroke);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_setDashOffset, "QPainterPathStroker.setDashOffset(float)");

extern "C" {static PyObject *meth_QPainterPathStroker_setDashOffset(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_setDashOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainterPathStroker, &sipCpp, &a0))
        {
            sipCpp->setDashOffset(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_setDashOffset, doc_QPainterPathStroker_setDashOffset);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPathStroker_dashOffset, "QPainterPathStroker.dashOffset() -> float");

extern "C" {static PyObject *meth_QPainterPathStroker_dashOffset(PyObject *, PyObject *);}
static PyObject *meth_QPainterPathStroker_dashOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPathStroker *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPathStroker, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->dashOffset();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPathStroker, sipName_dashOffset, doc_QPainterPathStroker_dashOffset);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPainterPathStroker(void *, const sipTypeDef *);}
static void *cast_QPainterPathStroker(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPainterPathStroker)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPainterPathStroker(void *, int);}
static void release_QPainterPathStroker(void *sipCppV,int)
{
    delete reinterpret_cast<QPainterPathStroker *>(sipCppV);
}


extern "C" {static void dealloc_QPainterPathStroker(sipSimpleWrapper *);}
static void dealloc_QPainterPathStroker(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPainterPathStroker(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPainterPathStroker(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPainterPathStroker(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPainterPathStroker *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPainterPathStroker();

            return sipCpp;
        }
    }

    {
        const QPen* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPen, &a0, &a0State))
        {
            sipCpp = new QPainterPathStroker(*a0);
            sipReleaseType(const_cast<QPen *>(a0),sipType_QPen,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPainterPathStroker[] = {
    {SIP_MLNAME_CAST(sipName_capStyle), meth_QPainterPathStroker_capStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_capStyle)},
    {SIP_MLNAME_CAST(sipName_createStroke), meth_QPainterPathStroker_createStroke, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_createStroke)},
    {SIP_MLNAME_CAST(sipName_curveThreshold), meth_QPainterPathStroker_curveThreshold, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_curveThreshold)},
    {SIP_MLNAME_CAST(sipName_dashOffset), meth_QPainterPathStroker_dashOffset, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_dashOffset)},
    {SIP_MLNAME_CAST(sipName_dashPattern), meth_QPainterPathStroker_dashPattern, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_dashPattern)},
    {SIP_MLNAME_CAST(sipName_joinStyle), meth_QPainterPathStroker_joinStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_joinStyle)},
    {SIP_MLNAME_CAST(sipName_miterLimit), meth_QPainterPathStroker_miterLimit, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_miterLimit)},
    {SIP_MLNAME_CAST(sipName_setCapStyle), meth_QPainterPathStroker_setCapStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_setCapStyle)},
    {SIP_MLNAME_CAST(sipName_setCurveThreshold), meth_QPainterPathStroker_setCurveThreshold, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_setCurveThreshold)},
    {SIP_MLNAME_CAST(sipName_setDashOffset), meth_QPainterPathStroker_setDashOffset, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_setDashOffset)},
    {SIP_MLNAME_CAST(sipName_setDashPattern), meth_QPainterPathStroker_setDashPattern, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_setDashPattern)},
    {SIP_MLNAME_CAST(sipName_setJoinStyle), meth_QPainterPathStroker_setJoinStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_setJoinStyle)},
    {SIP_MLNAME_CAST(sipName_setMiterLimit), meth_QPainterPathStroker_setMiterLimit, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_setMiterLimit)},
    {SIP_MLNAME_CAST(sipName_setWidth), meth_QPainterPathStroker_setWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_setWidth)},
    {SIP_MLNAME_CAST(sipName_width), meth_QPainterPathStroker_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPathStroker_width)}
};

PyDoc_STRVAR(doc_QPainterPathStroker, "\1QPainterPathStroker()\n"
    "QPainterPathStroker(QPen)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPainterPathStroker = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPainterPathStroker,
        {0}
    },
    {
        sipNameNr_QPainterPathStroker,
        {0, 0, 1},
        15, methods_QPainterPathStroker,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainterPathStroker,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPainterPathStroker,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPainterPathStroker,
    0,
    0,
    0,
    release_QPainterPathStroker,
    cast_QPainterPathStroker,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 45 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 85241 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 85245 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainterPath_Element_isMoveTo, "QPainterPath.Element.isMoveTo() -> bool");

extern "C" {static PyObject *meth_QPainterPath_Element_isMoveTo(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_Element_isMoveTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath_Element, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isMoveTo();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_isMoveTo, doc_QPainterPath_Element_isMoveTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_Element_isLineTo, "QPainterPath.Element.isLineTo() -> bool");

extern "C" {static PyObject *meth_QPainterPath_Element_isLineTo(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_Element_isLineTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath_Element, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isLineTo();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_isLineTo, doc_QPainterPath_Element_isLineTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_Element_isCurveTo, "QPainterPath.Element.isCurveTo() -> bool");

extern "C" {static PyObject *meth_QPainterPath_Element_isCurveTo(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_Element_isCurveTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath::Element *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath_Element, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCurveTo();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Element, sipName_isCurveTo, doc_QPainterPath_Element_isCurveTo);

    return NULL;
}


extern "C" {static PyObject *slot_QPainterPath_Element___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath_Element___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPainterPath::Element *sipCpp = reinterpret_cast<QPainterPath::Element *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainterPath_Element));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainterPath::Element* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPainterPath_Element, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPainterPath::Element::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPainterPath_Element,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPainterPath_Element___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath_Element___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPainterPath::Element *sipCpp = reinterpret_cast<QPainterPath::Element *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainterPath_Element));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainterPath::Element* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPainterPath_Element, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPainterPath::Element::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPainterPath_Element,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPainterPath_Element(void *, const sipTypeDef *);}
static void *cast_QPainterPath_Element(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPainterPath_Element)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPainterPath_Element(void *, int);}
static void release_QPainterPath_Element(void *sipCppV,int)
{
    delete reinterpret_cast<QPainterPath::Element *>(sipCppV);
}


extern "C" {static void assign_QPainterPath_Element(void *, SIP_SSIZE_T, const void *);}
static void assign_QPainterPath_Element(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPainterPath::Element *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPainterPath::Element *>(sipSrc);
}


extern "C" {static void *array_QPainterPath_Element(SIP_SSIZE_T);}
static void *array_QPainterPath_Element(SIP_SSIZE_T sipNrElem)
{
    return new QPainterPath::Element[sipNrElem];
}


extern "C" {static void *copy_QPainterPath_Element(const void *, SIP_SSIZE_T);}
static void *copy_QPainterPath_Element(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPainterPath::Element(reinterpret_cast<const QPainterPath::Element *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPainterPath_Element(sipSimpleWrapper *);}
static void dealloc_QPainterPath_Element(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPainterPath_Element(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPainterPath_Element(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPainterPath_Element(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPainterPath::Element *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPainterPath::Element();

            return sipCpp;
        }
    }

    {
        const QPainterPath::Element* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPainterPath_Element, &a0))
        {
            sipCpp = new QPainterPath::Element(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPainterPath_Element[] = {
    {(void *)slot_QPainterPath_Element___ne__, ne_slot},
    {(void *)slot_QPainterPath_Element___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPainterPath_Element[] = {
    {SIP_MLNAME_CAST(sipName_isCurveTo), meth_QPainterPath_Element_isCurveTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_Element_isCurveTo)},
    {SIP_MLNAME_CAST(sipName_isLineTo), meth_QPainterPath_Element_isLineTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_Element_isLineTo)},
    {SIP_MLNAME_CAST(sipName_isMoveTo), meth_QPainterPath_Element_isMoveTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_Element_isMoveTo)}
};


extern "C" {static PyObject *varget_QPainterPath_Element_type(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainterPath_Element_type(void *sipSelf, PyObject *, PyObject *)
{
    QPainterPath::ElementType sipVal;
    QPainterPath::Element *sipCpp = reinterpret_cast<QPainterPath::Element *>(sipSelf);

    sipVal = sipCpp->type;

    return sipConvertFromEnum(sipVal, sipType_QPainterPath_ElementType);
}


extern "C" {static int varset_QPainterPath_Element_type(void *, PyObject *, PyObject *);}
static int varset_QPainterPath_Element_type(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QPainterPath::ElementType sipVal;
    QPainterPath::Element *sipCpp = reinterpret_cast<QPainterPath::Element *>(sipSelf);

    sipVal = (QPainterPath::ElementType)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->type = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainterPath_Element_x(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainterPath_Element_x(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainterPath::Element *sipCpp = reinterpret_cast<QPainterPath::Element *>(sipSelf);

    sipVal = sipCpp->x;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainterPath_Element_x(void *, PyObject *, PyObject *);}
static int varset_QPainterPath_Element_x(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainterPath::Element *sipCpp = reinterpret_cast<QPainterPath::Element *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->x = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainterPath_Element_y(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainterPath_Element_y(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainterPath::Element *sipCpp = reinterpret_cast<QPainterPath::Element *>(sipSelf);

    sipVal = sipCpp->y;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainterPath_Element_y(void *, PyObject *, PyObject *);}
static int varset_QPainterPath_Element_y(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainterPath::Element *sipCpp = reinterpret_cast<QPainterPath::Element *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->y = sipVal;

    return 0;
}

sipVariableDef variables_QPainterPath_Element[] = {
    {InstanceVariable, sipName_type, (PyMethodDef *)varget_QPainterPath_Element_type, (PyMethodDef *)varset_QPainterPath_Element_type, NULL, NULL},
    {InstanceVariable, sipName_x, (PyMethodDef *)varget_QPainterPath_Element_x, (PyMethodDef *)varset_QPainterPath_Element_x, NULL, NULL},
    {InstanceVariable, sipName_y, (PyMethodDef *)varget_QPainterPath_Element_y, (PyMethodDef *)varset_QPainterPath_Element_y, NULL, NULL},
};

PyDoc_STRVAR(doc_QPainterPath_Element, "\1QPainterPath.Element()\n"
    "QPainterPath.Element(QPainterPath.Element)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPainterPath_Element = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPainterPath__Element,
        {0}
    },
    {
        sipNameNr_Element,
        {202, 255, 0},
        3, methods_QPainterPath_Element,
        0, 0,
        3, variables_QPainterPath_Element,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainterPath_Element,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPainterPath_Element,
    init_type_QPainterPath_Element,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPainterPath_Element,
    assign_QPainterPath_Element,
    array_QPainterPath_Element,
    copy_QPainterPath_Element,
    release_QPainterPath_Element,
    cast_QPainterPath_Element,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 85640 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 85644 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 85647 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 85650 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 85653 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 330 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 85656 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 85659 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 45 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 85664 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 85667 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 85670 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 85673 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainterPath_closeSubpath, "QPainterPath.closeSubpath()");

extern "C" {static PyObject *meth_QPainterPath_closeSubpath(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_closeSubpath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            sipCpp->closeSubpath();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_closeSubpath, doc_QPainterPath_closeSubpath);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_moveTo, "QPainterPath.moveTo(QPointF)\n"
    "QPainterPath.moveTo(float, float)");

extern "C" {static PyObject *meth_QPainterPath_moveTo(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_moveTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->moveTo(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1))
        {
            sipCpp->moveTo(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_moveTo, doc_QPainterPath_moveTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_lineTo, "QPainterPath.lineTo(QPointF)\n"
    "QPainterPath.lineTo(float, float)");

extern "C" {static PyObject *meth_QPainterPath_lineTo(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_lineTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->lineTo(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1))
        {
            sipCpp->lineTo(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_lineTo, doc_QPainterPath_lineTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_arcTo, "QPainterPath.arcTo(QRectF, float, float)\n"
    "QPainterPath.arcTo(float, float, float, float, float, float)");

extern "C" {static PyObject *meth_QPainterPath_arcTo(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_arcTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        qreal a1;
        qreal a2;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9dd", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QRectF, &a0, &a1, &a2))
        {
            sipCpp->arcTo(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;
        qreal a5;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdddddd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp->arcTo(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_arcTo, doc_QPainterPath_arcTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_cubicTo, "QPainterPath.cubicTo(QPointF, QPointF, QPointF)\n"
    "QPainterPath.cubicTo(float, float, float, float, float, float)");

extern "C" {static PyObject *meth_QPainterPath_cubicTo(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_cubicTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPointF* a1;
        int a1State = 0;
        const QPointF* a2;
        int a2State = 0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1J1", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QPointF, &a1, &a1State, sipType_QPointF, &a2, &a2State))
        {
            sipCpp->cubicTo(*a0,*a1,*a2);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;
        qreal a5;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdddddd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp->cubicTo(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_cubicTo, doc_QPainterPath_cubicTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_quadTo, "QPainterPath.quadTo(QPointF, QPointF)\n"
    "QPainterPath.quadTo(float, float, float, float)");

extern "C" {static PyObject *meth_QPainterPath_quadTo(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_quadTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPointF* a1;
        int a1State = 0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QPointF, &a1, &a1State))
        {
            sipCpp->quadTo(*a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdddd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->quadTo(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_quadTo, doc_QPainterPath_quadTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_currentPosition, "QPainterPath.currentPosition() -> QPointF");

extern "C" {static PyObject *meth_QPainterPath_currentPosition(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_currentPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->currentPosition());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_currentPosition, doc_QPainterPath_currentPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_addRect, "QPainterPath.addRect(QRectF)\n"
    "QPainterPath.addRect(float, float, float, float)");

extern "C" {static PyObject *meth_QPainterPath_addRect(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_addRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->addRect(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdddd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->addRect(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_addRect, doc_QPainterPath_addRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_addEllipse, "QPainterPath.addEllipse(QRectF)\n"
    "QPainterPath.addEllipse(float, float, float, float)\n"
    "QPainterPath.addEllipse(QPointF, float, float)");

extern "C" {static PyObject *meth_QPainterPath_addEllipse(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_addEllipse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->addEllipse(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdddd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->addEllipse(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        qreal a1;
        qreal a2;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1dd", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPointF, &a0, &a0State, &a1, &a2))
        {
            sipCpp->addEllipse(*a0,a1,a2);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_addEllipse, doc_QPainterPath_addEllipse);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_addPolygon, "QPainterPath.addPolygon(QPolygonF)");

extern "C" {static PyObject *meth_QPainterPath_addPolygon(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_addPolygon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPolygonF* a0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPolygonF, &a0))
        {
            sipCpp->addPolygon(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_addPolygon, doc_QPainterPath_addPolygon);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_addText, "QPainterPath.addText(QPointF, QFont, str)\n"
    "QPainterPath.addText(float, float, QFont, str)");

extern "C" {static PyObject *meth_QPainterPath_addText(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_addText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QFont* a1;
        const QString* a2;
        int a2State = 0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9J1", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QFont, &a1, sipType_QString,&a2, &a2State))
        {
            sipCpp->addText(*a0,*a1,*a2);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        const QFont* a2;
        const QString* a3;
        int a3State = 0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BddJ9J1", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1, sipType_QFont, &a2, sipType_QString,&a3, &a3State))
        {
            sipCpp->addText(a0,a1,*a2,*a3);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_addText, doc_QPainterPath_addText);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_addPath, "QPainterPath.addPath(QPainterPath)");

extern "C" {static PyObject *meth_QPainterPath_addPath(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_addPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPainterPath, &a0))
        {
            sipCpp->addPath(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_addPath, doc_QPainterPath_addPath);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_addRegion, "QPainterPath.addRegion(QRegion)");

extern "C" {static PyObject *meth_QPainterPath_addRegion(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_addRegion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QRegion, &a0))
        {
            sipCpp->addRegion(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_addRegion, doc_QPainterPath_addRegion);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_connectPath, "QPainterPath.connectPath(QPainterPath)");

extern "C" {static PyObject *meth_QPainterPath_connectPath(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_connectPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPainterPath, &a0))
        {
            sipCpp->connectPath(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_connectPath, doc_QPainterPath_connectPath);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_contains, "QPainterPath.contains(QPointF) -> bool\n"
    "QPainterPath.contains(QRectF) -> bool\n"
    "QPainterPath.contains(QPainterPath) -> bool");

extern "C" {static PyObject *meth_QPainterPath_contains(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_contains(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->contains(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QRectF* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QRectF, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->contains(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QPainterPath* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPainterPath, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->contains(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_contains, doc_QPainterPath_contains);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_intersects, "QPainterPath.intersects(QRectF) -> bool\n"
    "QPainterPath.intersects(QPainterPath) -> bool");

extern "C" {static PyObject *meth_QPainterPath_intersects(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_intersects(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QRectF, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->intersects(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QPainterPath* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPainterPath, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->intersects(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_intersects, doc_QPainterPath_intersects);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_boundingRect, "QPainterPath.boundingRect() -> QRectF");

extern "C" {static PyObject *meth_QPainterPath_boundingRect(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_boundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->boundingRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_boundingRect, doc_QPainterPath_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_controlPointRect, "QPainterPath.controlPointRect() -> QRectF");

extern "C" {static PyObject *meth_QPainterPath_controlPointRect(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_controlPointRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->controlPointRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_controlPointRect, doc_QPainterPath_controlPointRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_fillRule, "QPainterPath.fillRule() -> Qt.FillRule");

extern "C" {static PyObject *meth_QPainterPath_fillRule(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_fillRule(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            Qt::FillRule sipRes;

            sipRes = sipCpp->fillRule();

            return sipConvertFromEnum(sipRes,sipType_Qt_FillRule);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_fillRule, doc_QPainterPath_fillRule);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_setFillRule, "QPainterPath.setFillRule(Qt.FillRule)");

extern "C" {static PyObject *meth_QPainterPath_setFillRule(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_setFillRule(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::FillRule a0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_Qt_FillRule, &a0))
        {
            sipCpp->setFillRule(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_setFillRule, doc_QPainterPath_setFillRule);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_toReversed, "QPainterPath.toReversed() -> QPainterPath");

extern "C" {static PyObject *meth_QPainterPath_toReversed(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_toReversed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->toReversed());

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_toReversed, doc_QPainterPath_toReversed);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_arcMoveTo, "QPainterPath.arcMoveTo(QRectF, float)\n"
    "QPainterPath.arcMoveTo(float, float, float, float, float)");

extern "C" {static PyObject *meth_QPainterPath_arcMoveTo(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_arcMoveTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        qreal a1;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9d", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QRectF, &a0, &a1))
        {
            sipCpp->arcMoveTo(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bddddd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->arcMoveTo(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_arcMoveTo, doc_QPainterPath_arcMoveTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_isEmpty, "QPainterPath.isEmpty() -> bool");

extern "C" {static PyObject *meth_QPainterPath_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEmpty();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_isEmpty, doc_QPainterPath_isEmpty);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_elementCount, "QPainterPath.elementCount() -> int");

extern "C" {static PyObject *meth_QPainterPath_elementCount(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_elementCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->elementCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_elementCount, doc_QPainterPath_elementCount);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_elementAt, "QPainterPath.elementAt(int) -> QPainterPath.Element");

extern "C" {static PyObject *meth_QPainterPath_elementAt(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_elementAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPainterPath, &sipCpp, &a0))
        {
            QPainterPath::Element*sipRes;

            sipRes = new QPainterPath::Element(sipCpp->elementAt(a0));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath_Element,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_elementAt, doc_QPainterPath_elementAt);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_setElementPositionAt, "QPainterPath.setElementPositionAt(int, float, float)");

extern "C" {static PyObject *meth_QPainterPath_setElementPositionAt(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_setElementPositionAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        qreal a1;
        qreal a2;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bidd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setElementPositionAt(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_setElementPositionAt, doc_QPainterPath_setElementPositionAt);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_toSubpathPolygons, "QPainterPath.toSubpathPolygons(QTransform) -> list-of-QPolygonF");

extern "C" {static PyObject *meth_QPainterPath_toSubpathPolygons(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_toSubpathPolygons(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QTransform, &a0))
        {
            QList<QPolygonF>*sipRes;

            sipRes = new QList<QPolygonF>(sipCpp->toSubpathPolygons(*a0));

            return sipConvertFromNewType(sipRes,sipType_QList_0100QPolygonF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_toSubpathPolygons, doc_QPainterPath_toSubpathPolygons);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_toFillPolygons, "QPainterPath.toFillPolygons(QTransform) -> list-of-QPolygonF");

extern "C" {static PyObject *meth_QPainterPath_toFillPolygons(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_toFillPolygons(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QTransform, &a0))
        {
            QList<QPolygonF>*sipRes;

            sipRes = new QList<QPolygonF>(sipCpp->toFillPolygons(*a0));

            return sipConvertFromNewType(sipRes,sipType_QList_0100QPolygonF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_toFillPolygons, doc_QPainterPath_toFillPolygons);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_toFillPolygon, "QPainterPath.toFillPolygon(QTransform) -> QPolygonF");

extern "C" {static PyObject *meth_QPainterPath_toFillPolygon(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_toFillPolygon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QTransform, &a0))
        {
            QPolygonF*sipRes;

            sipRes = new QPolygonF(sipCpp->toFillPolygon(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPolygonF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_toFillPolygon, doc_QPainterPath_toFillPolygon);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_length, "QPainterPath.length() -> float");

extern "C" {static PyObject *meth_QPainterPath_length(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_length(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->length();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_length, doc_QPainterPath_length);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_percentAtLength, "QPainterPath.percentAtLength(float) -> float");

extern "C" {static PyObject *meth_QPainterPath_percentAtLength(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_percentAtLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0))
        {
            qreal sipRes;

            sipRes = sipCpp->percentAtLength(a0);

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_percentAtLength, doc_QPainterPath_percentAtLength);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_pointAtPercent, "QPainterPath.pointAtPercent(float) -> QPointF");

extern "C" {static PyObject *meth_QPainterPath_pointAtPercent(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_pointAtPercent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->pointAtPercent(a0));

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_pointAtPercent, doc_QPainterPath_pointAtPercent);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_angleAtPercent, "QPainterPath.angleAtPercent(float) -> float");

extern "C" {static PyObject *meth_QPainterPath_angleAtPercent(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_angleAtPercent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0))
        {
            qreal sipRes;

            sipRes = sipCpp->angleAtPercent(a0);

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_angleAtPercent, doc_QPainterPath_angleAtPercent);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_slopeAtPercent, "QPainterPath.slopeAtPercent(float) -> float");

extern "C" {static PyObject *meth_QPainterPath_slopeAtPercent(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_slopeAtPercent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0))
        {
            qreal sipRes;

            sipRes = sipCpp->slopeAtPercent(a0);

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_slopeAtPercent, doc_QPainterPath_slopeAtPercent);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_united, "QPainterPath.united(QPainterPath) -> QPainterPath");

extern "C" {static PyObject *meth_QPainterPath_united(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_united(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPainterPath, &a0))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->united(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_united, doc_QPainterPath_united);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_intersected, "QPainterPath.intersected(QPainterPath) -> QPainterPath");

extern "C" {static PyObject *meth_QPainterPath_intersected(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_intersected(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPainterPath, &a0))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->intersected(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_intersected, doc_QPainterPath_intersected);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_subtracted, "QPainterPath.subtracted(QPainterPath) -> QPainterPath");

extern "C" {static PyObject *meth_QPainterPath_subtracted(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_subtracted(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPainterPath, &a0))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->subtracted(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_subtracted, doc_QPainterPath_subtracted);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_addRoundedRect, "QPainterPath.addRoundedRect(QRectF, float, float, Qt.SizeMode mode=Qt.AbsoluteSize)\n"
    "QPainterPath.addRoundedRect(float, float, float, float, float, float, Qt.SizeMode mode=Qt.AbsoluteSize)");

extern "C" {static PyObject *meth_QPainterPath_addRoundedRect(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_addRoundedRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        qreal a1;
        qreal a2;
        Qt::SizeMode a3 = Qt::AbsoluteSize;
        QPainterPath *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9dd|E", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QRectF, &a0, &a1, &a2, sipType_Qt_SizeMode, &a3))
        {
            sipCpp->addRoundedRect(*a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;
        qreal a5;
        Qt::SizeMode a6 = Qt::AbsoluteSize;
        QPainterPath *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bdddddd|E", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5, sipType_Qt_SizeMode, &a6))
        {
            sipCpp->addRoundedRect(a0,a1,a2,a3,a4,a5,a6);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_addRoundedRect, doc_QPainterPath_addRoundedRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_simplified, "QPainterPath.simplified() -> QPainterPath");

extern "C" {static PyObject *meth_QPainterPath_simplified(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_simplified(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainterPath, &sipCpp))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->simplified());

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_simplified, doc_QPainterPath_simplified);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_translate, "QPainterPath.translate(float, float)\n"
    "QPainterPath.translate(QPointF)");

extern "C" {static PyObject *meth_QPainterPath_translate(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_translate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1))
        {
            sipCpp->translate(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->translate(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_translate, doc_QPainterPath_translate);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_translated, "QPainterPath.translated(float, float) -> QPainterPath\n"
    "QPainterPath.translated(QPointF) -> QPainterPath");

extern "C" {static PyObject *meth_QPainterPath_translated(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_translated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QPainterPath, &sipCpp, &a0, &a1))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->translated(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->translated(*a0));
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_translated, doc_QPainterPath_translated);

    return NULL;
}


PyDoc_STRVAR(doc_QPainterPath_swap, "QPainterPath.swap(QPainterPath)");

extern "C" {static PyObject *meth_QPainterPath_swap(PyObject *, PyObject *);}
static PyObject *meth_QPainterPath_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainterPath* a0;
        QPainterPath *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainterPath, &sipCpp, sipType_QPainterPath, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainterPath, sipName_swap, doc_QPainterPath_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QPainterPath___mul__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        const QTransform* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPainterPath, &a0, sipType_QTransform, &a1))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainterPath___isub__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainterPath)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainterPath *sipCpp = reinterpret_cast<QPainterPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainterPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPainterPath, &a0))
        {
            sipCpp->QPainterPath::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPainterPath___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainterPath)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainterPath *sipCpp = reinterpret_cast<QPainterPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainterPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPainterPath, &a0))
        {
            sipCpp->QPainterPath::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPainterPath___ior__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainterPath)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainterPath *sipCpp = reinterpret_cast<QPainterPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainterPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPainterPath, &a0))
        {
            sipCpp->QPainterPath::operator|=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPainterPath___iand__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainterPath)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainterPath *sipCpp = reinterpret_cast<QPainterPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainterPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPainterPath, &a0))
        {
            sipCpp->QPainterPath::operator&=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPainterPath___sub__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___sub__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainterPath* a0;
        const QPainterPath* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPainterPath, &a0, sipType_QPainterPath, &a1))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath((*a0 - *a1));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,sub_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainterPath___add__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___add__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainterPath* a0;
        const QPainterPath* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPainterPath, &a0, sipType_QPainterPath, &a1))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath((*a0 + *a1));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,add_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainterPath___or__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainterPath* a0;
        const QPainterPath* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPainterPath, &a0, sipType_QPainterPath, &a1))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath((*a0 | *a1));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainterPath___and__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainterPath* a0;
        const QPainterPath* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QPainterPath, &a0, sipType_QPainterPath, &a1))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath((*a0 & *a1));

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainterPath___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPainterPath *sipCpp = reinterpret_cast<QPainterPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainterPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPainterPath, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPainterPath::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPainterPath,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPainterPath___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPainterPath___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPainterPath *sipCpp = reinterpret_cast<QPainterPath *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainterPath));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPainterPath, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QPainterPath::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPainterPath,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPainterPath(void *, const sipTypeDef *);}
static void *cast_QPainterPath(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPainterPath)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPainterPath(void *, int);}
static void release_QPainterPath(void *sipCppV,int)
{
    delete reinterpret_cast<QPainterPath *>(sipCppV);
}


extern "C" {static void assign_QPainterPath(void *, SIP_SSIZE_T, const void *);}
static void assign_QPainterPath(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPainterPath *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPainterPath *>(sipSrc);
}


extern "C" {static void *array_QPainterPath(SIP_SSIZE_T);}
static void *array_QPainterPath(SIP_SSIZE_T sipNrElem)
{
    return new QPainterPath[sipNrElem];
}


extern "C" {static void *copy_QPainterPath(const void *, SIP_SSIZE_T);}
static void *copy_QPainterPath(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPainterPath(reinterpret_cast<const QPainterPath *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPainterPath(sipSimpleWrapper *);}
static void dealloc_QPainterPath(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPainterPath(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPainterPath(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPainterPath(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPainterPath *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPainterPath();

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPointF, &a0, &a0State))
        {
            sipCpp = new QPainterPath(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipCpp;
        }
    }

    {
        const QPainterPath* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPainterPath, &a0))
        {
            sipCpp = new QPainterPath(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPainterPath[] = {
    {(void *)slot_QPainterPath___mul__, mul_slot},
    {(void *)slot_QPainterPath___isub__, isub_slot},
    {(void *)slot_QPainterPath___iadd__, iadd_slot},
    {(void *)slot_QPainterPath___ior__, ior_slot},
    {(void *)slot_QPainterPath___iand__, iand_slot},
    {(void *)slot_QPainterPath___sub__, sub_slot},
    {(void *)slot_QPainterPath___add__, add_slot},
    {(void *)slot_QPainterPath___or__, or_slot},
    {(void *)slot_QPainterPath___and__, and_slot},
    {(void *)slot_QPainterPath___ne__, ne_slot},
    {(void *)slot_QPainterPath___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPainterPath[] = {
    {SIP_MLNAME_CAST(sipName_addEllipse), meth_QPainterPath_addEllipse, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_addEllipse)},
    {SIP_MLNAME_CAST(sipName_addPath), meth_QPainterPath_addPath, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_addPath)},
    {SIP_MLNAME_CAST(sipName_addPolygon), meth_QPainterPath_addPolygon, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_addPolygon)},
    {SIP_MLNAME_CAST(sipName_addRect), meth_QPainterPath_addRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_addRect)},
    {SIP_MLNAME_CAST(sipName_addRegion), meth_QPainterPath_addRegion, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_addRegion)},
    {SIP_MLNAME_CAST(sipName_addRoundedRect), (PyCFunction)meth_QPainterPath_addRoundedRect, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainterPath_addRoundedRect)},
    {SIP_MLNAME_CAST(sipName_addText), meth_QPainterPath_addText, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_addText)},
    {SIP_MLNAME_CAST(sipName_angleAtPercent), meth_QPainterPath_angleAtPercent, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_angleAtPercent)},
    {SIP_MLNAME_CAST(sipName_arcMoveTo), meth_QPainterPath_arcMoveTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_arcMoveTo)},
    {SIP_MLNAME_CAST(sipName_arcTo), meth_QPainterPath_arcTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_arcTo)},
    {SIP_MLNAME_CAST(sipName_boundingRect), meth_QPainterPath_boundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_boundingRect)},
    {SIP_MLNAME_CAST(sipName_closeSubpath), meth_QPainterPath_closeSubpath, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_closeSubpath)},
    {SIP_MLNAME_CAST(sipName_connectPath), meth_QPainterPath_connectPath, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_connectPath)},
    {SIP_MLNAME_CAST(sipName_contains), meth_QPainterPath_contains, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_contains)},
    {SIP_MLNAME_CAST(sipName_controlPointRect), meth_QPainterPath_controlPointRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_controlPointRect)},
    {SIP_MLNAME_CAST(sipName_cubicTo), meth_QPainterPath_cubicTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_cubicTo)},
    {SIP_MLNAME_CAST(sipName_currentPosition), meth_QPainterPath_currentPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_currentPosition)},
    {SIP_MLNAME_CAST(sipName_elementAt), meth_QPainterPath_elementAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_elementAt)},
    {SIP_MLNAME_CAST(sipName_elementCount), meth_QPainterPath_elementCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_elementCount)},
    {SIP_MLNAME_CAST(sipName_fillRule), meth_QPainterPath_fillRule, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_fillRule)},
    {SIP_MLNAME_CAST(sipName_intersected), meth_QPainterPath_intersected, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_intersected)},
    {SIP_MLNAME_CAST(sipName_intersects), meth_QPainterPath_intersects, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_intersects)},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_QPainterPath_isEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_isEmpty)},
    {SIP_MLNAME_CAST(sipName_length), meth_QPainterPath_length, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_length)},
    {SIP_MLNAME_CAST(sipName_lineTo), meth_QPainterPath_lineTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_lineTo)},
    {SIP_MLNAME_CAST(sipName_moveTo), meth_QPainterPath_moveTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_moveTo)},
    {SIP_MLNAME_CAST(sipName_percentAtLength), meth_QPainterPath_percentAtLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_percentAtLength)},
    {SIP_MLNAME_CAST(sipName_pointAtPercent), meth_QPainterPath_pointAtPercent, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_pointAtPercent)},
    {SIP_MLNAME_CAST(sipName_quadTo), meth_QPainterPath_quadTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_quadTo)},
    {SIP_MLNAME_CAST(sipName_setElementPositionAt), meth_QPainterPath_setElementPositionAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_setElementPositionAt)},
    {SIP_MLNAME_CAST(sipName_setFillRule), meth_QPainterPath_setFillRule, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_setFillRule)},
    {SIP_MLNAME_CAST(sipName_simplified), meth_QPainterPath_simplified, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_simplified)},
    {SIP_MLNAME_CAST(sipName_slopeAtPercent), meth_QPainterPath_slopeAtPercent, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_slopeAtPercent)},
    {SIP_MLNAME_CAST(sipName_subtracted), meth_QPainterPath_subtracted, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_subtracted)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPainterPath_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_swap)},
    {SIP_MLNAME_CAST(sipName_toFillPolygon), meth_QPainterPath_toFillPolygon, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_toFillPolygon)},
    {SIP_MLNAME_CAST(sipName_toFillPolygons), meth_QPainterPath_toFillPolygons, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_toFillPolygons)},
    {SIP_MLNAME_CAST(sipName_toReversed), meth_QPainterPath_toReversed, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_toReversed)},
    {SIP_MLNAME_CAST(sipName_toSubpathPolygons), meth_QPainterPath_toSubpathPolygons, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_toSubpathPolygons)},
    {SIP_MLNAME_CAST(sipName_translate), meth_QPainterPath_translate, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_translate)},
    {SIP_MLNAME_CAST(sipName_translated), meth_QPainterPath_translated, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_translated)},
    {SIP_MLNAME_CAST(sipName_united), meth_QPainterPath_united, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainterPath_united)}
};

static sipEnumMemberDef enummembers_QPainterPath[] = {
    {sipName_CurveToDataElement, static_cast<int>(QPainterPath::CurveToDataElement), 204},
    {sipName_CurveToElement, static_cast<int>(QPainterPath::CurveToElement), 204},
    {sipName_LineToElement, static_cast<int>(QPainterPath::LineToElement), 204},
    {sipName_MoveToElement, static_cast<int>(QPainterPath::MoveToElement), 204},
};

PyDoc_STRVAR(doc_QPainterPath, "\1QPainterPath()\n"
    "QPainterPath(QPointF)\n"
    "QPainterPath(QPainterPath)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPainterPath = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPainterPath,
        {0}
    },
    {
        sipNameNr_QPainterPath,
        {0, 0, 1},
        42, methods_QPainterPath,
        4, enummembers_QPainterPath,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainterPath,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPainterPath,
    init_type_QPainterPath,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPainterPath,
    assign_QPainterPath,
    array_QPainterPath,
    copy_QPainterPath,
    release_QPainterPath,
    cast_QPainterPath,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 178 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 87734 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 87738 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 87741 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 87744 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 87747 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 87750 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 87753 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 87756 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 87759 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 87762 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 87765 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 87768 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPaintEngineState_state, "QPaintEngineState.state() -> QPaintEngine.DirtyFlags");

extern "C" {static PyObject *meth_QPaintEngineState_state(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QPaintEngine::DirtyFlags*sipRes;

            sipRes = new QPaintEngine::DirtyFlags(sipCpp->state());

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_DirtyFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_state, doc_QPaintEngineState_state);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_pen, "QPaintEngineState.pen() -> QPen");

extern "C" {static PyObject *meth_QPaintEngineState_pen(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_pen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QPen*sipRes;

            sipRes = new QPen(sipCpp->pen());

            return sipConvertFromNewType(sipRes,sipType_QPen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_pen, doc_QPaintEngineState_pen);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_brush, "QPaintEngineState.brush() -> QBrush");

extern "C" {static PyObject *meth_QPaintEngineState_brush(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_brush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->brush());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_brush, doc_QPaintEngineState_brush);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_brushOrigin, "QPaintEngineState.brushOrigin() -> QPointF");

extern "C" {static PyObject *meth_QPaintEngineState_brushOrigin(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_brushOrigin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->brushOrigin());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_brushOrigin, doc_QPaintEngineState_brushOrigin);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_backgroundBrush, "QPaintEngineState.backgroundBrush() -> QBrush");

extern "C" {static PyObject *meth_QPaintEngineState_backgroundBrush(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_backgroundBrush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->backgroundBrush());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_backgroundBrush, doc_QPaintEngineState_backgroundBrush);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_backgroundMode, "QPaintEngineState.backgroundMode() -> Qt.BGMode");

extern "C" {static PyObject *meth_QPaintEngineState_backgroundMode(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_backgroundMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            Qt::BGMode sipRes;

            sipRes = sipCpp->backgroundMode();

            return sipConvertFromEnum(sipRes,sipType_Qt_BGMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_backgroundMode, doc_QPaintEngineState_backgroundMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_font, "QPaintEngineState.font() -> QFont");

extern "C" {static PyObject *meth_QPaintEngineState_font(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_font(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QFont*sipRes;

            sipRes = new QFont(sipCpp->font());

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_font, doc_QPaintEngineState_font);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_opacity, "QPaintEngineState.opacity() -> float");

extern "C" {static PyObject *meth_QPaintEngineState_opacity(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_opacity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->opacity();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_opacity, doc_QPaintEngineState_opacity);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_clipOperation, "QPaintEngineState.clipOperation() -> Qt.ClipOperation");

extern "C" {static PyObject *meth_QPaintEngineState_clipOperation(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_clipOperation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            Qt::ClipOperation sipRes;

            sipRes = sipCpp->clipOperation();

            return sipConvertFromEnum(sipRes,sipType_Qt_ClipOperation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_clipOperation, doc_QPaintEngineState_clipOperation);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_clipRegion, "QPaintEngineState.clipRegion() -> QRegion");

extern "C" {static PyObject *meth_QPaintEngineState_clipRegion(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_clipRegion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->clipRegion());

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_clipRegion, doc_QPaintEngineState_clipRegion);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_clipPath, "QPaintEngineState.clipPath() -> QPainterPath");

extern "C" {static PyObject *meth_QPaintEngineState_clipPath(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_clipPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->clipPath());

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_clipPath, doc_QPaintEngineState_clipPath);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_isClipEnabled, "QPaintEngineState.isClipEnabled() -> bool");

extern "C" {static PyObject *meth_QPaintEngineState_isClipEnabled(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_isClipEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isClipEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_isClipEnabled, doc_QPaintEngineState_isClipEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_renderHints, "QPaintEngineState.renderHints() -> QPainter.RenderHints");

extern "C" {static PyObject *meth_QPaintEngineState_renderHints(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_renderHints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QPainter::RenderHints*sipRes;

            sipRes = new QPainter::RenderHints(sipCpp->renderHints());

            return sipConvertFromNewType(sipRes,sipType_QPainter_RenderHints,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_renderHints, doc_QPaintEngineState_renderHints);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_compositionMode, "QPaintEngineState.compositionMode() -> QPainter.CompositionMode");

extern "C" {static PyObject *meth_QPaintEngineState_compositionMode(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_compositionMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QPainter::CompositionMode sipRes;

            sipRes = sipCpp->compositionMode();

            return sipConvertFromEnum(sipRes,sipType_QPainter_CompositionMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_compositionMode, doc_QPaintEngineState_compositionMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_painter, "QPaintEngineState.painter() -> QPainter");

extern "C" {static PyObject *meth_QPaintEngineState_painter(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_painter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QPainter*sipRes;

            sipRes = sipCpp->painter();

            return sipConvertFromType(sipRes,sipType_QPainter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_painter, doc_QPaintEngineState_painter);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_transform, "QPaintEngineState.transform() -> QTransform");

extern "C" {static PyObject *meth_QPaintEngineState_transform(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_transform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->transform());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_transform, doc_QPaintEngineState_transform);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_brushNeedsResolving, "QPaintEngineState.brushNeedsResolving() -> bool");

extern "C" {static PyObject *meth_QPaintEngineState_brushNeedsResolving(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_brushNeedsResolving(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->brushNeedsResolving();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_brushNeedsResolving, doc_QPaintEngineState_brushNeedsResolving);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngineState_penNeedsResolving, "QPaintEngineState.penNeedsResolving() -> bool");

extern "C" {static PyObject *meth_QPaintEngineState_penNeedsResolving(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngineState_penNeedsResolving(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngineState *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngineState, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->penNeedsResolving();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngineState, sipName_penNeedsResolving, doc_QPaintEngineState_penNeedsResolving);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPaintEngineState(void *, const sipTypeDef *);}
static void *cast_QPaintEngineState(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPaintEngineState)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPaintEngineState(void *, int);}
static void release_QPaintEngineState(void *sipCppV,int)
{
    delete reinterpret_cast<QPaintEngineState *>(sipCppV);
}


extern "C" {static void assign_QPaintEngineState(void *, SIP_SSIZE_T, const void *);}
static void assign_QPaintEngineState(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPaintEngineState *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPaintEngineState *>(sipSrc);
}


extern "C" {static void *array_QPaintEngineState(SIP_SSIZE_T);}
static void *array_QPaintEngineState(SIP_SSIZE_T sipNrElem)
{
    return new QPaintEngineState[sipNrElem];
}


extern "C" {static void *copy_QPaintEngineState(const void *, SIP_SSIZE_T);}
static void *copy_QPaintEngineState(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPaintEngineState(reinterpret_cast<const QPaintEngineState *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPaintEngineState(sipSimpleWrapper *);}
static void dealloc_QPaintEngineState(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPaintEngineState(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPaintEngineState(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPaintEngineState(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPaintEngineState *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPaintEngineState();

            return sipCpp;
        }
    }

    {
        const QPaintEngineState* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPaintEngineState, &a0))
        {
            sipCpp = new QPaintEngineState(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPaintEngineState[] = {
    {SIP_MLNAME_CAST(sipName_backgroundBrush), meth_QPaintEngineState_backgroundBrush, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_backgroundBrush)},
    {SIP_MLNAME_CAST(sipName_backgroundMode), meth_QPaintEngineState_backgroundMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_backgroundMode)},
    {SIP_MLNAME_CAST(sipName_brush), meth_QPaintEngineState_brush, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_brush)},
    {SIP_MLNAME_CAST(sipName_brushNeedsResolving), meth_QPaintEngineState_brushNeedsResolving, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_brushNeedsResolving)},
    {SIP_MLNAME_CAST(sipName_brushOrigin), meth_QPaintEngineState_brushOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_brushOrigin)},
    {SIP_MLNAME_CAST(sipName_clipOperation), meth_QPaintEngineState_clipOperation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_clipOperation)},
    {SIP_MLNAME_CAST(sipName_clipPath), meth_QPaintEngineState_clipPath, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_clipPath)},
    {SIP_MLNAME_CAST(sipName_clipRegion), meth_QPaintEngineState_clipRegion, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_clipRegion)},
    {SIP_MLNAME_CAST(sipName_compositionMode), meth_QPaintEngineState_compositionMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_compositionMode)},
    {SIP_MLNAME_CAST(sipName_font), meth_QPaintEngineState_font, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_font)},
    {SIP_MLNAME_CAST(sipName_isClipEnabled), meth_QPaintEngineState_isClipEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_isClipEnabled)},
    {SIP_MLNAME_CAST(sipName_opacity), meth_QPaintEngineState_opacity, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_opacity)},
    {SIP_MLNAME_CAST(sipName_painter), meth_QPaintEngineState_painter, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_painter)},
    {SIP_MLNAME_CAST(sipName_pen), meth_QPaintEngineState_pen, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_pen)},
    {SIP_MLNAME_CAST(sipName_penNeedsResolving), meth_QPaintEngineState_penNeedsResolving, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_penNeedsResolving)},
    {SIP_MLNAME_CAST(sipName_renderHints), meth_QPaintEngineState_renderHints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_renderHints)},
    {SIP_MLNAME_CAST(sipName_state), meth_QPaintEngineState_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_state)},
    {SIP_MLNAME_CAST(sipName_transform), meth_QPaintEngineState_transform, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngineState_transform)}
};

PyDoc_STRVAR(doc_QPaintEngineState, "\1QPaintEngineState()\n"
    "QPaintEngineState(QPaintEngineState)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPaintEngineState = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPaintEngineState,
        {0}
    },
    {
        sipNameNr_QPaintEngineState,
        {0, 0, 1},
        18, methods_QPaintEngineState,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintEngineState,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPaintEngineState,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPaintEngineState,
    assign_QPaintEngineState,
    array_QPaintEngineState,
    copy_QPaintEngineState,
    release_QPaintEngineState,
    cast_QPaintEngineState,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 88418 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 88422 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QPaintEngine_DirtyFlags___bool__(PyObject *);}
static int slot_QPaintEngine_DirtyFlags___bool__(PyObject *sipSelf)
{
    QPaintEngine::DirtyFlags *sipCpp = reinterpret_cast<QPaintEngine::DirtyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_DirtyFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::DirtyFlags::Int() != 0);
#line 88440 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPaintEngine::DirtyFlags *sipCpp = reinterpret_cast<QPaintEngine::DirtyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_DirtyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPaintEngine::DirtyFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPaintEngine_DirtyFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::DirtyFlags::Int() != a0->operator QPaintEngine::DirtyFlags::Int());
#line 88470 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPaintEngine::DirtyFlags *>(a0),sipType_QPaintEngine_DirtyFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPaintEngine_DirtyFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPaintEngine::DirtyFlags *sipCpp = reinterpret_cast<QPaintEngine::DirtyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_DirtyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPaintEngine::DirtyFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPaintEngine_DirtyFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::DirtyFlags::Int() == a0->operator QPaintEngine::DirtyFlags::Int());
#line 88506 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPaintEngine::DirtyFlags *>(a0),sipType_QPaintEngine_DirtyFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPaintEngine_DirtyFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___invert__(PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___invert__(PyObject *sipSelf)
{
    QPaintEngine::DirtyFlags *sipCpp = reinterpret_cast<QPaintEngine::DirtyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_DirtyFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QPaintEngine::DirtyFlags*sipRes;

            sipRes = new QPaintEngine::DirtyFlags(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_DirtyFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::DirtyFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPaintEngine_DirtyFlags, &a0, &a0State, &a1))
        {
            QPaintEngine::DirtyFlags*sipRes;

            sipRes = new QPaintEngine::DirtyFlags((*a0 & a1));
            sipReleaseType(a0,sipType_QPaintEngine_DirtyFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_DirtyFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::DirtyFlags* a0;
        int a0State = 0;
        QPaintEngine::DirtyFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QPaintEngine_DirtyFlags, &a0, &a0State, sipType_QPaintEngine_DirtyFlags, &a1, &a1State))
        {
            QPaintEngine::DirtyFlags*sipRes;

            sipRes = new QPaintEngine::DirtyFlags((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QPaintEngine_DirtyFlags,a0State);
            sipReleaseType(a1,sipType_QPaintEngine_DirtyFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_DirtyFlags,NULL);
        }
    }

    {
        QPaintEngine::DirtyFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPaintEngine_DirtyFlags, &a0, &a0State, &a1))
        {
            QPaintEngine::DirtyFlags*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QPaintEngine::DirtyFlags(*a0 ^ a1);
#line 88609 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QPaintEngine_DirtyFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_DirtyFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::DirtyFlags* a0;
        int a0State = 0;
        QPaintEngine::DirtyFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QPaintEngine_DirtyFlags, &a0, &a0State, sipType_QPaintEngine_DirtyFlags, &a1, &a1State))
        {
            QPaintEngine::DirtyFlags*sipRes;

            sipRes = new QPaintEngine::DirtyFlags((*a0 | *a1));
            sipReleaseType(a0,sipType_QPaintEngine_DirtyFlags,a0State);
            sipReleaseType(a1,sipType_QPaintEngine_DirtyFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_DirtyFlags,NULL);
        }
    }

    {
        QPaintEngine::DirtyFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPaintEngine_DirtyFlags, &a0, &a0State, &a1))
        {
            QPaintEngine::DirtyFlags*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QPaintEngine::DirtyFlags(*a0 | a1);
#line 88659 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QPaintEngine_DirtyFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_DirtyFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___int__(PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___int__(PyObject *sipSelf)
{
    QPaintEngine::DirtyFlags *sipCpp = reinterpret_cast<QPaintEngine::DirtyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_DirtyFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPaintEngine_DirtyFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPaintEngine::DirtyFlags *sipCpp = reinterpret_cast<QPaintEngine::DirtyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_DirtyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::DirtyFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPaintEngine_DirtyFlags, &a0, &a0State))
        {
            sipCpp->QPaintEngine::DirtyFlags::operator^=(*a0);
            sipReleaseType(a0,sipType_QPaintEngine_DirtyFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPaintEngine_DirtyFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPaintEngine::DirtyFlags *sipCpp = reinterpret_cast<QPaintEngine::DirtyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_DirtyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::DirtyFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPaintEngine_DirtyFlags, &a0, &a0State))
        {
            sipCpp->QPaintEngine::DirtyFlags::operator|=(*a0);
            sipReleaseType(a0,sipType_QPaintEngine_DirtyFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPaintEngine_DirtyFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_DirtyFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPaintEngine_DirtyFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPaintEngine::DirtyFlags *sipCpp = reinterpret_cast<QPaintEngine::DirtyFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_DirtyFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QPaintEngine::DirtyFlags::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPaintEngine_DirtyFlags(void *, const sipTypeDef *);}
static void *cast_QPaintEngine_DirtyFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPaintEngine_DirtyFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPaintEngine_DirtyFlags(void *, int);}
static void release_QPaintEngine_DirtyFlags(void *sipCppV,int)
{
    delete reinterpret_cast<QPaintEngine::DirtyFlags *>(sipCppV);
}


extern "C" {static void assign_QPaintEngine_DirtyFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QPaintEngine_DirtyFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPaintEngine::DirtyFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPaintEngine::DirtyFlags *>(sipSrc);
}


extern "C" {static void *array_QPaintEngine_DirtyFlags(SIP_SSIZE_T);}
static void *array_QPaintEngine_DirtyFlags(SIP_SSIZE_T sipNrElem)
{
    return new QPaintEngine::DirtyFlags[sipNrElem];
}


extern "C" {static void *copy_QPaintEngine_DirtyFlags(const void *, SIP_SSIZE_T);}
static void *copy_QPaintEngine_DirtyFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPaintEngine::DirtyFlags(reinterpret_cast<const QPaintEngine::DirtyFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPaintEngine_DirtyFlags(sipSimpleWrapper *);}
static void dealloc_QPaintEngine_DirtyFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPaintEngine_DirtyFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPaintEngine_DirtyFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPaintEngine_DirtyFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPaintEngine::DirtyFlags *sipCpp = 0;

    {
        const QPaintEngine::DirtyFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPaintEngine_DirtyFlags, &a0, &a0State))
        {
            sipCpp = new QPaintEngine::DirtyFlags(*a0);
            sipReleaseType(const_cast<QPaintEngine::DirtyFlags *>(a0),sipType_QPaintEngine_DirtyFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QPaintEngine::DirtyFlags(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPaintEngine::DirtyFlags();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QPaintEngine_DirtyFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QPaintEngine_DirtyFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QPaintEngine::DirtyFlags **sipCppPtr = reinterpret_cast<QPaintEngine::DirtyFlags **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QPaintEngine::DirtyFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QPaintEngine_DirtyFlag)) ||
            sipCanConvertToType(sipPy, sipType_QPaintEngine_DirtyFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QPaintEngine_DirtyFlag)))
{
    *sipCppPtr = new QPaintEngine::DirtyFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QPaintEngine::DirtyFlags *>(sipConvertToType(sipPy, sipType_QPaintEngine_DirtyFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 88936 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPaintEngine_DirtyFlags[] = {
    {(void *)slot_QPaintEngine_DirtyFlags___bool__, bool_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___ne__, ne_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___eq__, eq_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___invert__, invert_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___and__, and_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___xor__, xor_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___or__, or_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___int__, int_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___ixor__, ixor_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___ior__, ior_slot},
    {(void *)slot_QPaintEngine_DirtyFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QPaintEngine_DirtyFlags, "\1QPaintEngine.DirtyFlags(QPaintEngine.DirtyFlags)\n"
    "QPaintEngine.DirtyFlags(int)\n"
    "QPaintEngine.DirtyFlags()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPaintEngine_DirtyFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPaintEngine__DirtyFlags,
        {0}
    },
    {
        sipNameNr_DirtyFlags,
        {186, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintEngine_DirtyFlags,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPaintEngine_DirtyFlags,
    init_type_QPaintEngine_DirtyFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPaintEngine_DirtyFlags,
    assign_QPaintEngine_DirtyFlags,
    array_QPaintEngine_DirtyFlags,
    copy_QPaintEngine_DirtyFlags,
    release_QPaintEngine_DirtyFlags,
    cast_QPaintEngine_DirtyFlags,
    convertTo_QPaintEngine_DirtyFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 89018 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 89022 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QPaintEngine_PaintEngineFeatures___bool__(PyObject *);}
static int slot_QPaintEngine_PaintEngineFeatures___bool__(PyObject *sipSelf)
{
    QPaintEngine::PaintEngineFeatures *sipCpp = reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_PaintEngineFeatures));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::PaintEngineFeatures::Int() != 0);
#line 89040 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPaintEngine::PaintEngineFeatures *sipCpp = reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_PaintEngineFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::PaintEngineFeatures::Int() != a0->operator QPaintEngine::PaintEngineFeatures::Int());
#line 89070 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPaintEngine::PaintEngineFeatures *>(a0),sipType_QPaintEngine_PaintEngineFeatures,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPaintEngine_PaintEngineFeatures,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPaintEngine::PaintEngineFeatures *sipCpp = reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_PaintEngineFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPaintEngine::PaintEngineFeatures::Int() == a0->operator QPaintEngine::PaintEngineFeatures::Int());
#line 89106 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPaintEngine::PaintEngineFeatures *>(a0),sipType_QPaintEngine_PaintEngineFeatures,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPaintEngine_PaintEngineFeatures,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___invert__(PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___invert__(PyObject *sipSelf)
{
    QPaintEngine::PaintEngineFeatures *sipCpp = reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_PaintEngineFeatures));

    if (!sipCpp)
        return 0;


    {
        {
            QPaintEngine::PaintEngineFeatures*sipRes;

            sipRes = new QPaintEngine::PaintEngineFeatures(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_PaintEngineFeatures,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___and__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State, &a1))
        {
            QPaintEngine::PaintEngineFeatures*sipRes;

            sipRes = new QPaintEngine::PaintEngineFeatures((*a0 & a1));
            sipReleaseType(a0,sipType_QPaintEngine_PaintEngineFeatures,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_PaintEngineFeatures,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___xor__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;
        QPaintEngine::PaintEngineFeatures* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State, sipType_QPaintEngine_PaintEngineFeatures, &a1, &a1State))
        {
            QPaintEngine::PaintEngineFeatures*sipRes;

            sipRes = new QPaintEngine::PaintEngineFeatures((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QPaintEngine_PaintEngineFeatures,a0State);
            sipReleaseType(a1,sipType_QPaintEngine_PaintEngineFeatures,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_PaintEngineFeatures,NULL);
        }
    }

    {
        QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State, &a1))
        {
            QPaintEngine::PaintEngineFeatures*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QPaintEngine::PaintEngineFeatures(*a0 ^ a1);
#line 89209 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QPaintEngine_PaintEngineFeatures,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_PaintEngineFeatures,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___or__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;
        QPaintEngine::PaintEngineFeatures* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State, sipType_QPaintEngine_PaintEngineFeatures, &a1, &a1State))
        {
            QPaintEngine::PaintEngineFeatures*sipRes;

            sipRes = new QPaintEngine::PaintEngineFeatures((*a0 | *a1));
            sipReleaseType(a0,sipType_QPaintEngine_PaintEngineFeatures,a0State);
            sipReleaseType(a1,sipType_QPaintEngine_PaintEngineFeatures,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_PaintEngineFeatures,NULL);
        }
    }

    {
        QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State, &a1))
        {
            QPaintEngine::PaintEngineFeatures*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QPaintEngine::PaintEngineFeatures(*a0 | a1);
#line 89259 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QPaintEngine_PaintEngineFeatures,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPaintEngine_PaintEngineFeatures,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___int__(PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___int__(PyObject *sipSelf)
{
    QPaintEngine::PaintEngineFeatures *sipCpp = reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_PaintEngineFeatures));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPaintEngine_PaintEngineFeatures)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPaintEngine::PaintEngineFeatures *sipCpp = reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_PaintEngineFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State))
        {
            sipCpp->QPaintEngine::PaintEngineFeatures::operator^=(*a0);
            sipReleaseType(a0,sipType_QPaintEngine_PaintEngineFeatures,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___ior__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPaintEngine_PaintEngineFeatures)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPaintEngine::PaintEngineFeatures *sipCpp = reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_PaintEngineFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State))
        {
            sipCpp->QPaintEngine::PaintEngineFeatures::operator|=(*a0);
            sipReleaseType(a0,sipType_QPaintEngine_PaintEngineFeatures,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPaintEngine_PaintEngineFeatures___iand__(PyObject *,PyObject *);}
static PyObject *slot_QPaintEngine_PaintEngineFeatures___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPaintEngine_PaintEngineFeatures)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPaintEngine::PaintEngineFeatures *sipCpp = reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPaintEngine_PaintEngineFeatures));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QPaintEngine::PaintEngineFeatures::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPaintEngine_PaintEngineFeatures(void *, const sipTypeDef *);}
static void *cast_QPaintEngine_PaintEngineFeatures(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPaintEngine_PaintEngineFeatures)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPaintEngine_PaintEngineFeatures(void *, int);}
static void release_QPaintEngine_PaintEngineFeatures(void *sipCppV,int)
{
    delete reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipCppV);
}


extern "C" {static void assign_QPaintEngine_PaintEngineFeatures(void *, SIP_SSIZE_T, const void *);}
static void assign_QPaintEngine_PaintEngineFeatures(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPaintEngine::PaintEngineFeatures *>(sipSrc);
}


extern "C" {static void *array_QPaintEngine_PaintEngineFeatures(SIP_SSIZE_T);}
static void *array_QPaintEngine_PaintEngineFeatures(SIP_SSIZE_T sipNrElem)
{
    return new QPaintEngine::PaintEngineFeatures[sipNrElem];
}


extern "C" {static void *copy_QPaintEngine_PaintEngineFeatures(const void *, SIP_SSIZE_T);}
static void *copy_QPaintEngine_PaintEngineFeatures(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPaintEngine::PaintEngineFeatures(reinterpret_cast<const QPaintEngine::PaintEngineFeatures *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPaintEngine_PaintEngineFeatures(sipSimpleWrapper *);}
static void dealloc_QPaintEngine_PaintEngineFeatures(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPaintEngine_PaintEngineFeatures(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPaintEngine_PaintEngineFeatures(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPaintEngine_PaintEngineFeatures(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPaintEngine::PaintEngineFeatures *sipCpp = 0;

    {
        const QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State))
        {
            sipCpp = new QPaintEngine::PaintEngineFeatures(*a0);
            sipReleaseType(const_cast<QPaintEngine::PaintEngineFeatures *>(a0),sipType_QPaintEngine_PaintEngineFeatures,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QPaintEngine::PaintEngineFeatures(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPaintEngine::PaintEngineFeatures();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QPaintEngine_PaintEngineFeatures(PyObject *, void **, int *, PyObject *);}
static int convertTo_QPaintEngine_PaintEngineFeatures(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QPaintEngine::PaintEngineFeatures **sipCppPtr = reinterpret_cast<QPaintEngine::PaintEngineFeatures **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QPaintEngine::PaintEngineFeatures is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QPaintEngine_PaintEngineFeature)) ||
            sipCanConvertToType(sipPy, sipType_QPaintEngine_PaintEngineFeatures, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QPaintEngine_PaintEngineFeature)))
{
    *sipCppPtr = new QPaintEngine::PaintEngineFeatures(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QPaintEngine::PaintEngineFeatures *>(sipConvertToType(sipPy, sipType_QPaintEngine_PaintEngineFeatures, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 89536 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPaintEngine_PaintEngineFeatures[] = {
    {(void *)slot_QPaintEngine_PaintEngineFeatures___bool__, bool_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___ne__, ne_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___eq__, eq_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___invert__, invert_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___and__, and_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___xor__, xor_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___or__, or_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___int__, int_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___ixor__, ixor_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___ior__, ior_slot},
    {(void *)slot_QPaintEngine_PaintEngineFeatures___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QPaintEngine_PaintEngineFeatures, "\1QPaintEngine.PaintEngineFeatures(QPaintEngine.PaintEngineFeatures)\n"
    "QPaintEngine.PaintEngineFeatures(int)\n"
    "QPaintEngine.PaintEngineFeatures()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPaintEngine_PaintEngineFeatures = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPaintEngine__PaintEngineFeatures,
        {0}
    },
    {
        sipNameNr_PaintEngineFeatures,
        {186, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintEngine_PaintEngineFeatures,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPaintEngine_PaintEngineFeatures,
    init_type_QPaintEngine_PaintEngineFeatures,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPaintEngine_PaintEngineFeatures,
    assign_QPaintEngine_PaintEngineFeatures,
    array_QPaintEngine_PaintEngineFeatures,
    copy_QPaintEngine_PaintEngineFeatures,
    release_QPaintEngine_PaintEngineFeatures,
    cast_QPaintEngine_PaintEngineFeatures,
    convertTo_QPaintEngine_PaintEngineFeatures,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 89618 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 89622 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 89625 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 89628 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 89631 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 89634 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 89637 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 89640 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 89643 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 89646 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 89649 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 89652 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 89655 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qline.sip"
#include <qline.h>
#line 89658 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 96 "sip/QtCore/qline.sip"
#include <qline.h>
#line 89661 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 178 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 89664 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQPaintEngine : public QPaintEngine
{
public:
    sipQPaintEngine(QPaintEngine::PaintEngineFeatures);
    virtual ~sipQPaintEngine();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QPaintEngine::Type type() const;
    void drawImage(const QRectF&,const QImage&,const QRectF&,Qt::ImageConversionFlags);
    void drawTiledPixmap(const QRectF&,const QPixmap&,const QPointF&);
    void drawTextItem(const QPointF&,const QTextItem&);
    void drawPixmap(const QRectF&,const QPixmap&,const QRectF&);
    void drawPolygon(const QPoint*,int,QPaintEngine::PolygonDrawMode);
    void drawPolygon(const QPointF*,int,QPaintEngine::PolygonDrawMode);
    void drawPoints(const QPoint*,int);
    void drawPoints(const QPointF*,int);
    void drawPath(const QPainterPath&);
    void drawEllipse(const QRect&);
    void drawEllipse(const QRectF&);
    void drawLines(const QLineF*,int);
    void drawLines(const QLine*,int);
    void drawRects(const QRectF*,int);
    void drawRects(const QRect*,int);
    void updateState(const QPaintEngineState&);
    bool end();
    bool begin(QPaintDevice*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPaintEngine(const sipQPaintEngine &);
    sipQPaintEngine &operator = (const sipQPaintEngine &);

    char sipPyMethods[19];
};

sipQPaintEngine::sipQPaintEngine(QPaintEngine::PaintEngineFeatures a0): QPaintEngine(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPaintEngine::~sipQPaintEngine()
{
    sipCommonDtor(sipPySelf);
}

QPaintEngine::Type sipQPaintEngine::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_QPaintEngine,sipName_type);

    if (!sipMeth)
        return (QPaintEngine::Type)0;

    extern QPaintEngine::Type sipVH_QtGui_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_34(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPaintEngine::drawImage(const QRectF& a0,const QImage& a1,const QRectF& a2,Qt::ImageConversionFlags a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_drawImage);

    if (!sipMeth)
    {
        QPaintEngine::drawImage(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_QtGui_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRectF&,const QImage&,const QRectF&,Qt::ImageConversionFlags);

    sipVH_QtGui_35(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3);
}

void sipQPaintEngine::drawTiledPixmap(const QRectF& a0,const QPixmap& a1,const QPointF& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_drawTiledPixmap);

    if (!sipMeth)
    {
        QPaintEngine::drawTiledPixmap(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_36(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRectF&,const QPixmap&,const QPointF&);

    sipVH_QtGui_36(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

void sipQPaintEngine::drawTextItem(const QPointF& a0,const QTextItem& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_drawTextItem);

    if (!sipMeth)
    {
        QPaintEngine::drawTextItem(a0,a1);
        return;
    }

    extern void sipVH_QtGui_37(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPointF&,const QTextItem&);

    sipVH_QtGui_37(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPaintEngine::drawPixmap(const QRectF& a0,const QPixmap& a1,const QRectF& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,sipName_QPaintEngine,sipName_drawPixmap);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_38(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRectF&,const QPixmap&,const QRectF&);

    sipVH_QtGui_38(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

void sipQPaintEngine::drawPolygon(const QPoint*a0,int a1,QPaintEngine::PolygonDrawMode a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_drawPolygon);

    if (!sipMeth)
    {
        QPaintEngine::drawPolygon(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_39(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPoint*,int,QPaintEngine::PolygonDrawMode);

    sipVH_QtGui_39(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

void sipQPaintEngine::drawPolygon(const QPointF*a0,int a1,QPaintEngine::PolygonDrawMode a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_drawPolygon);

    if (!sipMeth)
    {
        QPaintEngine::drawPolygon(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_40(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPointF*,int,QPaintEngine::PolygonDrawMode);

    sipVH_QtGui_40(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

void sipQPaintEngine::drawPoints(const QPoint*a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_drawPoints);

    if (!sipMeth)
    {
        QPaintEngine::drawPoints(a0,a1);
        return;
    }

    extern void sipVH_QtGui_41(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPoint*,int);

    sipVH_QtGui_41(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPaintEngine::drawPoints(const QPointF*a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_drawPoints);

    if (!sipMeth)
    {
        QPaintEngine::drawPoints(a0,a1);
        return;
    }

    extern void sipVH_QtGui_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPointF*,int);

    sipVH_QtGui_42(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPaintEngine::drawPath(const QPainterPath& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_drawPath);

    if (!sipMeth)
    {
        QPaintEngine::drawPath(a0);
        return;
    }

    extern void sipVH_QtGui_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPainterPath&);

    sipVH_QtGui_43(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPaintEngine::drawEllipse(const QRect& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_drawEllipse);

    if (!sipMeth)
    {
        QPaintEngine::drawEllipse(a0);
        return;
    }

    extern void sipVH_QtGui_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRect&);

    sipVH_QtGui_44(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPaintEngine::drawEllipse(const QRectF& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_drawEllipse);

    if (!sipMeth)
    {
        QPaintEngine::drawEllipse(a0);
        return;
    }

    extern void sipVH_QtGui_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRectF&);

    sipVH_QtGui_45(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPaintEngine::drawLines(const QLineF*a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_drawLines);

    if (!sipMeth)
    {
        QPaintEngine::drawLines(a0,a1);
        return;
    }

    extern void sipVH_QtGui_46(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QLineF*,int);

    sipVH_QtGui_46(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPaintEngine::drawLines(const QLine*a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_drawLines);

    if (!sipMeth)
    {
        QPaintEngine::drawLines(a0,a1);
        return;
    }

    extern void sipVH_QtGui_47(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QLine*,int);

    sipVH_QtGui_47(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPaintEngine::drawRects(const QRectF*a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_drawRects);

    if (!sipMeth)
    {
        QPaintEngine::drawRects(a0,a1);
        return;
    }

    extern void sipVH_QtGui_48(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRectF*,int);

    sipVH_QtGui_48(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPaintEngine::drawRects(const QRect*a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_drawRects);

    if (!sipMeth)
    {
        QPaintEngine::drawRects(a0,a1);
        return;
    }

    extern void sipVH_QtGui_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QRect*,int);

    sipVH_QtGui_49(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQPaintEngine::updateState(const QPaintEngineState& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,sipName_QPaintEngine,sipName_updateState);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_50(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPaintEngineState&);

    sipVH_QtGui_50(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPaintEngine::end()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,sipName_QPaintEngine,sipName_end);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtGui_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQPaintEngine::begin(QPaintDevice*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,sipName_QPaintEngine,sipName_begin);

    if (!sipMeth)
        return 0;

    extern bool sipVH_QtGui_51(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice*);

    return sipVH_QtGui_51(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QPaintEngine_isActive, "QPaintEngine.isActive() -> bool");

extern "C" {static PyObject *meth_QPaintEngine_isActive(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_isActive(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngine, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isActive();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_isActive, doc_QPaintEngine_isActive);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_setActive, "QPaintEngine.setActive(bool)");

extern "C" {static PyObject *meth_QPaintEngine_setActive(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_setActive(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPaintEngine, &sipCpp, &a0))
        {
            sipCpp->setActive(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_setActive, doc_QPaintEngine_setActive);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_begin, "QPaintEngine.begin(QPaintDevice) -> bool");

extern "C" {static PyObject *meth_QPaintEngine_begin(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_begin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPaintDevice* a0;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPaintDevice, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPaintEngine, sipName_begin);
                return NULL;
            }

            sipRes = sipCpp->begin(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_begin, doc_QPaintEngine_begin);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_end, "QPaintEngine.end() -> bool");

extern "C" {static PyObject *meth_QPaintEngine_end(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_end(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngine, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPaintEngine, sipName_end);
                return NULL;
            }

            sipRes = sipCpp->end();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_end, doc_QPaintEngine_end);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_updateState, "QPaintEngine.updateState(QPaintEngineState)");

extern "C" {static PyObject *meth_QPaintEngine_updateState(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_updateState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QPaintEngineState* a0;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPaintEngineState, &a0))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPaintEngine, sipName_updateState);
                return NULL;
            }

            sipCpp->updateState(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_updateState, doc_QPaintEngine_updateState);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawRects, "QPaintEngine.drawRects(QRect)\n"
    "QPaintEngine.drawRects(QRectF)");

extern "C" {static PyObject *meth_QPaintEngine_drawRects(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawRects(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QRect* a0;
        SIP_SSIZE_T a1;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Br", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QRect, &a0, &a1))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawRects(a0,(int)a1) : sipCpp->drawRects(a0,(int)a1));
            delete[] a0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRectF* a0;
        SIP_SSIZE_T a1;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Br", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QRectF, &a0, &a1))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawRects(a0,(int)a1) : sipCpp->drawRects(a0,(int)a1));
            delete[] a0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawRects, doc_QPaintEngine_drawRects);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawLines, "QPaintEngine.drawLines(QLine)\n"
    "QPaintEngine.drawLines(QLineF)");

extern "C" {static PyObject *meth_QPaintEngine_drawLines(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawLines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QLine* a0;
        SIP_SSIZE_T a1;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Br", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QLine, &a0, &a1))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawLines(a0,(int)a1) : sipCpp->drawLines(a0,(int)a1));
            delete[] a0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QLineF* a0;
        SIP_SSIZE_T a1;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Br", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QLineF, &a0, &a1))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawLines(a0,(int)a1) : sipCpp->drawLines(a0,(int)a1));
            delete[] a0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawLines, doc_QPaintEngine_drawLines);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawEllipse, "QPaintEngine.drawEllipse(QRectF)\n"
    "QPaintEngine.drawEllipse(QRect)");

extern "C" {static PyObject *meth_QPaintEngine_drawEllipse(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawEllipse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QRectF* a0;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QRectF, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawEllipse(*a0) : sipCpp->drawEllipse(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QRect, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawEllipse(*a0) : sipCpp->drawEllipse(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawEllipse, doc_QPaintEngine_drawEllipse);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawPath, "QPaintEngine.drawPath(QPainterPath)");

extern "C" {static PyObject *meth_QPaintEngine_drawPath(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPainterPath* a0;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPainterPath, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawPath(*a0) : sipCpp->drawPath(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawPath, doc_QPaintEngine_drawPath);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawPoints, "QPaintEngine.drawPoints(QPointF)\n"
    "QPaintEngine.drawPoints(QPoint)");

extern "C" {static PyObject *meth_QPaintEngine_drawPoints(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPointF* a0;
        SIP_SSIZE_T a1;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Br", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPointF, &a0, &a1))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawPoints(a0,(int)a1) : sipCpp->drawPoints(a0,(int)a1));
            delete[] a0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        SIP_SSIZE_T a1;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Br", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawPoints(a0,(int)a1) : sipCpp->drawPoints(a0,(int)a1));
            delete[] a0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawPoints, doc_QPaintEngine_drawPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawPolygon, "QPaintEngine.drawPolygon(QPointF, QPaintEngine.PolygonDrawMode)\n"
    "QPaintEngine.drawPolygon(QPoint, QPaintEngine.PolygonDrawMode)");

extern "C" {static PyObject *meth_QPaintEngine_drawPolygon(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawPolygon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPointF* a0;
        SIP_SSIZE_T a1;
        QPaintEngine::PolygonDrawMode a2;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BrE", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPointF, &a0, &a1, sipType_QPaintEngine_PolygonDrawMode, &a2))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawPolygon(a0,(int)a1,a2) : sipCpp->drawPolygon(a0,(int)a1,a2));
            delete[] a0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        SIP_SSIZE_T a1;
        QPaintEngine::PolygonDrawMode a2;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BrE", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPoint, &a0, &a1, sipType_QPaintEngine_PolygonDrawMode, &a2))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawPolygon(a0,(int)a1,a2) : sipCpp->drawPolygon(a0,(int)a1,a2));
            delete[] a0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawPolygon, doc_QPaintEngine_drawPolygon);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawPixmap, "QPaintEngine.drawPixmap(QRectF, QPixmap, QRectF)");

extern "C" {static PyObject *meth_QPaintEngine_drawPixmap(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawPixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QRectF* a0;
        const QPixmap* a1;
        const QRectF* a2;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QRectF, &a0, sipType_QPixmap, &a1, sipType_QRectF, &a2))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPaintEngine, sipName_drawPixmap);
                return NULL;
            }

            sipCpp->drawPixmap(*a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawPixmap, doc_QPaintEngine_drawPixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawTextItem, "QPaintEngine.drawTextItem(QPointF, QTextItem)");

extern "C" {static PyObject *meth_QPaintEngine_drawTextItem(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawTextItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPointF* a0;
        int a0State = 0;
        const QTextItem* a1;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QTextItem, &a1))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawTextItem(*a0,*a1) : sipCpp->drawTextItem(*a0,*a1));
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawTextItem, doc_QPaintEngine_drawTextItem);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawTiledPixmap, "QPaintEngine.drawTiledPixmap(QRectF, QPixmap, QPointF)");

extern "C" {static PyObject *meth_QPaintEngine_drawTiledPixmap(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawTiledPixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QRectF* a0;
        const QPixmap* a1;
        const QPointF* a2;
        int a2State = 0;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J1", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QRectF, &a0, sipType_QPixmap, &a1, sipType_QPointF, &a2, &a2State))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawTiledPixmap(*a0,*a1,*a2) : sipCpp->drawTiledPixmap(*a0,*a1,*a2));
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawTiledPixmap, doc_QPaintEngine_drawTiledPixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_drawImage, "QPaintEngine.drawImage(QRectF, QImage, QRectF, Qt.ImageConversionFlags flags=Qt.AutoColor)");

extern "C" {static PyObject *meth_QPaintEngine_drawImage(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_drawImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QRectF* a0;
        const QImage* a1;
        const QRectF* a2;
        Qt::ImageConversionFlags a3def = Qt::AutoColor;
        Qt::ImageConversionFlags* a3 = &a3def;
        int a3State = 0;
        QPaintEngine *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J9J9|J1", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QRectF, &a0, sipType_QImage, &a1, sipType_QRectF, &a2, sipType_Qt_ImageConversionFlags, &a3, &a3State))
        {
            (sipSelfWasArg ? sipCpp->QPaintEngine::drawImage(*a0,*a1,*a2,*a3) : sipCpp->drawImage(*a0,*a1,*a2,*a3));
            sipReleaseType(a3,sipType_Qt_ImageConversionFlags,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_drawImage, doc_QPaintEngine_drawImage);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_setPaintDevice, "QPaintEngine.setPaintDevice(QPaintDevice)");

extern "C" {static PyObject *meth_QPaintEngine_setPaintDevice(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_setPaintDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintDevice* a0;
        QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPaintDevice, &a0))
        {
            sipCpp->setPaintDevice(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_setPaintDevice, doc_QPaintEngine_setPaintDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_paintDevice, "QPaintEngine.paintDevice() -> QPaintDevice");

extern "C" {static PyObject *meth_QPaintEngine_paintDevice(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_paintDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngine, &sipCpp))
        {
            QPaintDevice*sipRes;

            sipRes = sipCpp->paintDevice();

            return sipConvertFromType(sipRes,sipType_QPaintDevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_paintDevice, doc_QPaintEngine_paintDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_type, "QPaintEngine.type() -> QPaintEngine.Type");

extern "C" {static PyObject *meth_QPaintEngine_type(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngine, &sipCpp))
        {
            QPaintEngine::Type sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPaintEngine, sipName_type);
                return NULL;
            }

            sipRes = sipCpp->type();

            return sipConvertFromEnum(sipRes,sipType_QPaintEngine_Type);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_type, doc_QPaintEngine_type);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_hasFeature, "QPaintEngine.hasFeature(QPaintEngine.PaintEngineFeatures) -> bool");

extern "C" {static PyObject *meth_QPaintEngine_hasFeature(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_hasFeature(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintEngine::PaintEngineFeatures* a0;
        int a0State = 0;
        const QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPaintEngine, &sipCpp, sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->hasFeature(*a0);
            sipReleaseType(a0,sipType_QPaintEngine_PaintEngineFeatures,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_hasFeature, doc_QPaintEngine_hasFeature);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEngine_painter, "QPaintEngine.painter() -> QPainter");

extern "C" {static PyObject *meth_QPaintEngine_painter(PyObject *, PyObject *);}
static PyObject *meth_QPaintEngine_painter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEngine, &sipCpp))
        {
            QPainter*sipRes;

            sipRes = sipCpp->painter();

            return sipConvertFromType(sipRes,sipType_QPainter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEngine, sipName_painter, doc_QPaintEngine_painter);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPaintEngine(void *, const sipTypeDef *);}
static void *cast_QPaintEngine(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPaintEngine)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPaintEngine(void *, int);}
static void release_QPaintEngine(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQPaintEngine *>(sipCppV);
    else
        delete reinterpret_cast<QPaintEngine *>(sipCppV);
}


extern "C" {static void dealloc_QPaintEngine(sipSimpleWrapper *);}
static void dealloc_QPaintEngine(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPaintEngine *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPaintEngine(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPaintEngine(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPaintEngine(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQPaintEngine *sipCpp = 0;

    {
        QPaintEngine::PaintEngineFeatures a0def = 0;
        QPaintEngine::PaintEngineFeatures* a0 = &a0def;
        int a0State = 0;

        static const char *sipKwdList[] = {
            sipName_features,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J1", sipType_QPaintEngine_PaintEngineFeatures, &a0, &a0State))
        {
            sipCpp = new sipQPaintEngine(*a0);
            sipReleaseType(a0,sipType_QPaintEngine_PaintEngineFeatures,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPaintEngine[] = {
    {SIP_MLNAME_CAST(sipName_begin), meth_QPaintEngine_begin, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_begin)},
    {SIP_MLNAME_CAST(sipName_drawEllipse), meth_QPaintEngine_drawEllipse, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_drawEllipse)},
    {SIP_MLNAME_CAST(sipName_drawImage), (PyCFunction)meth_QPaintEngine_drawImage, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPaintEngine_drawImage)},
    {SIP_MLNAME_CAST(sipName_drawLines), meth_QPaintEngine_drawLines, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_drawLines)},
    {SIP_MLNAME_CAST(sipName_drawPath), meth_QPaintEngine_drawPath, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_drawPath)},
    {SIP_MLNAME_CAST(sipName_drawPixmap), meth_QPaintEngine_drawPixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_drawPixmap)},
    {SIP_MLNAME_CAST(sipName_drawPoints), meth_QPaintEngine_drawPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_drawPoints)},
    {SIP_MLNAME_CAST(sipName_drawPolygon), meth_QPaintEngine_drawPolygon, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_drawPolygon)},
    {SIP_MLNAME_CAST(sipName_drawRects), meth_QPaintEngine_drawRects, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_drawRects)},
    {SIP_MLNAME_CAST(sipName_drawTextItem), meth_QPaintEngine_drawTextItem, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_drawTextItem)},
    {SIP_MLNAME_CAST(sipName_drawTiledPixmap), meth_QPaintEngine_drawTiledPixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_drawTiledPixmap)},
    {SIP_MLNAME_CAST(sipName_end), meth_QPaintEngine_end, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_end)},
    {SIP_MLNAME_CAST(sipName_hasFeature), meth_QPaintEngine_hasFeature, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_hasFeature)},
    {SIP_MLNAME_CAST(sipName_isActive), meth_QPaintEngine_isActive, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_isActive)},
    {SIP_MLNAME_CAST(sipName_paintDevice), meth_QPaintEngine_paintDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_paintDevice)},
    {SIP_MLNAME_CAST(sipName_painter), meth_QPaintEngine_painter, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_painter)},
    {SIP_MLNAME_CAST(sipName_setActive), meth_QPaintEngine_setActive, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_setActive)},
    {SIP_MLNAME_CAST(sipName_setPaintDevice), meth_QPaintEngine_setPaintDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_setPaintDevice)},
    {SIP_MLNAME_CAST(sipName_type), meth_QPaintEngine_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_type)},
    {SIP_MLNAME_CAST(sipName_updateState), meth_QPaintEngine_updateState, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEngine_updateState)}
};

static sipEnumMemberDef enummembers_QPaintEngine[] = {
    {sipName_AllDirty, static_cast<int>(QPaintEngine::AllDirty), 187},
    {sipName_AllFeatures, static_cast<int>(QPaintEngine::AllFeatures), 189},
    {sipName_AlphaBlend, static_cast<int>(QPaintEngine::AlphaBlend), 189},
    {sipName_Antialiasing, static_cast<int>(QPaintEngine::Antialiasing), 189},
    {sipName_BlendModes, static_cast<int>(QPaintEngine::BlendModes), 189},
    {sipName_Blitter, static_cast<int>(QPaintEngine::Blitter), 192},
    {sipName_BrushStroke, static_cast<int>(QPaintEngine::BrushStroke), 189},
    {sipName_ConicalGradientFill, static_cast<int>(QPaintEngine::ConicalGradientFill), 189},
    {sipName_ConstantOpacity, static_cast<int>(QPaintEngine::ConstantOpacity), 189},
    {sipName_ConvexMode, static_cast<int>(QPaintEngine::ConvexMode), 191},
    {sipName_CoreGraphics, static_cast<int>(QPaintEngine::CoreGraphics), 192},
    {sipName_Direct2D, static_cast<int>(QPaintEngine::Direct2D), 192},
    {sipName_Direct3D, static_cast<int>(QPaintEngine::Direct3D), 192},
    {sipName_DirtyBackground, static_cast<int>(QPaintEngine::DirtyBackground), 187},
    {sipName_DirtyBackgroundMode, static_cast<int>(QPaintEngine::DirtyBackgroundMode), 187},
    {sipName_DirtyBrush, static_cast<int>(QPaintEngine::DirtyBrush), 187},
    {sipName_DirtyBrushOrigin, static_cast<int>(QPaintEngine::DirtyBrushOrigin), 187},
    {sipName_DirtyClipEnabled, static_cast<int>(QPaintEngine::DirtyClipEnabled), 187},
    {sipName_DirtyClipPath, static_cast<int>(QPaintEngine::DirtyClipPath), 187},
    {sipName_DirtyClipRegion, static_cast<int>(QPaintEngine::DirtyClipRegion), 187},
    {sipName_DirtyCompositionMode, static_cast<int>(QPaintEngine::DirtyCompositionMode), 187},
    {sipName_DirtyFont, static_cast<int>(QPaintEngine::DirtyFont), 187},
    {sipName_DirtyHints, static_cast<int>(QPaintEngine::DirtyHints), 187},
    {sipName_DirtyOpacity, static_cast<int>(QPaintEngine::DirtyOpacity), 187},
    {sipName_DirtyPen, static_cast<int>(QPaintEngine::DirtyPen), 187},
    {sipName_DirtyTransform, static_cast<int>(QPaintEngine::DirtyTransform), 187},
    {sipName_LinearGradientFill, static_cast<int>(QPaintEngine::LinearGradientFill), 189},
    {sipName_MacPrinter, static_cast<int>(QPaintEngine::MacPrinter), 192},
    {sipName_MaskedBrush, static_cast<int>(QPaintEngine::MaskedBrush), 189},
    {sipName_MaxUser, static_cast<int>(QPaintEngine::MaxUser), 192},
    {sipName_ObjectBoundingModeGradients, static_cast<int>(QPaintEngine::ObjectBoundingModeGradients), 189},
    {sipName_OddEvenMode, static_cast<int>(QPaintEngine::OddEvenMode), 191},
    {sipName_OpenGL, static_cast<int>(QPaintEngine::OpenGL), 192},
    {sipName_OpenGL2, static_cast<int>(QPaintEngine::OpenGL2), 192},
    {sipName_OpenVG, static_cast<int>(QPaintEngine::OpenVG), 192},
    {sipName_PaintBuffer, static_cast<int>(QPaintEngine::PaintBuffer), 192},
    {sipName_PaintOutsidePaintEvent, static_cast<int>(QPaintEngine::PaintOutsidePaintEvent), 189},
    {sipName_PainterPaths, static_cast<int>(QPaintEngine::PainterPaths), 189},
    {sipName_PatternBrush, static_cast<int>(QPaintEngine::PatternBrush), 189},
    {sipName_PatternTransform, static_cast<int>(QPaintEngine::PatternTransform), 189},
    {sipName_Pdf, static_cast<int>(QPaintEngine::Pdf), 192},
    {sipName_PerspectiveTransform, static_cast<int>(QPaintEngine::PerspectiveTransform), 189},
    {sipName_Picture, static_cast<int>(QPaintEngine::Picture), 192},
    {sipName_PixmapTransform, static_cast<int>(QPaintEngine::PixmapTransform), 189},
    {sipName_PolylineMode, static_cast<int>(QPaintEngine::PolylineMode), 191},
    {sipName_PorterDuff, static_cast<int>(QPaintEngine::PorterDuff), 189},
    {sipName_PostScript, static_cast<int>(QPaintEngine::PostScript), 192},
    {sipName_PrimitiveTransform, static_cast<int>(QPaintEngine::PrimitiveTransform), 189},
    {sipName_QWindowSystem, static_cast<int>(QPaintEngine::QWindowSystem), 192},
    {sipName_QuickDraw, static_cast<int>(QPaintEngine::QuickDraw), 192},
    {sipName_RadialGradientFill, static_cast<int>(QPaintEngine::RadialGradientFill), 189},
    {sipName_Raster, static_cast<int>(QPaintEngine::Raster), 192},
    {sipName_RasterOpModes, static_cast<int>(QPaintEngine::RasterOpModes), 189},
    {sipName_SVG, static_cast<int>(QPaintEngine::SVG), 192},
    {sipName_User, static_cast<int>(QPaintEngine::User), 192},
    {sipName_WindingMode, static_cast<int>(QPaintEngine::WindingMode), 191},
    {sipName_Windows, static_cast<int>(QPaintEngine::Windows), 192},
    {sipName_X11, static_cast<int>(QPaintEngine::X11), 192},
};

PyDoc_STRVAR(doc_QPaintEngine, "\1QPaintEngine(QPaintEngine.PaintEngineFeatures features=0)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPaintEngine = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPaintEngine,
        {0}
    },
    {
        sipNameNr_QPaintEngine,
        {0, 0, 1},
        20, methods_QPaintEngine,
        58, enummembers_QPaintEngine,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintEngine,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPaintEngine,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPaintEngine,
    0,
    0,
    0,
    release_QPaintEngine,
    cast_QPaintEngine,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 90952 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 90956 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QTextItem_RenderFlags___bool__(PyObject *);}
static int slot_QTextItem_RenderFlags___bool__(PyObject *sipSelf)
{
    QTextItem::RenderFlags *sipCpp = reinterpret_cast<QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextItem::RenderFlags::Int() != 0);
#line 90974 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextItem::RenderFlags *sipCpp = reinterpret_cast<QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextItem::RenderFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextItem_RenderFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextItem::RenderFlags::Int() != a0->operator QTextItem::RenderFlags::Int());
#line 91004 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTextItem::RenderFlags *>(a0),sipType_QTextItem_RenderFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTextItem_RenderFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextItem::RenderFlags *sipCpp = reinterpret_cast<QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextItem::RenderFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextItem_RenderFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTextItem::RenderFlags::Int() == a0->operator QTextItem::RenderFlags::Int());
#line 91040 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTextItem::RenderFlags *>(a0),sipType_QTextItem_RenderFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTextItem_RenderFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___invert__(PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___invert__(PyObject *sipSelf)
{
    QTextItem::RenderFlags *sipCpp = reinterpret_cast<QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QTextItem::RenderFlags*sipRes;

            sipRes = new QTextItem::RenderFlags(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QTextItem_RenderFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextItem::RenderFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextItem_RenderFlags, &a0, &a0State, &a1))
        {
            QTextItem::RenderFlags*sipRes;

            sipRes = new QTextItem::RenderFlags((*a0 & a1));
            sipReleaseType(a0,sipType_QTextItem_RenderFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextItem_RenderFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextItem::RenderFlags* a0;
        int a0State = 0;
        QTextItem::RenderFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTextItem_RenderFlags, &a0, &a0State, sipType_QTextItem_RenderFlags, &a1, &a1State))
        {
            QTextItem::RenderFlags*sipRes;

            sipRes = new QTextItem::RenderFlags((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QTextItem_RenderFlags,a0State);
            sipReleaseType(a1,sipType_QTextItem_RenderFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextItem_RenderFlags,NULL);
        }
    }

    {
        QTextItem::RenderFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextItem_RenderFlags, &a0, &a0State, &a1))
        {
            QTextItem::RenderFlags*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QTextItem::RenderFlags(*a0 ^ a1);
#line 91143 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTextItem_RenderFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextItem_RenderFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTextItem::RenderFlags* a0;
        int a0State = 0;
        QTextItem::RenderFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTextItem_RenderFlags, &a0, &a0State, sipType_QTextItem_RenderFlags, &a1, &a1State))
        {
            QTextItem::RenderFlags*sipRes;

            sipRes = new QTextItem::RenderFlags((*a0 | *a1));
            sipReleaseType(a0,sipType_QTextItem_RenderFlags,a0State);
            sipReleaseType(a1,sipType_QTextItem_RenderFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTextItem_RenderFlags,NULL);
        }
    }

    {
        QTextItem::RenderFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTextItem_RenderFlags, &a0, &a0State, &a1))
        {
            QTextItem::RenderFlags*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QTextItem::RenderFlags(*a0 | a1);
#line 91193 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTextItem_RenderFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTextItem_RenderFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___int__(PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___int__(PyObject *sipSelf)
{
    QTextItem::RenderFlags *sipCpp = reinterpret_cast<QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextItem_RenderFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextItem::RenderFlags *sipCpp = reinterpret_cast<QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTextItem::RenderFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextItem_RenderFlags, &a0, &a0State))
        {
            sipCpp->QTextItem::RenderFlags::operator^=(*a0);
            sipReleaseType(a0,sipType_QTextItem_RenderFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextItem_RenderFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextItem::RenderFlags *sipCpp = reinterpret_cast<QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTextItem::RenderFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextItem_RenderFlags, &a0, &a0State))
        {
            sipCpp->QTextItem::RenderFlags::operator|=(*a0);
            sipReleaseType(a0,sipType_QTextItem_RenderFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTextItem_RenderFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QTextItem_RenderFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTextItem_RenderFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTextItem::RenderFlags *sipCpp = reinterpret_cast<QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QTextItem::RenderFlags::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextItem_RenderFlags(void *, const sipTypeDef *);}
static void *cast_QTextItem_RenderFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextItem_RenderFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextItem_RenderFlags(void *, int);}
static void release_QTextItem_RenderFlags(void *sipCppV,int)
{
    delete reinterpret_cast<QTextItem::RenderFlags *>(sipCppV);
}


extern "C" {static void assign_QTextItem_RenderFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextItem_RenderFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextItem::RenderFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextItem::RenderFlags *>(sipSrc);
}


extern "C" {static void *array_QTextItem_RenderFlags(SIP_SSIZE_T);}
static void *array_QTextItem_RenderFlags(SIP_SSIZE_T sipNrElem)
{
    return new QTextItem::RenderFlags[sipNrElem];
}


extern "C" {static void *copy_QTextItem_RenderFlags(const void *, SIP_SSIZE_T);}
static void *copy_QTextItem_RenderFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextItem::RenderFlags(reinterpret_cast<const QTextItem::RenderFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextItem_RenderFlags(sipSimpleWrapper *);}
static void dealloc_QTextItem_RenderFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextItem_RenderFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextItem_RenderFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextItem_RenderFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextItem::RenderFlags *sipCpp = 0;

    {
        const QTextItem::RenderFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QTextItem_RenderFlags, &a0, &a0State))
        {
            sipCpp = new QTextItem::RenderFlags(*a0);
            sipReleaseType(const_cast<QTextItem::RenderFlags *>(a0),sipType_QTextItem_RenderFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QTextItem::RenderFlags(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextItem::RenderFlags();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QTextItem_RenderFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QTextItem_RenderFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QTextItem::RenderFlags **sipCppPtr = reinterpret_cast<QTextItem::RenderFlags **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QTextItem::RenderFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTextItem_RenderFlag)) ||
            sipCanConvertToType(sipPy, sipType_QTextItem_RenderFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTextItem_RenderFlag)))
{
    *sipCppPtr = new QTextItem::RenderFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QTextItem::RenderFlags *>(sipConvertToType(sipPy, sipType_QTextItem_RenderFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 91470 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTextItem_RenderFlags[] = {
    {(void *)slot_QTextItem_RenderFlags___bool__, bool_slot},
    {(void *)slot_QTextItem_RenderFlags___ne__, ne_slot},
    {(void *)slot_QTextItem_RenderFlags___eq__, eq_slot},
    {(void *)slot_QTextItem_RenderFlags___invert__, invert_slot},
    {(void *)slot_QTextItem_RenderFlags___and__, and_slot},
    {(void *)slot_QTextItem_RenderFlags___xor__, xor_slot},
    {(void *)slot_QTextItem_RenderFlags___or__, or_slot},
    {(void *)slot_QTextItem_RenderFlags___int__, int_slot},
    {(void *)slot_QTextItem_RenderFlags___ixor__, ixor_slot},
    {(void *)slot_QTextItem_RenderFlags___ior__, ior_slot},
    {(void *)slot_QTextItem_RenderFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTextItem_RenderFlags, "\1QTextItem.RenderFlags(QTextItem.RenderFlags)\n"
    "QTextItem.RenderFlags(int)\n"
    "QTextItem.RenderFlags()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextItem_RenderFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextItem__RenderFlags,
        {0}
    },
    {
        sipNameNr_RenderFlags,
        {305, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextItem_RenderFlags,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTextItem_RenderFlags,
    init_type_QTextItem_RenderFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextItem_RenderFlags,
    assign_QTextItem_RenderFlags,
    array_QTextItem_RenderFlags,
    copy_QTextItem_RenderFlags,
    release_QTextItem_RenderFlags,
    cast_QTextItem_RenderFlags,
    convertTo_QTextItem_RenderFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 91552 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 91556 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 91559 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 91562 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTextItem_descent, "QTextItem.descent() -> float");

extern "C" {static PyObject *meth_QTextItem_descent(PyObject *, PyObject *);}
static PyObject *meth_QTextItem_descent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextItem, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->descent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextItem, sipName_descent, doc_QTextItem_descent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextItem_ascent, "QTextItem.ascent() -> float");

extern "C" {static PyObject *meth_QTextItem_ascent(PyObject *, PyObject *);}
static PyObject *meth_QTextItem_ascent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextItem, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->ascent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextItem, sipName_ascent, doc_QTextItem_ascent);

    return NULL;
}


PyDoc_STRVAR(doc_QTextItem_width, "QTextItem.width() -> float");

extern "C" {static PyObject *meth_QTextItem_width(PyObject *, PyObject *);}
static PyObject *meth_QTextItem_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextItem, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->width();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextItem, sipName_width, doc_QTextItem_width);

    return NULL;
}


PyDoc_STRVAR(doc_QTextItem_renderFlags, "QTextItem.renderFlags() -> QTextItem.RenderFlags");

extern "C" {static PyObject *meth_QTextItem_renderFlags(PyObject *, PyObject *);}
static PyObject *meth_QTextItem_renderFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextItem, &sipCpp))
        {
            QTextItem::RenderFlags*sipRes;

            sipRes = new QTextItem::RenderFlags(sipCpp->renderFlags());

            return sipConvertFromNewType(sipRes,sipType_QTextItem_RenderFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextItem, sipName_renderFlags, doc_QTextItem_renderFlags);

    return NULL;
}


PyDoc_STRVAR(doc_QTextItem_text, "QTextItem.text() -> str");

extern "C" {static PyObject *meth_QTextItem_text(PyObject *, PyObject *);}
static PyObject *meth_QTextItem_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextItem, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextItem, sipName_text, doc_QTextItem_text);

    return NULL;
}


PyDoc_STRVAR(doc_QTextItem_font, "QTextItem.font() -> QFont");

extern "C" {static PyObject *meth_QTextItem_font(PyObject *, PyObject *);}
static PyObject *meth_QTextItem_font(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTextItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextItem, &sipCpp))
        {
            QFont*sipRes;

            sipRes = new QFont(sipCpp->font());

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextItem, sipName_font, doc_QTextItem_font);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextItem(void *, const sipTypeDef *);}
static void *cast_QTextItem(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextItem)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextItem(void *, int);}
static void release_QTextItem(void *sipCppV,int)
{
    delete reinterpret_cast<QTextItem *>(sipCppV);
}


extern "C" {static void assign_QTextItem(void *, SIP_SSIZE_T, const void *);}
static void assign_QTextItem(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTextItem *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTextItem *>(sipSrc);
}


extern "C" {static void *array_QTextItem(SIP_SSIZE_T);}
static void *array_QTextItem(SIP_SSIZE_T sipNrElem)
{
    return new QTextItem[sipNrElem];
}


extern "C" {static void *copy_QTextItem(const void *, SIP_SSIZE_T);}
static void *copy_QTextItem(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTextItem(reinterpret_cast<const QTextItem *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTextItem(sipSimpleWrapper *);}
static void dealloc_QTextItem(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTextItem(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTextItem(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextItem(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTextItem *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTextItem();

            return sipCpp;
        }
    }

    {
        const QTextItem* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextItem, &a0))
        {
            sipCpp = new QTextItem(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QTextItem[] = {
    {SIP_MLNAME_CAST(sipName_ascent), meth_QTextItem_ascent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextItem_ascent)},
    {SIP_MLNAME_CAST(sipName_descent), meth_QTextItem_descent, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextItem_descent)},
    {SIP_MLNAME_CAST(sipName_font), meth_QTextItem_font, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextItem_font)},
    {SIP_MLNAME_CAST(sipName_renderFlags), meth_QTextItem_renderFlags, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextItem_renderFlags)},
    {SIP_MLNAME_CAST(sipName_text), meth_QTextItem_text, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextItem_text)},
    {SIP_MLNAME_CAST(sipName_width), meth_QTextItem_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextItem_width)}
};

static sipEnumMemberDef enummembers_QTextItem[] = {
    {sipName_Overline, static_cast<int>(QTextItem::Overline), 306},
    {sipName_RightToLeft, static_cast<int>(QTextItem::RightToLeft), 306},
    {sipName_StrikeOut, static_cast<int>(QTextItem::StrikeOut), 306},
    {sipName_Underline, static_cast<int>(QTextItem::Underline), 306},
};

PyDoc_STRVAR(doc_QTextItem, "\1QTextItem()\n"
    "QTextItem(QTextItem)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextItem = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextItem,
        {0}
    },
    {
        sipNameNr_QTextItem,
        {0, 0, 1},
        6, methods_QTextItem,
        4, enummembers_QTextItem,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextItem,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTextItem,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextItem,
    assign_QTextItem,
    array_QTextItem,
    copy_QTextItem,
    release_QTextItem,
    cast_QTextItem,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 91883 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 91887 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 91890 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 91893 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91896 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91899 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 247 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91902 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 202 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91905 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 333 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91908 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 91911 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 441 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91914 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 430 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91917 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 354 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91920 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91923 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 395 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91926 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 743 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 91929 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 91932 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 91935 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 91938 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 91941 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 91944 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 91947 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 91950 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 91953 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 91956 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 91959 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 91962 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 91965 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 91968 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 91971 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 91974 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 91977 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 91980 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 91983 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 91986 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 91989 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 91992 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 91995 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 91998 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 92001 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQWindow : public QWindow
{
public:
    sipQWindow(QScreen*);
    sipQWindow(QWindow*);
    virtual ~sipQWindow();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtectVirt_exposeEvent(bool,QExposeEvent*);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent*);
    void sipProtectVirt_moveEvent(bool,QMoveEvent*);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent*);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent*);
    void sipProtectVirt_showEvent(bool,QShowEvent*);
    void sipProtectVirt_hideEvent(bool,QHideEvent*);
    bool sipProtectVirt_event(bool,QEvent*);
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent*);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent*);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent*);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent*);
    void sipProtectVirt_touchEvent(bool,QTouchEvent*);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    void tabletEvent(QTabletEvent*);
    void touchEvent(QTouchEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void keyPressEvent(QKeyEvent*);
    bool event(QEvent*);
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void moveEvent(QMoveEvent*);
    void resizeEvent(QResizeEvent*);
    void exposeEvent(QExposeEvent*);
    QObject* focusObject() const;
    QSize size() const;
    QSurfaceFormat format() const;
    QSurface::SurfaceType surfaceType() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQWindow(const sipQWindow &);
    sipQWindow &operator = (const sipQWindow &);

    char sipPyMethods[27];
};

sipQWindow::sipQWindow(QScreen*a0): QWindow(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQWindow::sipQWindow(QWindow*a0): QWindow(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQWindow::~sipQWindow()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQWindow::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QWindow);
}

int sipQWindow::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QWindow::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QWindow,_c,_id,_a);

    return _id;
}

void *sipQWindow::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QWindow, _clname, &sipCpp) ? sipCpp : QWindow::qt_metacast(_clname));
}

void sipQWindow::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QWindow::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QWindow::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QWindow::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QWindow::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QWindow::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQWindow::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QWindow::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQWindow::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        QWindow::tabletEvent(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    sipVH_QtGui_0(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::touchEvent(QTouchEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_touchEvent);

    if (!sipMeth)
    {
        QWindow::touchEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTouchEvent*);

    sipVH_QtGui_1(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        QWindow::wheelEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    sipVH_QtGui_2(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        QWindow::mouseMoveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        QWindow::mouseDoubleClickEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        QWindow::mouseReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        QWindow::mousePressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        QWindow::keyReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    sipVH_QtGui_4(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        QWindow::keyPressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    sipVH_QtGui_4(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQWindow::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QWindow::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        QWindow::hideEvent(a0);
        return;
    }

    extern void sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    sipVH_QtGui_5(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        QWindow::showEvent(a0);
        return;
    }

    extern void sipVH_QtGui_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    sipVH_QtGui_6(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        QWindow::focusOutEvent(a0);
        return;
    }

    extern void sipVH_QtGui_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    sipVH_QtGui_7(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        QWindow::focusInEvent(a0);
        return;
    }

    extern void sipVH_QtGui_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    sipVH_QtGui_7(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        QWindow::moveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    sipVH_QtGui_8(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        QWindow::resizeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    sipVH_QtGui_9(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQWindow::exposeEvent(QExposeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,NULL,sipName_exposeEvent);

    if (!sipMeth)
    {
        QWindow::exposeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QExposeEvent*);

    sipVH_QtGui_10(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQWindow::focusObject() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,NULL,sipName_focusObject);

    if (!sipMeth)
        return QWindow::focusObject();

    extern QObject* sipVH_QtGui_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_11(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQWindow::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return QWindow::size();

    extern QSize sipVH_QtGui_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_12(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSurfaceFormat sipQWindow::format() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[25]),sipPySelf,NULL,sipName_format);

    if (!sipMeth)
        return QWindow::format();

    extern QSurfaceFormat sipVH_QtGui_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_13(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSurface::SurfaceType sipQWindow::surfaceType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,NULL,sipName_surfaceType);

    if (!sipMeth)
        return QWindow::surfaceType();

    extern QSurface::SurfaceType sipVH_QtGui_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_14(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QObject* sipQWindow::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQWindow::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQWindow::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQWindow::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQWindow::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQWindow::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQWindow::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQWindow::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQWindow::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQWindow::sipProtectVirt_exposeEvent(bool sipSelfWasArg,QExposeEvent*a0)
{
    (sipSelfWasArg ? QWindow::exposeEvent(a0) : exposeEvent(a0));
}

void sipQWindow::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent*a0)
{
    (sipSelfWasArg ? QWindow::resizeEvent(a0) : resizeEvent(a0));
}

void sipQWindow::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent*a0)
{
    (sipSelfWasArg ? QWindow::moveEvent(a0) : moveEvent(a0));
}

void sipQWindow::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWindow::focusInEvent(a0) : focusInEvent(a0));
}

void sipQWindow::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWindow::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipQWindow::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent*a0)
{
    (sipSelfWasArg ? QWindow::showEvent(a0) : showEvent(a0));
}

void sipQWindow::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent*a0)
{
    (sipSelfWasArg ? QWindow::hideEvent(a0) : hideEvent(a0));
}

bool sipQWindow::sipProtectVirt_event(bool sipSelfWasArg,QEvent*a0)
{
    return (sipSelfWasArg ? QWindow::event(a0) : event(a0));
}

void sipQWindow::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWindow::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipQWindow::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWindow::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipQWindow::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipQWindow::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipQWindow::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipQWindow::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipQWindow::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent*a0)
{
    (sipSelfWasArg ? QWindow::wheelEvent(a0) : wheelEvent(a0));
}

void sipQWindow::sipProtectVirt_touchEvent(bool sipSelfWasArg,QTouchEvent*a0)
{
    (sipSelfWasArg ? QWindow::touchEvent(a0) : touchEvent(a0));
}

void sipQWindow::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent*a0)
{
    (sipSelfWasArg ? QWindow::tabletEvent(a0) : tabletEvent(a0));
}


PyDoc_STRVAR(doc_QWindow_sender, "QWindow.sender() -> QObject");

extern "C" {static PyObject *meth_QWindow_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 92765 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_sender, doc_QWindow_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_receivers, "QWindow.receivers(signal) -> int");

extern "C" {static PyObject *meth_QWindow_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 92824 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_receivers, doc_QWindow_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_timerEvent, "QWindow.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QWindow_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_timerEvent, doc_QWindow_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_childEvent, "QWindow.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QWindow_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_childEvent, doc_QWindow_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_customEvent, "QWindow.customEvent(QEvent)");

extern "C" {static PyObject *meth_QWindow_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_customEvent, doc_QWindow_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_connectNotify, "QWindow.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QWindow_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_connectNotify, doc_QWindow_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_disconnectNotify, "QWindow.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QWindow_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_disconnectNotify, doc_QWindow_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_senderSignalIndex, "QWindow.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QWindow_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_senderSignalIndex, doc_QWindow_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_isSignalConnected, "QWindow.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QWindow_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_isSignalConnected, doc_QWindow_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setSurfaceType, "QWindow.setSurfaceType(QSurface.SurfaceType)");

extern "C" {static PyObject *meth_QWindow_setSurfaceType(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setSurfaceType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSurface::SurfaceType a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWindow, &sipCpp, sipType_QSurface_SurfaceType, &a0))
        {
            sipCpp->setSurfaceType(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setSurfaceType, doc_QWindow_setSurfaceType);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_surfaceType, "QWindow.surfaceType() -> QSurface.SurfaceType");

extern "C" {static PyObject *meth_QWindow_surfaceType(PyObject *, PyObject *);}
static PyObject *meth_QWindow_surfaceType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QSurface::SurfaceType sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QWindow::surfaceType() : sipCpp->surfaceType());

            return sipConvertFromEnum(sipRes,sipType_QSurface_SurfaceType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_surfaceType, doc_QWindow_surfaceType);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_isVisible, "QWindow.isVisible() -> bool");

extern "C" {static PyObject *meth_QWindow_isVisible(PyObject *, PyObject *);}
static PyObject *meth_QWindow_isVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isVisible();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_isVisible, doc_QWindow_isVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_create, "QWindow.create()");

extern "C" {static PyObject *meth_QWindow_create(PyObject *, PyObject *);}
static PyObject *meth_QWindow_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            sipCpp->create();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_create, doc_QWindow_create);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_winId, "QWindow.winId() -> sip.voidptr");

extern "C" {static PyObject *meth_QWindow_winId(PyObject *, PyObject *);}
static PyObject *meth_QWindow_winId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            WId*sipRes;

            sipRes = new WId(sipCpp->winId());

            return sipConvertFromNewType(sipRes,sipType_quintptr,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_winId, doc_QWindow_winId);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_parent, "QWindow.parent() -> QWindow");

extern "C" {static PyObject *meth_QWindow_parent(PyObject *, PyObject *);}
static PyObject *meth_QWindow_parent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QWindow*sipRes;

            sipRes = sipCpp->parent();

            return sipConvertFromType(sipRes,sipType_QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_parent, doc_QWindow_parent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setParent, "QWindow.setParent(QWindow)");

extern "C" {static PyObject *meth_QWindow_setParent(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setParent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_QWindow, &sipCpp, sipType_QWindow, &a0))
        {
            sipCpp->setParent(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setParent, doc_QWindow_setParent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_isTopLevel, "QWindow.isTopLevel() -> bool");

extern "C" {static PyObject *meth_QWindow_isTopLevel(PyObject *, PyObject *);}
static PyObject *meth_QWindow_isTopLevel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isTopLevel();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_isTopLevel, doc_QWindow_isTopLevel);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_isModal, "QWindow.isModal() -> bool");

extern "C" {static PyObject *meth_QWindow_isModal(PyObject *, PyObject *);}
static PyObject *meth_QWindow_isModal(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isModal();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_isModal, doc_QWindow_isModal);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_modality, "QWindow.modality() -> Qt.WindowModality");

extern "C" {static PyObject *meth_QWindow_modality(PyObject *, PyObject *);}
static PyObject *meth_QWindow_modality(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Qt::WindowModality sipRes;

            sipRes = sipCpp->modality();

            return sipConvertFromEnum(sipRes,sipType_Qt_WindowModality);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_modality, doc_QWindow_modality);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setModality, "QWindow.setModality(Qt.WindowModality)");

extern "C" {static PyObject *meth_QWindow_setModality(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setModality(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::WindowModality a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWindow, &sipCpp, sipType_Qt_WindowModality, &a0))
        {
            sipCpp->setModality(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setModality, doc_QWindow_setModality);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setFormat, "QWindow.setFormat(QSurfaceFormat)");

extern "C" {static PyObject *meth_QWindow_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QSurfaceFormat, &a0))
        {
            sipCpp->setFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setFormat, doc_QWindow_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_format, "QWindow.format() -> QSurfaceFormat");

extern "C" {static PyObject *meth_QWindow_format(PyObject *, PyObject *);}
static PyObject *meth_QWindow_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QSurfaceFormat*sipRes;

            sipRes = new QSurfaceFormat((sipSelfWasArg ? sipCpp->QWindow::format() : sipCpp->format()));

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_format, doc_QWindow_format);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_requestedFormat, "QWindow.requestedFormat() -> QSurfaceFormat");

extern "C" {static PyObject *meth_QWindow_requestedFormat(PyObject *, PyObject *);}
static PyObject *meth_QWindow_requestedFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QSurfaceFormat*sipRes;

            sipRes = new QSurfaceFormat(sipCpp->requestedFormat());

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_requestedFormat, doc_QWindow_requestedFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setFlags, "QWindow.setFlags(Qt.WindowFlags)");

extern "C" {static PyObject *meth_QWindow_setFlags(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::WindowFlags* a0;
        int a0State = 0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWindow, &sipCpp, sipType_Qt_WindowFlags, &a0, &a0State))
        {
            sipCpp->setFlags(*a0);
            sipReleaseType(a0,sipType_Qt_WindowFlags,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setFlags, doc_QWindow_setFlags);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_flags, "QWindow.flags() -> Qt.WindowFlags");

extern "C" {static PyObject *meth_QWindow_flags(PyObject *, PyObject *);}
static PyObject *meth_QWindow_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Qt::WindowFlags*sipRes;

            sipRes = new Qt::WindowFlags(sipCpp->flags());

            return sipConvertFromNewType(sipRes,sipType_Qt_WindowFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_flags, doc_QWindow_flags);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_type, "QWindow.type() -> Qt.WindowType");

extern "C" {static PyObject *meth_QWindow_type(PyObject *, PyObject *);}
static PyObject *meth_QWindow_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Qt::WindowType sipRes;

            sipRes = sipCpp->type();

            return sipConvertFromEnum(sipRes,sipType_Qt_WindowType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_type, doc_QWindow_type);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_title, "QWindow.title() -> str");

extern "C" {static PyObject *meth_QWindow_title(PyObject *, PyObject *);}
static PyObject *meth_QWindow_title(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->title());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_title, doc_QWindow_title);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setOpacity, "QWindow.setOpacity(float)");

extern "C" {static PyObject *meth_QWindow_setOpacity(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setOpacity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setOpacity(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setOpacity, doc_QWindow_setOpacity);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_requestActivate, "QWindow.requestActivate()");

extern "C" {static PyObject *meth_QWindow_requestActivate(PyObject *, PyObject *);}
static PyObject *meth_QWindow_requestActivate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            sipCpp->requestActivate();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_requestActivate, doc_QWindow_requestActivate);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_isActive, "QWindow.isActive() -> bool");

extern "C" {static PyObject *meth_QWindow_isActive(PyObject *, PyObject *);}
static PyObject *meth_QWindow_isActive(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isActive();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_isActive, doc_QWindow_isActive);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_reportContentOrientationChange, "QWindow.reportContentOrientationChange(Qt.ScreenOrientation)");

extern "C" {static PyObject *meth_QWindow_reportContentOrientationChange(PyObject *, PyObject *);}
static PyObject *meth_QWindow_reportContentOrientationChange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::ScreenOrientation a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWindow, &sipCpp, sipType_Qt_ScreenOrientation, &a0))
        {
            sipCpp->reportContentOrientationChange(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_reportContentOrientationChange, doc_QWindow_reportContentOrientationChange);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_contentOrientation, "QWindow.contentOrientation() -> Qt.ScreenOrientation");

extern "C" {static PyObject *meth_QWindow_contentOrientation(PyObject *, PyObject *);}
static PyObject *meth_QWindow_contentOrientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Qt::ScreenOrientation sipRes;

            sipRes = sipCpp->contentOrientation();

            return sipConvertFromEnum(sipRes,sipType_Qt_ScreenOrientation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_contentOrientation, doc_QWindow_contentOrientation);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_devicePixelRatio, "QWindow.devicePixelRatio() -> float");

extern "C" {static PyObject *meth_QWindow_devicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QWindow_devicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->devicePixelRatio();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_devicePixelRatio, doc_QWindow_devicePixelRatio);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_windowState, "QWindow.windowState() -> Qt.WindowState");

extern "C" {static PyObject *meth_QWindow_windowState(PyObject *, PyObject *);}
static PyObject *meth_QWindow_windowState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Qt::WindowState sipRes;

            sipRes = sipCpp->windowState();

            return sipConvertFromEnum(sipRes,sipType_Qt_WindowState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_windowState, doc_QWindow_windowState);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setWindowState, "QWindow.setWindowState(Qt.WindowState)");

extern "C" {static PyObject *meth_QWindow_setWindowState(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setWindowState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::WindowState a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWindow, &sipCpp, sipType_Qt_WindowState, &a0))
        {
            sipCpp->setWindowState(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setWindowState, doc_QWindow_setWindowState);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setTransientParent, "QWindow.setTransientParent(QWindow)");

extern "C" {static PyObject *meth_QWindow_setTransientParent(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setTransientParent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QWindow, &a0))
        {
            sipCpp->setTransientParent(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setTransientParent, doc_QWindow_setTransientParent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_transientParent, "QWindow.transientParent() -> QWindow");

extern "C" {static PyObject *meth_QWindow_transientParent(PyObject *, PyObject *);}
static PyObject *meth_QWindow_transientParent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QWindow*sipRes;

            sipRes = sipCpp->transientParent();

            return sipConvertFromType(sipRes,sipType_QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_transientParent, doc_QWindow_transientParent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_isAncestorOf, "QWindow.isAncestorOf(QWindow, QWindow.AncestorMode mode=QWindow.IncludeTransients) -> bool");

extern "C" {static PyObject *meth_QWindow_isAncestorOf(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_isAncestorOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow* a0;
        QWindow::AncestorMode a1 = QWindow::IncludeTransients;
        const QWindow *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|E", &sipSelf, sipType_QWindow, &sipCpp, sipType_QWindow, &a0, sipType_QWindow_AncestorMode, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->isAncestorOf(a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_isAncestorOf, doc_QWindow_isAncestorOf);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_isExposed, "QWindow.isExposed() -> bool");

extern "C" {static PyObject *meth_QWindow_isExposed(PyObject *, PyObject *);}
static PyObject *meth_QWindow_isExposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isExposed();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_isExposed, doc_QWindow_isExposed);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_minimumWidth, "QWindow.minimumWidth() -> int");

extern "C" {static PyObject *meth_QWindow_minimumWidth(PyObject *, PyObject *);}
static PyObject *meth_QWindow_minimumWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->minimumWidth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_minimumWidth, doc_QWindow_minimumWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_minimumHeight, "QWindow.minimumHeight() -> int");

extern "C" {static PyObject *meth_QWindow_minimumHeight(PyObject *, PyObject *);}
static PyObject *meth_QWindow_minimumHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->minimumHeight();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_minimumHeight, doc_QWindow_minimumHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_maximumWidth, "QWindow.maximumWidth() -> int");

extern "C" {static PyObject *meth_QWindow_maximumWidth(PyObject *, PyObject *);}
static PyObject *meth_QWindow_maximumWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->maximumWidth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_maximumWidth, doc_QWindow_maximumWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_maximumHeight, "QWindow.maximumHeight() -> int");

extern "C" {static PyObject *meth_QWindow_maximumHeight(PyObject *, PyObject *);}
static PyObject *meth_QWindow_maximumHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->maximumHeight();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_maximumHeight, doc_QWindow_maximumHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_minimumSize, "QWindow.minimumSize() -> QSize");

extern "C" {static PyObject *meth_QWindow_minimumSize(PyObject *, PyObject *);}
static PyObject *meth_QWindow_minimumSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->minimumSize());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_minimumSize, doc_QWindow_minimumSize);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_maximumSize, "QWindow.maximumSize() -> QSize");

extern "C" {static PyObject *meth_QWindow_maximumSize(PyObject *, PyObject *);}
static PyObject *meth_QWindow_maximumSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->maximumSize());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_maximumSize, doc_QWindow_maximumSize);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_baseSize, "QWindow.baseSize() -> QSize");

extern "C" {static PyObject *meth_QWindow_baseSize(PyObject *, PyObject *);}
static PyObject *meth_QWindow_baseSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->baseSize());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_baseSize, doc_QWindow_baseSize);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_sizeIncrement, "QWindow.sizeIncrement() -> QSize");

extern "C" {static PyObject *meth_QWindow_sizeIncrement(PyObject *, PyObject *);}
static PyObject *meth_QWindow_sizeIncrement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->sizeIncrement());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_sizeIncrement, doc_QWindow_sizeIncrement);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setMinimumSize, "QWindow.setMinimumSize(QSize)");

extern "C" {static PyObject *meth_QWindow_setMinimumSize(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setMinimumSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->setMinimumSize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setMinimumSize, doc_QWindow_setMinimumSize);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setMaximumSize, "QWindow.setMaximumSize(QSize)");

extern "C" {static PyObject *meth_QWindow_setMaximumSize(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setMaximumSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->setMaximumSize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setMaximumSize, doc_QWindow_setMaximumSize);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setBaseSize, "QWindow.setBaseSize(QSize)");

extern "C" {static PyObject *meth_QWindow_setBaseSize(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setBaseSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->setBaseSize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setBaseSize, doc_QWindow_setBaseSize);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setSizeIncrement, "QWindow.setSizeIncrement(QSize)");

extern "C" {static PyObject *meth_QWindow_setSizeIncrement(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setSizeIncrement(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->setSizeIncrement(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setSizeIncrement, doc_QWindow_setSizeIncrement);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setGeometry, "QWindow.setGeometry(int, int, int, int)\n"
    "QWindow.setGeometry(QRect)");

extern "C" {static PyObject *meth_QWindow_setGeometry(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setGeometry(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiii", &sipSelf, sipType_QWindow, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setGeometry(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->setGeometry(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setGeometry, doc_QWindow_setGeometry);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_geometry, "QWindow.geometry() -> QRect");

extern "C" {static PyObject *meth_QWindow_geometry(PyObject *, PyObject *);}
static PyObject *meth_QWindow_geometry(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->geometry());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_geometry, doc_QWindow_geometry);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_frameMargins, "QWindow.frameMargins() -> QMargins");

extern "C" {static PyObject *meth_QWindow_frameMargins(PyObject *, PyObject *);}
static PyObject *meth_QWindow_frameMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QMargins*sipRes;

            sipRes = new QMargins(sipCpp->frameMargins());

            return sipConvertFromNewType(sipRes,sipType_QMargins,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_frameMargins, doc_QWindow_frameMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_frameGeometry, "QWindow.frameGeometry() -> QRect");

extern "C" {static PyObject *meth_QWindow_frameGeometry(PyObject *, PyObject *);}
static PyObject *meth_QWindow_frameGeometry(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->frameGeometry());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_frameGeometry, doc_QWindow_frameGeometry);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_framePosition, "QWindow.framePosition() -> QPoint");

extern "C" {static PyObject *meth_QWindow_framePosition(PyObject *, PyObject *);}
static PyObject *meth_QWindow_framePosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->framePosition());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_framePosition, doc_QWindow_framePosition);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setFramePosition, "QWindow.setFramePosition(QPoint)");

extern "C" {static PyObject *meth_QWindow_setFramePosition(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setFramePosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->setFramePosition(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setFramePosition, doc_QWindow_setFramePosition);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_width, "QWindow.width() -> int");

extern "C" {static PyObject *meth_QWindow_width(PyObject *, PyObject *);}
static PyObject *meth_QWindow_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->width();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_width, doc_QWindow_width);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_height, "QWindow.height() -> int");

extern "C" {static PyObject *meth_QWindow_height(PyObject *, PyObject *);}
static PyObject *meth_QWindow_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->height();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_height, doc_QWindow_height);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_x, "QWindow.x() -> int");

extern "C" {static PyObject *meth_QWindow_x(PyObject *, PyObject *);}
static PyObject *meth_QWindow_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->x();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_x, doc_QWindow_x);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_y, "QWindow.y() -> int");

extern "C" {static PyObject *meth_QWindow_y(PyObject *, PyObject *);}
static PyObject *meth_QWindow_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->y();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_y, doc_QWindow_y);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_size, "QWindow.size() -> QSize");

extern "C" {static PyObject *meth_QWindow_size(PyObject *, PyObject *);}
static PyObject *meth_QWindow_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize((sipSelfWasArg ? sipCpp->QWindow::size() : sipCpp->size()));

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_size, doc_QWindow_size);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_position, "QWindow.position() -> QPoint");

extern "C" {static PyObject *meth_QWindow_position(PyObject *, PyObject *);}
static PyObject *meth_QWindow_position(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->position());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_position, doc_QWindow_position);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setPosition, "QWindow.setPosition(QPoint)\n"
    "QWindow.setPosition(int, int)");

extern "C" {static PyObject *meth_QWindow_setPosition(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->setPosition(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QWindow, &sipCpp, &a0, &a1))
        {
            sipCpp->setPosition(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setPosition, doc_QWindow_setPosition);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_resize, "QWindow.resize(QSize)\n"
    "QWindow.resize(int, int)");

extern "C" {static PyObject *meth_QWindow_resize(PyObject *, PyObject *);}
static PyObject *meth_QWindow_resize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->resize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QWindow, &sipCpp, &a0, &a1))
        {
            sipCpp->resize(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_resize, doc_QWindow_resize);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setFilePath, "QWindow.setFilePath(str)");

extern "C" {static PyObject *meth_QWindow_setFilePath(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setFilePath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWindow, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setFilePath(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setFilePath, doc_QWindow_setFilePath);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_filePath, "QWindow.filePath() -> str");

extern "C" {static PyObject *meth_QWindow_filePath(PyObject *, PyObject *);}
static PyObject *meth_QWindow_filePath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->filePath());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_filePath, doc_QWindow_filePath);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setIcon, "QWindow.setIcon(QIcon)");

extern "C" {static PyObject *meth_QWindow_setIcon(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setIcon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QIcon* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QIcon, &a0))
        {
            sipCpp->setIcon(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setIcon, doc_QWindow_setIcon);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_icon, "QWindow.icon() -> QIcon");

extern "C" {static PyObject *meth_QWindow_icon(PyObject *, PyObject *);}
static PyObject *meth_QWindow_icon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QIcon*sipRes;

            sipRes = new QIcon(sipCpp->icon());

            return sipConvertFromNewType(sipRes,sipType_QIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_icon, doc_QWindow_icon);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_destroy, "QWindow.destroy()");

extern "C" {static PyObject *meth_QWindow_destroy(PyObject *, PyObject *);}
static PyObject *meth_QWindow_destroy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            sipCpp->destroy();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_destroy, doc_QWindow_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setKeyboardGrabEnabled, "QWindow.setKeyboardGrabEnabled(bool) -> bool");

extern "C" {static PyObject *meth_QWindow_setKeyboardGrabEnabled(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setKeyboardGrabEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setKeyboardGrabEnabled(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setKeyboardGrabEnabled, doc_QWindow_setKeyboardGrabEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setMouseGrabEnabled, "QWindow.setMouseGrabEnabled(bool) -> bool");

extern "C" {static PyObject *meth_QWindow_setMouseGrabEnabled(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setMouseGrabEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setMouseGrabEnabled(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setMouseGrabEnabled, doc_QWindow_setMouseGrabEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_screen, "QWindow.screen() -> QScreen");

extern "C" {static PyObject *meth_QWindow_screen(PyObject *, PyObject *);}
static PyObject *meth_QWindow_screen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QScreen*sipRes;

            sipRes = sipCpp->screen();

            return sipConvertFromType(sipRes,sipType_QScreen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_screen, doc_QWindow_screen);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setScreen, "QWindow.setScreen(QScreen)");

extern "C" {static PyObject *meth_QWindow_setScreen(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setScreen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScreen* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QScreen, &a0))
        {
            sipCpp->setScreen(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setScreen, doc_QWindow_setScreen);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_focusObject, "QWindow.focusObject() -> QObject");

extern "C" {static PyObject *meth_QWindow_focusObject(PyObject *, PyObject *);}
static PyObject *meth_QWindow_focusObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QObject*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QWindow::focusObject() : sipCpp->focusObject());

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_focusObject, doc_QWindow_focusObject);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_mapToGlobal, "QWindow.mapToGlobal(QPoint) -> QPoint");

extern "C" {static PyObject *meth_QWindow_mapToGlobal(PyObject *, PyObject *);}
static PyObject *meth_QWindow_mapToGlobal(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QPoint, &a0))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->mapToGlobal(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_mapToGlobal, doc_QWindow_mapToGlobal);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_mapFromGlobal, "QWindow.mapFromGlobal(QPoint) -> QPoint");

extern "C" {static PyObject *meth_QWindow_mapFromGlobal(PyObject *, PyObject *);}
static PyObject *meth_QWindow_mapFromGlobal(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QPoint, &a0))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->mapFromGlobal(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_mapFromGlobal, doc_QWindow_mapFromGlobal);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_cursor, "QWindow.cursor() -> QCursor");

extern "C" {static PyObject *meth_QWindow_cursor(PyObject *, PyObject *);}
static PyObject *meth_QWindow_cursor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QCursor*sipRes;

            sipRes = new QCursor(sipCpp->cursor());

            return sipConvertFromNewType(sipRes,sipType_QCursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_cursor, doc_QWindow_cursor);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setCursor, "QWindow.setCursor(QCursor)");

extern "C" {static PyObject *meth_QWindow_setCursor(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setCursor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QCursor* a0;
        int a0State = 0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWindow, &sipCpp, sipType_QCursor, &a0, &a0State))
        {
            sipCpp->setCursor(*a0);
            sipReleaseType(const_cast<QCursor *>(a0),sipType_QCursor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setCursor, doc_QWindow_setCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_unsetCursor, "QWindow.unsetCursor()");

extern "C" {static PyObject *meth_QWindow_unsetCursor(PyObject *, PyObject *);}
static PyObject *meth_QWindow_unsetCursor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            sipCpp->unsetCursor();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_unsetCursor, doc_QWindow_unsetCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setVisible, "QWindow.setVisible(bool)");

extern "C" {static PyObject *meth_QWindow_setVisible(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setVisible(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setVisible, doc_QWindow_setVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_show, "QWindow.show()");

extern "C" {static PyObject *meth_QWindow_show(PyObject *, PyObject *);}
static PyObject *meth_QWindow_show(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->show();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_show, doc_QWindow_show);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_hide, "QWindow.hide()");

extern "C" {static PyObject *meth_QWindow_hide(PyObject *, PyObject *);}
static PyObject *meth_QWindow_hide(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            sipCpp->hide();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_hide, doc_QWindow_hide);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_showMinimized, "QWindow.showMinimized()");

extern "C" {static PyObject *meth_QWindow_showMinimized(PyObject *, PyObject *);}
static PyObject *meth_QWindow_showMinimized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->showMinimized();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_showMinimized, doc_QWindow_showMinimized);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_showMaximized, "QWindow.showMaximized()");

extern "C" {static PyObject *meth_QWindow_showMaximized(PyObject *, PyObject *);}
static PyObject *meth_QWindow_showMaximized(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->showMaximized();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_showMaximized, doc_QWindow_showMaximized);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_showFullScreen, "QWindow.showFullScreen()");

extern "C" {static PyObject *meth_QWindow_showFullScreen(PyObject *, PyObject *);}
static PyObject *meth_QWindow_showFullScreen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->showFullScreen();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_showFullScreen, doc_QWindow_showFullScreen);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_showNormal, "QWindow.showNormal()");

extern "C" {static PyObject *meth_QWindow_showNormal(PyObject *, PyObject *);}
static PyObject *meth_QWindow_showNormal(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->showNormal();
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_showNormal, doc_QWindow_showNormal);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_close, "QWindow.close() -> bool");

extern "C" {static PyObject *meth_QWindow_close(PyObject *, PyObject *);}
static PyObject *meth_QWindow_close(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->close();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_close, doc_QWindow_close);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_raise_, "QWindow.raise_()");

extern "C" {static PyObject *meth_QWindow_raise_(PyObject *, PyObject *);}
static PyObject *meth_QWindow_raise_(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            sipCpp->raise();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_raise_, doc_QWindow_raise_);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_lower, "QWindow.lower()");

extern "C" {static PyObject *meth_QWindow_lower(PyObject *, PyObject *);}
static PyObject *meth_QWindow_lower(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            sipCpp->lower();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_lower, doc_QWindow_lower);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setTitle, "QWindow.setTitle(str)");

extern "C" {static PyObject *meth_QWindow_setTitle(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setTitle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QWindow, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setTitle(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setTitle, doc_QWindow_setTitle);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setX, "QWindow.setX(int)");

extern "C" {static PyObject *meth_QWindow_setX(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setX, doc_QWindow_setX);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setY, "QWindow.setY(int)");

extern "C" {static PyObject *meth_QWindow_setY(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setY(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setY, doc_QWindow_setY);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setWidth, "QWindow.setWidth(int)");

extern "C" {static PyObject *meth_QWindow_setWidth(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setWidth, doc_QWindow_setWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setHeight, "QWindow.setHeight(int)");

extern "C" {static PyObject *meth_QWindow_setHeight(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setHeight(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setHeight, doc_QWindow_setHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setMinimumWidth, "QWindow.setMinimumWidth(int)");

extern "C" {static PyObject *meth_QWindow_setMinimumWidth(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setMinimumWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setMinimumWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setMinimumWidth, doc_QWindow_setMinimumWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setMinimumHeight, "QWindow.setMinimumHeight(int)");

extern "C" {static PyObject *meth_QWindow_setMinimumHeight(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setMinimumHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setMinimumHeight(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setMinimumHeight, doc_QWindow_setMinimumHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setMaximumWidth, "QWindow.setMaximumWidth(int)");

extern "C" {static PyObject *meth_QWindow_setMaximumWidth(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setMaximumWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setMaximumWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setMaximumWidth, doc_QWindow_setMaximumWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setMaximumHeight, "QWindow.setMaximumHeight(int)");

extern "C" {static PyObject *meth_QWindow_setMaximumHeight(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setMaximumHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->setMaximumHeight(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setMaximumHeight, doc_QWindow_setMaximumHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_exposeEvent, "QWindow.exposeEvent(QExposeEvent)");

extern "C" {static PyObject *meth_QWindow_exposeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_exposeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QExposeEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QExposeEvent, &a0))
        {
            sipCpp->sipProtectVirt_exposeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_exposeEvent, doc_QWindow_exposeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_resizeEvent, "QWindow.resizeEvent(QResizeEvent)");

extern "C" {static PyObject *meth_QWindow_resizeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_resizeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QResizeEvent, &a0))
        {
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_resizeEvent, doc_QWindow_resizeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_moveEvent, "QWindow.moveEvent(QMoveEvent)");

extern "C" {static PyObject *meth_QWindow_moveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_moveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_moveEvent, doc_QWindow_moveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_focusInEvent, "QWindow.focusInEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QWindow_focusInEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_focusInEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_focusInEvent, doc_QWindow_focusInEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_focusOutEvent, "QWindow.focusOutEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QWindow_focusOutEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_focusOutEvent, doc_QWindow_focusOutEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_showEvent, "QWindow.showEvent(QShowEvent)");

extern "C" {static PyObject *meth_QWindow_showEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_showEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QShowEvent, &a0))
        {
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_showEvent, doc_QWindow_showEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_hideEvent, "QWindow.hideEvent(QHideEvent)");

extern "C" {static PyObject *meth_QWindow_hideEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_hideEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QHideEvent, &a0))
        {
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_hideEvent, doc_QWindow_hideEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_event, "QWindow.event(QEvent) -> bool");

extern "C" {static PyObject *meth_QWindow_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_event, doc_QWindow_event);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_keyPressEvent, "QWindow.keyPressEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QWindow_keyPressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_keyPressEvent, doc_QWindow_keyPressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_keyReleaseEvent, "QWindow.keyReleaseEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QWindow_keyReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_keyReleaseEvent, doc_QWindow_keyReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_mousePressEvent, "QWindow.mousePressEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QWindow_mousePressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_mousePressEvent, doc_QWindow_mousePressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_mouseReleaseEvent, "QWindow.mouseReleaseEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QWindow_mouseReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_mouseReleaseEvent, doc_QWindow_mouseReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_mouseDoubleClickEvent, "QWindow.mouseDoubleClickEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QWindow_mouseDoubleClickEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_mouseDoubleClickEvent, doc_QWindow_mouseDoubleClickEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_mouseMoveEvent, "QWindow.mouseMoveEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QWindow_mouseMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_mouseMoveEvent, doc_QWindow_mouseMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_wheelEvent, "QWindow.wheelEvent(QWheelEvent)");

extern "C" {static PyObject *meth_QWindow_wheelEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_wheelEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QWheelEvent, &a0))
        {
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_wheelEvent, doc_QWindow_wheelEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_touchEvent, "QWindow.touchEvent(QTouchEvent)");

extern "C" {static PyObject *meth_QWindow_touchEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_touchEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTouchEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QTouchEvent, &a0))
        {
            sipCpp->sipProtectVirt_touchEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_touchEvent, doc_QWindow_touchEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_tabletEvent, "QWindow.tabletEvent(QTabletEvent)");

extern "C" {static PyObject *meth_QWindow_tabletEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QWindow_tabletEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent* a0;
        sipQWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QWindow, &sipCpp, sipType_QTabletEvent, &a0))
        {
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_tabletEvent, doc_QWindow_tabletEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_visibility, "QWindow.visibility() -> QWindow.Visibility");

extern "C" {static PyObject *meth_QWindow_visibility(PyObject *, PyObject *);}
static PyObject *meth_QWindow_visibility(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QWindow::Visibility sipRes;

            sipRes = sipCpp->visibility();

            return sipConvertFromEnum(sipRes,sipType_QWindow_Visibility);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_visibility, doc_QWindow_visibility);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setVisibility, "QWindow.setVisibility(QWindow.Visibility)");

extern "C" {static PyObject *meth_QWindow_setVisibility(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setVisibility(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QWindow::Visibility a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QWindow, &sipCpp, sipType_QWindow_Visibility, &a0))
        {
            sipCpp->setVisibility(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setVisibility, doc_QWindow_setVisibility);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_opacity, "QWindow.opacity() -> float");

extern "C" {static PyObject *meth_QWindow_opacity(PyObject *, PyObject *);}
static PyObject *meth_QWindow_opacity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->opacity();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_opacity, doc_QWindow_opacity);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_setMask, "QWindow.setMask(QRegion)");

extern "C" {static PyObject *meth_QWindow_setMask(PyObject *, PyObject *);}
static PyObject *meth_QWindow_setMask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QWindow, &sipCpp, sipType_QRegion, &a0))
        {
            sipCpp->setMask(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_setMask, doc_QWindow_setMask);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_mask, "QWindow.mask() -> QRegion");

extern "C" {static PyObject *meth_QWindow_mask(PyObject *, PyObject *);}
static PyObject *meth_QWindow_mask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindow, &sipCpp))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->mask());

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_mask, doc_QWindow_mask);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_fromWinId, "QWindow.fromWinId(sip.voidptr) -> QWindow");

extern "C" {static PyObject *meth_QWindow_fromWinId(PyObject *, PyObject *);}
static PyObject *meth_QWindow_fromWinId(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        WId* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_quintptr,&a0, &a0State))
        {
            QWindow*sipRes;

            sipRes = QWindow::fromWinId(*a0);
            sipReleaseType(a0,sipType_quintptr,a0State);

            return sipConvertFromType(sipRes,sipType_QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_fromWinId, doc_QWindow_fromWinId);

    return NULL;
}


PyDoc_STRVAR(doc_QWindow_alert, "QWindow.alert(int)");

extern "C" {static PyObject *meth_QWindow_alert(PyObject *, PyObject *);}
static PyObject *meth_QWindow_alert(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QWindow, &sipCpp, &a0))
        {
            sipCpp->alert(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindow, sipName_alert, doc_QWindow_alert);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QWindow(void *, const sipTypeDef *);}
static void *cast_QWindow(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QWindow)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QWindow *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_QSurface)->ctd_cast((QSurface *)(QWindow *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWindow(void *, int);}
static void release_QWindow(void *sipCppV,int)
{
    QWindow *sipCpp = reinterpret_cast<QWindow *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QWindow(sipSimpleWrapper *);}
static void dealloc_QWindow(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQWindow *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QWindow(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QWindow(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QWindow(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQWindow *sipCpp = 0;

    {
        QScreen* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_screen,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J8", sipType_QScreen, &a0))
        {
            sipCpp = new sipQWindow(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QWindow* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QWindow, &a0, sipOwner))
        {
            sipCpp = new sipQWindow(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QWindow[] = {{162, 0, 0}, {256, 255, 1}};


static PyMethodDef methods_QWindow[] = {
    {SIP_MLNAME_CAST(sipName_alert), meth_QWindow_alert, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_alert)},
    {SIP_MLNAME_CAST(sipName_baseSize), meth_QWindow_baseSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_baseSize)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QWindow_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_close), meth_QWindow_close, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_close)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QWindow_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_contentOrientation), meth_QWindow_contentOrientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_contentOrientation)},
    {SIP_MLNAME_CAST(sipName_create), meth_QWindow_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_create)},
    {SIP_MLNAME_CAST(sipName_cursor), meth_QWindow_cursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_cursor)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QWindow_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), meth_QWindow_destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_destroy)},
    {SIP_MLNAME_CAST(sipName_devicePixelRatio), meth_QWindow_devicePixelRatio, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_devicePixelRatio)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QWindow_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_QWindow_event, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_event)},
    {SIP_MLNAME_CAST(sipName_exposeEvent), (PyCFunction)meth_QWindow_exposeEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_exposeEvent)},
    {SIP_MLNAME_CAST(sipName_filePath), meth_QWindow_filePath, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_filePath)},
    {SIP_MLNAME_CAST(sipName_flags), meth_QWindow_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_flags)},
    {SIP_MLNAME_CAST(sipName_focusInEvent), (PyCFunction)meth_QWindow_focusInEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_focusInEvent)},
    {SIP_MLNAME_CAST(sipName_focusObject), meth_QWindow_focusObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_focusObject)},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), (PyCFunction)meth_QWindow_focusOutEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_focusOutEvent)},
    {SIP_MLNAME_CAST(sipName_format), meth_QWindow_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_format)},
    {SIP_MLNAME_CAST(sipName_frameGeometry), meth_QWindow_frameGeometry, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_frameGeometry)},
    {SIP_MLNAME_CAST(sipName_frameMargins), meth_QWindow_frameMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_frameMargins)},
    {SIP_MLNAME_CAST(sipName_framePosition), meth_QWindow_framePosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_framePosition)},
    {SIP_MLNAME_CAST(sipName_fromWinId), meth_QWindow_fromWinId, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_fromWinId)},
    {SIP_MLNAME_CAST(sipName_geometry), meth_QWindow_geometry, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_geometry)},
    {SIP_MLNAME_CAST(sipName_height), meth_QWindow_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_height)},
    {SIP_MLNAME_CAST(sipName_hide), meth_QWindow_hide, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_hide)},
    {SIP_MLNAME_CAST(sipName_hideEvent), (PyCFunction)meth_QWindow_hideEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_hideEvent)},
    {SIP_MLNAME_CAST(sipName_icon), meth_QWindow_icon, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_icon)},
    {SIP_MLNAME_CAST(sipName_isActive), meth_QWindow_isActive, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_isActive)},
    {SIP_MLNAME_CAST(sipName_isAncestorOf), (PyCFunction)meth_QWindow_isAncestorOf, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_isAncestorOf)},
    {SIP_MLNAME_CAST(sipName_isExposed), meth_QWindow_isExposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_isExposed)},
    {SIP_MLNAME_CAST(sipName_isModal), meth_QWindow_isModal, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_isModal)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QWindow_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isTopLevel), meth_QWindow_isTopLevel, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_isTopLevel)},
    {SIP_MLNAME_CAST(sipName_isVisible), meth_QWindow_isVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_isVisible)},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), (PyCFunction)meth_QWindow_keyPressEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_keyPressEvent)},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), (PyCFunction)meth_QWindow_keyReleaseEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_keyReleaseEvent)},
    {SIP_MLNAME_CAST(sipName_lower), meth_QWindow_lower, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_lower)},
    {SIP_MLNAME_CAST(sipName_mapFromGlobal), meth_QWindow_mapFromGlobal, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_mapFromGlobal)},
    {SIP_MLNAME_CAST(sipName_mapToGlobal), meth_QWindow_mapToGlobal, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_mapToGlobal)},
    {SIP_MLNAME_CAST(sipName_mask), meth_QWindow_mask, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_mask)},
    {SIP_MLNAME_CAST(sipName_maximumHeight), meth_QWindow_maximumHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_maximumHeight)},
    {SIP_MLNAME_CAST(sipName_maximumSize), meth_QWindow_maximumSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_maximumSize)},
    {SIP_MLNAME_CAST(sipName_maximumWidth), meth_QWindow_maximumWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_maximumWidth)},
    {SIP_MLNAME_CAST(sipName_minimumHeight), meth_QWindow_minimumHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_minimumHeight)},
    {SIP_MLNAME_CAST(sipName_minimumSize), meth_QWindow_minimumSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_minimumSize)},
    {SIP_MLNAME_CAST(sipName_minimumWidth), meth_QWindow_minimumWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_minimumWidth)},
    {SIP_MLNAME_CAST(sipName_modality), meth_QWindow_modality, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_modality)},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), (PyCFunction)meth_QWindow_mouseDoubleClickEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_mouseDoubleClickEvent)},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), (PyCFunction)meth_QWindow_mouseMoveEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_mouseMoveEvent)},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), (PyCFunction)meth_QWindow_mousePressEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_mousePressEvent)},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), (PyCFunction)meth_QWindow_mouseReleaseEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_mouseReleaseEvent)},
    {SIP_MLNAME_CAST(sipName_moveEvent), (PyCFunction)meth_QWindow_moveEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_moveEvent)},
    {SIP_MLNAME_CAST(sipName_opacity), meth_QWindow_opacity, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_opacity)},
    {SIP_MLNAME_CAST(sipName_parent), meth_QWindow_parent, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_parent)},
    {SIP_MLNAME_CAST(sipName_position), meth_QWindow_position, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_position)},
    {SIP_MLNAME_CAST(sipName_raise_), meth_QWindow_raise_, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_raise_)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QWindow_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_reportContentOrientationChange), meth_QWindow_reportContentOrientationChange, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_reportContentOrientationChange)},
    {SIP_MLNAME_CAST(sipName_requestActivate), meth_QWindow_requestActivate, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_requestActivate)},
    {SIP_MLNAME_CAST(sipName_requestedFormat), meth_QWindow_requestedFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_requestedFormat)},
    {SIP_MLNAME_CAST(sipName_resize), meth_QWindow_resize, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_resize)},
    {SIP_MLNAME_CAST(sipName_resizeEvent), (PyCFunction)meth_QWindow_resizeEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_resizeEvent)},
    {SIP_MLNAME_CAST(sipName_screen), meth_QWindow_screen, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_screen)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QWindow_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QWindow_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setBaseSize), meth_QWindow_setBaseSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setBaseSize)},
    {SIP_MLNAME_CAST(sipName_setCursor), meth_QWindow_setCursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setCursor)},
    {SIP_MLNAME_CAST(sipName_setFilePath), meth_QWindow_setFilePath, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setFilePath)},
    {SIP_MLNAME_CAST(sipName_setFlags), meth_QWindow_setFlags, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setFlags)},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QWindow_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setFormat)},
    {SIP_MLNAME_CAST(sipName_setFramePosition), meth_QWindow_setFramePosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setFramePosition)},
    {SIP_MLNAME_CAST(sipName_setGeometry), meth_QWindow_setGeometry, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setGeometry)},
    {SIP_MLNAME_CAST(sipName_setHeight), meth_QWindow_setHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setHeight)},
    {SIP_MLNAME_CAST(sipName_setIcon), meth_QWindow_setIcon, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setIcon)},
    {SIP_MLNAME_CAST(sipName_setKeyboardGrabEnabled), meth_QWindow_setKeyboardGrabEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setKeyboardGrabEnabled)},
    {SIP_MLNAME_CAST(sipName_setMask), meth_QWindow_setMask, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setMask)},
    {SIP_MLNAME_CAST(sipName_setMaximumHeight), meth_QWindow_setMaximumHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setMaximumHeight)},
    {SIP_MLNAME_CAST(sipName_setMaximumSize), meth_QWindow_setMaximumSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setMaximumSize)},
    {SIP_MLNAME_CAST(sipName_setMaximumWidth), meth_QWindow_setMaximumWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setMaximumWidth)},
    {SIP_MLNAME_CAST(sipName_setMinimumHeight), meth_QWindow_setMinimumHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setMinimumHeight)},
    {SIP_MLNAME_CAST(sipName_setMinimumSize), meth_QWindow_setMinimumSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setMinimumSize)},
    {SIP_MLNAME_CAST(sipName_setMinimumWidth), meth_QWindow_setMinimumWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setMinimumWidth)},
    {SIP_MLNAME_CAST(sipName_setModality), meth_QWindow_setModality, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setModality)},
    {SIP_MLNAME_CAST(sipName_setMouseGrabEnabled), meth_QWindow_setMouseGrabEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setMouseGrabEnabled)},
    {SIP_MLNAME_CAST(sipName_setOpacity), meth_QWindow_setOpacity, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setOpacity)},
    {SIP_MLNAME_CAST(sipName_setParent), meth_QWindow_setParent, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setParent)},
    {SIP_MLNAME_CAST(sipName_setPosition), meth_QWindow_setPosition, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setPosition)},
    {SIP_MLNAME_CAST(sipName_setScreen), meth_QWindow_setScreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setScreen)},
    {SIP_MLNAME_CAST(sipName_setSizeIncrement), meth_QWindow_setSizeIncrement, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setSizeIncrement)},
    {SIP_MLNAME_CAST(sipName_setSurfaceType), meth_QWindow_setSurfaceType, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setSurfaceType)},
    {SIP_MLNAME_CAST(sipName_setTitle), meth_QWindow_setTitle, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setTitle)},
    {SIP_MLNAME_CAST(sipName_setTransientParent), meth_QWindow_setTransientParent, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setTransientParent)},
    {SIP_MLNAME_CAST(sipName_setVisibility), meth_QWindow_setVisibility, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setVisibility)},
    {SIP_MLNAME_CAST(sipName_setVisible), meth_QWindow_setVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setVisible)},
    {SIP_MLNAME_CAST(sipName_setWidth), meth_QWindow_setWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setWidth)},
    {SIP_MLNAME_CAST(sipName_setWindowState), meth_QWindow_setWindowState, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setWindowState)},
    {SIP_MLNAME_CAST(sipName_setX), meth_QWindow_setX, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setX)},
    {SIP_MLNAME_CAST(sipName_setY), meth_QWindow_setY, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_setY)},
    {SIP_MLNAME_CAST(sipName_show), meth_QWindow_show, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_show)},
    {SIP_MLNAME_CAST(sipName_showEvent), (PyCFunction)meth_QWindow_showEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_showEvent)},
    {SIP_MLNAME_CAST(sipName_showFullScreen), meth_QWindow_showFullScreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_showFullScreen)},
    {SIP_MLNAME_CAST(sipName_showMaximized), meth_QWindow_showMaximized, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_showMaximized)},
    {SIP_MLNAME_CAST(sipName_showMinimized), meth_QWindow_showMinimized, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_showMinimized)},
    {SIP_MLNAME_CAST(sipName_showNormal), meth_QWindow_showNormal, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_showNormal)},
    {SIP_MLNAME_CAST(sipName_size), meth_QWindow_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_size)},
    {SIP_MLNAME_CAST(sipName_sizeIncrement), meth_QWindow_sizeIncrement, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_sizeIncrement)},
    {SIP_MLNAME_CAST(sipName_surfaceType), meth_QWindow_surfaceType, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_surfaceType)},
    {SIP_MLNAME_CAST(sipName_tabletEvent), (PyCFunction)meth_QWindow_tabletEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_tabletEvent)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QWindow_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_title), meth_QWindow_title, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_title)},
    {SIP_MLNAME_CAST(sipName_touchEvent), (PyCFunction)meth_QWindow_touchEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_touchEvent)},
    {SIP_MLNAME_CAST(sipName_transientParent), meth_QWindow_transientParent, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_transientParent)},
    {SIP_MLNAME_CAST(sipName_type), meth_QWindow_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_type)},
    {SIP_MLNAME_CAST(sipName_unsetCursor), meth_QWindow_unsetCursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_unsetCursor)},
    {SIP_MLNAME_CAST(sipName_visibility), meth_QWindow_visibility, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_visibility)},
    {SIP_MLNAME_CAST(sipName_wheelEvent), (PyCFunction)meth_QWindow_wheelEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QWindow_wheelEvent)},
    {SIP_MLNAME_CAST(sipName_width), meth_QWindow_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_width)},
    {SIP_MLNAME_CAST(sipName_winId), meth_QWindow_winId, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_winId)},
    {SIP_MLNAME_CAST(sipName_windowState), meth_QWindow_windowState, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_windowState)},
    {SIP_MLNAME_CAST(sipName_x), meth_QWindow_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QWindow_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindow_y)}
};

static sipEnumMemberDef enummembers_QWindow[] = {
    {sipName_AutomaticVisibility, static_cast<int>(QWindow::AutomaticVisibility), 364},
    {sipName_ExcludeTransients, static_cast<int>(QWindow::ExcludeTransients), 363},
    {sipName_FullScreen, static_cast<int>(QWindow::FullScreen), 364},
    {sipName_Hidden, static_cast<int>(QWindow::Hidden), 364},
    {sipName_IncludeTransients, static_cast<int>(QWindow::IncludeTransients), 363},
    {sipName_Maximized, static_cast<int>(QWindow::Maximized), 364},
    {sipName_Minimized, static_cast<int>(QWindow::Minimized), 364},
    {sipName_Windowed, static_cast<int>(QWindow::Windowed), 364},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QWindow[] = {
    {"opacityChanged(qreal)", "\1QWindow.opacityChanged[float]", 0, 0},
    {"activeChanged()", "\1QWindow.activeChanged", 0, 0},
    {"visibilityChanged(QWindow::Visibility)", "\1QWindow.visibilityChanged[QWindow.Visibility]", 0, 0},
    {"windowTitleChanged(QString)", "\1QWindow.windowTitleChanged[str]", 0, 0},
    {"focusObjectChanged(QObject*)", "\1QWindow.focusObjectChanged[QObject]", 0, 0},
    {"contentOrientationChanged(Qt::ScreenOrientation)", "\1QWindow.contentOrientationChanged[Qt.ScreenOrientation]", 0, 0},
    {"visibleChanged(bool)", "\1QWindow.visibleChanged[bool]", 0, 0},
    {"maximumHeightChanged(int)", "\1QWindow.maximumHeightChanged[int]", 0, 0},
    {"maximumWidthChanged(int)", "\1QWindow.maximumWidthChanged[int]", 0, 0},
    {"minimumHeightChanged(int)", "\1QWindow.minimumHeightChanged[int]", 0, 0},
    {"minimumWidthChanged(int)", "\1QWindow.minimumWidthChanged[int]", 0, 0},
    {"heightChanged(int)", "\1QWindow.heightChanged[int]", 0, 0},
    {"widthChanged(int)", "\1QWindow.widthChanged[int]", 0, 0},
    {"yChanged(int)", "\1QWindow.yChanged[int]", 0, 0},
    {"xChanged(int)", "\1QWindow.xChanged[int]", 0, 0},
    {"windowStateChanged(Qt::WindowState)", "\1QWindow.windowStateChanged[Qt.WindowState]", 0, 0},
    {"modalityChanged(Qt::WindowModality)", "\1QWindow.modalityChanged[Qt.WindowModality]", 0, 0},
    {"screenChanged(QScreen*)", "\1QWindow.screenChanged[QScreen]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QWindow, "\1QWindow(QScreen screen=None)\n"
    "QWindow(QWindow)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QWindow = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QWindow,
        {0}
    },
    {
        sipNameNr_QWindow,
        {0, 0, 1},
        123, methods_QWindow,
        8, enummembers_QWindow,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QWindow,
    -1,
    -1,
    supers_QWindow,
    0,
    init_type_QWindow,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QWindow,
    0,
    0,
    0,
    release_QWindow,
    cast_QWindow,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QWindow::staticMetaObject,
    0,
    signals_QWindow,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 96516 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 96520 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QPainter_PixmapFragmentHints___bool__(PyObject *);}
static int slot_QPainter_PixmapFragmentHints___bool__(PyObject *sipSelf)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::PixmapFragmentHints::Int() != 0);
#line 96538 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainter::PixmapFragmentHints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPainter_PixmapFragmentHints, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::PixmapFragmentHints::Int() != a0->operator QPainter::PixmapFragmentHints::Int());
#line 96568 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPainter::PixmapFragmentHints *>(a0),sipType_QPainter_PixmapFragmentHints,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPainter_PixmapFragmentHints,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainter::PixmapFragmentHints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPainter_PixmapFragmentHints, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::PixmapFragmentHints::Int() == a0->operator QPainter::PixmapFragmentHints::Int());
#line 96604 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPainter::PixmapFragmentHints *>(a0),sipType_QPainter_PixmapFragmentHints,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPainter_PixmapFragmentHints,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___invert__(PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___invert__(PyObject *sipSelf)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;


    {
        {
            QPainter::PixmapFragmentHints*sipRes;

            sipRes = new QPainter::PixmapFragmentHints(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QPainter_PixmapFragmentHints,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___and__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::PixmapFragmentHints* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPainter_PixmapFragmentHints, &a0, &a0State, &a1))
        {
            QPainter::PixmapFragmentHints*sipRes;

            sipRes = new QPainter::PixmapFragmentHints((*a0 & a1));
            sipReleaseType(a0,sipType_QPainter_PixmapFragmentHints,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_PixmapFragmentHints,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___xor__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::PixmapFragmentHints* a0;
        int a0State = 0;
        QPainter::PixmapFragmentHints* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QPainter_PixmapFragmentHints, &a0, &a0State, sipType_QPainter_PixmapFragmentHints, &a1, &a1State))
        {
            QPainter::PixmapFragmentHints*sipRes;

            sipRes = new QPainter::PixmapFragmentHints((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QPainter_PixmapFragmentHints,a0State);
            sipReleaseType(a1,sipType_QPainter_PixmapFragmentHints,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_PixmapFragmentHints,NULL);
        }
    }

    {
        QPainter::PixmapFragmentHints* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPainter_PixmapFragmentHints, &a0, &a0State, &a1))
        {
            QPainter::PixmapFragmentHints*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QPainter::PixmapFragmentHints(*a0 ^ a1);
#line 96707 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QPainter_PixmapFragmentHints,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_PixmapFragmentHints,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___or__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::PixmapFragmentHints* a0;
        int a0State = 0;
        QPainter::PixmapFragmentHints* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QPainter_PixmapFragmentHints, &a0, &a0State, sipType_QPainter_PixmapFragmentHints, &a1, &a1State))
        {
            QPainter::PixmapFragmentHints*sipRes;

            sipRes = new QPainter::PixmapFragmentHints((*a0 | *a1));
            sipReleaseType(a0,sipType_QPainter_PixmapFragmentHints,a0State);
            sipReleaseType(a1,sipType_QPainter_PixmapFragmentHints,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_PixmapFragmentHints,NULL);
        }
    }

    {
        QPainter::PixmapFragmentHints* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPainter_PixmapFragmentHints, &a0, &a0State, &a1))
        {
            QPainter::PixmapFragmentHints*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QPainter::PixmapFragmentHints(*a0 | a1);
#line 96757 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QPainter_PixmapFragmentHints,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_PixmapFragmentHints,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___int__(PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___int__(PyObject *sipSelf)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainter_PixmapFragmentHints)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPainter::PixmapFragmentHints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPainter_PixmapFragmentHints, &a0, &a0State))
        {
            sipCpp->QPainter::PixmapFragmentHints::operator^=(*a0);
            sipReleaseType(a0,sipType_QPainter_PixmapFragmentHints,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___ior__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainter_PixmapFragmentHints)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPainter::PixmapFragmentHints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPainter_PixmapFragmentHints, &a0, &a0State))
        {
            sipCpp->QPainter::PixmapFragmentHints::operator|=(*a0);
            sipReleaseType(a0,sipType_QPainter_PixmapFragmentHints,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPainter_PixmapFragmentHints___iand__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_PixmapFragmentHints___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainter_PixmapFragmentHints)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QPainter::PixmapFragmentHints::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPainter_PixmapFragmentHints(void *, const sipTypeDef *);}
static void *cast_QPainter_PixmapFragmentHints(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPainter_PixmapFragmentHints)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPainter_PixmapFragmentHints(void *, int);}
static void release_QPainter_PixmapFragmentHints(void *sipCppV,int)
{
    delete reinterpret_cast<QPainter::PixmapFragmentHints *>(sipCppV);
}


extern "C" {static void assign_QPainter_PixmapFragmentHints(void *, SIP_SSIZE_T, const void *);}
static void assign_QPainter_PixmapFragmentHints(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPainter::PixmapFragmentHints *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPainter::PixmapFragmentHints *>(sipSrc);
}


extern "C" {static void *array_QPainter_PixmapFragmentHints(SIP_SSIZE_T);}
static void *array_QPainter_PixmapFragmentHints(SIP_SSIZE_T sipNrElem)
{
    return new QPainter::PixmapFragmentHints[sipNrElem];
}


extern "C" {static void *copy_QPainter_PixmapFragmentHints(const void *, SIP_SSIZE_T);}
static void *copy_QPainter_PixmapFragmentHints(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPainter::PixmapFragmentHints(reinterpret_cast<const QPainter::PixmapFragmentHints *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPainter_PixmapFragmentHints(sipSimpleWrapper *);}
static void dealloc_QPainter_PixmapFragmentHints(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPainter_PixmapFragmentHints(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPainter_PixmapFragmentHints(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPainter_PixmapFragmentHints(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPainter::PixmapFragmentHints *sipCpp = 0;

    {
        const QPainter::PixmapFragmentHints* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPainter_PixmapFragmentHints, &a0, &a0State))
        {
            sipCpp = new QPainter::PixmapFragmentHints(*a0);
            sipReleaseType(const_cast<QPainter::PixmapFragmentHints *>(a0),sipType_QPainter_PixmapFragmentHints,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QPainter::PixmapFragmentHints(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPainter::PixmapFragmentHints();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QPainter_PixmapFragmentHints(PyObject *, void **, int *, PyObject *);}
static int convertTo_QPainter_PixmapFragmentHints(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QPainter::PixmapFragmentHints **sipCppPtr = reinterpret_cast<QPainter::PixmapFragmentHints **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QPainter::PixmapFragmentHints is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QPainter_PixmapFragmentHint)) ||
            sipCanConvertToType(sipPy, sipType_QPainter_PixmapFragmentHints, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QPainter_PixmapFragmentHint)))
{
    *sipCppPtr = new QPainter::PixmapFragmentHints(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipConvertToType(sipPy, sipType_QPainter_PixmapFragmentHints, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 97034 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPainter_PixmapFragmentHints[] = {
    {(void *)slot_QPainter_PixmapFragmentHints___bool__, bool_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___ne__, ne_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___eq__, eq_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___invert__, invert_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___and__, and_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___xor__, xor_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___or__, or_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___int__, int_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___ixor__, ixor_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___ior__, ior_slot},
    {(void *)slot_QPainter_PixmapFragmentHints___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QPainter_PixmapFragmentHints, "\1QPainter.PixmapFragmentHints(QPainter.PixmapFragmentHints)\n"
    "QPainter.PixmapFragmentHints(int)\n"
    "QPainter.PixmapFragmentHints()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPainter_PixmapFragmentHints = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPainter__PixmapFragmentHints,
        {0}
    },
    {
        sipNameNr_PixmapFragmentHints,
        {195, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainter_PixmapFragmentHints,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPainter_PixmapFragmentHints,
    init_type_QPainter_PixmapFragmentHints,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPainter_PixmapFragmentHints,
    assign_QPainter_PixmapFragmentHints,
    array_QPainter_PixmapFragmentHints,
    copy_QPainter_PixmapFragmentHints,
    release_QPainter_PixmapFragmentHints,
    cast_QPainter_PixmapFragmentHints,
    convertTo_QPainter_PixmapFragmentHints,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 501 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 97118 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 97122 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 97125 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainter_PixmapFragment_create, "QPainter.PixmapFragment.create(QPointF, QRectF, float scaleX=1, float scaleY=1, float rotation=0, float opacity=1) -> QPainter.PixmapFragment");

extern "C" {static PyObject *meth_QPainter_PixmapFragment_create(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_PixmapFragment_create(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QRectF* a1;
        qreal a2 = 1;
        qreal a3 = 1;
        qreal a4 = 0;
        qreal a5 = 1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_scaleX,
            sipName_scaleY,
            sipName_rotation,
            sipName_opacity,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1J9|dddd", sipType_QPointF, &a0, &a0State, sipType_QRectF, &a1, &a2, &a3, &a4, &a5))
        {
            QPainter::PixmapFragment*sipRes;

            sipRes = new QPainter::PixmapFragment(QPainter::PixmapFragment::create(*a0,*a1,a2,a3,a4,a5));
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_PixmapFragment,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_PixmapFragment, sipName_create, doc_QPainter_PixmapFragment_create);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPainter_PixmapFragment(void *, const sipTypeDef *);}
static void *cast_QPainter_PixmapFragment(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPainter_PixmapFragment)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPainter_PixmapFragment(void *, int);}
static void release_QPainter_PixmapFragment(void *sipCppV,int)
{
    delete reinterpret_cast<QPainter::PixmapFragment *>(sipCppV);
}


extern "C" {static void assign_QPainter_PixmapFragment(void *, SIP_SSIZE_T, const void *);}
static void assign_QPainter_PixmapFragment(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPainter::PixmapFragment *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPainter::PixmapFragment *>(sipSrc);
}


extern "C" {static void *array_QPainter_PixmapFragment(SIP_SSIZE_T);}
static void *array_QPainter_PixmapFragment(SIP_SSIZE_T sipNrElem)
{
    return new QPainter::PixmapFragment[sipNrElem];
}


extern "C" {static void *copy_QPainter_PixmapFragment(const void *, SIP_SSIZE_T);}
static void *copy_QPainter_PixmapFragment(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPainter::PixmapFragment(reinterpret_cast<const QPainter::PixmapFragment *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPainter_PixmapFragment(sipSimpleWrapper *);}
static void dealloc_QPainter_PixmapFragment(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPainter_PixmapFragment(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPainter_PixmapFragment(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPainter_PixmapFragment(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPainter::PixmapFragment *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPainter::PixmapFragment();

            return sipCpp;
        }
    }

    {
        const QPainter::PixmapFragment* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPainter_PixmapFragment, &a0))
        {
            sipCpp = new QPainter::PixmapFragment(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPainter_PixmapFragment[] = {
    {SIP_MLNAME_CAST(sipName_create), (PyCFunction)meth_QPainter_PixmapFragment_create, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_PixmapFragment_create)}
};


extern "C" {static PyObject *varget_QPainter_PixmapFragment_height(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_height(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->height;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_height(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_height(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->height = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainter_PixmapFragment_opacity(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_opacity(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->opacity;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_opacity(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_opacity(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->opacity = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainter_PixmapFragment_rotation(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_rotation(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->rotation;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_rotation(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_rotation(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->rotation = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainter_PixmapFragment_scaleX(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_scaleX(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->scaleX;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_scaleX(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_scaleX(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->scaleX = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainter_PixmapFragment_scaleY(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_scaleY(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->scaleY;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_scaleY(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_scaleY(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->scaleY = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainter_PixmapFragment_sourceLeft(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_sourceLeft(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->sourceLeft;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_sourceLeft(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_sourceLeft(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->sourceLeft = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainter_PixmapFragment_sourceTop(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_sourceTop(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->sourceTop;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_sourceTop(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_sourceTop(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->sourceTop = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainter_PixmapFragment_width(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_width(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->width;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_width(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_width(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->width = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainter_PixmapFragment_x(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_x(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->x;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_x(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_x(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->x = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPainter_PixmapFragment_y(void *, PyObject *, PyObject *);}
static PyObject *varget_QPainter_PixmapFragment_y(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = sipCpp->y;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPainter_PixmapFragment_y(void *, PyObject *, PyObject *);}
static int varset_QPainter_PixmapFragment_y(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPainter::PixmapFragment *sipCpp = reinterpret_cast<QPainter::PixmapFragment *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->y = sipVal;

    return 0;
}

sipVariableDef variables_QPainter_PixmapFragment[] = {
    {InstanceVariable, sipName_height, (PyMethodDef *)varget_QPainter_PixmapFragment_height, (PyMethodDef *)varset_QPainter_PixmapFragment_height, NULL, NULL},
    {InstanceVariable, sipName_opacity, (PyMethodDef *)varget_QPainter_PixmapFragment_opacity, (PyMethodDef *)varset_QPainter_PixmapFragment_opacity, NULL, NULL},
    {InstanceVariable, sipName_rotation, (PyMethodDef *)varget_QPainter_PixmapFragment_rotation, (PyMethodDef *)varset_QPainter_PixmapFragment_rotation, NULL, NULL},
    {InstanceVariable, sipName_scaleX, (PyMethodDef *)varget_QPainter_PixmapFragment_scaleX, (PyMethodDef *)varset_QPainter_PixmapFragment_scaleX, NULL, NULL},
    {InstanceVariable, sipName_scaleY, (PyMethodDef *)varget_QPainter_PixmapFragment_scaleY, (PyMethodDef *)varset_QPainter_PixmapFragment_scaleY, NULL, NULL},
    {InstanceVariable, sipName_sourceLeft, (PyMethodDef *)varget_QPainter_PixmapFragment_sourceLeft, (PyMethodDef *)varset_QPainter_PixmapFragment_sourceLeft, NULL, NULL},
    {InstanceVariable, sipName_sourceTop, (PyMethodDef *)varget_QPainter_PixmapFragment_sourceTop, (PyMethodDef *)varset_QPainter_PixmapFragment_sourceTop, NULL, NULL},
    {InstanceVariable, sipName_width, (PyMethodDef *)varget_QPainter_PixmapFragment_width, (PyMethodDef *)varset_QPainter_PixmapFragment_width, NULL, NULL},
    {InstanceVariable, sipName_x, (PyMethodDef *)varget_QPainter_PixmapFragment_x, (PyMethodDef *)varset_QPainter_PixmapFragment_x, NULL, NULL},
    {InstanceVariable, sipName_y, (PyMethodDef *)varget_QPainter_PixmapFragment_y, (PyMethodDef *)varset_QPainter_PixmapFragment_y, NULL, NULL},
};

PyDoc_STRVAR(doc_QPainter_PixmapFragment, "\1QPainter.PixmapFragment()\n"
    "QPainter.PixmapFragment(QPainter.PixmapFragment)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPainter_PixmapFragment = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPainter__PixmapFragment,
        {0}
    },
    {
        sipNameNr_PixmapFragment,
        {195, 255, 0},
        1, methods_QPainter_PixmapFragment,
        0, 0,
        10, variables_QPainter_PixmapFragment,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainter_PixmapFragment,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPainter_PixmapFragment,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPainter_PixmapFragment,
    assign_QPainter_PixmapFragment,
    array_QPainter_PixmapFragment,
    copy_QPainter_PixmapFragment,
    release_QPainter_PixmapFragment,
    cast_QPainter_PixmapFragment,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 97618 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 97622 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QPainter_RenderHints___bool__(PyObject *);}
static int slot_QPainter_RenderHints___bool__(PyObject *sipSelf)
{
    QPainter::RenderHints *sipCpp = reinterpret_cast<QPainter::RenderHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_RenderHints));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::RenderHints::Int() != 0);
#line 97640 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPainter_RenderHints___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPainter::RenderHints *sipCpp = reinterpret_cast<QPainter::RenderHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_RenderHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainter::RenderHints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPainter_RenderHints, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::RenderHints::Int() != a0->operator QPainter::RenderHints::Int());
#line 97670 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPainter::RenderHints *>(a0),sipType_QPainter_RenderHints,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPainter_RenderHints,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPainter_RenderHints___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPainter::RenderHints *sipCpp = reinterpret_cast<QPainter::RenderHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_RenderHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPainter::RenderHints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPainter_RenderHints, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QPainter::RenderHints::Int() == a0->operator QPainter::RenderHints::Int());
#line 97706 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QPainter::RenderHints *>(a0),sipType_QPainter_RenderHints,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPainter_RenderHints,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPainter_RenderHints___invert__(PyObject *);}
static PyObject *slot_QPainter_RenderHints___invert__(PyObject *sipSelf)
{
    QPainter::RenderHints *sipCpp = reinterpret_cast<QPainter::RenderHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_RenderHints));

    if (!sipCpp)
        return 0;


    {
        {
            QPainter::RenderHints*sipRes;

            sipRes = new QPainter::RenderHints(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QPainter_RenderHints,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPainter_RenderHints___and__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::RenderHints* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPainter_RenderHints, &a0, &a0State, &a1))
        {
            QPainter::RenderHints*sipRes;

            sipRes = new QPainter::RenderHints((*a0 & a1));
            sipReleaseType(a0,sipType_QPainter_RenderHints,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_RenderHints,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainter_RenderHints___xor__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::RenderHints* a0;
        int a0State = 0;
        QPainter::RenderHints* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QPainter_RenderHints, &a0, &a0State, sipType_QPainter_RenderHints, &a1, &a1State))
        {
            QPainter::RenderHints*sipRes;

            sipRes = new QPainter::RenderHints((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QPainter_RenderHints,a0State);
            sipReleaseType(a1,sipType_QPainter_RenderHints,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_RenderHints,NULL);
        }
    }

    {
        QPainter::RenderHints* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPainter_RenderHints, &a0, &a0State, &a1))
        {
            QPainter::RenderHints*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QPainter::RenderHints(*a0 ^ a1);
#line 97809 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QPainter_RenderHints,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_RenderHints,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainter_RenderHints___or__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::RenderHints* a0;
        int a0State = 0;
        QPainter::RenderHints* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QPainter_RenderHints, &a0, &a0State, sipType_QPainter_RenderHints, &a1, &a1State))
        {
            QPainter::RenderHints*sipRes;

            sipRes = new QPainter::RenderHints((*a0 | *a1));
            sipReleaseType(a0,sipType_QPainter_RenderHints,a0State);
            sipReleaseType(a1,sipType_QPainter_RenderHints,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_RenderHints,NULL);
        }
    }

    {
        QPainter::RenderHints* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QPainter_RenderHints, &a0, &a0State, &a1))
        {
            QPainter::RenderHints*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QPainter::RenderHints(*a0 | a1);
#line 97859 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QPainter_RenderHints,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPainter_RenderHints,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QPainter_RenderHints___int__(PyObject *);}
static PyObject *slot_QPainter_RenderHints___int__(PyObject *sipSelf)
{
    QPainter::RenderHints *sipCpp = reinterpret_cast<QPainter::RenderHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_RenderHints));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QPainter_RenderHints___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainter_RenderHints)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainter::RenderHints *sipCpp = reinterpret_cast<QPainter::RenderHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_RenderHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPainter::RenderHints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPainter_RenderHints, &a0, &a0State))
        {
            sipCpp->QPainter::RenderHints::operator^=(*a0);
            sipReleaseType(a0,sipType_QPainter_RenderHints,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPainter_RenderHints___ior__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainter_RenderHints)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainter::RenderHints *sipCpp = reinterpret_cast<QPainter::RenderHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_RenderHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QPainter::RenderHints* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QPainter_RenderHints, &a0, &a0State))
        {
            sipCpp->QPainter::RenderHints::operator|=(*a0);
            sipReleaseType(a0,sipType_QPainter_RenderHints,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QPainter_RenderHints___iand__(PyObject *,PyObject *);}
static PyObject *slot_QPainter_RenderHints___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QPainter_RenderHints)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QPainter::RenderHints *sipCpp = reinterpret_cast<QPainter::RenderHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_RenderHints));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QPainter::RenderHints::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPainter_RenderHints(void *, const sipTypeDef *);}
static void *cast_QPainter_RenderHints(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPainter_RenderHints)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPainter_RenderHints(void *, int);}
static void release_QPainter_RenderHints(void *sipCppV,int)
{
    delete reinterpret_cast<QPainter::RenderHints *>(sipCppV);
}


extern "C" {static void assign_QPainter_RenderHints(void *, SIP_SSIZE_T, const void *);}
static void assign_QPainter_RenderHints(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPainter::RenderHints *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPainter::RenderHints *>(sipSrc);
}


extern "C" {static void *array_QPainter_RenderHints(SIP_SSIZE_T);}
static void *array_QPainter_RenderHints(SIP_SSIZE_T sipNrElem)
{
    return new QPainter::RenderHints[sipNrElem];
}


extern "C" {static void *copy_QPainter_RenderHints(const void *, SIP_SSIZE_T);}
static void *copy_QPainter_RenderHints(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPainter::RenderHints(reinterpret_cast<const QPainter::RenderHints *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPainter_RenderHints(sipSimpleWrapper *);}
static void dealloc_QPainter_RenderHints(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPainter_RenderHints(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPainter_RenderHints(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPainter_RenderHints(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPainter::RenderHints *sipCpp = 0;

    {
        const QPainter::RenderHints* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPainter_RenderHints, &a0, &a0State))
        {
            sipCpp = new QPainter::RenderHints(*a0);
            sipReleaseType(const_cast<QPainter::RenderHints *>(a0),sipType_QPainter_RenderHints,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QPainter::RenderHints(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPainter::RenderHints();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QPainter_RenderHints(PyObject *, void **, int *, PyObject *);}
static int convertTo_QPainter_RenderHints(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QPainter::RenderHints **sipCppPtr = reinterpret_cast<QPainter::RenderHints **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QPainter::RenderHints is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QPainter_RenderHint)) ||
            sipCanConvertToType(sipPy, sipType_QPainter_RenderHints, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QPainter_RenderHint)))
{
    *sipCppPtr = new QPainter::RenderHints(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QPainter::RenderHints *>(sipConvertToType(sipPy, sipType_QPainter_RenderHints, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 98136 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPainter_RenderHints[] = {
    {(void *)slot_QPainter_RenderHints___bool__, bool_slot},
    {(void *)slot_QPainter_RenderHints___ne__, ne_slot},
    {(void *)slot_QPainter_RenderHints___eq__, eq_slot},
    {(void *)slot_QPainter_RenderHints___invert__, invert_slot},
    {(void *)slot_QPainter_RenderHints___and__, and_slot},
    {(void *)slot_QPainter_RenderHints___xor__, xor_slot},
    {(void *)slot_QPainter_RenderHints___or__, or_slot},
    {(void *)slot_QPainter_RenderHints___int__, int_slot},
    {(void *)slot_QPainter_RenderHints___ixor__, ixor_slot},
    {(void *)slot_QPainter_RenderHints___ior__, ior_slot},
    {(void *)slot_QPainter_RenderHints___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QPainter_RenderHints, "\1QPainter.RenderHints(QPainter.RenderHints)\n"
    "QPainter.RenderHints(int)\n"
    "QPainter.RenderHints()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPainter_RenderHints = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPainter__RenderHints,
        {0}
    },
    {
        sipNameNr_RenderHints,
        {195, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainter_RenderHints,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPainter_RenderHints,
    init_type_QPainter_RenderHints,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPainter_RenderHints,
    assign_QPainter_RenderHints,
    array_QPainter_RenderHints,
    copy_QPainter_RenderHints,
    release_QPainter_RenderHints,
    cast_QPainter_RenderHints,
    convertTo_QPainter_RenderHints,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 98218 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 98222 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 98225 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 98228 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 98231 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qstatictext.sip"
#include <qstatictext.h>
#line 98234 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 98237 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 98240 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 98243 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 98246 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 98249 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 98252 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 98255 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 98258 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 96 "sip/QtCore/qline.sip"
#include <qline.h>
#line 98261 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qline.sip"
#include <qline.h>
#line 98264 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 98267 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 98270 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 98273 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 98276 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 98279 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextoption.sip"
#include <qtextoption.h>
#line 98282 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpicture.sip"
#include <qpicture.h>
#line 98285 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 330 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 98288 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 98291 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 98294 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 98297 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 98300 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 98303 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 98306 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 98309 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 98312 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpen.sip"
#include <qpen.h>
#line 98315 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 98318 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 98321 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 98324 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 98327 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
// Return an array on the heap of class instances extracted from a set of
// Python arguments.
template<class TYPE>
static TYPE *qtgui_inst_array(const TYPE *first, PyObject *t, sipTypeDef *td)
{
    TYPE *arr = new TYPE[1 + PyTuple_GET_SIZE(t)];

    arr[0] = *first;

    for (SIP_SSIZE_T i = 0; i < PyTuple_GET_SIZE(t); ++i)
    {
        int iserr = 0, state;
        TYPE *itm;

        itm  = reinterpret_cast<TYPE *>(sipForceConvertToType(PyTuple_GET_ITEM(t, i), td, 0, SIP_NOT_NONE, &state, &iserr));

        if (iserr)
        {
            sipReleaseType(itm, td, state);

            PyErr_Format(PyExc_TypeError, "each argument must be an instance of %s", sipTypeAsPyTypeObject(td)->tp_name);

            delete[] arr;
            return 0;
        }

        arr[1 + i] = *itm;

        sipReleaseType(itm, td, state);
    }

    return arr;
}
#line 98362 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPainter___enter__, "QPainter.__enter__() -> object");

extern "C" {static PyObject *meth_QPainter___enter__(PyObject *, PyObject *);}
static PyObject *meth_QPainter___enter__(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            PyObject * sipRes = 0;

#line 86 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        // Check a device was passed.
        if (sipCpp->isActive())
        {
            // Just return a reference to self.
            sipRes = sipSelf;
            Py_INCREF(sipRes);
        }
        else
        {
            PyErr_SetString(PyExc_ValueError, "QPainter must be created with a device");
            sipRes = 0;
        }
#line 98392 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName___enter__, doc_QPainter___enter__);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter___exit__, "QPainter.__exit__(object, object, object)");

extern "C" {static PyObject *meth_QPainter___exit__(PyObject *, PyObject *);}
static PyObject *meth_QPainter___exit__(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        PyObject * a1;
        PyObject * a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BP0P0P0", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2))
        {
#line 102 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        sipCpp->end();
#line 98422 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName___exit__, doc_QPainter___exit__);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_device, "QPainter.device() -> QPaintDevice");

extern "C" {static PyObject *meth_QPainter_device(PyObject *, PyObject *);}
static PyObject *meth_QPainter_device(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QPaintDevice*sipRes;

            sipRes = sipCpp->device();

            return sipConvertFromType(sipRes,sipType_QPaintDevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_device, doc_QPainter_device);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_begin, "QPainter.begin(QPaintDevice) -> bool");

extern "C" {static PyObject *meth_QPainter_begin(PyObject *, PyObject *);}
static PyObject *meth_QPainter_begin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintDevice* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPaintDevice, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->begin(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_begin, doc_QPainter_begin);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_end, "QPainter.end() -> bool");

extern "C" {static PyObject *meth_QPainter_end(PyObject *, PyObject *);}
static PyObject *meth_QPainter_end(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->end();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_end, doc_QPainter_end);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_isActive, "QPainter.isActive() -> bool");

extern "C" {static PyObject *meth_QPainter_isActive(PyObject *, PyObject *);}
static PyObject *meth_QPainter_isActive(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isActive();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_isActive, doc_QPainter_isActive);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setCompositionMode, "QPainter.setCompositionMode(QPainter.CompositionMode)");

extern "C" {static PyObject *meth_QPainter_setCompositionMode(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setCompositionMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::CompositionMode a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPainter_CompositionMode, &a0))
        {
            sipCpp->setCompositionMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setCompositionMode, doc_QPainter_setCompositionMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_compositionMode, "QPainter.compositionMode() -> QPainter.CompositionMode");

extern "C" {static PyObject *meth_QPainter_compositionMode(PyObject *, PyObject *);}
static PyObject *meth_QPainter_compositionMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QPainter::CompositionMode sipRes;

            sipRes = sipCpp->compositionMode();

            return sipConvertFromEnum(sipRes,sipType_QPainter_CompositionMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_compositionMode, doc_QPainter_compositionMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_font, "QPainter.font() -> QFont");

extern "C" {static PyObject *meth_QPainter_font(PyObject *, PyObject *);}
static PyObject *meth_QPainter_font(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QFont*sipRes;

            sipRes = new QFont(sipCpp->font());

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_font, doc_QPainter_font);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setFont, "QPainter.setFont(QFont)");

extern "C" {static PyObject *meth_QPainter_setFont(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QFont, &a0))
        {
            sipCpp->setFont(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setFont, doc_QPainter_setFont);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_fontMetrics, "QPainter.fontMetrics() -> QFontMetrics");

extern "C" {static PyObject *meth_QPainter_fontMetrics(PyObject *, PyObject *);}
static PyObject *meth_QPainter_fontMetrics(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QFontMetrics*sipRes;

            sipRes = new QFontMetrics(sipCpp->fontMetrics());

            return sipConvertFromNewType(sipRes,sipType_QFontMetrics,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_fontMetrics, doc_QPainter_fontMetrics);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_fontInfo, "QPainter.fontInfo() -> QFontInfo");

extern "C" {static PyObject *meth_QPainter_fontInfo(PyObject *, PyObject *);}
static PyObject *meth_QPainter_fontInfo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QFontInfo*sipRes;

            sipRes = new QFontInfo(sipCpp->fontInfo());

            return sipConvertFromNewType(sipRes,sipType_QFontInfo,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_fontInfo, doc_QPainter_fontInfo);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setPen, "QPainter.setPen(QColor)\n"
    "QPainter.setPen(QPen)\n"
    "QPainter.setPen(Qt.PenStyle)");

extern "C" {static PyObject *meth_QPainter_setPen(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setPen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setPen(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPen* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPen, &a0, &a0State))
        {
            sipCpp->setPen(*a0);
            sipReleaseType(const_cast<QPen *>(a0),sipType_QPen,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        Qt::PenStyle a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainter, &sipCpp, sipType_Qt_PenStyle, &a0))
        {
            sipCpp->setPen(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setPen, doc_QPainter_setPen);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_pen, "QPainter.pen() -> QPen");

extern "C" {static PyObject *meth_QPainter_pen(PyObject *, PyObject *);}
static PyObject *meth_QPainter_pen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QPen*sipRes;

            sipRes = new QPen(sipCpp->pen());

            return sipConvertFromNewType(sipRes,sipType_QPen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_pen, doc_QPainter_pen);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setBrush, "QPainter.setBrush(QBrush)\n"
    "QPainter.setBrush(Qt.BrushStyle)");

extern "C" {static PyObject *meth_QPainter_setBrush(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setBrush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setBrush(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        Qt::BrushStyle a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainter, &sipCpp, sipType_Qt_BrushStyle, &a0))
        {
            sipCpp->setBrush(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setBrush, doc_QPainter_setBrush);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_brush, "QPainter.brush() -> QBrush");

extern "C" {static PyObject *meth_QPainter_brush(PyObject *, PyObject *);}
static PyObject *meth_QPainter_brush(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->brush());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_brush, doc_QPainter_brush);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setBackgroundMode, "QPainter.setBackgroundMode(Qt.BGMode)");

extern "C" {static PyObject *meth_QPainter_setBackgroundMode(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setBackgroundMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::BGMode a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainter, &sipCpp, sipType_Qt_BGMode, &a0))
        {
            sipCpp->setBackgroundMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setBackgroundMode, doc_QPainter_setBackgroundMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_backgroundMode, "QPainter.backgroundMode() -> Qt.BGMode");

extern "C" {static PyObject *meth_QPainter_backgroundMode(PyObject *, PyObject *);}
static PyObject *meth_QPainter_backgroundMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            Qt::BGMode sipRes;

            sipRes = sipCpp->backgroundMode();

            return sipConvertFromEnum(sipRes,sipType_Qt_BGMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_backgroundMode, doc_QPainter_backgroundMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_brushOrigin, "QPainter.brushOrigin() -> QPoint");

extern "C" {static PyObject *meth_QPainter_brushOrigin(PyObject *, PyObject *);}
static PyObject *meth_QPainter_brushOrigin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->brushOrigin());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_brushOrigin, doc_QPainter_brushOrigin);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setBrushOrigin, "QPainter.setBrushOrigin(QPointF)\n"
    "QPainter.setBrushOrigin(int, int)\n"
    "QPainter.setBrushOrigin(QPoint)");

extern "C" {static PyObject *meth_QPainter_setBrushOrigin(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setBrushOrigin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->setBrushOrigin(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1))
        {
            sipCpp->setBrushOrigin(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->setBrushOrigin(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setBrushOrigin, doc_QPainter_setBrushOrigin);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setBackground, "QPainter.setBackground(QBrush)");

extern "C" {static PyObject *meth_QPainter_setBackground(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setBackground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setBackground(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setBackground, doc_QPainter_setBackground);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_background, "QPainter.background() -> QBrush");

extern "C" {static PyObject *meth_QPainter_background(PyObject *, PyObject *);}
static PyObject *meth_QPainter_background(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QBrush*sipRes;

            sipRes = new QBrush(sipCpp->background());

            return sipConvertFromNewType(sipRes,sipType_QBrush,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_background, doc_QPainter_background);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_clipRegion, "QPainter.clipRegion() -> QRegion");

extern "C" {static PyObject *meth_QPainter_clipRegion(PyObject *, PyObject *);}
static PyObject *meth_QPainter_clipRegion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->clipRegion());

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_clipRegion, doc_QPainter_clipRegion);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_clipPath, "QPainter.clipPath() -> QPainterPath");

extern "C" {static PyObject *meth_QPainter_clipPath(PyObject *, PyObject *);}
static PyObject *meth_QPainter_clipPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QPainterPath*sipRes;

            sipRes = new QPainterPath(sipCpp->clipPath());

            return sipConvertFromNewType(sipRes,sipType_QPainterPath,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_clipPath, doc_QPainter_clipPath);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setClipRect, "QPainter.setClipRect(QRectF, Qt.ClipOperation operation=Qt.ReplaceClip)\n"
    "QPainter.setClipRect(int, int, int, int, Qt.ClipOperation operation=Qt.ReplaceClip)\n"
    "QPainter.setClipRect(QRect, Qt.ClipOperation operation=Qt.ReplaceClip)");

extern "C" {static PyObject *meth_QPainter_setClipRect(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_setClipRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        Qt::ClipOperation a1 = Qt::ReplaceClip;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_operation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_Qt_ClipOperation, &a1))
        {
            sipCpp->setClipRect(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        Qt::ClipOperation a4 = Qt::ReplaceClip;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_operation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biiii|E", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, sipType_Qt_ClipOperation, &a4))
        {
            sipCpp->setClipRect(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        Qt::ClipOperation a1 = Qt::ReplaceClip;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_operation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_Qt_ClipOperation, &a1))
        {
            sipCpp->setClipRect(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setClipRect, doc_QPainter_setClipRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setClipRegion, "QPainter.setClipRegion(QRegion, Qt.ClipOperation operation=Qt.ReplaceClip)");

extern "C" {static PyObject *meth_QPainter_setClipRegion(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_setClipRegion(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        Qt::ClipOperation a1 = Qt::ReplaceClip;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_operation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRegion, &a0, sipType_Qt_ClipOperation, &a1))
        {
            sipCpp->setClipRegion(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setClipRegion, doc_QPainter_setClipRegion);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setClipPath, "QPainter.setClipPath(QPainterPath, Qt.ClipOperation operation=Qt.ReplaceClip)");

extern "C" {static PyObject *meth_QPainter_setClipPath(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_setClipPath(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        Qt::ClipOperation a1 = Qt::ReplaceClip;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_operation,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPainterPath, &a0, sipType_Qt_ClipOperation, &a1))
        {
            sipCpp->setClipPath(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setClipPath, doc_QPainter_setClipPath);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setClipping, "QPainter.setClipping(bool)");

extern "C" {static PyObject *meth_QPainter_setClipping(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setClipping(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPainter, &sipCpp, &a0))
        {
            sipCpp->setClipping(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setClipping, doc_QPainter_setClipping);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_hasClipping, "QPainter.hasClipping() -> bool");

extern "C" {static PyObject *meth_QPainter_hasClipping(PyObject *, PyObject *);}
static PyObject *meth_QPainter_hasClipping(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasClipping();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_hasClipping, doc_QPainter_hasClipping);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_save, "QPainter.save()");

extern "C" {static PyObject *meth_QPainter_save(PyObject *, PyObject *);}
static PyObject *meth_QPainter_save(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            sipCpp->save();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_save, doc_QPainter_save);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_restore, "QPainter.restore()");

extern "C" {static PyObject *meth_QPainter_restore(PyObject *, PyObject *);}
static PyObject *meth_QPainter_restore(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            sipCpp->restore();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_restore, doc_QPainter_restore);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_scale, "QPainter.scale(float, float)");

extern "C" {static PyObject *meth_QPainter_scale(PyObject *, PyObject *);}
static PyObject *meth_QPainter_scale(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1))
        {
            sipCpp->scale(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_scale, doc_QPainter_scale);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_shear, "QPainter.shear(float, float)");

extern "C" {static PyObject *meth_QPainter_shear(PyObject *, PyObject *);}
static PyObject *meth_QPainter_shear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1))
        {
            sipCpp->shear(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_shear, doc_QPainter_shear);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_rotate, "QPainter.rotate(float)");

extern "C" {static PyObject *meth_QPainter_rotate(PyObject *, PyObject *);}
static PyObject *meth_QPainter_rotate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainter, &sipCpp, &a0))
        {
            sipCpp->rotate(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_rotate, doc_QPainter_rotate);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_translate, "QPainter.translate(QPointF)\n"
    "QPainter.translate(float, float)\n"
    "QPainter.translate(QPoint)");

extern "C" {static PyObject *meth_QPainter_translate(PyObject *, PyObject *);}
static PyObject *meth_QPainter_translate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->translate(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1))
        {
            sipCpp->translate(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->translate(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_translate, doc_QPainter_translate);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_window, "QPainter.window() -> QRect");

extern "C" {static PyObject *meth_QPainter_window(PyObject *, PyObject *);}
static PyObject *meth_QPainter_window(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->window());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_window, doc_QPainter_window);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setWindow, "QPainter.setWindow(QRect)\n"
    "QPainter.setWindow(int, int, int, int)");

extern "C" {static PyObject *meth_QPainter_setWindow(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setWindow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->setWindow(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setWindow(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setWindow, doc_QPainter_setWindow);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_viewport, "QPainter.viewport() -> QRect");

extern "C" {static PyObject *meth_QPainter_viewport(PyObject *, PyObject *);}
static PyObject *meth_QPainter_viewport(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->viewport());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_viewport, doc_QPainter_viewport);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setViewport, "QPainter.setViewport(QRect)\n"
    "QPainter.setViewport(int, int, int, int)");

extern "C" {static PyObject *meth_QPainter_setViewport(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setViewport(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->setViewport(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setViewport(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setViewport, doc_QPainter_setViewport);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setViewTransformEnabled, "QPainter.setViewTransformEnabled(bool)");

extern "C" {static PyObject *meth_QPainter_setViewTransformEnabled(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setViewTransformEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPainter, &sipCpp, &a0))
        {
            sipCpp->setViewTransformEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setViewTransformEnabled, doc_QPainter_setViewTransformEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_viewTransformEnabled, "QPainter.viewTransformEnabled() -> bool");

extern "C" {static PyObject *meth_QPainter_viewTransformEnabled(PyObject *, PyObject *);}
static PyObject *meth_QPainter_viewTransformEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->viewTransformEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_viewTransformEnabled, doc_QPainter_viewTransformEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_strokePath, "QPainter.strokePath(QPainterPath, QPen)");

extern "C" {static PyObject *meth_QPainter_strokePath(PyObject *, PyObject *);}
static PyObject *meth_QPainter_strokePath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        const QPen* a1;
        int a1State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPainterPath, &a0, sipType_QPen, &a1, &a1State))
        {
            sipCpp->strokePath(*a0,*a1);
            sipReleaseType(const_cast<QPen *>(a1),sipType_QPen,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_strokePath, doc_QPainter_strokePath);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_fillPath, "QPainter.fillPath(QPainterPath, QBrush)");

extern "C" {static PyObject *meth_QPainter_fillPath(PyObject *, PyObject *);}
static PyObject *meth_QPainter_fillPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        const QBrush* a1;
        int a1State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPainterPath, &a0, sipType_QBrush, &a1, &a1State))
        {
            sipCpp->fillPath(*a0,*a1);
            sipReleaseType(const_cast<QBrush *>(a1),sipType_QBrush,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_fillPath, doc_QPainter_fillPath);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawPath, "QPainter.drawPath(QPainterPath)");

extern "C" {static PyObject *meth_QPainter_drawPath(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawPath(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainterPath* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPainterPath, &a0))
        {
            sipCpp->drawPath(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawPath, doc_QPainter_drawPath);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawPoints, "QPainter.drawPoints(QPointF, ...)\n"
    "QPainter.drawPoints(QPolygonF)\n"
    "QPainter.drawPoints(QPoint, ...)\n"
    "QPainter.drawPoints(QPolygon)");

extern "C" {static PyObject *meth_QPainter_drawPoints(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ0W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, &a1))
        {
            int sipIsErr = 0;

#line 195 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (points)
        {
            sipCpp->drawPoints(points, 1 + PyTuple_GET_SIZE(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 99817 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPolygonF* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPolygonF, &a0))
        {
            sipCpp->drawPoints(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            int sipIsErr = 0;

#line 209 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (points)
        {
            sipCpp->drawPoints(points, 1 + PyTuple_GET_SIZE(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 99862 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPolygon* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPolygon, &a0))
        {
            sipCpp->drawPoints(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawPoints, doc_QPainter_drawPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawLines, "QPainter.drawLines(QLineF, ...)\n"
    "QPainter.drawLines(list-of-QLineF)\n"
    "QPainter.drawLines(QPointF, ...)\n"
    "QPainter.drawLines(list-of-QPointF)\n"
    "QPainter.drawLines(QLine, ...)\n"
    "QPainter.drawLines(list-of-QLine)\n"
    "QPainter.drawLines(QPoint, ...)\n"
    "QPainter.drawLines(list-of-QPoint)");

extern "C" {static PyObject *meth_QPainter_drawLines(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawLines(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLineF* a0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QLineF, &a0, &a1))
        {
            int sipIsErr = 0;

#line 223 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QLineF *lines = qtgui_inst_array<QLineF>(a0, a1, sipType_QLineF);
        
        if (lines)
        {
            sipCpp->drawLines(lines, 1 + PyTuple_GET_SIZE(a1));
            delete[] lines;
        }
        else
            sipIsErr = 1;
#line 99927 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<QLineF>* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QVector_0100QLineF,&a0, &a0State))
        {
            sipCpp->drawLines(*a0);
            sipReleaseType(const_cast<QVector<QLineF> *>(a0),sipType_QVector_0100QLineF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ0W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, &a1))
        {
            int sipIsErr = 0;

#line 237 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPointF *pairs = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (pairs)
        {
            sipCpp->drawLines(pairs, (1 + PyTuple_GET_SIZE(a1)) / 2);
            delete[] pairs;
        }
        else
            sipIsErr = 1;
#line 99974 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<QPointF>* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QVector_0100QPointF,&a0, &a0State))
        {
            sipCpp->drawLines(*a0);
            sipReleaseType(const_cast<QVector<QPointF> *>(a0),sipType_QVector_0100QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QLine* a0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QLine, &a0, &a1))
        {
            int sipIsErr = 0;

#line 251 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QLine *lines = qtgui_inst_array<QLine>(a0, a1, sipType_QLine);
        
        if (lines)
        {
            sipCpp->drawLines(lines, 1 + PyTuple_GET_SIZE(a1));
            delete[] lines;
        }
        else
            sipIsErr = 1;
#line 100021 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<QLine>* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QVector_0100QLine,&a0, &a0State))
        {
            sipCpp->drawLines(*a0);
            sipReleaseType(const_cast<QVector<QLine> *>(a0),sipType_QVector_0100QLine,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            int sipIsErr = 0;

#line 265 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPoint *pairs = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (pairs)
        {
            sipCpp->drawLines(pairs, (1 + PyTuple_GET_SIZE(a1)) / 2);
            delete[] pairs;
        }
        else
            sipIsErr = 1;
#line 100067 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<QPoint>* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QVector_0100QPoint,&a0, &a0State))
        {
            sipCpp->drawLines(*a0);
            sipReleaseType(const_cast<QVector<QPoint> *>(a0),sipType_QVector_0100QPoint,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawLines, doc_QPainter_drawLines);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawRects, "QPainter.drawRects(QRectF, ...)\n"
    "QPainter.drawRects(list-of-QRectF)\n"
    "QPainter.drawRects(QRect, ...)\n"
    "QPainter.drawRects(list-of-QRect)");

extern "C" {static PyObject *meth_QPainter_drawRects(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawRects(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, &a1))
        {
            int sipIsErr = 0;

#line 279 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QRectF *rects = qtgui_inst_array<QRectF>(a0, a1, sipType_QRectF);
        
        if (rects)
        {
            sipCpp->drawRects(rects, 1 + PyTuple_GET_SIZE(a1));
            delete[] rects;
        }
        else
            sipIsErr = 1;
#line 100130 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<QRectF>* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QVector_0100QRectF,&a0, &a0State))
        {
            sipCpp->drawRects(*a0);
            sipReleaseType(const_cast<QVector<QRectF> *>(a0),sipType_QVector_0100QRectF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, &a1))
        {
            int sipIsErr = 0;

#line 293 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QRect *rects = qtgui_inst_array<QRect>(a0, a1, sipType_QRect);
        
        if (rects)
        {
            sipCpp->drawRects(rects, 1 + PyTuple_GET_SIZE(a1));
            delete[] rects;
        }
        else
            sipIsErr = 1;
#line 100176 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<QRect>* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QVector_0100QRect,&a0, &a0State))
        {
            sipCpp->drawRects(*a0);
            sipReleaseType(const_cast<QVector<QRect> *>(a0),sipType_QVector_0100QRect,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawRects, doc_QPainter_drawRects);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawEllipse, "QPainter.drawEllipse(QRectF)\n"
    "QPainter.drawEllipse(QRect)\n"
    "QPainter.drawEllipse(int, int, int, int)\n"
    "QPainter.drawEllipse(QPointF, float, float)\n"
    "QPainter.drawEllipse(QPoint, int, int)");

extern "C" {static PyObject *meth_QPainter_drawEllipse(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawEllipse(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->drawEllipse(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->drawEllipse(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->drawEllipse(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        qreal a1;
        qreal a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1dd", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, &a1, &a2))
        {
            sipCpp->drawEllipse(*a0,a1,a2);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        int a1;
        int a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, &a1, &a2))
        {
            sipCpp->drawEllipse(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawEllipse, doc_QPainter_drawEllipse);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawPolyline, "QPainter.drawPolyline(QPointF, ...)\n"
    "QPainter.drawPolyline(QPolygonF)\n"
    "QPainter.drawPolyline(QPoint, ...)\n"
    "QPainter.drawPolyline(QPolygon)");

extern "C" {static PyObject *meth_QPainter_drawPolyline(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawPolyline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ0W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, &a1))
        {
            int sipIsErr = 0;

#line 309 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (points)
        {
            sipCpp->drawPolyline(points, 1 + PyTuple_GET_SIZE(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 100332 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPolygonF* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPolygonF, &a0))
        {
            sipCpp->drawPolyline(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            int sipIsErr = 0;

#line 323 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (points)
        {
            sipCpp->drawPolyline(points, 1 + PyTuple_GET_SIZE(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 100377 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPolygon* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPolygon, &a0))
        {
            sipCpp->drawPolyline(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawPolyline, doc_QPainter_drawPolyline);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawPolygon, "QPainter.drawPolygon(QPointF, ...)\n"
    "QPainter.drawPolygon(QPolygonF, Qt.FillRule fillRule=Qt.OddEvenFill)\n"
    "QPainter.drawPolygon(QPoint, ...)\n"
    "QPainter.drawPolygon(QPolygon, Qt.FillRule fillRule=Qt.OddEvenFill)");

extern "C" {static PyObject *meth_QPainter_drawPolygon(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawPolygon(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ0W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, &a1))
        {
            int sipIsErr = 0;

#line 337 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (points)
        {
            sipCpp->drawPolygon(points, 1 + PyTuple_GET_SIZE(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 100439 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPolygonF* a0;
        Qt::FillRule a1 = Qt::OddEvenFill;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_fillRule,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPolygonF, &a0, sipType_Qt_FillRule, &a1))
        {
            sipCpp->drawPolygon(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            int sipIsErr = 0;

#line 351 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (points)
        {
            sipCpp->drawPolygon(points, 1 + PyTuple_GET_SIZE(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 100490 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPolygon* a0;
        Qt::FillRule a1 = Qt::OddEvenFill;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_fillRule,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPolygon, &a0, sipType_Qt_FillRule, &a1))
        {
            sipCpp->drawPolygon(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawPolygon, doc_QPainter_drawPolygon);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawConvexPolygon, "QPainter.drawConvexPolygon(QPointF, ...)\n"
    "QPainter.drawConvexPolygon(QPolygonF)\n"
    "QPainter.drawConvexPolygon(QPoint, ...)\n"
    "QPainter.drawConvexPolygon(QPolygon)");

extern "C" {static PyObject *meth_QPainter_drawConvexPolygon(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawConvexPolygon(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ0W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, &a1))
        {
            int sipIsErr = 0;

#line 365 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPointF *points = qtgui_inst_array<QPointF>(a0, a1, sipType_QPointF);
        
        if (points)
        {
            sipCpp->drawConvexPolygon(points, 1 + PyTuple_GET_SIZE(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 100558 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPolygonF* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPolygonF, &a0))
        {
            sipCpp->drawConvexPolygon(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        PyObject * a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8W", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            int sipIsErr = 0;

#line 379 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        QPoint *points = qtgui_inst_array<QPoint>(a0, a1, sipType_QPoint);
        
        if (points)
        {
            sipCpp->drawConvexPolygon(points, 1 + PyTuple_GET_SIZE(a1));
            delete[] points;
        }
        else
            sipIsErr = 1;
#line 100603 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_DECREF(a1);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPolygon* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPolygon, &a0))
        {
            sipCpp->drawConvexPolygon(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawConvexPolygon, doc_QPainter_drawConvexPolygon);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawArc, "QPainter.drawArc(QRectF, int, int)\n"
    "QPainter.drawArc(QRect, int, int)\n"
    "QPainter.drawArc(int, int, int, int, int, int)");

extern "C" {static PyObject *meth_QPainter_drawArc(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawArc(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        int a1;
        int a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, &a1, &a2))
        {
            sipCpp->drawArc(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        int a1;
        int a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, &a1, &a2))
        {
            sipCpp->drawArc(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4;
        int a5;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiiiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp->drawArc(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawArc, doc_QPainter_drawArc);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawPie, "QPainter.drawPie(QRectF, int, int)\n"
    "QPainter.drawPie(QRect, int, int)\n"
    "QPainter.drawPie(int, int, int, int, int, int)");

extern "C" {static PyObject *meth_QPainter_drawPie(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawPie(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        int a1;
        int a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, &a1, &a2))
        {
            sipCpp->drawPie(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        int a1;
        int a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, &a1, &a2))
        {
            sipCpp->drawPie(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4;
        int a5;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiiiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp->drawPie(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawPie, doc_QPainter_drawPie);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawChord, "QPainter.drawChord(QRectF, int, int)\n"
    "QPainter.drawChord(QRect, int, int)\n"
    "QPainter.drawChord(int, int, int, int, int, int)");

extern "C" {static PyObject *meth_QPainter_drawChord(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawChord(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        int a1;
        int a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, &a1, &a2))
        {
            sipCpp->drawChord(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        int a1;
        int a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, &a1, &a2))
        {
            sipCpp->drawChord(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4;
        int a5;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiiiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp->drawChord(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawChord, doc_QPainter_drawChord);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawTiledPixmap, "QPainter.drawTiledPixmap(QRectF, QPixmap, QPointF pos=QPointF())\n"
    "QPainter.drawTiledPixmap(QRect, QPixmap, QPoint pos=QPoint())\n"
    "QPainter.drawTiledPixmap(int, int, int, int, QPixmap, int sx=0, int sy=0)");

extern "C" {static PyObject *meth_QPainter_drawTiledPixmap(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawTiledPixmap(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        const QPixmap* a1;
        const QPointF& a2def = QPointF();
        const QPointF* a2 = &a2def;
        int a2State = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_pos,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J9|J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_QPixmap, &a1, sipType_QPointF, &a2, &a2State))
        {
            sipCpp->drawTiledPixmap(*a0,*a1,*a2);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        const QPixmap* a1;
        const QPoint& a2def = QPoint();
        const QPoint* a2 = &a2def;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_pos,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J9|J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_QPixmap, &a1, sipType_QPoint, &a2))
        {
            sipCpp->drawTiledPixmap(*a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QPixmap* a4;
        int a5 = 0;
        int a6 = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_sx,
            sipName_sy,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiiiJ9|ii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, sipType_QPixmap, &a4, &a5, &a6))
        {
            sipCpp->drawTiledPixmap(a0,a1,a2,a3,*a4,a5,a6);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawTiledPixmap, doc_QPainter_drawTiledPixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawPicture, "QPainter.drawPicture(QPointF, QPicture)\n"
    "QPainter.drawPicture(int, int, QPicture)\n"
    "QPainter.drawPicture(QPoint, QPicture)");

extern "C" {static PyObject *meth_QPainter_drawPicture(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawPicture(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPicture* a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QPicture, &a1))
        {
            sipCpp->drawPicture(*a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        const QPicture* a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, sipType_QPicture, &a2))
        {
            sipCpp->drawPicture(a0,a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        const QPicture* a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, sipType_QPicture, &a1))
        {
            sipCpp->drawPicture(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawPicture, doc_QPainter_drawPicture);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawPixmap, "QPainter.drawPixmap(QRectF, QPixmap, QRectF)\n"
    "QPainter.drawPixmap(QRect, QPixmap, QRect)\n"
    "QPainter.drawPixmap(QPointF, QPixmap)\n"
    "QPainter.drawPixmap(QPoint, QPixmap)\n"
    "QPainter.drawPixmap(QRect, QPixmap)\n"
    "QPainter.drawPixmap(int, int, QPixmap)\n"
    "QPainter.drawPixmap(int, int, int, int, QPixmap)\n"
    "QPainter.drawPixmap(int, int, int, int, QPixmap, int, int, int, int)\n"
    "QPainter.drawPixmap(int, int, QPixmap, int, int, int, int)\n"
    "QPainter.drawPixmap(QPointF, QPixmap, QRectF)\n"
    "QPainter.drawPixmap(QPoint, QPixmap, QRect)");

extern "C" {static PyObject *meth_QPainter_drawPixmap(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawPixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        const QPixmap* a1;
        const QRectF* a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_QPixmap, &a1, sipType_QRectF, &a2))
        {
            sipCpp->drawPixmap(*a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        const QPixmap* a1;
        const QRect* a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_QPixmap, &a1, sipType_QRect, &a2))
        {
            sipCpp->drawPixmap(*a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QPixmap* a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QPixmap, &a1))
        {
            sipCpp->drawPixmap(*a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        const QPixmap* a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, sipType_QPixmap, &a1))
        {
            sipCpp->drawPixmap(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        const QPixmap* a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_QPixmap, &a1))
        {
            sipCpp->drawPixmap(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        const QPixmap* a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, sipType_QPixmap, &a2))
        {
            sipCpp->drawPixmap(a0,a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QPixmap* a4;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiiiJ9", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, sipType_QPixmap, &a4))
        {
            sipCpp->drawPixmap(a0,a1,a2,a3,*a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QPixmap* a4;
        int a5;
        int a6;
        int a7;
        int a8;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiiiJ9iiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, sipType_QPixmap, &a4, &a5, &a6, &a7, &a8))
        {
            sipCpp->drawPixmap(a0,a1,a2,a3,*a4,a5,a6,a7,a8);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        const QPixmap* a2;
        int a3;
        int a4;
        int a5;
        int a6;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9iiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, sipType_QPixmap, &a2, &a3, &a4, &a5, &a6))
        {
            sipCpp->drawPixmap(a0,a1,*a2,a3,a4,a5,a6);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QPixmap* a1;
        const QRectF* a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QPixmap, &a1, sipType_QRectF, &a2))
        {
            sipCpp->drawPixmap(*a0,*a1,*a2);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        const QPixmap* a1;
        const QRect* a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, sipType_QPixmap, &a1, sipType_QRect, &a2))
        {
            sipCpp->drawPixmap(*a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawPixmap, doc_QPainter_drawPixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setLayoutDirection, "QPainter.setLayoutDirection(Qt.LayoutDirection)");

extern "C" {static PyObject *meth_QPainter_setLayoutDirection(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setLayoutDirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::LayoutDirection a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainter, &sipCpp, sipType_Qt_LayoutDirection, &a0))
        {
            sipCpp->setLayoutDirection(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setLayoutDirection, doc_QPainter_setLayoutDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_layoutDirection, "QPainter.layoutDirection() -> Qt.LayoutDirection");

extern "C" {static PyObject *meth_QPainter_layoutDirection(PyObject *, PyObject *);}
static PyObject *meth_QPainter_layoutDirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            Qt::LayoutDirection sipRes;

            sipRes = sipCpp->layoutDirection();

            return sipConvertFromEnum(sipRes,sipType_Qt_LayoutDirection);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_layoutDirection, doc_QPainter_layoutDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawText, "QPainter.drawText(QPointF, str)\n"
    "QPainter.drawText(QRectF, int, str) -> QRectF\n"
    "QPainter.drawText(QRect, int, str) -> QRect\n"
    "QPainter.drawText(QRectF, str, QTextOption option=QTextOption())\n"
    "QPainter.drawText(QPoint, str)\n"
    "QPainter.drawText(int, int, int, int, int, str) -> QRect\n"
    "QPainter.drawText(int, int, str)");

extern "C" {static PyObject *meth_QPainter_drawText(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QString,&a1, &a1State))
        {
            sipCpp->drawText(*a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRectF* a0;
        int a1;
        const QString* a2;
        int a2State = 0;
        QRectF* a3;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9iJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            a3 = new QRectF();

            sipCpp->drawText(*a0,a1,*a2,a3);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipConvertFromNewType(a3,sipType_QRectF,NULL);
        }
    }

    {
        const QRect* a0;
        int a1;
        const QString* a2;
        int a2State = 0;
        QRect* a3;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9iJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            a3 = new QRect();

            sipCpp->drawText(*a0,a1,*a2,a3);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipConvertFromNewType(a3,sipType_QRect,NULL);
        }
    }

    {
        const QRectF* a0;
        const QString* a1;
        int a1State = 0;
        const QTextOption& a2def = QTextOption();
        const QTextOption* a2 = &a2def;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_option,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J1|J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_QString,&a1, &a1State, sipType_QTextOption, &a2))
        {
            sipCpp->drawText(*a0,*a1,*a2);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        const QString* a1;
        int a1State = 0;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, sipType_QString,&a1, &a1State))
        {
            sipCpp->drawText(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4;
        const QString* a5;
        int a5State = 0;
        QRect* a6;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiiiiJ1", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            a6 = new QRect();

            sipCpp->drawText(a0,a1,a2,a3,a4,*a5,a6);
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            return sipConvertFromNewType(a6,sipType_QRect,NULL);
        }
    }

    {
        int a0;
        int a1;
        const QString* a2;
        int a2State = 0;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiiJ1", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            sipCpp->drawText(a0,a1,*a2);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawText, doc_QPainter_drawText);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_boundingRect, "QPainter.boundingRect(QRectF, int, str) -> QRectF\n"
    "QPainter.boundingRect(QRect, int, str) -> QRect\n"
    "QPainter.boundingRect(QRectF, str, QTextOption option=QTextOption()) -> QRectF\n"
    "QPainter.boundingRect(int, int, int, int, int, str) -> QRect");

extern "C" {static PyObject *meth_QPainter_boundingRect(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_boundingRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        int a1;
        const QString* a2;
        int a2State = 0;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9iJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->boundingRect(*a0,a1,*a2));
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    {
        const QRect* a0;
        int a1;
        const QString* a2;
        int a2State = 0;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9iJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, &a1, sipType_QString,&a2, &a2State))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->boundingRect(*a0,a1,*a2));
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    {
        const QRectF* a0;
        const QString* a1;
        int a1State = 0;
        const QTextOption& a2def = QTextOption();
        const QTextOption* a2 = &a2def;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_option,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J1|J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_QString,&a1, &a1State, sipType_QTextOption, &a2))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->boundingRect(*a0,*a1,*a2));
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4;
        const QString* a5;
        int a5State = 0;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BiiiiiJ1", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, &a4, sipType_QString,&a5, &a5State))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->boundingRect(a0,a1,a2,a3,a4,*a5));
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_boundingRect, doc_QPainter_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_fillRect, "QPainter.fillRect(QRectF, QBrush)\n"
    "QPainter.fillRect(QRect, QBrush)\n"
    "QPainter.fillRect(int, int, int, int, QBrush)\n"
    "QPainter.fillRect(QRectF, QColor)\n"
    "QPainter.fillRect(QRect, QColor)\n"
    "QPainter.fillRect(int, int, int, int, QColor)\n"
    "QPainter.fillRect(int, int, int, int, Qt.GlobalColor)\n"
    "QPainter.fillRect(QRect, Qt.GlobalColor)\n"
    "QPainter.fillRect(QRectF, Qt.GlobalColor)\n"
    "QPainter.fillRect(int, int, int, int, Qt.BrushStyle)\n"
    "QPainter.fillRect(QRect, Qt.BrushStyle)\n"
    "QPainter.fillRect(QRectF, Qt.BrushStyle)");

extern "C" {static PyObject *meth_QPainter_fillRect(PyObject *, PyObject *);}
static PyObject *meth_QPainter_fillRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        const QBrush* a1;
        int a1State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_QBrush, &a1, &a1State))
        {
            sipCpp->fillRect(*a0,*a1);
            sipReleaseType(const_cast<QBrush *>(a1),sipType_QBrush,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        const QBrush* a1;
        int a1State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_QBrush, &a1, &a1State))
        {
            sipCpp->fillRect(*a0,*a1);
            sipReleaseType(const_cast<QBrush *>(a1),sipType_QBrush,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QBrush* a4;
        int a4State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiiiJ1", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, sipType_QBrush, &a4, &a4State))
        {
            sipCpp->fillRect(a0,a1,a2,a3,*a4);
            sipReleaseType(const_cast<QBrush *>(a4),sipType_QBrush,a4State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRectF* a0;
        const QColor* a1;
        int a1State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->fillRect(*a0,*a1);
            sipReleaseType(const_cast<QColor *>(a1),sipType_QColor,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        const QColor* a1;
        int a1State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->fillRect(*a0,*a1);
            sipReleaseType(const_cast<QColor *>(a1),sipType_QColor,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QColor* a4;
        int a4State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiiiJ1", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, sipType_QColor, &a4, &a4State))
        {
            sipCpp->fillRect(a0,a1,a2,a3,*a4);
            sipReleaseType(const_cast<QColor *>(a4),sipType_QColor,a4State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        Qt::GlobalColor a4;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiiiE", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, sipType_Qt_GlobalColor, &a4))
        {
            sipCpp->fillRect(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        Qt::GlobalColor a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_Qt_GlobalColor, &a1))
        {
            sipCpp->fillRect(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRectF* a0;
        Qt::GlobalColor a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_Qt_GlobalColor, &a1))
        {
            sipCpp->fillRect(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        Qt::BrushStyle a4;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiiiE", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, sipType_Qt_BrushStyle, &a4))
        {
            sipCpp->fillRect(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        Qt::BrushStyle a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_Qt_BrushStyle, &a1))
        {
            sipCpp->fillRect(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRectF* a0;
        Qt::BrushStyle a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_Qt_BrushStyle, &a1))
        {
            sipCpp->fillRect(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_fillRect, doc_QPainter_fillRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_eraseRect, "QPainter.eraseRect(QRectF)\n"
    "QPainter.eraseRect(QRect)\n"
    "QPainter.eraseRect(int, int, int, int)");

extern "C" {static PyObject *meth_QPainter_eraseRect(PyObject *, PyObject *);}
static PyObject *meth_QPainter_eraseRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->eraseRect(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->eraseRect(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->eraseRect(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_eraseRect, doc_QPainter_eraseRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setRenderHint, "QPainter.setRenderHint(QPainter.RenderHint, bool on=True)");

extern "C" {static PyObject *meth_QPainter_setRenderHint(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_setRenderHint(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::RenderHint a0;
        bool a1 = 1;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_on,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|b", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPainter_RenderHint, &a0, &a1))
        {
            sipCpp->setRenderHint(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setRenderHint, doc_QPainter_setRenderHint);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_renderHints, "QPainter.renderHints() -> QPainter.RenderHints");

extern "C" {static PyObject *meth_QPainter_renderHints(PyObject *, PyObject *);}
static PyObject *meth_QPainter_renderHints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QPainter::RenderHints*sipRes;

            sipRes = new QPainter::RenderHints(sipCpp->renderHints());

            return sipConvertFromNewType(sipRes,sipType_QPainter_RenderHints,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_renderHints, doc_QPainter_renderHints);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setRenderHints, "QPainter.setRenderHints(QPainter.RenderHints, bool on=True)");

extern "C" {static PyObject *meth_QPainter_setRenderHints(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_setRenderHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::RenderHints* a0;
        int a0State = 0;
        bool a1 = 1;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_on,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|b", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPainter_RenderHints, &a0, &a0State, &a1))
        {
            sipCpp->setRenderHints(*a0,a1);
            sipReleaseType(a0,sipType_QPainter_RenderHints,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setRenderHints, doc_QPainter_setRenderHints);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_paintEngine, "QPainter.paintEngine() -> QPaintEngine");

extern "C" {static PyObject *meth_QPainter_paintEngine(PyObject *, PyObject *);}
static PyObject *meth_QPainter_paintEngine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QPaintEngine*sipRes;

            sipRes = sipCpp->paintEngine();

            return sipConvertFromType(sipRes,sipType_QPaintEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_paintEngine, doc_QPainter_paintEngine);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawLine, "QPainter.drawLine(QLineF)\n"
    "QPainter.drawLine(QLine)\n"
    "QPainter.drawLine(int, int, int, int)\n"
    "QPainter.drawLine(QPoint, QPoint)\n"
    "QPainter.drawLine(QPointF, QPointF)");

extern "C" {static PyObject *meth_QPainter_drawLine(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLineF* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QLineF, &a0))
        {
            sipCpp->drawLine(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QLine* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QLine, &a0))
        {
            sipCpp->drawLine(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->drawLine(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        const QPoint* a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, sipType_QPoint, &a1))
        {
            sipCpp->drawLine(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QPointF* a1;
        int a1State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QPointF, &a1, &a1State))
        {
            sipCpp->drawLine(*a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawLine, doc_QPainter_drawLine);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawRect, "QPainter.drawRect(QRectF)\n"
    "QPainter.drawRect(int, int, int, int)\n"
    "QPainter.drawRect(QRect)");

extern "C" {static PyObject *meth_QPainter_drawRect(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->drawRect(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->drawRect(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->drawRect(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawRect, doc_QPainter_drawRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawPoint, "QPainter.drawPoint(QPointF)\n"
    "QPainter.drawPoint(int, int)\n"
    "QPainter.drawPoint(QPoint)");

extern "C" {static PyObject *meth_QPainter_drawPoint(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->drawPoint(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1))
        {
            sipCpp->drawPoint(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->drawPoint(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawPoint, doc_QPainter_drawPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawImage, "QPainter.drawImage(QRectF, QImage, QRectF, Qt.ImageConversionFlags flags=Qt.AutoColor)\n"
    "QPainter.drawImage(QRect, QImage, QRect, Qt.ImageConversionFlags flags=Qt.AutoColor)\n"
    "QPainter.drawImage(QPointF, QImage, QRectF, Qt.ImageConversionFlags flags=Qt.AutoColor)\n"
    "QPainter.drawImage(QPoint, QImage, QRect, Qt.ImageConversionFlags flags=Qt.AutoColor)\n"
    "QPainter.drawImage(QRectF, QImage)\n"
    "QPainter.drawImage(QRect, QImage)\n"
    "QPainter.drawImage(QPointF, QImage)\n"
    "QPainter.drawImage(QPoint, QImage)\n"
    "QPainter.drawImage(int, int, QImage, int sx=0, int sy=0, int sw=-1, int sh=-1, Qt.ImageConversionFlags flags=Qt.AutoColor)");

extern "C" {static PyObject *meth_QPainter_drawImage(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        const QImage* a1;
        const QRectF* a2;
        Qt::ImageConversionFlags a3def = Qt::AutoColor;
        Qt::ImageConversionFlags* a3 = &a3def;
        int a3State = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J9J9|J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_QImage, &a1, sipType_QRectF, &a2, sipType_Qt_ImageConversionFlags, &a3, &a3State))
        {
            sipCpp->drawImage(*a0,*a1,*a2,*a3);
            sipReleaseType(a3,sipType_Qt_ImageConversionFlags,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        const QImage* a1;
        const QRect* a2;
        Qt::ImageConversionFlags a3def = Qt::AutoColor;
        Qt::ImageConversionFlags* a3 = &a3def;
        int a3State = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J9J9|J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_QImage, &a1, sipType_QRect, &a2, sipType_Qt_ImageConversionFlags, &a3, &a3State))
        {
            sipCpp->drawImage(*a0,*a1,*a2,*a3);
            sipReleaseType(a3,sipType_Qt_ImageConversionFlags,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QImage* a1;
        const QRectF* a2;
        Qt::ImageConversionFlags a3def = Qt::AutoColor;
        Qt::ImageConversionFlags* a3 = &a3def;
        int a3State = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1J9J9|J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QImage, &a1, sipType_QRectF, &a2, sipType_Qt_ImageConversionFlags, &a3, &a3State))
        {
            sipCpp->drawImage(*a0,*a1,*a2,*a3);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(a3,sipType_Qt_ImageConversionFlags,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        const QImage* a1;
        const QRect* a2;
        Qt::ImageConversionFlags a3def = Qt::AutoColor;
        Qt::ImageConversionFlags* a3 = &a3def;
        int a3State = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9J9J9|J1", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, sipType_QImage, &a1, sipType_QRect, &a2, sipType_Qt_ImageConversionFlags, &a3, &a3State))
        {
            sipCpp->drawImage(*a0,*a1,*a2,*a3);
            sipReleaseType(a3,sipType_Qt_ImageConversionFlags,a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRectF* a0;
        const QImage* a1;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, sipType_QImage, &a1))
        {
            sipCpp->drawImage(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        const QImage* a1;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, sipType_QImage, &a1))
        {
            sipCpp->drawImage(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QImage* a1;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QImage, &a1))
        {
            sipCpp->drawImage(*a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        const QImage* a1;
        QPainter *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, sipType_QImage, &a1))
        {
            sipCpp->drawImage(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        const QImage* a2;
        int a3 = 0;
        int a4 = 0;
        int a5 = -1;
        int a6 = -1;
        Qt::ImageConversionFlags a7def = Qt::AutoColor;
        Qt::ImageConversionFlags* a7 = &a7def;
        int a7State = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_sx,
            sipName_sy,
            sipName_sw,
            sipName_sh,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiJ9|iiiiJ1", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, sipType_QImage, &a2, &a3, &a4, &a5, &a6, sipType_Qt_ImageConversionFlags, &a7, &a7State))
        {
            sipCpp->drawImage(a0,a1,*a2,a3,a4,a5,a6,*a7);
            sipReleaseType(a7,sipType_Qt_ImageConversionFlags,a7State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawImage, doc_QPainter_drawImage);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_opacity, "QPainter.opacity() -> float");

extern "C" {static PyObject *meth_QPainter_opacity(PyObject *, PyObject *);}
static PyObject *meth_QPainter_opacity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->opacity();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_opacity, doc_QPainter_opacity);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setOpacity, "QPainter.setOpacity(float)");

extern "C" {static PyObject *meth_QPainter_setOpacity(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setOpacity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPainter, &sipCpp, &a0))
        {
            sipCpp->setOpacity(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setOpacity, doc_QPainter_setOpacity);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_worldMatrixEnabled, "QPainter.worldMatrixEnabled() -> bool");

extern "C" {static PyObject *meth_QPainter_worldMatrixEnabled(PyObject *, PyObject *);}
static PyObject *meth_QPainter_worldMatrixEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->worldMatrixEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_worldMatrixEnabled, doc_QPainter_worldMatrixEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setWorldMatrixEnabled, "QPainter.setWorldMatrixEnabled(bool)");

extern "C" {static PyObject *meth_QPainter_setWorldMatrixEnabled(PyObject *, PyObject *);}
static PyObject *meth_QPainter_setWorldMatrixEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QPainter, &sipCpp, &a0))
        {
            sipCpp->setWorldMatrixEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setWorldMatrixEnabled, doc_QPainter_setWorldMatrixEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setTransform, "QPainter.setTransform(QTransform, bool combine=False)");

extern "C" {static PyObject *meth_QPainter_setTransform(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_setTransform(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        bool a1 = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_combine,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|b", &sipSelf, sipType_QPainter, &sipCpp, sipType_QTransform, &a0, &a1))
        {
            sipCpp->setTransform(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setTransform, doc_QPainter_setTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_transform, "QPainter.transform() -> QTransform");

extern "C" {static PyObject *meth_QPainter_transform(PyObject *, PyObject *);}
static PyObject *meth_QPainter_transform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->transform());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_transform, doc_QPainter_transform);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_deviceTransform, "QPainter.deviceTransform() -> QTransform");

extern "C" {static PyObject *meth_QPainter_deviceTransform(PyObject *, PyObject *);}
static PyObject *meth_QPainter_deviceTransform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->deviceTransform());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_deviceTransform, doc_QPainter_deviceTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_resetTransform, "QPainter.resetTransform()");

extern "C" {static PyObject *meth_QPainter_resetTransform(PyObject *, PyObject *);}
static PyObject *meth_QPainter_resetTransform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            sipCpp->resetTransform();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_resetTransform, doc_QPainter_resetTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_setWorldTransform, "QPainter.setWorldTransform(QTransform, bool combine=False)");

extern "C" {static PyObject *meth_QPainter_setWorldTransform(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_setWorldTransform(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        bool a1 = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_combine,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|b", &sipSelf, sipType_QPainter, &sipCpp, sipType_QTransform, &a0, &a1))
        {
            sipCpp->setWorldTransform(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_setWorldTransform, doc_QPainter_setWorldTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_worldTransform, "QPainter.worldTransform() -> QTransform");

extern "C" {static PyObject *meth_QPainter_worldTransform(PyObject *, PyObject *);}
static PyObject *meth_QPainter_worldTransform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->worldTransform());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_worldTransform, doc_QPainter_worldTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_combinedTransform, "QPainter.combinedTransform() -> QTransform");

extern "C" {static PyObject *meth_QPainter_combinedTransform(PyObject *, PyObject *);}
static PyObject *meth_QPainter_combinedTransform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->combinedTransform());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_combinedTransform, doc_QPainter_combinedTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_testRenderHint, "QPainter.testRenderHint(QPainter.RenderHint) -> bool");

extern "C" {static PyObject *meth_QPainter_testRenderHint(PyObject *, PyObject *);}
static PyObject *meth_QPainter_testRenderHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter::RenderHint a0;
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPainter_RenderHint, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->testRenderHint(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_testRenderHint, doc_QPainter_testRenderHint);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawRoundedRect, "QPainter.drawRoundedRect(QRectF, float, float, Qt.SizeMode mode=Qt.AbsoluteSize)\n"
    "QPainter.drawRoundedRect(int, int, int, int, float, float, Qt.SizeMode mode=Qt.AbsoluteSize)\n"
    "QPainter.drawRoundedRect(QRect, float, float, Qt.SizeMode mode=Qt.AbsoluteSize)");

extern "C" {static PyObject *meth_QPainter_drawRoundedRect(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawRoundedRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        qreal a1;
        qreal a2;
        Qt::SizeMode a3 = Qt::AbsoluteSize;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9dd|E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRectF, &a0, &a1, &a2, sipType_Qt_SizeMode, &a3))
        {
            sipCpp->drawRoundedRect(*a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        qreal a4;
        qreal a5;
        Qt::SizeMode a6 = Qt::AbsoluteSize;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biiiidd|E", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5, sipType_Qt_SizeMode, &a6))
        {
            sipCpp->drawRoundedRect(a0,a1,a2,a3,a4,a5,a6);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        qreal a1;
        qreal a2;
        Qt::SizeMode a3 = Qt::AbsoluteSize;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9dd|E", &sipSelf, sipType_QPainter, &sipCpp, sipType_QRect, &a0, &a1, &a2, sipType_Qt_SizeMode, &a3))
        {
            sipCpp->drawRoundedRect(*a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawRoundedRect, doc_QPainter_drawRoundedRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_beginNativePainting, "QPainter.beginNativePainting()");

extern "C" {static PyObject *meth_QPainter_beginNativePainting(PyObject *, PyObject *);}
static PyObject *meth_QPainter_beginNativePainting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            sipCpp->beginNativePainting();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_beginNativePainting, doc_QPainter_beginNativePainting);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_endNativePainting, "QPainter.endNativePainting()");

extern "C" {static PyObject *meth_QPainter_endNativePainting(PyObject *, PyObject *);}
static PyObject *meth_QPainter_endNativePainting(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            sipCpp->endNativePainting();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_endNativePainting, doc_QPainter_endNativePainting);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawPixmapFragments, "QPainter.drawPixmapFragments(list-of-QPainter.PixmapFragment, QPixmap, QPainter.PixmapFragmentHints hints=0)");

extern "C" {static PyObject *meth_QPainter_drawPixmapFragments(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawPixmapFragments(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const QPixmap* a1;
        QPainter::PixmapFragmentHints a2def = 0;
        QPainter::PixmapFragmentHints* a2 = &a2def;
        int a2State = 0;
        QPainter *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_hints,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BTJ9|J1", &sipSelf, sipType_QPainter, &sipCpp, &PyList_Type, &a0, sipType_QPixmap, &a1, sipType_QPainter_PixmapFragmentHints, &a2, &a2State))
        {
            int sipIsErr = 0;

#line 526 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
        // Allocate temporary storage for the C++ conversions.
        SIP_SSIZE_T numFragments = PyList_GET_SIZE(a0);
        QPainter::PixmapFragment *fragments = new QPainter::PixmapFragment[numFragments];
        
        // Convert the fragments.
        for (SIP_SSIZE_T i = 0; i < numFragments; ++i)
        {
            void *cpp = sipForceConvertToType(PyList_GET_ITEM(a0, i), sipType_QPainter_PixmapFragment, NULL, SIP_NO_CONVERTORS, NULL, &sipIsErr);
        
            fragments[i] = *reinterpret_cast<QPainter::PixmapFragment *>(cpp);
        }
        
        if (!sipIsErr)
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->drawPixmapFragments(fragments, numFragments, *a1, *a2);
            Py_END_ALLOW_THREADS
        }
        
        delete[] fragments;
#line 102860 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a2,sipType_QPainter_PixmapFragmentHints,a2State);

            if (sipIsErr)
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawPixmapFragments, doc_QPainter_drawPixmapFragments);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawStaticText, "QPainter.drawStaticText(QPointF, QStaticText)\n"
    "QPainter.drawStaticText(QPoint, QStaticText)\n"
    "QPainter.drawStaticText(int, int, QStaticText)");

extern "C" {static PyObject *meth_QPainter_drawStaticText(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawStaticText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QStaticText* a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QStaticText, &a1))
        {
            sipCpp->drawStaticText(*a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;
        const QStaticText* a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPoint, &a0, sipType_QStaticText, &a1))
        {
            sipCpp->drawStaticText(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        const QStaticText* a2;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ9", &sipSelf, sipType_QPainter, &sipCpp, &a0, &a1, sipType_QStaticText, &a2))
        {
            sipCpp->drawStaticText(a0,a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawStaticText, doc_QPainter_drawStaticText);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_clipBoundingRect, "QPainter.clipBoundingRect() -> QRectF");

extern "C" {static PyObject *meth_QPainter_clipBoundingRect(PyObject *, PyObject *);}
static PyObject *meth_QPainter_clipBoundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPainter, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->clipBoundingRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_clipBoundingRect, doc_QPainter_clipBoundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPainter_drawGlyphRun, "QPainter.drawGlyphRun(QPointF, QGlyphRun)");

extern "C" {static PyObject *meth_QPainter_drawGlyphRun(PyObject *, PyObject *);}
static PyObject *meth_QPainter_drawGlyphRun(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QGlyphRun* a1;
        QPainter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9", &sipSelf, sipType_QPainter, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_QGlyphRun, &a1))
        {
            sipCpp->drawGlyphRun(*a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPainter, sipName_drawGlyphRun, doc_QPainter_drawGlyphRun);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPainter(void *, const sipTypeDef *);}
static void *cast_QPainter(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPainter)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPainter(void *, int);}
static void release_QPainter(void *sipCppV,int)
{
    delete reinterpret_cast<QPainter *>(sipCppV);
}


extern "C" {static void dealloc_QPainter(sipSimpleWrapper *);}
static void dealloc_QPainter(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPainter(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPainter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPainter(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPainter *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPainter();

            return sipCpp;
        }
    }

    {
        QPaintDevice* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QPaintDevice, &a0))
        {
            sipCpp = new QPainter(a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPainter[] = {
    {SIP_MLNAME_CAST(sipName___enter__), meth_QPainter___enter__, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter___enter__)},
    {SIP_MLNAME_CAST(sipName___exit__), meth_QPainter___exit__, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter___exit__)},
    {SIP_MLNAME_CAST(sipName_background), meth_QPainter_background, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_background)},
    {SIP_MLNAME_CAST(sipName_backgroundMode), meth_QPainter_backgroundMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_backgroundMode)},
    {SIP_MLNAME_CAST(sipName_begin), meth_QPainter_begin, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_begin)},
    {SIP_MLNAME_CAST(sipName_beginNativePainting), meth_QPainter_beginNativePainting, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_beginNativePainting)},
    {SIP_MLNAME_CAST(sipName_boundingRect), (PyCFunction)meth_QPainter_boundingRect, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_boundingRect)},
    {SIP_MLNAME_CAST(sipName_brush), meth_QPainter_brush, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_brush)},
    {SIP_MLNAME_CAST(sipName_brushOrigin), meth_QPainter_brushOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_brushOrigin)},
    {SIP_MLNAME_CAST(sipName_clipBoundingRect), meth_QPainter_clipBoundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_clipBoundingRect)},
    {SIP_MLNAME_CAST(sipName_clipPath), meth_QPainter_clipPath, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_clipPath)},
    {SIP_MLNAME_CAST(sipName_clipRegion), meth_QPainter_clipRegion, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_clipRegion)},
    {SIP_MLNAME_CAST(sipName_combinedTransform), meth_QPainter_combinedTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_combinedTransform)},
    {SIP_MLNAME_CAST(sipName_compositionMode), meth_QPainter_compositionMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_compositionMode)},
    {SIP_MLNAME_CAST(sipName_device), meth_QPainter_device, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_device)},
    {SIP_MLNAME_CAST(sipName_deviceTransform), meth_QPainter_deviceTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_deviceTransform)},
    {SIP_MLNAME_CAST(sipName_drawArc), meth_QPainter_drawArc, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawArc)},
    {SIP_MLNAME_CAST(sipName_drawChord), meth_QPainter_drawChord, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawChord)},
    {SIP_MLNAME_CAST(sipName_drawConvexPolygon), meth_QPainter_drawConvexPolygon, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawConvexPolygon)},
    {SIP_MLNAME_CAST(sipName_drawEllipse), meth_QPainter_drawEllipse, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawEllipse)},
    {SIP_MLNAME_CAST(sipName_drawGlyphRun), meth_QPainter_drawGlyphRun, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawGlyphRun)},
    {SIP_MLNAME_CAST(sipName_drawImage), (PyCFunction)meth_QPainter_drawImage, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_drawImage)},
    {SIP_MLNAME_CAST(sipName_drawLine), meth_QPainter_drawLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawLine)},
    {SIP_MLNAME_CAST(sipName_drawLines), meth_QPainter_drawLines, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawLines)},
    {SIP_MLNAME_CAST(sipName_drawPath), meth_QPainter_drawPath, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawPath)},
    {SIP_MLNAME_CAST(sipName_drawPicture), meth_QPainter_drawPicture, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawPicture)},
    {SIP_MLNAME_CAST(sipName_drawPie), meth_QPainter_drawPie, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawPie)},
    {SIP_MLNAME_CAST(sipName_drawPixmap), meth_QPainter_drawPixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawPixmap)},
    {SIP_MLNAME_CAST(sipName_drawPixmapFragments), (PyCFunction)meth_QPainter_drawPixmapFragments, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_drawPixmapFragments)},
    {SIP_MLNAME_CAST(sipName_drawPoint), meth_QPainter_drawPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawPoint)},
    {SIP_MLNAME_CAST(sipName_drawPoints), meth_QPainter_drawPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawPoints)},
    {SIP_MLNAME_CAST(sipName_drawPolygon), (PyCFunction)meth_QPainter_drawPolygon, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_drawPolygon)},
    {SIP_MLNAME_CAST(sipName_drawPolyline), meth_QPainter_drawPolyline, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawPolyline)},
    {SIP_MLNAME_CAST(sipName_drawRect), meth_QPainter_drawRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawRect)},
    {SIP_MLNAME_CAST(sipName_drawRects), meth_QPainter_drawRects, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawRects)},
    {SIP_MLNAME_CAST(sipName_drawRoundedRect), (PyCFunction)meth_QPainter_drawRoundedRect, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_drawRoundedRect)},
    {SIP_MLNAME_CAST(sipName_drawStaticText), meth_QPainter_drawStaticText, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_drawStaticText)},
    {SIP_MLNAME_CAST(sipName_drawText), (PyCFunction)meth_QPainter_drawText, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_drawText)},
    {SIP_MLNAME_CAST(sipName_drawTiledPixmap), (PyCFunction)meth_QPainter_drawTiledPixmap, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_drawTiledPixmap)},
    {SIP_MLNAME_CAST(sipName_end), meth_QPainter_end, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_end)},
    {SIP_MLNAME_CAST(sipName_endNativePainting), meth_QPainter_endNativePainting, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_endNativePainting)},
    {SIP_MLNAME_CAST(sipName_eraseRect), meth_QPainter_eraseRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_eraseRect)},
    {SIP_MLNAME_CAST(sipName_fillPath), meth_QPainter_fillPath, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_fillPath)},
    {SIP_MLNAME_CAST(sipName_fillRect), meth_QPainter_fillRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_fillRect)},
    {SIP_MLNAME_CAST(sipName_font), meth_QPainter_font, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_font)},
    {SIP_MLNAME_CAST(sipName_fontInfo), meth_QPainter_fontInfo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_fontInfo)},
    {SIP_MLNAME_CAST(sipName_fontMetrics), meth_QPainter_fontMetrics, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_fontMetrics)},
    {SIP_MLNAME_CAST(sipName_hasClipping), meth_QPainter_hasClipping, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_hasClipping)},
    {SIP_MLNAME_CAST(sipName_isActive), meth_QPainter_isActive, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_isActive)},
    {SIP_MLNAME_CAST(sipName_layoutDirection), meth_QPainter_layoutDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_layoutDirection)},
    {SIP_MLNAME_CAST(sipName_opacity), meth_QPainter_opacity, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_opacity)},
    {SIP_MLNAME_CAST(sipName_paintEngine), meth_QPainter_paintEngine, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_paintEngine)},
    {SIP_MLNAME_CAST(sipName_pen), meth_QPainter_pen, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_pen)},
    {SIP_MLNAME_CAST(sipName_renderHints), meth_QPainter_renderHints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_renderHints)},
    {SIP_MLNAME_CAST(sipName_resetTransform), meth_QPainter_resetTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_resetTransform)},
    {SIP_MLNAME_CAST(sipName_restore), meth_QPainter_restore, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_restore)},
    {SIP_MLNAME_CAST(sipName_rotate), meth_QPainter_rotate, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_rotate)},
    {SIP_MLNAME_CAST(sipName_save), meth_QPainter_save, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_save)},
    {SIP_MLNAME_CAST(sipName_scale), meth_QPainter_scale, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_scale)},
    {SIP_MLNAME_CAST(sipName_setBackground), meth_QPainter_setBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setBackground)},
    {SIP_MLNAME_CAST(sipName_setBackgroundMode), meth_QPainter_setBackgroundMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setBackgroundMode)},
    {SIP_MLNAME_CAST(sipName_setBrush), meth_QPainter_setBrush, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setBrush)},
    {SIP_MLNAME_CAST(sipName_setBrushOrigin), meth_QPainter_setBrushOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setBrushOrigin)},
    {SIP_MLNAME_CAST(sipName_setClipPath), (PyCFunction)meth_QPainter_setClipPath, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_setClipPath)},
    {SIP_MLNAME_CAST(sipName_setClipRect), (PyCFunction)meth_QPainter_setClipRect, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_setClipRect)},
    {SIP_MLNAME_CAST(sipName_setClipRegion), (PyCFunction)meth_QPainter_setClipRegion, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_setClipRegion)},
    {SIP_MLNAME_CAST(sipName_setClipping), meth_QPainter_setClipping, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setClipping)},
    {SIP_MLNAME_CAST(sipName_setCompositionMode), meth_QPainter_setCompositionMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setCompositionMode)},
    {SIP_MLNAME_CAST(sipName_setFont), meth_QPainter_setFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setFont)},
    {SIP_MLNAME_CAST(sipName_setLayoutDirection), meth_QPainter_setLayoutDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setLayoutDirection)},
    {SIP_MLNAME_CAST(sipName_setOpacity), meth_QPainter_setOpacity, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setOpacity)},
    {SIP_MLNAME_CAST(sipName_setPen), meth_QPainter_setPen, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setPen)},
    {SIP_MLNAME_CAST(sipName_setRenderHint), (PyCFunction)meth_QPainter_setRenderHint, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_setRenderHint)},
    {SIP_MLNAME_CAST(sipName_setRenderHints), (PyCFunction)meth_QPainter_setRenderHints, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_setRenderHints)},
    {SIP_MLNAME_CAST(sipName_setTransform), (PyCFunction)meth_QPainter_setTransform, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_setTransform)},
    {SIP_MLNAME_CAST(sipName_setViewTransformEnabled), meth_QPainter_setViewTransformEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setViewTransformEnabled)},
    {SIP_MLNAME_CAST(sipName_setViewport), meth_QPainter_setViewport, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setViewport)},
    {SIP_MLNAME_CAST(sipName_setWindow), meth_QPainter_setWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setWindow)},
    {SIP_MLNAME_CAST(sipName_setWorldMatrixEnabled), meth_QPainter_setWorldMatrixEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_setWorldMatrixEnabled)},
    {SIP_MLNAME_CAST(sipName_setWorldTransform), (PyCFunction)meth_QPainter_setWorldTransform, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPainter_setWorldTransform)},
    {SIP_MLNAME_CAST(sipName_shear), meth_QPainter_shear, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_shear)},
    {SIP_MLNAME_CAST(sipName_strokePath), meth_QPainter_strokePath, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_strokePath)},
    {SIP_MLNAME_CAST(sipName_testRenderHint), meth_QPainter_testRenderHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_testRenderHint)},
    {SIP_MLNAME_CAST(sipName_transform), meth_QPainter_transform, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_transform)},
    {SIP_MLNAME_CAST(sipName_translate), meth_QPainter_translate, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_translate)},
    {SIP_MLNAME_CAST(sipName_viewTransformEnabled), meth_QPainter_viewTransformEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_viewTransformEnabled)},
    {SIP_MLNAME_CAST(sipName_viewport), meth_QPainter_viewport, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_viewport)},
    {SIP_MLNAME_CAST(sipName_window), meth_QPainter_window, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_window)},
    {SIP_MLNAME_CAST(sipName_worldMatrixEnabled), meth_QPainter_worldMatrixEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_worldMatrixEnabled)},
    {SIP_MLNAME_CAST(sipName_worldTransform), meth_QPainter_worldTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QPainter_worldTransform)}
};

static sipEnumMemberDef enummembers_QPainter[] = {
    {sipName_Antialiasing, static_cast<int>(QPainter::Antialiasing), 200},
    {sipName_CompositionMode_Clear, static_cast<int>(QPainter::CompositionMode_Clear), 196},
    {sipName_CompositionMode_ColorBurn, static_cast<int>(QPainter::CompositionMode_ColorBurn), 196},
    {sipName_CompositionMode_ColorDodge, static_cast<int>(QPainter::CompositionMode_ColorDodge), 196},
    {sipName_CompositionMode_Darken, static_cast<int>(QPainter::CompositionMode_Darken), 196},
    {sipName_CompositionMode_Destination, static_cast<int>(QPainter::CompositionMode_Destination), 196},
    {sipName_CompositionMode_DestinationAtop, static_cast<int>(QPainter::CompositionMode_DestinationAtop), 196},
    {sipName_CompositionMode_DestinationIn, static_cast<int>(QPainter::CompositionMode_DestinationIn), 196},
    {sipName_CompositionMode_DestinationOut, static_cast<int>(QPainter::CompositionMode_DestinationOut), 196},
    {sipName_CompositionMode_DestinationOver, static_cast<int>(QPainter::CompositionMode_DestinationOver), 196},
    {sipName_CompositionMode_Difference, static_cast<int>(QPainter::CompositionMode_Difference), 196},
    {sipName_CompositionMode_Exclusion, static_cast<int>(QPainter::CompositionMode_Exclusion), 196},
    {sipName_CompositionMode_HardLight, static_cast<int>(QPainter::CompositionMode_HardLight), 196},
    {sipName_CompositionMode_Lighten, static_cast<int>(QPainter::CompositionMode_Lighten), 196},
    {sipName_CompositionMode_Multiply, static_cast<int>(QPainter::CompositionMode_Multiply), 196},
    {sipName_CompositionMode_Overlay, static_cast<int>(QPainter::CompositionMode_Overlay), 196},
    {sipName_CompositionMode_Plus, static_cast<int>(QPainter::CompositionMode_Plus), 196},
    {sipName_CompositionMode_Screen, static_cast<int>(QPainter::CompositionMode_Screen), 196},
    {sipName_CompositionMode_SoftLight, static_cast<int>(QPainter::CompositionMode_SoftLight), 196},
    {sipName_CompositionMode_Source, static_cast<int>(QPainter::CompositionMode_Source), 196},
    {sipName_CompositionMode_SourceAtop, static_cast<int>(QPainter::CompositionMode_SourceAtop), 196},
    {sipName_CompositionMode_SourceIn, static_cast<int>(QPainter::CompositionMode_SourceIn), 196},
    {sipName_CompositionMode_SourceOut, static_cast<int>(QPainter::CompositionMode_SourceOut), 196},
    {sipName_CompositionMode_SourceOver, static_cast<int>(QPainter::CompositionMode_SourceOver), 196},
    {sipName_CompositionMode_Xor, static_cast<int>(QPainter::CompositionMode_Xor), 196},
    {sipName_HighQualityAntialiasing, static_cast<int>(QPainter::HighQualityAntialiasing), 200},
    {sipName_NonCosmeticDefaultPen, static_cast<int>(QPainter::NonCosmeticDefaultPen), 200},
    {sipName_OpaqueHint, static_cast<int>(QPainter::OpaqueHint), 198},
    {sipName_Qt4CompatiblePainting, static_cast<int>(QPainter::Qt4CompatiblePainting), 200},
    {sipName_RasterOp_ClearDestination, static_cast<int>(QPainter::RasterOp_ClearDestination), 196},
    {sipName_RasterOp_NotDestination, static_cast<int>(QPainter::RasterOp_NotDestination), 196},
    {sipName_RasterOp_NotSource, static_cast<int>(QPainter::RasterOp_NotSource), 196},
    {sipName_RasterOp_NotSourceAndDestination, static_cast<int>(QPainter::RasterOp_NotSourceAndDestination), 196},
    {sipName_RasterOp_NotSourceAndNotDestination, static_cast<int>(QPainter::RasterOp_NotSourceAndNotDestination), 196},
    {sipName_RasterOp_NotSourceOrDestination, static_cast<int>(QPainter::RasterOp_NotSourceOrDestination), 196},
    {sipName_RasterOp_NotSourceOrNotDestination, static_cast<int>(QPainter::RasterOp_NotSourceOrNotDestination), 196},
    {sipName_RasterOp_NotSourceXorDestination, static_cast<int>(QPainter::RasterOp_NotSourceXorDestination), 196},
    {sipName_RasterOp_SetDestination, static_cast<int>(QPainter::RasterOp_SetDestination), 196},
    {sipName_RasterOp_SourceAndDestination, static_cast<int>(QPainter::RasterOp_SourceAndDestination), 196},
    {sipName_RasterOp_SourceAndNotDestination, static_cast<int>(QPainter::RasterOp_SourceAndNotDestination), 196},
    {sipName_RasterOp_SourceOrDestination, static_cast<int>(QPainter::RasterOp_SourceOrDestination), 196},
    {sipName_RasterOp_SourceOrNotDestination, static_cast<int>(QPainter::RasterOp_SourceOrNotDestination), 196},
    {sipName_RasterOp_SourceXorDestination, static_cast<int>(QPainter::RasterOp_SourceXorDestination), 196},
    {sipName_SmoothPixmapTransform, static_cast<int>(QPainter::SmoothPixmapTransform), 200},
    {sipName_TextAntialiasing, static_cast<int>(QPainter::TextAntialiasing), 200},
};

PyDoc_STRVAR(doc_QPainter, "\1QPainter()\n"
    "QPainter(QPaintDevice)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPainter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NONLAZY|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPainter,
        {0}
    },
    {
        sipNameNr_QPainter,
        {0, 0, 1},
        90, methods_QPainter,
        45, enummembers_QPainter,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPainter,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPainter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPainter,
    0,
    0,
    0,
    release_QPainter,
    cast_QPainter,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 103256 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 103260 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 103263 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 103266 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 103269 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 103272 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPageSize_swap, "QPageSize.swap(QPageSize)");

extern "C" {static PyObject *meth_QPageSize_swap(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPageSize* a0;
        QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPageSize, &sipCpp, sipType_QPageSize, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_swap, doc_QPageSize_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_isEquivalentTo, "QPageSize.isEquivalentTo(QPageSize) -> bool");

extern "C" {static PyObject *meth_QPageSize_isEquivalentTo(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_isEquivalentTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize* a0;
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPageSize, &sipCpp, sipType_QPageSize, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isEquivalentTo(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_isEquivalentTo, doc_QPageSize_isEquivalentTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_isValid, "QPageSize.isValid() -> bool");

extern "C" {static PyObject *meth_QPageSize_isValid(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSize, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_isValid, doc_QPageSize_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_key, "QPageSize.key() -> str\n"
    "QPageSize.key(QPageSize.PageSizeId) -> str");

extern "C" {static PyObject *meth_QPageSize_key(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_key(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSize, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->key());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        QPageSize::PageSizeId a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QPageSize_PageSizeId, &a0))
        {
            QString*sipRes;

            sipRes = new QString(QPageSize::key(a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_key, doc_QPageSize_key);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_name, "QPageSize.name() -> str\n"
    "QPageSize.name(QPageSize.PageSizeId) -> str");

extern "C" {static PyObject *meth_QPageSize_name(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSize, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->name());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        QPageSize::PageSizeId a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QPageSize_PageSizeId, &a0))
        {
            QString*sipRes;

            sipRes = new QString(QPageSize::name(a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_name, doc_QPageSize_name);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_id, "QPageSize.id() -> QPageSize.PageSizeId\n"
    "QPageSize.id(QSize, QPageSize.SizeMatchPolicy matchPolicy=QPageSize.FuzzyMatch) -> QPageSize.PageSizeId\n"
    "QPageSize.id(QSizeF, QPageSize.Unit, QPageSize.SizeMatchPolicy matchPolicy=QPageSize.FuzzyMatch) -> QPageSize.PageSizeId\n"
    "QPageSize.id(int) -> QPageSize.PageSizeId");

extern "C" {static PyObject *meth_QPageSize_id(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageSize_id(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QPageSize, &sipCpp))
        {
            QPageSize::PageSizeId sipRes;

            sipRes = sipCpp->id();

            return sipConvertFromEnum(sipRes,sipType_QPageSize_PageSizeId);
        }
    }

    {
        const QSize* a0;
        QPageSize::SizeMatchPolicy a1 = QPageSize::FuzzyMatch;

        static const char *sipKwdList[] = {
            NULL,
            sipName_matchPolicy,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J9|E", sipType_QSize, &a0, sipType_QPageSize_SizeMatchPolicy, &a1))
        {
            QPageSize::PageSizeId sipRes;

            sipRes = QPageSize::id(*a0,a1);

            return sipConvertFromEnum(sipRes,sipType_QPageSize_PageSizeId);
        }
    }

    {
        const QSizeF* a0;
        QPageSize::Unit a1;
        QPageSize::SizeMatchPolicy a2 = QPageSize::FuzzyMatch;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_matchPolicy,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J9E|E", sipType_QSizeF, &a0, sipType_QPageSize_Unit, &a1, sipType_QPageSize_SizeMatchPolicy, &a2))
        {
            QPageSize::PageSizeId sipRes;

            sipRes = QPageSize::id(*a0,a1,a2);

            return sipConvertFromEnum(sipRes,sipType_QPageSize_PageSizeId);
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "i", &a0))
        {
            QPageSize::PageSizeId sipRes;

            sipRes = QPageSize::id(a0);

            return sipConvertFromEnum(sipRes,sipType_QPageSize_PageSizeId);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_id, doc_QPageSize_id);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_windowsId, "QPageSize.windowsId() -> int\n"
    "QPageSize.windowsId(QPageSize.PageSizeId) -> int");

extern "C" {static PyObject *meth_QPageSize_windowsId(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_windowsId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSize, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->windowsId();

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        QPageSize::PageSizeId a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QPageSize_PageSizeId, &a0))
        {
            int sipRes;

            sipRes = QPageSize::windowsId(a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_windowsId, doc_QPageSize_windowsId);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_definitionSize, "QPageSize.definitionSize() -> QSizeF\n"
    "QPageSize.definitionSize(QPageSize.PageSizeId) -> QSizeF");

extern "C" {static PyObject *meth_QPageSize_definitionSize(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_definitionSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSize, &sipCpp))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(sipCpp->definitionSize());

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    {
        QPageSize::PageSizeId a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QPageSize_PageSizeId, &a0))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(QPageSize::definitionSize(a0));

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_definitionSize, doc_QPageSize_definitionSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_definitionUnits, "QPageSize.definitionUnits() -> QPageSize.Unit\n"
    "QPageSize.definitionUnits(QPageSize.PageSizeId) -> QPageSize.Unit");

extern "C" {static PyObject *meth_QPageSize_definitionUnits(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_definitionUnits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSize, &sipCpp))
        {
            QPageSize::Unit sipRes;

            sipRes = sipCpp->definitionUnits();

            return sipConvertFromEnum(sipRes,sipType_QPageSize_Unit);
        }
    }

    {
        QPageSize::PageSizeId a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QPageSize_PageSizeId, &a0))
        {
            QPageSize::Unit sipRes;

            sipRes = QPageSize::definitionUnits(a0);

            return sipConvertFromEnum(sipRes,sipType_QPageSize_Unit);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_definitionUnits, doc_QPageSize_definitionUnits);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_size, "QPageSize.size(QPageSize.Unit) -> QSizeF\n"
    "QPageSize.size(QPageSize.PageSizeId, QPageSize.Unit) -> QSizeF");

extern "C" {static PyObject *meth_QPageSize_size(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPageSize::Unit a0;
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPageSize, &sipCpp, sipType_QPageSize_Unit, &a0))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(sipCpp->size(a0));

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    {
        QPageSize::PageSizeId a0;
        QPageSize::Unit a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "EE", sipType_QPageSize_PageSizeId, &a0, sipType_QPageSize_Unit, &a1))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(QPageSize::size(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_size, doc_QPageSize_size);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_sizePoints, "QPageSize.sizePoints() -> QSize\n"
    "QPageSize.sizePoints(QPageSize.PageSizeId) -> QSize");

extern "C" {static PyObject *meth_QPageSize_sizePoints(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_sizePoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSize, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->sizePoints());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    {
        QPageSize::PageSizeId a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QPageSize_PageSizeId, &a0))
        {
            QSize*sipRes;

            sipRes = new QSize(QPageSize::sizePoints(a0));

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_sizePoints, doc_QPageSize_sizePoints);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_sizePixels, "QPageSize.sizePixels(int) -> QSize\n"
    "QPageSize.sizePixels(QPageSize.PageSizeId, int) -> QSize");

extern "C" {static PyObject *meth_QPageSize_sizePixels(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_sizePixels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPageSize, &sipCpp, &a0))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->sizePixels(a0));

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    {
        QPageSize::PageSizeId a0;
        int a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "Ei", sipType_QPageSize_PageSizeId, &a0, &a1))
        {
            QSize*sipRes;

            sipRes = new QSize(QPageSize::sizePixels(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_sizePixels, doc_QPageSize_sizePixels);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_rect, "QPageSize.rect(QPageSize.Unit) -> QRectF");

extern "C" {static PyObject *meth_QPageSize_rect(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_rect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPageSize::Unit a0;
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPageSize, &sipCpp, sipType_QPageSize_Unit, &a0))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->rect(a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_rect, doc_QPageSize_rect);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_rectPoints, "QPageSize.rectPoints() -> QRect");

extern "C" {static PyObject *meth_QPageSize_rectPoints(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_rectPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageSize, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->rectPoints());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_rectPoints, doc_QPageSize_rectPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QPageSize_rectPixels, "QPageSize.rectPixels(int) -> QRect");

extern "C" {static PyObject *meth_QPageSize_rectPixels(PyObject *, PyObject *);}
static PyObject *meth_QPageSize_rectPixels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPageSize *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPageSize, &sipCpp, &a0))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->rectPixels(a0));

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageSize, sipName_rectPixels, doc_QPageSize_rectPixels);

    return NULL;
}


extern "C" {static PyObject *slot_QPageSize___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPageSize___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPageSize *sipCpp = reinterpret_cast<QPageSize *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageSize));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPageSize* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPageSize, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPageSize,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPageSize___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPageSize___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPageSize *sipCpp = reinterpret_cast<QPageSize *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageSize));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPageSize* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPageSize, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPageSize,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPageSize(void *, const sipTypeDef *);}
static void *cast_QPageSize(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPageSize)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPageSize(void *, int);}
static void release_QPageSize(void *sipCppV,int)
{
    delete reinterpret_cast<QPageSize *>(sipCppV);
}


extern "C" {static void assign_QPageSize(void *, SIP_SSIZE_T, const void *);}
static void assign_QPageSize(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPageSize *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPageSize *>(sipSrc);
}


extern "C" {static void *array_QPageSize(SIP_SSIZE_T);}
static void *array_QPageSize(SIP_SSIZE_T sipNrElem)
{
    return new QPageSize[sipNrElem];
}


extern "C" {static void *copy_QPageSize(const void *, SIP_SSIZE_T);}
static void *copy_QPageSize(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPageSize(reinterpret_cast<const QPageSize *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPageSize(sipSimpleWrapper *);}
static void dealloc_QPageSize(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPageSize(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPageSize(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPageSize(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPageSize *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPageSize();

            return sipCpp;
        }
    }

    {
        QPageSize::PageSizeId a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_QPageSize_PageSizeId, &a0))
        {
            sipCpp = new QPageSize(a0);

            return sipCpp;
        }
    }

    {
        const QSize* a0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        QPageSize::SizeMatchPolicy a2 = QPageSize::FuzzyMatch;

        static const char *sipKwdList[] = {
            NULL,
            sipName_name,
            sipName_matchPolicy,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|J1E", sipType_QSize, &a0, sipType_QString,&a1, &a1State, sipType_QPageSize_SizeMatchPolicy, &a2))
        {
            sipCpp = new QPageSize(*a0,*a1,a2);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipCpp;
        }
    }

    {
        const QSizeF* a0;
        QPageSize::Unit a1;
        const QString& a2def = QString();
        const QString* a2 = &a2def;
        int a2State = 0;
        QPageSize::SizeMatchPolicy a3 = QPageSize::FuzzyMatch;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_name,
            sipName_matchPolicy,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9E|J1E", sipType_QSizeF, &a0, sipType_QPageSize_Unit, &a1, sipType_QString,&a2, &a2State, sipType_QPageSize_SizeMatchPolicy, &a3))
        {
            sipCpp = new QPageSize(*a0,a1,*a2,a3);
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipCpp;
        }
    }

    {
        const QPageSize* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPageSize, &a0))
        {
            sipCpp = new QPageSize(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPageSize[] = {
    {(void *)slot_QPageSize___eq__, eq_slot},
    {(void *)slot_QPageSize___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPageSize[] = {
    {SIP_MLNAME_CAST(sipName_definitionSize), meth_QPageSize_definitionSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_definitionSize)},
    {SIP_MLNAME_CAST(sipName_definitionUnits), meth_QPageSize_definitionUnits, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_definitionUnits)},
    {SIP_MLNAME_CAST(sipName_id), (PyCFunction)meth_QPageSize_id, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPageSize_id)},
    {SIP_MLNAME_CAST(sipName_isEquivalentTo), meth_QPageSize_isEquivalentTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_isEquivalentTo)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QPageSize_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_isValid)},
    {SIP_MLNAME_CAST(sipName_key), meth_QPageSize_key, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_key)},
    {SIP_MLNAME_CAST(sipName_name), meth_QPageSize_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_name)},
    {SIP_MLNAME_CAST(sipName_rect), meth_QPageSize_rect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_rect)},
    {SIP_MLNAME_CAST(sipName_rectPixels), meth_QPageSize_rectPixels, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_rectPixels)},
    {SIP_MLNAME_CAST(sipName_rectPoints), meth_QPageSize_rectPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_rectPoints)},
    {SIP_MLNAME_CAST(sipName_size), meth_QPageSize_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_size)},
    {SIP_MLNAME_CAST(sipName_sizePixels), meth_QPageSize_sizePixels, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_sizePixels)},
    {SIP_MLNAME_CAST(sipName_sizePoints), meth_QPageSize_sizePoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_sizePoints)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPageSize_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_swap)},
    {SIP_MLNAME_CAST(sipName_windowsId), meth_QPageSize_windowsId, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageSize_windowsId)}
};

static sipEnumMemberDef enummembers_QPageSize[] = {
    {sipName_A0, static_cast<int>(QPageSize::A0), 177},
    {sipName_A1, static_cast<int>(QPageSize::A1), 177},
    {sipName_A10, static_cast<int>(QPageSize::A10), 177},
    {sipName_A2, static_cast<int>(QPageSize::A2), 177},
    {sipName_A3, static_cast<int>(QPageSize::A3), 177},
    {sipName_A3Extra, static_cast<int>(QPageSize::A3Extra), 177},
    {sipName_A4, static_cast<int>(QPageSize::A4), 177},
    {sipName_A4Extra, static_cast<int>(QPageSize::A4Extra), 177},
    {sipName_A4Plus, static_cast<int>(QPageSize::A4Plus), 177},
    {sipName_A4Small, static_cast<int>(QPageSize::A4Small), 177},
    {sipName_A5, static_cast<int>(QPageSize::A5), 177},
    {sipName_A5Extra, static_cast<int>(QPageSize::A5Extra), 177},
    {sipName_A6, static_cast<int>(QPageSize::A6), 177},
    {sipName_A7, static_cast<int>(QPageSize::A7), 177},
    {sipName_A8, static_cast<int>(QPageSize::A8), 177},
    {sipName_A9, static_cast<int>(QPageSize::A9), 177},
    {sipName_AnsiA, static_cast<int>(QPageSize::AnsiA), 177},
    {sipName_AnsiB, static_cast<int>(QPageSize::AnsiB), 177},
    {sipName_AnsiC, static_cast<int>(QPageSize::AnsiC), 177},
    {sipName_AnsiD, static_cast<int>(QPageSize::AnsiD), 177},
    {sipName_AnsiE, static_cast<int>(QPageSize::AnsiE), 177},
    {sipName_ArchA, static_cast<int>(QPageSize::ArchA), 177},
    {sipName_ArchB, static_cast<int>(QPageSize::ArchB), 177},
    {sipName_ArchC, static_cast<int>(QPageSize::ArchC), 177},
    {sipName_ArchD, static_cast<int>(QPageSize::ArchD), 177},
    {sipName_ArchE, static_cast<int>(QPageSize::ArchE), 177},
    {sipName_B0, static_cast<int>(QPageSize::B0), 177},
    {sipName_B1, static_cast<int>(QPageSize::B1), 177},
    {sipName_B10, static_cast<int>(QPageSize::B10), 177},
    {sipName_B2, static_cast<int>(QPageSize::B2), 177},
    {sipName_B3, static_cast<int>(QPageSize::B3), 177},
    {sipName_B4, static_cast<int>(QPageSize::B4), 177},
    {sipName_B5, static_cast<int>(QPageSize::B5), 177},
    {sipName_B5Extra, static_cast<int>(QPageSize::B5Extra), 177},
    {sipName_B6, static_cast<int>(QPageSize::B6), 177},
    {sipName_B7, static_cast<int>(QPageSize::B7), 177},
    {sipName_B8, static_cast<int>(QPageSize::B8), 177},
    {sipName_B9, static_cast<int>(QPageSize::B9), 177},
    {sipName_C5E, static_cast<int>(QPageSize::C5E), 177},
    {sipName_Cicero, static_cast<int>(QPageSize::Cicero), 179},
    {sipName_Comm10E, static_cast<int>(QPageSize::Comm10E), 177},
    {sipName_Custom, static_cast<int>(QPageSize::Custom), 177},
    {sipName_DLE, static_cast<int>(QPageSize::DLE), 177},
    {sipName_Didot, static_cast<int>(QPageSize::Didot), 179},
    {sipName_DoublePostcard, static_cast<int>(QPageSize::DoublePostcard), 177},
    {sipName_Envelope10, static_cast<int>(QPageSize::Envelope10), 177},
    {sipName_Envelope11, static_cast<int>(QPageSize::Envelope11), 177},
    {sipName_Envelope12, static_cast<int>(QPageSize::Envelope12), 177},
    {sipName_Envelope14, static_cast<int>(QPageSize::Envelope14), 177},
    {sipName_Envelope9, static_cast<int>(QPageSize::Envelope9), 177},
    {sipName_EnvelopeB4, static_cast<int>(QPageSize::EnvelopeB4), 177},
    {sipName_EnvelopeB5, static_cast<int>(QPageSize::EnvelopeB5), 177},
    {sipName_EnvelopeB6, static_cast<int>(QPageSize::EnvelopeB6), 177},
    {sipName_EnvelopeC0, static_cast<int>(QPageSize::EnvelopeC0), 177},
    {sipName_EnvelopeC1, static_cast<int>(QPageSize::EnvelopeC1), 177},
    {sipName_EnvelopeC2, static_cast<int>(QPageSize::EnvelopeC2), 177},
    {sipName_EnvelopeC3, static_cast<int>(QPageSize::EnvelopeC3), 177},
    {sipName_EnvelopeC4, static_cast<int>(QPageSize::EnvelopeC4), 177},
    {sipName_EnvelopeC5, static_cast<int>(QPageSize::EnvelopeC5), 177},
    {sipName_EnvelopeC6, static_cast<int>(QPageSize::EnvelopeC6), 177},
    {sipName_EnvelopeC65, static_cast<int>(QPageSize::EnvelopeC65), 177},
    {sipName_EnvelopeC7, static_cast<int>(QPageSize::EnvelopeC7), 177},
    {sipName_EnvelopeChou3, static_cast<int>(QPageSize::EnvelopeChou3), 177},
    {sipName_EnvelopeChou4, static_cast<int>(QPageSize::EnvelopeChou4), 177},
    {sipName_EnvelopeDL, static_cast<int>(QPageSize::EnvelopeDL), 177},
    {sipName_EnvelopeInvite, static_cast<int>(QPageSize::EnvelopeInvite), 177},
    {sipName_EnvelopeItalian, static_cast<int>(QPageSize::EnvelopeItalian), 177},
    {sipName_EnvelopeKaku2, static_cast<int>(QPageSize::EnvelopeKaku2), 177},
    {sipName_EnvelopeKaku3, static_cast<int>(QPageSize::EnvelopeKaku3), 177},
    {sipName_EnvelopeMonarch, static_cast<int>(QPageSize::EnvelopeMonarch), 177},
    {sipName_EnvelopePersonal, static_cast<int>(QPageSize::EnvelopePersonal), 177},
    {sipName_EnvelopePrc1, static_cast<int>(QPageSize::EnvelopePrc1), 177},
    {sipName_EnvelopePrc10, static_cast<int>(QPageSize::EnvelopePrc10), 177},
    {sipName_EnvelopePrc2, static_cast<int>(QPageSize::EnvelopePrc2), 177},
    {sipName_EnvelopePrc3, static_cast<int>(QPageSize::EnvelopePrc3), 177},
    {sipName_EnvelopePrc4, static_cast<int>(QPageSize::EnvelopePrc4), 177},
    {sipName_EnvelopePrc5, static_cast<int>(QPageSize::EnvelopePrc5), 177},
    {sipName_EnvelopePrc6, static_cast<int>(QPageSize::EnvelopePrc6), 177},
    {sipName_EnvelopePrc7, static_cast<int>(QPageSize::EnvelopePrc7), 177},
    {sipName_EnvelopePrc8, static_cast<int>(QPageSize::EnvelopePrc8), 177},
    {sipName_EnvelopePrc9, static_cast<int>(QPageSize::EnvelopePrc9), 177},
    {sipName_EnvelopeYou4, static_cast<int>(QPageSize::EnvelopeYou4), 177},
    {sipName_ExactMatch, static_cast<int>(QPageSize::ExactMatch), 178},
    {sipName_Executive, static_cast<int>(QPageSize::Executive), 177},
    {sipName_ExecutiveStandard, static_cast<int>(QPageSize::ExecutiveStandard), 177},
    {sipName_FanFoldGerman, static_cast<int>(QPageSize::FanFoldGerman), 177},
    {sipName_FanFoldGermanLegal, static_cast<int>(QPageSize::FanFoldGermanLegal), 177},
    {sipName_FanFoldUS, static_cast<int>(QPageSize::FanFoldUS), 177},
    {sipName_Folio, static_cast<int>(QPageSize::Folio), 177},
    {sipName_FuzzyMatch, static_cast<int>(QPageSize::FuzzyMatch), 178},
    {sipName_FuzzyOrientationMatch, static_cast<int>(QPageSize::FuzzyOrientationMatch), 178},
    {sipName_Imperial10x11, static_cast<int>(QPageSize::Imperial10x11), 177},
    {sipName_Imperial10x13, static_cast<int>(QPageSize::Imperial10x13), 177},
    {sipName_Imperial10x14, static_cast<int>(QPageSize::Imperial10x14), 177},
    {sipName_Imperial12x11, static_cast<int>(QPageSize::Imperial12x11), 177},
    {sipName_Imperial15x11, static_cast<int>(QPageSize::Imperial15x11), 177},
    {sipName_Imperial7x9, static_cast<int>(QPageSize::Imperial7x9), 177},
    {sipName_Imperial8x10, static_cast<int>(QPageSize::Imperial8x10), 177},
    {sipName_Imperial9x11, static_cast<int>(QPageSize::Imperial9x11), 177},
    {sipName_Imperial9x12, static_cast<int>(QPageSize::Imperial9x12), 177},
    {sipName_Inch, static_cast<int>(QPageSize::Inch), 179},
    {sipName_JisB0, static_cast<int>(QPageSize::JisB0), 177},
    {sipName_JisB1, static_cast<int>(QPageSize::JisB1), 177},
    {sipName_JisB10, static_cast<int>(QPageSize::JisB10), 177},
    {sipName_JisB2, static_cast<int>(QPageSize::JisB2), 177},
    {sipName_JisB3, static_cast<int>(QPageSize::JisB3), 177},
    {sipName_JisB4, static_cast<int>(QPageSize::JisB4), 177},
    {sipName_JisB5, static_cast<int>(QPageSize::JisB5), 177},
    {sipName_JisB6, static_cast<int>(QPageSize::JisB6), 177},
    {sipName_JisB7, static_cast<int>(QPageSize::JisB7), 177},
    {sipName_JisB8, static_cast<int>(QPageSize::JisB8), 177},
    {sipName_JisB9, static_cast<int>(QPageSize::JisB9), 177},
    {sipName_LastPageSize, static_cast<int>(QPageSize::LastPageSize), 177},
    {sipName_Ledger, static_cast<int>(QPageSize::Ledger), 177},
    {sipName_Legal, static_cast<int>(QPageSize::Legal), 177},
    {sipName_LegalExtra, static_cast<int>(QPageSize::LegalExtra), 177},
    {sipName_Letter, static_cast<int>(QPageSize::Letter), 177},
    {sipName_LetterExtra, static_cast<int>(QPageSize::LetterExtra), 177},
    {sipName_LetterPlus, static_cast<int>(QPageSize::LetterPlus), 177},
    {sipName_LetterSmall, static_cast<int>(QPageSize::LetterSmall), 177},
    {sipName_Millimeter, static_cast<int>(QPageSize::Millimeter), 179},
    {sipName_NPageSize, static_cast<int>(QPageSize::NPageSize), 177},
    {sipName_NPaperSize, static_cast<int>(QPageSize::NPaperSize), 177},
    {sipName_Note, static_cast<int>(QPageSize::Note), 177},
    {sipName_Pica, static_cast<int>(QPageSize::Pica), 179},
    {sipName_Point, static_cast<int>(QPageSize::Point), 179},
    {sipName_Postcard, static_cast<int>(QPageSize::Postcard), 177},
    {sipName_Prc16K, static_cast<int>(QPageSize::Prc16K), 177},
    {sipName_Prc32K, static_cast<int>(QPageSize::Prc32K), 177},
    {sipName_Prc32KBig, static_cast<int>(QPageSize::Prc32KBig), 177},
    {sipName_Quarto, static_cast<int>(QPageSize::Quarto), 177},
    {sipName_Statement, static_cast<int>(QPageSize::Statement), 177},
    {sipName_SuperA, static_cast<int>(QPageSize::SuperA), 177},
    {sipName_SuperB, static_cast<int>(QPageSize::SuperB), 177},
    {sipName_Tabloid, static_cast<int>(QPageSize::Tabloid), 177},
    {sipName_TabloidExtra, static_cast<int>(QPageSize::TabloidExtra), 177},
};

PyDoc_STRVAR(doc_QPageSize, "\1QPageSize()\n"
    "QPageSize(QPageSize.PageSizeId)\n"
    "QPageSize(QSize, str name=QString(), QPageSize.SizeMatchPolicy matchPolicy=QPageSize.FuzzyMatch)\n"
    "QPageSize(QSizeF, QPageSize.Unit, str name=QString(), QPageSize.SizeMatchPolicy matchPolicy=QPageSize.FuzzyMatch)\n"
    "QPageSize(QPageSize)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPageSize = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPageSize,
        {0}
    },
    {
        sipNameNr_QPageSize,
        {0, 0, 1},
        15, methods_QPageSize,
        136, enummembers_QPageSize,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPageSize,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPageSize,
    init_type_QPageSize,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPageSize,
    assign_QPageSize,
    array_QPageSize,
    copy_QPageSize,
    release_QPageSize,
    cast_QPageSize,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 104284 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 104288 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 119 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 104291 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 104294 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 104297 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 104300 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPageLayout_swap, "QPageLayout.swap(QPageLayout)");

extern "C" {static PyObject *meth_QPageLayout_swap(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPageLayout* a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QPageLayout, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_swap, doc_QPageLayout_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_isEquivalentTo, "QPageLayout.isEquivalentTo(QPageLayout) -> bool");

extern "C" {static PyObject *meth_QPageLayout_isEquivalentTo(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_isEquivalentTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout* a0;
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QPageLayout, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isEquivalentTo(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_isEquivalentTo, doc_QPageLayout_isEquivalentTo);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_isValid, "QPageLayout.isValid() -> bool");

extern "C" {static PyObject *meth_QPageLayout_isValid(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_isValid, doc_QPageLayout_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setMode, "QPageLayout.setMode(QPageLayout.Mode)");

extern "C" {static PyObject *meth_QPageLayout_setMode(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPageLayout::Mode a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QPageLayout_Mode, &a0))
        {
            sipCpp->setMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setMode, doc_QPageLayout_setMode);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_mode, "QPageLayout.mode() -> QPageLayout.Mode");

extern "C" {static PyObject *meth_QPageLayout_mode(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_mode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QPageLayout::Mode sipRes;

            sipRes = sipCpp->mode();

            return sipConvertFromEnum(sipRes,sipType_QPageLayout_Mode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_mode, doc_QPageLayout_mode);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setPageSize, "QPageLayout.setPageSize(QPageSize, QMarginsF minMargins=QMarginsF(0,0,0,0))");

extern "C" {static PyObject *meth_QPageLayout_setPageSize(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setPageSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageSize* a0;
        const QMarginsF& a1def = QMarginsF(0,0,0,0);
        const QMarginsF* a1 = &a1def;
        QPageLayout *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_minMargins,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|J9", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QPageSize, &a0, sipType_QMarginsF, &a1))
        {
            sipCpp->setPageSize(*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setPageSize, doc_QPageLayout_setPageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_pageSize, "QPageLayout.pageSize() -> QPageSize");

extern "C" {static PyObject *meth_QPageLayout_pageSize(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_pageSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QPageSize*sipRes;

            sipRes = new QPageSize(sipCpp->pageSize());

            return sipConvertFromNewType(sipRes,sipType_QPageSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_pageSize, doc_QPageLayout_pageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setOrientation, "QPageLayout.setOrientation(QPageLayout.Orientation)");

extern "C" {static PyObject *meth_QPageLayout_setOrientation(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setOrientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPageLayout::Orientation a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QPageLayout_Orientation, &a0))
        {
            sipCpp->setOrientation(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setOrientation, doc_QPageLayout_setOrientation);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_orientation, "QPageLayout.orientation() -> QPageLayout.Orientation");

extern "C" {static PyObject *meth_QPageLayout_orientation(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_orientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QPageLayout::Orientation sipRes;

            sipRes = sipCpp->orientation();

            return sipConvertFromEnum(sipRes,sipType_QPageLayout_Orientation);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_orientation, doc_QPageLayout_orientation);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setUnits, "QPageLayout.setUnits(QPageLayout.Unit)");

extern "C" {static PyObject *meth_QPageLayout_setUnits(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setUnits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPageLayout::Unit a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QPageLayout_Unit, &a0))
        {
            sipCpp->setUnits(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setUnits, doc_QPageLayout_setUnits);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_units, "QPageLayout.units() -> QPageLayout.Unit");

extern "C" {static PyObject *meth_QPageLayout_units(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_units(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QPageLayout::Unit sipRes;

            sipRes = sipCpp->units();

            return sipConvertFromEnum(sipRes,sipType_QPageLayout_Unit);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_units, doc_QPageLayout_units);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setMargins, "QPageLayout.setMargins(QMarginsF) -> bool");

extern "C" {static PyObject *meth_QPageLayout_setMargins(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMarginsF* a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QMarginsF, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setMargins(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setMargins, doc_QPageLayout_setMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setLeftMargin, "QPageLayout.setLeftMargin(float) -> bool");

extern "C" {static PyObject *meth_QPageLayout_setLeftMargin(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setLeftMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPageLayout, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setLeftMargin(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setLeftMargin, doc_QPageLayout_setLeftMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setRightMargin, "QPageLayout.setRightMargin(float) -> bool");

extern "C" {static PyObject *meth_QPageLayout_setRightMargin(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setRightMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPageLayout, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setRightMargin(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setRightMargin, doc_QPageLayout_setRightMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setTopMargin, "QPageLayout.setTopMargin(float) -> bool");

extern "C" {static PyObject *meth_QPageLayout_setTopMargin(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setTopMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPageLayout, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setTopMargin(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setTopMargin, doc_QPageLayout_setTopMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setBottomMargin, "QPageLayout.setBottomMargin(float) -> bool");

extern "C" {static PyObject *meth_QPageLayout_setBottomMargin(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setBottomMargin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPageLayout, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setBottomMargin(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setBottomMargin, doc_QPageLayout_setBottomMargin);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_margins, "QPageLayout.margins() -> QMarginsF\n"
    "QPageLayout.margins(QPageLayout.Unit) -> QMarginsF");

extern "C" {static PyObject *meth_QPageLayout_margins(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_margins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QMarginsF*sipRes;

            sipRes = new QMarginsF(sipCpp->margins());

            return sipConvertFromNewType(sipRes,sipType_QMarginsF,NULL);
        }
    }

    {
        QPageLayout::Unit a0;
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QPageLayout_Unit, &a0))
        {
            QMarginsF*sipRes;

            sipRes = new QMarginsF(sipCpp->margins(a0));

            return sipConvertFromNewType(sipRes,sipType_QMarginsF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_margins, doc_QPageLayout_margins);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_marginsPoints, "QPageLayout.marginsPoints() -> QMargins");

extern "C" {static PyObject *meth_QPageLayout_marginsPoints(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_marginsPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QMargins*sipRes;

            sipRes = new QMargins(sipCpp->marginsPoints());

            return sipConvertFromNewType(sipRes,sipType_QMargins,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_marginsPoints, doc_QPageLayout_marginsPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_marginsPixels, "QPageLayout.marginsPixels(int) -> QMargins");

extern "C" {static PyObject *meth_QPageLayout_marginsPixels(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_marginsPixels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPageLayout, &sipCpp, &a0))
        {
            QMargins*sipRes;

            sipRes = new QMargins(sipCpp->marginsPixels(a0));

            return sipConvertFromNewType(sipRes,sipType_QMargins,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_marginsPixels, doc_QPageLayout_marginsPixels);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_setMinimumMargins, "QPageLayout.setMinimumMargins(QMarginsF)");

extern "C" {static PyObject *meth_QPageLayout_setMinimumMargins(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_setMinimumMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMarginsF* a0;
        QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QMarginsF, &a0))
        {
            sipCpp->setMinimumMargins(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_setMinimumMargins, doc_QPageLayout_setMinimumMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_minimumMargins, "QPageLayout.minimumMargins() -> QMarginsF");

extern "C" {static PyObject *meth_QPageLayout_minimumMargins(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_minimumMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QMarginsF*sipRes;

            sipRes = new QMarginsF(sipCpp->minimumMargins());

            return sipConvertFromNewType(sipRes,sipType_QMarginsF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_minimumMargins, doc_QPageLayout_minimumMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_maximumMargins, "QPageLayout.maximumMargins() -> QMarginsF");

extern "C" {static PyObject *meth_QPageLayout_maximumMargins(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_maximumMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QMarginsF*sipRes;

            sipRes = new QMarginsF(sipCpp->maximumMargins());

            return sipConvertFromNewType(sipRes,sipType_QMarginsF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_maximumMargins, doc_QPageLayout_maximumMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_fullRect, "QPageLayout.fullRect() -> QRectF\n"
    "QPageLayout.fullRect(QPageLayout.Unit) -> QRectF");

extern "C" {static PyObject *meth_QPageLayout_fullRect(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_fullRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->fullRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    {
        QPageLayout::Unit a0;
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QPageLayout_Unit, &a0))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->fullRect(a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_fullRect, doc_QPageLayout_fullRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_fullRectPoints, "QPageLayout.fullRectPoints() -> QRect");

extern "C" {static PyObject *meth_QPageLayout_fullRectPoints(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_fullRectPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->fullRectPoints());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_fullRectPoints, doc_QPageLayout_fullRectPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_fullRectPixels, "QPageLayout.fullRectPixels(int) -> QRect");

extern "C" {static PyObject *meth_QPageLayout_fullRectPixels(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_fullRectPixels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPageLayout, &sipCpp, &a0))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->fullRectPixels(a0));

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_fullRectPixels, doc_QPageLayout_fullRectPixels);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_paintRect, "QPageLayout.paintRect() -> QRectF\n"
    "QPageLayout.paintRect(QPageLayout.Unit) -> QRectF");

extern "C" {static PyObject *meth_QPageLayout_paintRect(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_paintRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->paintRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    {
        QPageLayout::Unit a0;
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPageLayout, &sipCpp, sipType_QPageLayout_Unit, &a0))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->paintRect(a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_paintRect, doc_QPageLayout_paintRect);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_paintRectPoints, "QPageLayout.paintRectPoints() -> QRect");

extern "C" {static PyObject *meth_QPageLayout_paintRectPoints(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_paintRectPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPageLayout, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->paintRectPoints());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_paintRectPoints, doc_QPageLayout_paintRectPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QPageLayout_paintRectPixels, "QPageLayout.paintRectPixels(int) -> QRect");

extern "C" {static PyObject *meth_QPageLayout_paintRectPixels(PyObject *, PyObject *);}
static PyObject *meth_QPageLayout_paintRectPixels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QPageLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QPageLayout, &sipCpp, &a0))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->paintRectPixels(a0));

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPageLayout, sipName_paintRectPixels, doc_QPageLayout_paintRectPixels);

    return NULL;
}


extern "C" {static PyObject *slot_QPageLayout___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPageLayout___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QPageLayout *sipCpp = reinterpret_cast<QPageLayout *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageLayout));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPageLayout* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPageLayout, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QPageLayout,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QPageLayout___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPageLayout___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QPageLayout *sipCpp = reinterpret_cast<QPageLayout *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageLayout));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QPageLayout* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QPageLayout, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QPageLayout,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPageLayout(void *, const sipTypeDef *);}
static void *cast_QPageLayout(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPageLayout)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPageLayout(void *, int);}
static void release_QPageLayout(void *sipCppV,int)
{
    delete reinterpret_cast<QPageLayout *>(sipCppV);
}


extern "C" {static void assign_QPageLayout(void *, SIP_SSIZE_T, const void *);}
static void assign_QPageLayout(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPageLayout *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPageLayout *>(sipSrc);
}


extern "C" {static void *array_QPageLayout(SIP_SSIZE_T);}
static void *array_QPageLayout(SIP_SSIZE_T sipNrElem)
{
    return new QPageLayout[sipNrElem];
}


extern "C" {static void *copy_QPageLayout(const void *, SIP_SSIZE_T);}
static void *copy_QPageLayout(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPageLayout(reinterpret_cast<const QPageLayout *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPageLayout(sipSimpleWrapper *);}
static void dealloc_QPageLayout(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPageLayout(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPageLayout(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPageLayout(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPageLayout *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPageLayout();

            return sipCpp;
        }
    }

    {
        const QPageSize* a0;
        QPageLayout::Orientation a1;
        const QMarginsF* a2;
        QPageLayout::Unit a3 = QPageLayout::Point;
        const QMarginsF& a4def = QMarginsF(0,0,0,0);
        const QMarginsF* a4 = &a4def;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_units,
            sipName_minMargins,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9EJ9|EJ9", sipType_QPageSize, &a0, sipType_QPageLayout_Orientation, &a1, sipType_QMarginsF, &a2, sipType_QPageLayout_Unit, &a3, sipType_QMarginsF, &a4))
        {
            sipCpp = new QPageLayout(*a0,a1,*a2,a3,*a4);

            return sipCpp;
        }
    }

    {
        const QPageLayout* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPageLayout, &a0))
        {
            sipCpp = new QPageLayout(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPageLayout[] = {
    {(void *)slot_QPageLayout___eq__, eq_slot},
    {(void *)slot_QPageLayout___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPageLayout[] = {
    {SIP_MLNAME_CAST(sipName_fullRect), meth_QPageLayout_fullRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_fullRect)},
    {SIP_MLNAME_CAST(sipName_fullRectPixels), meth_QPageLayout_fullRectPixels, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_fullRectPixels)},
    {SIP_MLNAME_CAST(sipName_fullRectPoints), meth_QPageLayout_fullRectPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_fullRectPoints)},
    {SIP_MLNAME_CAST(sipName_isEquivalentTo), meth_QPageLayout_isEquivalentTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_isEquivalentTo)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QPageLayout_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_isValid)},
    {SIP_MLNAME_CAST(sipName_margins), meth_QPageLayout_margins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_margins)},
    {SIP_MLNAME_CAST(sipName_marginsPixels), meth_QPageLayout_marginsPixels, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_marginsPixels)},
    {SIP_MLNAME_CAST(sipName_marginsPoints), meth_QPageLayout_marginsPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_marginsPoints)},
    {SIP_MLNAME_CAST(sipName_maximumMargins), meth_QPageLayout_maximumMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_maximumMargins)},
    {SIP_MLNAME_CAST(sipName_minimumMargins), meth_QPageLayout_minimumMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_minimumMargins)},
    {SIP_MLNAME_CAST(sipName_mode), meth_QPageLayout_mode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_mode)},
    {SIP_MLNAME_CAST(sipName_orientation), meth_QPageLayout_orientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_orientation)},
    {SIP_MLNAME_CAST(sipName_pageSize), meth_QPageLayout_pageSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_pageSize)},
    {SIP_MLNAME_CAST(sipName_paintRect), meth_QPageLayout_paintRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_paintRect)},
    {SIP_MLNAME_CAST(sipName_paintRectPixels), meth_QPageLayout_paintRectPixels, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_paintRectPixels)},
    {SIP_MLNAME_CAST(sipName_paintRectPoints), meth_QPageLayout_paintRectPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_paintRectPoints)},
    {SIP_MLNAME_CAST(sipName_setBottomMargin), meth_QPageLayout_setBottomMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_setBottomMargin)},
    {SIP_MLNAME_CAST(sipName_setLeftMargin), meth_QPageLayout_setLeftMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_setLeftMargin)},
    {SIP_MLNAME_CAST(sipName_setMargins), meth_QPageLayout_setMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_setMargins)},
    {SIP_MLNAME_CAST(sipName_setMinimumMargins), meth_QPageLayout_setMinimumMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_setMinimumMargins)},
    {SIP_MLNAME_CAST(sipName_setMode), meth_QPageLayout_setMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_setMode)},
    {SIP_MLNAME_CAST(sipName_setOrientation), meth_QPageLayout_setOrientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_setOrientation)},
    {SIP_MLNAME_CAST(sipName_setPageSize), (PyCFunction)meth_QPageLayout_setPageSize, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPageLayout_setPageSize)},
    {SIP_MLNAME_CAST(sipName_setRightMargin), meth_QPageLayout_setRightMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_setRightMargin)},
    {SIP_MLNAME_CAST(sipName_setTopMargin), meth_QPageLayout_setTopMargin, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_setTopMargin)},
    {SIP_MLNAME_CAST(sipName_setUnits), meth_QPageLayout_setUnits, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_setUnits)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPageLayout_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_swap)},
    {SIP_MLNAME_CAST(sipName_units), meth_QPageLayout_units, METH_VARARGS, SIP_MLDOC_CAST(doc_QPageLayout_units)}
};

static sipEnumMemberDef enummembers_QPageLayout[] = {
    {sipName_Cicero, static_cast<int>(QPageLayout::Cicero), 175},
    {sipName_Didot, static_cast<int>(QPageLayout::Didot), 175},
    {sipName_FullPageMode, static_cast<int>(QPageLayout::FullPageMode), 173},
    {sipName_Inch, static_cast<int>(QPageLayout::Inch), 175},
    {sipName_Landscape, static_cast<int>(QPageLayout::Landscape), 174},
    {sipName_Millimeter, static_cast<int>(QPageLayout::Millimeter), 175},
    {sipName_Pica, static_cast<int>(QPageLayout::Pica), 175},
    {sipName_Point, static_cast<int>(QPageLayout::Point), 175},
    {sipName_Portrait, static_cast<int>(QPageLayout::Portrait), 174},
    {sipName_StandardMode, static_cast<int>(QPageLayout::StandardMode), 173},
};

PyDoc_STRVAR(doc_QPageLayout, "\1QPageLayout()\n"
    "QPageLayout(QPageSize, QPageLayout.Orientation, QMarginsF, QPageLayout.Unit units=QPageLayout.Point, QMarginsF minMargins=QMarginsF(0,0,0,0))\n"
    "QPageLayout(QPageLayout)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPageLayout = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPageLayout,
        {0}
    },
    {
        sipNameNr_QPageLayout,
        {0, 0, 1},
        28, methods_QPageLayout,
        10, enummembers_QPageLayout,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPageLayout,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QPageLayout,
    init_type_QPageLayout,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPageLayout,
    assign_QPageLayout,
    array_QPageLayout,
    copy_QPageLayout,
    release_QPageLayout,
    cast_QPageLayout,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 362 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 105403 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPagedPaintDevice_Margins(void *, const sipTypeDef *);}
static void *cast_QPagedPaintDevice_Margins(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPagedPaintDevice_Margins)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPagedPaintDevice_Margins(void *, int);}
static void release_QPagedPaintDevice_Margins(void *sipCppV,int)
{
    delete reinterpret_cast<QPagedPaintDevice::Margins *>(sipCppV);
}


extern "C" {static void assign_QPagedPaintDevice_Margins(void *, SIP_SSIZE_T, const void *);}
static void assign_QPagedPaintDevice_Margins(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPagedPaintDevice::Margins *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPagedPaintDevice::Margins *>(sipSrc);
}


extern "C" {static void *array_QPagedPaintDevice_Margins(SIP_SSIZE_T);}
static void *array_QPagedPaintDevice_Margins(SIP_SSIZE_T sipNrElem)
{
    return new QPagedPaintDevice::Margins[sipNrElem];
}


extern "C" {static void *copy_QPagedPaintDevice_Margins(const void *, SIP_SSIZE_T);}
static void *copy_QPagedPaintDevice_Margins(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPagedPaintDevice::Margins(reinterpret_cast<const QPagedPaintDevice::Margins *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPagedPaintDevice_Margins(sipSimpleWrapper *);}
static void dealloc_QPagedPaintDevice_Margins(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPagedPaintDevice_Margins(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QPagedPaintDevice_Margins(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPagedPaintDevice_Margins(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QPagedPaintDevice::Margins *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QPagedPaintDevice::Margins();

            return sipCpp;
        }
    }

    {
        const QPagedPaintDevice::Margins* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPagedPaintDevice_Margins, &a0))
        {
            sipCpp = new QPagedPaintDevice::Margins(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_QPagedPaintDevice_Margins_bottom(void *, PyObject *, PyObject *);}
static PyObject *varget_QPagedPaintDevice_Margins_bottom(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPagedPaintDevice::Margins *sipCpp = reinterpret_cast<QPagedPaintDevice::Margins *>(sipSelf);

    sipVal = sipCpp->bottom;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPagedPaintDevice_Margins_bottom(void *, PyObject *, PyObject *);}
static int varset_QPagedPaintDevice_Margins_bottom(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPagedPaintDevice::Margins *sipCpp = reinterpret_cast<QPagedPaintDevice::Margins *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->bottom = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPagedPaintDevice_Margins_left(void *, PyObject *, PyObject *);}
static PyObject *varget_QPagedPaintDevice_Margins_left(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPagedPaintDevice::Margins *sipCpp = reinterpret_cast<QPagedPaintDevice::Margins *>(sipSelf);

    sipVal = sipCpp->left;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPagedPaintDevice_Margins_left(void *, PyObject *, PyObject *);}
static int varset_QPagedPaintDevice_Margins_left(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPagedPaintDevice::Margins *sipCpp = reinterpret_cast<QPagedPaintDevice::Margins *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->left = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPagedPaintDevice_Margins_right(void *, PyObject *, PyObject *);}
static PyObject *varget_QPagedPaintDevice_Margins_right(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPagedPaintDevice::Margins *sipCpp = reinterpret_cast<QPagedPaintDevice::Margins *>(sipSelf);

    sipVal = sipCpp->right;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPagedPaintDevice_Margins_right(void *, PyObject *, PyObject *);}
static int varset_QPagedPaintDevice_Margins_right(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPagedPaintDevice::Margins *sipCpp = reinterpret_cast<QPagedPaintDevice::Margins *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->right = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QPagedPaintDevice_Margins_top(void *, PyObject *, PyObject *);}
static PyObject *varget_QPagedPaintDevice_Margins_top(void *sipSelf, PyObject *, PyObject *)
{
    qreal sipVal;
    QPagedPaintDevice::Margins *sipCpp = reinterpret_cast<QPagedPaintDevice::Margins *>(sipSelf);

    sipVal = sipCpp->top;

    return PyFloat_FromDouble(sipVal);
}


extern "C" {static int varset_QPagedPaintDevice_Margins_top(void *, PyObject *, PyObject *);}
static int varset_QPagedPaintDevice_Margins_top(void *sipSelf, PyObject *sipPy, PyObject *)
{
    qreal sipVal;
    QPagedPaintDevice::Margins *sipCpp = reinterpret_cast<QPagedPaintDevice::Margins *>(sipSelf);

    sipVal = PyFloat_AsDouble(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->top = sipVal;

    return 0;
}

sipVariableDef variables_QPagedPaintDevice_Margins[] = {
    {InstanceVariable, sipName_bottom, (PyMethodDef *)varget_QPagedPaintDevice_Margins_bottom, (PyMethodDef *)varset_QPagedPaintDevice_Margins_bottom, NULL, NULL},
    {InstanceVariable, sipName_left, (PyMethodDef *)varget_QPagedPaintDevice_Margins_left, (PyMethodDef *)varset_QPagedPaintDevice_Margins_left, NULL, NULL},
    {InstanceVariable, sipName_right, (PyMethodDef *)varget_QPagedPaintDevice_Margins_right, (PyMethodDef *)varset_QPagedPaintDevice_Margins_right, NULL, NULL},
    {InstanceVariable, sipName_top, (PyMethodDef *)varget_QPagedPaintDevice_Margins_top, (PyMethodDef *)varset_QPagedPaintDevice_Margins_top, NULL, NULL},
};

PyDoc_STRVAR(doc_QPagedPaintDevice_Margins, "\1QPagedPaintDevice.Margins()\n"
    "QPagedPaintDevice.Margins(QPagedPaintDevice.Margins)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPagedPaintDevice_Margins = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPagedPaintDevice__Margins,
        {0}
    },
    {
        sipNameNr_Margins,
        {180, 255, 0},
        0, 0,
        0, 0,
        4, variables_QPagedPaintDevice_Margins,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPagedPaintDevice_Margins,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPagedPaintDevice_Margins,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPagedPaintDevice_Margins,
    assign_QPagedPaintDevice_Margins,
    array_QPagedPaintDevice_Margins,
    copy_QPagedPaintDevice_Margins,
    release_QPagedPaintDevice_Margins,
    cast_QPagedPaintDevice_Margins,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 105669 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagelayout.sip"
#include <qpagelayout.h>
#line 105673 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 119 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 105676 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 362 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagedpaintdevice.sip"
#include <qpagedpaintdevice.h>
#line 105681 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 105684 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpagesize.sip"
#include <qpagesize.h>
#line 105687 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 105690 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 105693 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQPagedPaintDevice : public QPagedPaintDevice
{
public:
    sipQPagedPaintDevice();
    virtual ~sipQPagedPaintDevice();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int metric(QPaintDevice::PaintDeviceMetric) const;
    QPaintEngine* paintEngine() const;
    void setMargins(const QPagedPaintDevice::Margins&);
    void setPageSizeMM(const QSizeF&);
    void setPageSize(QPagedPaintDevice::PageSize);
    bool newPage();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPagedPaintDevice(const sipQPagedPaintDevice &);
    sipQPagedPaintDevice &operator = (const sipQPagedPaintDevice &);

    char sipPyMethods[6];
};

sipQPagedPaintDevice::sipQPagedPaintDevice(): QPagedPaintDevice(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPagedPaintDevice::~sipQPagedPaintDevice()
{
    sipCommonDtor(sipPySelf);
}

int sipQPagedPaintDevice::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPagedPaintDevice::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPagedPaintDevice::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_QPagedPaintDevice,sipName_paintEngine);

    if (!sipMeth)
        return 0;

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQPagedPaintDevice::setMargins(const QPagedPaintDevice::Margins& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_setMargins);

    if (!sipMeth)
    {
        QPagedPaintDevice::setMargins(a0);
        return;
    }

    extern void sipVH_QtGui_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPagedPaintDevice::Margins&);

    sipVH_QtGui_31(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPagedPaintDevice::setPageSizeMM(const QSizeF& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_setPageSizeMM);

    if (!sipMeth)
    {
        QPagedPaintDevice::setPageSizeMM(a0);
        return;
    }

    extern void sipVH_QtGui_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QSizeF&);

    sipVH_QtGui_32(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQPagedPaintDevice::setPageSize(QPagedPaintDevice::PageSize a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_setPageSize);

    if (!sipMeth)
    {
        QPagedPaintDevice::setPageSize(a0);
        return;
    }

    extern void sipVH_QtGui_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPagedPaintDevice::PageSize);

    sipVH_QtGui_33(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQPagedPaintDevice::newPage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,sipName_QPagedPaintDevice,sipName_newPage);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtGui_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPagedPaintDevice::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QPaintDevice::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QPagedPaintDevice_metric, "QPagedPaintDevice.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPagedPaintDevice_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPagedPaintDevice *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPagedPaintDevice, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_metric, doc_QPagedPaintDevice_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_newPage, "QPagedPaintDevice.newPage() -> bool");

extern "C" {static PyObject *meth_QPagedPaintDevice_newPage(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_newPage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPagedPaintDevice, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPagedPaintDevice, sipName_newPage);
                return NULL;
            }

            sipRes = sipCpp->newPage();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_newPage, doc_QPagedPaintDevice_newPage);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_setPageSize, "QPagedPaintDevice.setPageSize(QPagedPaintDevice.PageSize)\n"
    "QPagedPaintDevice.setPageSize(QPageSize) -> bool");

extern "C" {static PyObject *meth_QPagedPaintDevice_setPageSize(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_setPageSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPagedPaintDevice::PageSize a0;
        QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPagedPaintDevice, &sipCpp, sipType_QPagedPaintDevice_PageSize, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPagedPaintDevice::setPageSize(a0) : sipCpp->setPageSize(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPageSize* a0;
        QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPagedPaintDevice, &sipCpp, sipType_QPageSize, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setPageSize(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_setPageSize, doc_QPagedPaintDevice_setPageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_pageSize, "QPagedPaintDevice.pageSize() -> QPagedPaintDevice.PageSize");

extern "C" {static PyObject *meth_QPagedPaintDevice_pageSize(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_pageSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPagedPaintDevice, &sipCpp))
        {
            QPagedPaintDevice::PageSize sipRes;

            sipRes = sipCpp->pageSize();

            return sipConvertFromEnum(sipRes,sipType_QPagedPaintDevice_PageSize);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_pageSize, doc_QPagedPaintDevice_pageSize);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_setPageSizeMM, "QPagedPaintDevice.setPageSizeMM(QSizeF)");

extern "C" {static PyObject *meth_QPagedPaintDevice_setPageSizeMM(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_setPageSizeMM(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QSizeF* a0;
        QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPagedPaintDevice, &sipCpp, sipType_QSizeF, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPagedPaintDevice::setPageSizeMM(*a0) : sipCpp->setPageSizeMM(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_setPageSizeMM, doc_QPagedPaintDevice_setPageSizeMM);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_pageSizeMM, "QPagedPaintDevice.pageSizeMM() -> QSizeF");

extern "C" {static PyObject *meth_QPagedPaintDevice_pageSizeMM(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_pageSizeMM(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPagedPaintDevice, &sipCpp))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(sipCpp->pageSizeMM());

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_pageSizeMM, doc_QPagedPaintDevice_pageSizeMM);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_setMargins, "QPagedPaintDevice.setMargins(QPagedPaintDevice.Margins)");

extern "C" {static PyObject *meth_QPagedPaintDevice_setMargins(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_setMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPagedPaintDevice::Margins* a0;
        QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPagedPaintDevice, &sipCpp, sipType_QPagedPaintDevice_Margins, &a0))
        {
            (sipSelfWasArg ? sipCpp->QPagedPaintDevice::setMargins(*a0) : sipCpp->setMargins(*a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_setMargins, doc_QPagedPaintDevice_setMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_margins, "QPagedPaintDevice.margins() -> QPagedPaintDevice.Margins");

extern "C" {static PyObject *meth_QPagedPaintDevice_margins(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_margins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPagedPaintDevice, &sipCpp))
        {
            QPagedPaintDevice::Margins*sipRes;

            sipRes = new QPagedPaintDevice::Margins(sipCpp->margins());

            return sipConvertFromNewType(sipRes,sipType_QPagedPaintDevice_Margins,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_margins, doc_QPagedPaintDevice_margins);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_setPageLayout, "QPagedPaintDevice.setPageLayout(QPageLayout) -> bool");

extern "C" {static PyObject *meth_QPagedPaintDevice_setPageLayout(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_setPageLayout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPageLayout* a0;
        QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPagedPaintDevice, &sipCpp, sipType_QPageLayout, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setPageLayout(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_setPageLayout, doc_QPagedPaintDevice_setPageLayout);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_setPageOrientation, "QPagedPaintDevice.setPageOrientation(QPageLayout.Orientation) -> bool");

extern "C" {static PyObject *meth_QPagedPaintDevice_setPageOrientation(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_setPageOrientation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPageLayout::Orientation a0;
        QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QPagedPaintDevice, &sipCpp, sipType_QPageLayout_Orientation, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setPageOrientation(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_setPageOrientation, doc_QPagedPaintDevice_setPageOrientation);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_setPageMargins, "QPagedPaintDevice.setPageMargins(QMarginsF) -> bool\n"
    "QPagedPaintDevice.setPageMargins(QMarginsF, QPageLayout.Unit) -> bool");

extern "C" {static PyObject *meth_QPagedPaintDevice_setPageMargins(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_setPageMargins(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMarginsF* a0;
        QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPagedPaintDevice, &sipCpp, sipType_QMarginsF, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setPageMargins(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QMarginsF* a0;
        QPageLayout::Unit a1;
        QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_QPagedPaintDevice, &sipCpp, sipType_QMarginsF, &a0, sipType_QPageLayout_Unit, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->setPageMargins(*a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_setPageMargins, doc_QPagedPaintDevice_setPageMargins);

    return NULL;
}


PyDoc_STRVAR(doc_QPagedPaintDevice_pageLayout, "QPagedPaintDevice.pageLayout() -> QPageLayout");

extern "C" {static PyObject *meth_QPagedPaintDevice_pageLayout(PyObject *, PyObject *);}
static PyObject *meth_QPagedPaintDevice_pageLayout(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPagedPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPagedPaintDevice, &sipCpp))
        {
            QPageLayout*sipRes;

            sipRes = new QPageLayout(sipCpp->pageLayout());

            return sipConvertFromNewType(sipRes,sipType_QPageLayout,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPagedPaintDevice, sipName_pageLayout, doc_QPagedPaintDevice_pageLayout);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPagedPaintDevice(void *, const sipTypeDef *);}
static void *cast_QPagedPaintDevice(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPagedPaintDevice)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPaintDevice)->ctd_cast((QPaintDevice *)(QPagedPaintDevice *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPagedPaintDevice(void *, int);}
static void release_QPagedPaintDevice(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQPagedPaintDevice *>(sipCppV);
    else
        delete reinterpret_cast<QPagedPaintDevice *>(sipCppV);
}


extern "C" {static void dealloc_QPagedPaintDevice(sipSimpleWrapper *);}
static void dealloc_QPagedPaintDevice(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPagedPaintDevice *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPagedPaintDevice(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPagedPaintDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPagedPaintDevice(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQPagedPaintDevice *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQPagedPaintDevice();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPagedPaintDevice[] = {{183, 255, 1}};


static PyMethodDef methods_QPagedPaintDevice[] = {
    {SIP_MLNAME_CAST(sipName_margins), meth_QPagedPaintDevice_margins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_margins)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPagedPaintDevice_metric, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_newPage), meth_QPagedPaintDevice_newPage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_newPage)},
    {SIP_MLNAME_CAST(sipName_pageLayout), meth_QPagedPaintDevice_pageLayout, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_pageLayout)},
    {SIP_MLNAME_CAST(sipName_pageSize), meth_QPagedPaintDevice_pageSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_pageSize)},
    {SIP_MLNAME_CAST(sipName_pageSizeMM), meth_QPagedPaintDevice_pageSizeMM, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_pageSizeMM)},
    {SIP_MLNAME_CAST(sipName_setMargins), meth_QPagedPaintDevice_setMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_setMargins)},
    {SIP_MLNAME_CAST(sipName_setPageLayout), meth_QPagedPaintDevice_setPageLayout, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_setPageLayout)},
    {SIP_MLNAME_CAST(sipName_setPageMargins), meth_QPagedPaintDevice_setPageMargins, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_setPageMargins)},
    {SIP_MLNAME_CAST(sipName_setPageOrientation), meth_QPagedPaintDevice_setPageOrientation, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_setPageOrientation)},
    {SIP_MLNAME_CAST(sipName_setPageSize), meth_QPagedPaintDevice_setPageSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_setPageSize)},
    {SIP_MLNAME_CAST(sipName_setPageSizeMM), meth_QPagedPaintDevice_setPageSizeMM, METH_VARARGS, SIP_MLDOC_CAST(doc_QPagedPaintDevice_setPageSizeMM)}
};

static sipEnumMemberDef enummembers_QPagedPaintDevice[] = {
    {sipName_A0, static_cast<int>(QPagedPaintDevice::A0), 182},
    {sipName_A1, static_cast<int>(QPagedPaintDevice::A1), 182},
    {sipName_A10, static_cast<int>(QPagedPaintDevice::A10), 182},
    {sipName_A2, static_cast<int>(QPagedPaintDevice::A2), 182},
    {sipName_A3, static_cast<int>(QPagedPaintDevice::A3), 182},
    {sipName_A3Extra, static_cast<int>(QPagedPaintDevice::A3Extra), 182},
    {sipName_A4, static_cast<int>(QPagedPaintDevice::A4), 182},
    {sipName_A4Extra, static_cast<int>(QPagedPaintDevice::A4Extra), 182},
    {sipName_A4Plus, static_cast<int>(QPagedPaintDevice::A4Plus), 182},
    {sipName_A4Small, static_cast<int>(QPagedPaintDevice::A4Small), 182},
    {sipName_A5, static_cast<int>(QPagedPaintDevice::A5), 182},
    {sipName_A5Extra, static_cast<int>(QPagedPaintDevice::A5Extra), 182},
    {sipName_A6, static_cast<int>(QPagedPaintDevice::A6), 182},
    {sipName_A7, static_cast<int>(QPagedPaintDevice::A7), 182},
    {sipName_A8, static_cast<int>(QPagedPaintDevice::A8), 182},
    {sipName_A9, static_cast<int>(QPagedPaintDevice::A9), 182},
    {sipName_AnsiA, static_cast<int>(QPagedPaintDevice::AnsiA), 182},
    {sipName_AnsiB, static_cast<int>(QPagedPaintDevice::AnsiB), 182},
    {sipName_AnsiC, static_cast<int>(QPagedPaintDevice::AnsiC), 182},
    {sipName_AnsiD, static_cast<int>(QPagedPaintDevice::AnsiD), 182},
    {sipName_AnsiE, static_cast<int>(QPagedPaintDevice::AnsiE), 182},
    {sipName_ArchA, static_cast<int>(QPagedPaintDevice::ArchA), 182},
    {sipName_ArchB, static_cast<int>(QPagedPaintDevice::ArchB), 182},
    {sipName_ArchC, static_cast<int>(QPagedPaintDevice::ArchC), 182},
    {sipName_ArchD, static_cast<int>(QPagedPaintDevice::ArchD), 182},
    {sipName_ArchE, static_cast<int>(QPagedPaintDevice::ArchE), 182},
    {sipName_B0, static_cast<int>(QPagedPaintDevice::B0), 182},
    {sipName_B1, static_cast<int>(QPagedPaintDevice::B1), 182},
    {sipName_B10, static_cast<int>(QPagedPaintDevice::B10), 182},
    {sipName_B2, static_cast<int>(QPagedPaintDevice::B2), 182},
    {sipName_B3, static_cast<int>(QPagedPaintDevice::B3), 182},
    {sipName_B4, static_cast<int>(QPagedPaintDevice::B4), 182},
    {sipName_B5, static_cast<int>(QPagedPaintDevice::B5), 182},
    {sipName_B5Extra, static_cast<int>(QPagedPaintDevice::B5Extra), 182},
    {sipName_B6, static_cast<int>(QPagedPaintDevice::B6), 182},
    {sipName_B7, static_cast<int>(QPagedPaintDevice::B7), 182},
    {sipName_B8, static_cast<int>(QPagedPaintDevice::B8), 182},
    {sipName_B9, static_cast<int>(QPagedPaintDevice::B9), 182},
    {sipName_C5E, static_cast<int>(QPagedPaintDevice::C5E), 182},
    {sipName_Comm10E, static_cast<int>(QPagedPaintDevice::Comm10E), 182},
    {sipName_Custom, static_cast<int>(QPagedPaintDevice::Custom), 182},
    {sipName_DLE, static_cast<int>(QPagedPaintDevice::DLE), 182},
    {sipName_DoublePostcard, static_cast<int>(QPagedPaintDevice::DoublePostcard), 182},
    {sipName_Envelope10, static_cast<int>(QPagedPaintDevice::Envelope10), 182},
    {sipName_Envelope11, static_cast<int>(QPagedPaintDevice::Envelope11), 182},
    {sipName_Envelope12, static_cast<int>(QPagedPaintDevice::Envelope12), 182},
    {sipName_Envelope14, static_cast<int>(QPagedPaintDevice::Envelope14), 182},
    {sipName_Envelope9, static_cast<int>(QPagedPaintDevice::Envelope9), 182},
    {sipName_EnvelopeB4, static_cast<int>(QPagedPaintDevice::EnvelopeB4), 182},
    {sipName_EnvelopeB5, static_cast<int>(QPagedPaintDevice::EnvelopeB5), 182},
    {sipName_EnvelopeB6, static_cast<int>(QPagedPaintDevice::EnvelopeB6), 182},
    {sipName_EnvelopeC0, static_cast<int>(QPagedPaintDevice::EnvelopeC0), 182},
    {sipName_EnvelopeC1, static_cast<int>(QPagedPaintDevice::EnvelopeC1), 182},
    {sipName_EnvelopeC2, static_cast<int>(QPagedPaintDevice::EnvelopeC2), 182},
    {sipName_EnvelopeC3, static_cast<int>(QPagedPaintDevice::EnvelopeC3), 182},
    {sipName_EnvelopeC4, static_cast<int>(QPagedPaintDevice::EnvelopeC4), 182},
    {sipName_EnvelopeC5, static_cast<int>(QPagedPaintDevice::EnvelopeC5), 182},
    {sipName_EnvelopeC6, static_cast<int>(QPagedPaintDevice::EnvelopeC6), 182},
    {sipName_EnvelopeC65, static_cast<int>(QPagedPaintDevice::EnvelopeC65), 182},
    {sipName_EnvelopeC7, static_cast<int>(QPagedPaintDevice::EnvelopeC7), 182},
    {sipName_EnvelopeChou3, static_cast<int>(QPagedPaintDevice::EnvelopeChou3), 182},
    {sipName_EnvelopeChou4, static_cast<int>(QPagedPaintDevice::EnvelopeChou4), 182},
    {sipName_EnvelopeDL, static_cast<int>(QPagedPaintDevice::EnvelopeDL), 182},
    {sipName_EnvelopeInvite, static_cast<int>(QPagedPaintDevice::EnvelopeInvite), 182},
    {sipName_EnvelopeItalian, static_cast<int>(QPagedPaintDevice::EnvelopeItalian), 182},
    {sipName_EnvelopeKaku2, static_cast<int>(QPagedPaintDevice::EnvelopeKaku2), 182},
    {sipName_EnvelopeKaku3, static_cast<int>(QPagedPaintDevice::EnvelopeKaku3), 182},
    {sipName_EnvelopeMonarch, static_cast<int>(QPagedPaintDevice::EnvelopeMonarch), 182},
    {sipName_EnvelopePersonal, static_cast<int>(QPagedPaintDevice::EnvelopePersonal), 182},
    {sipName_EnvelopePrc1, static_cast<int>(QPagedPaintDevice::EnvelopePrc1), 182},
    {sipName_EnvelopePrc10, static_cast<int>(QPagedPaintDevice::EnvelopePrc10), 182},
    {sipName_EnvelopePrc2, static_cast<int>(QPagedPaintDevice::EnvelopePrc2), 182},
    {sipName_EnvelopePrc3, static_cast<int>(QPagedPaintDevice::EnvelopePrc3), 182},
    {sipName_EnvelopePrc4, static_cast<int>(QPagedPaintDevice::EnvelopePrc4), 182},
    {sipName_EnvelopePrc5, static_cast<int>(QPagedPaintDevice::EnvelopePrc5), 182},
    {sipName_EnvelopePrc6, static_cast<int>(QPagedPaintDevice::EnvelopePrc6), 182},
    {sipName_EnvelopePrc7, static_cast<int>(QPagedPaintDevice::EnvelopePrc7), 182},
    {sipName_EnvelopePrc8, static_cast<int>(QPagedPaintDevice::EnvelopePrc8), 182},
    {sipName_EnvelopePrc9, static_cast<int>(QPagedPaintDevice::EnvelopePrc9), 182},
    {sipName_EnvelopeYou4, static_cast<int>(QPagedPaintDevice::EnvelopeYou4), 182},
    {sipName_Executive, static_cast<int>(QPagedPaintDevice::Executive), 182},
    {sipName_ExecutiveStandard, static_cast<int>(QPagedPaintDevice::ExecutiveStandard), 182},
    {sipName_FanFoldGerman, static_cast<int>(QPagedPaintDevice::FanFoldGerman), 182},
    {sipName_FanFoldGermanLegal, static_cast<int>(QPagedPaintDevice::FanFoldGermanLegal), 182},
    {sipName_FanFoldUS, static_cast<int>(QPagedPaintDevice::FanFoldUS), 182},
    {sipName_Folio, static_cast<int>(QPagedPaintDevice::Folio), 182},
    {sipName_Imperial10x11, static_cast<int>(QPagedPaintDevice::Imperial10x11), 182},
    {sipName_Imperial10x13, static_cast<int>(QPagedPaintDevice::Imperial10x13), 182},
    {sipName_Imperial10x14, static_cast<int>(QPagedPaintDevice::Imperial10x14), 182},
    {sipName_Imperial12x11, static_cast<int>(QPagedPaintDevice::Imperial12x11), 182},
    {sipName_Imperial15x11, static_cast<int>(QPagedPaintDevice::Imperial15x11), 182},
    {sipName_Imperial7x9, static_cast<int>(QPagedPaintDevice::Imperial7x9), 182},
    {sipName_Imperial8x10, static_cast<int>(QPagedPaintDevice::Imperial8x10), 182},
    {sipName_Imperial9x11, static_cast<int>(QPagedPaintDevice::Imperial9x11), 182},
    {sipName_Imperial9x12, static_cast<int>(QPagedPaintDevice::Imperial9x12), 182},
    {sipName_JisB0, static_cast<int>(QPagedPaintDevice::JisB0), 182},
    {sipName_JisB1, static_cast<int>(QPagedPaintDevice::JisB1), 182},
    {sipName_JisB10, static_cast<int>(QPagedPaintDevice::JisB10), 182},
    {sipName_JisB2, static_cast<int>(QPagedPaintDevice::JisB2), 182},
    {sipName_JisB3, static_cast<int>(QPagedPaintDevice::JisB3), 182},
    {sipName_JisB4, static_cast<int>(QPagedPaintDevice::JisB4), 182},
    {sipName_JisB5, static_cast<int>(QPagedPaintDevice::JisB5), 182},
    {sipName_JisB6, static_cast<int>(QPagedPaintDevice::JisB6), 182},
    {sipName_JisB7, static_cast<int>(QPagedPaintDevice::JisB7), 182},
    {sipName_JisB8, static_cast<int>(QPagedPaintDevice::JisB8), 182},
    {sipName_JisB9, static_cast<int>(QPagedPaintDevice::JisB9), 182},
    {sipName_LastPageSize, static_cast<int>(QPagedPaintDevice::LastPageSize), 182},
    {sipName_Ledger, static_cast<int>(QPagedPaintDevice::Ledger), 182},
    {sipName_Legal, static_cast<int>(QPagedPaintDevice::Legal), 182},
    {sipName_LegalExtra, static_cast<int>(QPagedPaintDevice::LegalExtra), 182},
    {sipName_Letter, static_cast<int>(QPagedPaintDevice::Letter), 182},
    {sipName_LetterExtra, static_cast<int>(QPagedPaintDevice::LetterExtra), 182},
    {sipName_LetterPlus, static_cast<int>(QPagedPaintDevice::LetterPlus), 182},
    {sipName_LetterSmall, static_cast<int>(QPagedPaintDevice::LetterSmall), 182},
    {sipName_NPaperSize, static_cast<int>(QPagedPaintDevice::NPaperSize), 182},
    {sipName_Note, static_cast<int>(QPagedPaintDevice::Note), 182},
    {sipName_Postcard, static_cast<int>(QPagedPaintDevice::Postcard), 182},
    {sipName_Prc16K, static_cast<int>(QPagedPaintDevice::Prc16K), 182},
    {sipName_Prc32K, static_cast<int>(QPagedPaintDevice::Prc32K), 182},
    {sipName_Prc32KBig, static_cast<int>(QPagedPaintDevice::Prc32KBig), 182},
    {sipName_Quarto, static_cast<int>(QPagedPaintDevice::Quarto), 182},
    {sipName_Statement, static_cast<int>(QPagedPaintDevice::Statement), 182},
    {sipName_SuperA, static_cast<int>(QPagedPaintDevice::SuperA), 182},
    {sipName_SuperB, static_cast<int>(QPagedPaintDevice::SuperB), 182},
    {sipName_Tabloid, static_cast<int>(QPagedPaintDevice::Tabloid), 182},
    {sipName_TabloidExtra, static_cast<int>(QPagedPaintDevice::TabloidExtra), 182},
};

PyDoc_STRVAR(doc_QPagedPaintDevice, "\1QPagedPaintDevice()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPagedPaintDevice = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPagedPaintDevice,
        {0}
    },
    {
        sipNameNr_QPagedPaintDevice,
        {0, 0, 1},
        12, methods_QPagedPaintDevice,
        126, enummembers_QPagedPaintDevice,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPagedPaintDevice,
    -1,
    -1,
    supers_QPagedPaintDevice,
    0,
    init_type_QPagedPaintDevice,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPagedPaintDevice,
    0,
    0,
    0,
    release_QPagedPaintDevice,
    cast_QPagedPaintDevice,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglwindow.sip"
#include <qopenglwindow.h>
#line 106483 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 106487 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 106490 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 395 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106493 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106496 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 106499 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 106502 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 106505 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 743 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106508 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 106511 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 106514 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 106517 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106520 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106523 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 247 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106526 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 202 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106529 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 333 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106532 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 441 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106535 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 430 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106538 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 354 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106541 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 106544 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 106547 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 106550 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 106553 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 106556 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 106559 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 106562 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 106565 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 106568 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 106571 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 106574 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 106577 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 106580 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 106583 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 106586 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 106589 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 106592 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 106595 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 106598 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 106601 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 106604 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 106607 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 106610 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 106613 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 106616 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 106619 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLWindow : public QOpenGLWindow
{
public:
    sipQOpenGLWindow(QOpenGLWindow::UpdateBehavior,QWindow*);
    virtual ~sipQOpenGLWindow();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtectVirt_moveEvent(bool,QMoveEvent*);
    void sipProtectVirt_focusInEvent(bool,QFocusEvent*);
    void sipProtectVirt_focusOutEvent(bool,QFocusEvent*);
    void sipProtectVirt_showEvent(bool,QShowEvent*);
    void sipProtectVirt_hideEvent(bool,QHideEvent*);
    void sipProtectVirt_keyPressEvent(bool,QKeyEvent*);
    void sipProtectVirt_keyReleaseEvent(bool,QKeyEvent*);
    void sipProtectVirt_mousePressEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseReleaseEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseDoubleClickEvent(bool,QMouseEvent*);
    void sipProtectVirt_mouseMoveEvent(bool,QMouseEvent*);
    void sipProtectVirt_wheelEvent(bool,QWheelEvent*);
    void sipProtectVirt_touchEvent(bool,QTouchEvent*);
    void sipProtectVirt_tabletEvent(bool,QTabletEvent*);
    void sipProtectVirt_exposeEvent(bool,QExposeEvent*);
    bool sipProtectVirt_event(bool,QEvent*);
    void sipProtectVirt_initializeGL(bool);
    void sipProtectVirt_resizeGL(bool,int,int);
    void sipProtectVirt_paintGL(bool);
    void sipProtectVirt_paintUnderGL(bool);
    void sipProtectVirt_paintOverGL(bool);
    void sipProtectVirt_paintEvent(bool,QPaintEvent*);
    void sipProtectVirt_resizeEvent(bool,QResizeEvent*);
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QPaintEngine* paintEngine() const;
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    void tabletEvent(QTabletEvent*);
    void touchEvent(QTouchEvent*);
    void wheelEvent(QWheelEvent*);
    void mouseMoveEvent(QMouseEvent*);
    void mouseDoubleClickEvent(QMouseEvent*);
    void mouseReleaseEvent(QMouseEvent*);
    void mousePressEvent(QMouseEvent*);
    void keyReleaseEvent(QKeyEvent*);
    void keyPressEvent(QKeyEvent*);
    void hideEvent(QHideEvent*);
    void showEvent(QShowEvent*);
    void focusOutEvent(QFocusEvent*);
    void focusInEvent(QFocusEvent*);
    void moveEvent(QMoveEvent*);
    QObject* focusObject() const;
    QSize size() const;
    QSurfaceFormat format() const;
    QSurface::SurfaceType surfaceType() const;
    bool event(QEvent*);
    void exposeEvent(QExposeEvent*);
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void resizeEvent(QResizeEvent*);
    void paintEvent(QPaintEvent*);
    void paintOverGL();
    void paintUnderGL();
    void paintGL();
    void resizeGL(int,int);
    void initializeGL();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLWindow(const sipQOpenGLWindow &);
    sipQOpenGLWindow &operator = (const sipQOpenGLWindow &);

    char sipPyMethods[35];
};

sipQOpenGLWindow::sipQOpenGLWindow(QOpenGLWindow::UpdateBehavior a0,QWindow*a1): QOpenGLWindow(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLWindow::~sipQOpenGLWindow()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQOpenGLWindow::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLWindow);
}

int sipQOpenGLWindow::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QOpenGLWindow::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QOpenGLWindow,_c,_id,_a);

    return _id;
}

void *sipQOpenGLWindow::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QOpenGLWindow, _clname, &sipCpp) ? sipCpp : QOpenGLWindow::qt_metacast(_clname));
}

QPaintEngine* sipQOpenGLWindow::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_QOpenGLWindow,sipName_paintEngine);

    if (!sipMeth)
        return 0;

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQOpenGLWindow::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QOpenGLWindow::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QOpenGLWindow::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOpenGLWindow::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QOpenGLWindow::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLWindow::tabletEvent(QTabletEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_tabletEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::tabletEvent(a0);
        return;
    }

    extern void sipVH_QtGui_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTabletEvent*);

    sipVH_QtGui_0(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::touchEvent(QTouchEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_touchEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::touchEvent(a0);
        return;
    }

    extern void sipVH_QtGui_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTouchEvent*);

    sipVH_QtGui_1(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::wheelEvent(QWheelEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_wheelEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::wheelEvent(a0);
        return;
    }

    extern void sipVH_QtGui_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QWheelEvent*);

    sipVH_QtGui_2(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::mouseMoveEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_mouseMoveEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::mouseMoveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::mouseDoubleClickEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_mouseDoubleClickEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::mouseDoubleClickEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::mouseReleaseEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_mouseReleaseEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::mouseReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::mousePressEvent(QMouseEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_mousePressEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::mousePressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMouseEvent*);

    sipVH_QtGui_3(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::keyReleaseEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_keyReleaseEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::keyReleaseEvent(a0);
        return;
    }

    extern void sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    sipVH_QtGui_4(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::keyPressEvent(QKeyEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_keyPressEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::keyPressEvent(a0);
        return;
    }

    extern void sipVH_QtGui_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QKeyEvent*);

    sipVH_QtGui_4(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::hideEvent(QHideEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_hideEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::hideEvent(a0);
        return;
    }

    extern void sipVH_QtGui_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QHideEvent*);

    sipVH_QtGui_5(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::showEvent(QShowEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_showEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::showEvent(a0);
        return;
    }

    extern void sipVH_QtGui_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QShowEvent*);

    sipVH_QtGui_6(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::focusOutEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,NULL,sipName_focusOutEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::focusOutEvent(a0);
        return;
    }

    extern void sipVH_QtGui_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    sipVH_QtGui_7(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::focusInEvent(QFocusEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,NULL,sipName_focusInEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::focusInEvent(a0);
        return;
    }

    extern void sipVH_QtGui_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QFocusEvent*);

    sipVH_QtGui_7(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::moveEvent(QMoveEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,NULL,sipName_moveEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::moveEvent(a0);
        return;
    }

    extern void sipVH_QtGui_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QMoveEvent*);

    sipVH_QtGui_8(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQOpenGLWindow::focusObject() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[21]),sipPySelf,NULL,sipName_focusObject);

    if (!sipMeth)
        return QOpenGLWindow::focusObject();

    extern QObject* sipVH_QtGui_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_11(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSize sipQOpenGLWindow::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[22]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return QOpenGLWindow::size();

    extern QSize sipVH_QtGui_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_12(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSurfaceFormat sipQOpenGLWindow::format() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[23]),sipPySelf,NULL,sipName_format);

    if (!sipMeth)
        return QOpenGLWindow::format();

    extern QSurfaceFormat sipVH_QtGui_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_13(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSurface::SurfaceType sipQOpenGLWindow::surfaceType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[24]),sipPySelf,NULL,sipName_surfaceType);

    if (!sipMeth)
        return QOpenGLWindow::surfaceType();

    extern QSurface::SurfaceType sipVH_QtGui_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_14(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQOpenGLWindow::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QOpenGLWindow::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::exposeEvent(QExposeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[26],sipPySelf,NULL,sipName_exposeEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::exposeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QExposeEvent*);

    sipVH_QtGui_10(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

int sipQOpenGLWindow::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[27]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QOpenGLWindow::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::resizeEvent(QResizeEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[28],sipPySelf,NULL,sipName_resizeEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::resizeEvent(a0);
        return;
    }

    extern void sipVH_QtGui_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QResizeEvent*);

    sipVH_QtGui_9(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::paintEvent(QPaintEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,NULL,sipName_paintEvent);

    if (!sipMeth)
    {
        QOpenGLWindow::paintEvent(a0);
        return;
    }

    extern void sipVH_QtGui_52(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintEvent*);

    sipVH_QtGui_52(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLWindow::paintOverGL()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,NULL,sipName_paintOverGL);

    if (!sipMeth)
    {
        QOpenGLWindow::paintOverGL();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtGui_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQOpenGLWindow::paintUnderGL()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[31],sipPySelf,NULL,sipName_paintUnderGL);

    if (!sipMeth)
    {
        QOpenGLWindow::paintUnderGL();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtGui_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQOpenGLWindow::paintGL()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[32],sipPySelf,NULL,sipName_paintGL);

    if (!sipMeth)
    {
        QOpenGLWindow::paintGL();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtGui_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQOpenGLWindow::resizeGL(int a0,int a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[33],sipPySelf,NULL,sipName_resizeGL);

    if (!sipMeth)
    {
        QOpenGLWindow::resizeGL(a0,a1);
        return;
    }

    extern void sipVH_QtGui_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);

    sipVH_QtGui_17(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQOpenGLWindow::initializeGL()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,NULL,sipName_initializeGL);

    if (!sipMeth)
    {
        QOpenGLWindow::initializeGL();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtGui_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QObject* sipQOpenGLWindow::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQOpenGLWindow::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQOpenGLWindow::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQOpenGLWindow::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQOpenGLWindow::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQOpenGLWindow::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQOpenGLWindow::sipProtectVirt_moveEvent(bool sipSelfWasArg,QMoveEvent*a0)
{
    (sipSelfWasArg ? QWindow::moveEvent(a0) : moveEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_focusInEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWindow::focusInEvent(a0) : focusInEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_focusOutEvent(bool sipSelfWasArg,QFocusEvent*a0)
{
    (sipSelfWasArg ? QWindow::focusOutEvent(a0) : focusOutEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_showEvent(bool sipSelfWasArg,QShowEvent*a0)
{
    (sipSelfWasArg ? QWindow::showEvent(a0) : showEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_hideEvent(bool sipSelfWasArg,QHideEvent*a0)
{
    (sipSelfWasArg ? QWindow::hideEvent(a0) : hideEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_keyPressEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWindow::keyPressEvent(a0) : keyPressEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_keyReleaseEvent(bool sipSelfWasArg,QKeyEvent*a0)
{
    (sipSelfWasArg ? QWindow::keyReleaseEvent(a0) : keyReleaseEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_mousePressEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mousePressEvent(a0) : mousePressEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_mouseReleaseEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mouseReleaseEvent(a0) : mouseReleaseEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_mouseDoubleClickEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mouseDoubleClickEvent(a0) : mouseDoubleClickEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_mouseMoveEvent(bool sipSelfWasArg,QMouseEvent*a0)
{
    (sipSelfWasArg ? QWindow::mouseMoveEvent(a0) : mouseMoveEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_wheelEvent(bool sipSelfWasArg,QWheelEvent*a0)
{
    (sipSelfWasArg ? QWindow::wheelEvent(a0) : wheelEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_touchEvent(bool sipSelfWasArg,QTouchEvent*a0)
{
    (sipSelfWasArg ? QWindow::touchEvent(a0) : touchEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_tabletEvent(bool sipSelfWasArg,QTabletEvent*a0)
{
    (sipSelfWasArg ? QWindow::tabletEvent(a0) : tabletEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_exposeEvent(bool sipSelfWasArg,QExposeEvent*a0)
{
    (sipSelfWasArg ? QPaintDeviceWindow::exposeEvent(a0) : exposeEvent(a0));
}

bool sipQOpenGLWindow::sipProtectVirt_event(bool sipSelfWasArg,QEvent*a0)
{
    return (sipSelfWasArg ? QPaintDeviceWindow::event(a0) : event(a0));
}

void sipQOpenGLWindow::sipProtectVirt_initializeGL(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QOpenGLWindow::initializeGL() : initializeGL());
}

void sipQOpenGLWindow::sipProtectVirt_resizeGL(bool sipSelfWasArg,int a0,int a1)
{
    (sipSelfWasArg ? QOpenGLWindow::resizeGL(a0,a1) : resizeGL(a0,a1));
}

void sipQOpenGLWindow::sipProtectVirt_paintGL(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QOpenGLWindow::paintGL() : paintGL());
}

void sipQOpenGLWindow::sipProtectVirt_paintUnderGL(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QOpenGLWindow::paintUnderGL() : paintUnderGL());
}

void sipQOpenGLWindow::sipProtectVirt_paintOverGL(bool sipSelfWasArg)
{
    (sipSelfWasArg ? QOpenGLWindow::paintOverGL() : paintOverGL());
}

void sipQOpenGLWindow::sipProtectVirt_paintEvent(bool sipSelfWasArg,QPaintEvent*a0)
{
    (sipSelfWasArg ? QOpenGLWindow::paintEvent(a0) : paintEvent(a0));
}

void sipQOpenGLWindow::sipProtectVirt_resizeEvent(bool sipSelfWasArg,QResizeEvent*a0)
{
    (sipSelfWasArg ? QOpenGLWindow::resizeEvent(a0) : resizeEvent(a0));
}

int sipQOpenGLWindow::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QOpenGLWindow::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QOpenGLWindow_sender, "QOpenGLWindow.sender() -> QObject");

extern "C" {static PyObject *meth_QOpenGLWindow_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 107565 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_sender, doc_QOpenGLWindow_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_receivers, "QOpenGLWindow.receivers(signal) -> int");

extern "C" {static PyObject *meth_QOpenGLWindow_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QOpenGLWindow, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 107624 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_receivers, doc_QOpenGLWindow_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_timerEvent, "QOpenGLWindow.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_timerEvent, doc_QOpenGLWindow_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_childEvent, "QOpenGLWindow.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_childEvent, doc_QOpenGLWindow_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_customEvent, "QOpenGLWindow.customEvent(QEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_customEvent, doc_QOpenGLWindow_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_connectNotify, "QOpenGLWindow.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLWindow_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_connectNotify, doc_QOpenGLWindow_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_disconnectNotify, "QOpenGLWindow.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLWindow_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_disconnectNotify, doc_QOpenGLWindow_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_senderSignalIndex, "QOpenGLWindow.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QOpenGLWindow_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_senderSignalIndex, doc_QOpenGLWindow_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_isSignalConnected, "QOpenGLWindow.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QOpenGLWindow_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_isSignalConnected, doc_QOpenGLWindow_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_moveEvent, "QOpenGLWindow.moveEvent(QMoveEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_moveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_moveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMoveEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QMoveEvent, &a0))
        {
            sipCpp->sipProtectVirt_moveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_moveEvent, doc_QOpenGLWindow_moveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_focusInEvent, "QOpenGLWindow.focusInEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_focusInEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_focusInEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusInEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_focusInEvent, doc_QOpenGLWindow_focusInEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_focusOutEvent, "QOpenGLWindow.focusOutEvent(QFocusEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_focusOutEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_focusOutEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QFocusEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QFocusEvent, &a0))
        {
            sipCpp->sipProtectVirt_focusOutEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_focusOutEvent, doc_QOpenGLWindow_focusOutEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_showEvent, "QOpenGLWindow.showEvent(QShowEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_showEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_showEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QShowEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QShowEvent, &a0))
        {
            sipCpp->sipProtectVirt_showEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_showEvent, doc_QOpenGLWindow_showEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_hideEvent, "QOpenGLWindow.hideEvent(QHideEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_hideEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_hideEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QHideEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QHideEvent, &a0))
        {
            sipCpp->sipProtectVirt_hideEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_hideEvent, doc_QOpenGLWindow_hideEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_keyPressEvent, "QOpenGLWindow.keyPressEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_keyPressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_keyPressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyPressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_keyPressEvent, doc_QOpenGLWindow_keyPressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_keyReleaseEvent, "QOpenGLWindow.keyReleaseEvent(QKeyEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_keyReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_keyReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QKeyEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QKeyEvent, &a0))
        {
            sipCpp->sipProtectVirt_keyReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_keyReleaseEvent, doc_QOpenGLWindow_keyReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_mousePressEvent, "QOpenGLWindow.mousePressEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_mousePressEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_mousePressEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mousePressEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_mousePressEvent, doc_QOpenGLWindow_mousePressEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_mouseReleaseEvent, "QOpenGLWindow.mouseReleaseEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_mouseReleaseEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_mouseReleaseEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseReleaseEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_mouseReleaseEvent, doc_QOpenGLWindow_mouseReleaseEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_mouseDoubleClickEvent, "QOpenGLWindow.mouseDoubleClickEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_mouseDoubleClickEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_mouseDoubleClickEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseDoubleClickEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_mouseDoubleClickEvent, doc_QOpenGLWindow_mouseDoubleClickEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_mouseMoveEvent, "QOpenGLWindow.mouseMoveEvent(QMouseEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_mouseMoveEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_mouseMoveEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QMouseEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QMouseEvent, &a0))
        {
            sipCpp->sipProtectVirt_mouseMoveEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_mouseMoveEvent, doc_QOpenGLWindow_mouseMoveEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_wheelEvent, "QOpenGLWindow.wheelEvent(QWheelEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_wheelEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_wheelEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QWheelEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QWheelEvent, &a0))
        {
            sipCpp->sipProtectVirt_wheelEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_wheelEvent, doc_QOpenGLWindow_wheelEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_touchEvent, "QOpenGLWindow.touchEvent(QTouchEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_touchEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_touchEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTouchEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QTouchEvent, &a0))
        {
            sipCpp->sipProtectVirt_touchEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_touchEvent, doc_QOpenGLWindow_touchEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_tabletEvent, "QOpenGLWindow.tabletEvent(QTabletEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_tabletEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_tabletEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTabletEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QTabletEvent, &a0))
        {
            sipCpp->sipProtectVirt_tabletEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_tabletEvent, doc_QOpenGLWindow_tabletEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_exposeEvent, "QOpenGLWindow.exposeEvent(QExposeEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_exposeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_exposeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QExposeEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QExposeEvent, &a0))
        {
            sipCpp->sipProtectVirt_exposeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_exposeEvent, doc_QOpenGLWindow_exposeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_event, "QOpenGLWindow.event(QEvent) -> bool");

extern "C" {static PyObject *meth_QOpenGLWindow_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_event, doc_QOpenGLWindow_event);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_updateBehavior, "QOpenGLWindow.updateBehavior() -> QOpenGLWindow.UpdateBehavior");

extern "C" {static PyObject *meth_QOpenGLWindow_updateBehavior(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_updateBehavior(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            QOpenGLWindow::UpdateBehavior sipRes;

            sipRes = sipCpp->updateBehavior();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLWindow_UpdateBehavior);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_updateBehavior, doc_QOpenGLWindow_updateBehavior);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_isValid, "QOpenGLWindow.isValid() -> bool");

extern "C" {static PyObject *meth_QOpenGLWindow_isValid(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_isValid, doc_QOpenGLWindow_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_makeCurrent, "QOpenGLWindow.makeCurrent()");

extern "C" {static PyObject *meth_QOpenGLWindow_makeCurrent(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_makeCurrent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            sipCpp->makeCurrent();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_makeCurrent, doc_QOpenGLWindow_makeCurrent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_doneCurrent, "QOpenGLWindow.doneCurrent()");

extern "C" {static PyObject *meth_QOpenGLWindow_doneCurrent(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_doneCurrent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            sipCpp->doneCurrent();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_doneCurrent, doc_QOpenGLWindow_doneCurrent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_context, "QOpenGLWindow.context() -> QOpenGLContext");

extern "C" {static PyObject *meth_QOpenGLWindow_context(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_context(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            QOpenGLContext*sipRes;

            sipRes = sipCpp->context();

            return sipConvertFromType(sipRes,sipType_QOpenGLContext,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_context, doc_QOpenGLWindow_context);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_defaultFramebufferObject, "QOpenGLWindow.defaultFramebufferObject() -> int");

extern "C" {static PyObject *meth_QOpenGLWindow_defaultFramebufferObject(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_defaultFramebufferObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->defaultFramebufferObject();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_defaultFramebufferObject, doc_QOpenGLWindow_defaultFramebufferObject);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_grabFramebuffer, "QOpenGLWindow.grabFramebuffer() -> QImage");

extern "C" {static PyObject *meth_QOpenGLWindow_grabFramebuffer(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_grabFramebuffer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->grabFramebuffer());

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_grabFramebuffer, doc_QOpenGLWindow_grabFramebuffer);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_initializeGL, "QOpenGLWindow.initializeGL()");

extern "C" {static PyObject *meth_QOpenGLWindow_initializeGL(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_initializeGL(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            sipCpp->sipProtectVirt_initializeGL(sipSelfWasArg);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_initializeGL, doc_QOpenGLWindow_initializeGL);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_resizeGL, "QOpenGLWindow.resizeGL(int, int)");

extern "C" {static PyObject *meth_QOpenGLWindow_resizeGL(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_resizeGL(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        int a1;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bii", &sipSelf, sipType_QOpenGLWindow, &sipCpp, &a0, &a1))
        {
            sipCpp->sipProtectVirt_resizeGL(sipSelfWasArg,a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_resizeGL, doc_QOpenGLWindow_resizeGL);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_paintGL, "QOpenGLWindow.paintGL()");

extern "C" {static PyObject *meth_QOpenGLWindow_paintGL(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_paintGL(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            sipCpp->sipProtectVirt_paintGL(sipSelfWasArg);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_paintGL, doc_QOpenGLWindow_paintGL);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_paintUnderGL, "QOpenGLWindow.paintUnderGL()");

extern "C" {static PyObject *meth_QOpenGLWindow_paintUnderGL(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_paintUnderGL(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            sipCpp->sipProtectVirt_paintUnderGL(sipSelfWasArg);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_paintUnderGL, doc_QOpenGLWindow_paintUnderGL);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_paintOverGL, "QOpenGLWindow.paintOverGL()");

extern "C" {static PyObject *meth_QOpenGLWindow_paintOverGL(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_paintOverGL(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLWindow, &sipCpp))
        {
            sipCpp->sipProtectVirt_paintOverGL(sipSelfWasArg);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_paintOverGL, doc_QOpenGLWindow_paintOverGL);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_paintEvent, "QOpenGLWindow.paintEvent(QPaintEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_paintEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_paintEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QPaintEvent, &a0))
        {
            sipCpp->sipProtectVirt_paintEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_paintEvent, doc_QOpenGLWindow_paintEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_resizeEvent, "QOpenGLWindow.resizeEvent(QResizeEvent)");

extern "C" {static PyObject *meth_QOpenGLWindow_resizeEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_resizeEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QResizeEvent* a0;
        sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QResizeEvent, &a0))
        {
            sipCpp->sipProtectVirt_resizeEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_resizeEvent, doc_QOpenGLWindow_resizeEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLWindow_metric, "QOpenGLWindow.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QOpenGLWindow_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLWindow_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQOpenGLWindow *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QOpenGLWindow, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLWindow, sipName_metric, doc_QOpenGLWindow_metric);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLWindow(void *, const sipTypeDef *);}
static void *cast_QOpenGLWindow(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLWindow)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPaintDeviceWindow)->ctd_cast((QPaintDeviceWindow *)(QOpenGLWindow *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLWindow(void *, int);}
static void release_QOpenGLWindow(void *sipCppV,int)
{
    QOpenGLWindow *sipCpp = reinterpret_cast<QOpenGLWindow *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOpenGLWindow(sipSimpleWrapper *);}
static void dealloc_QOpenGLWindow(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLWindow *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLWindow(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLWindow(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLWindow(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQOpenGLWindow *sipCpp = 0;

    {
        QOpenGLWindow::UpdateBehavior a0 = QOpenGLWindow::NoPartialUpdate;
        QWindow* a1 = 0;

        static const char *sipKwdList[] = {
            sipName_updateBehavior,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|EJH", sipType_QOpenGLWindow_UpdateBehavior, &a0, sipType_QWindow, &a1, sipOwner))
        {
            sipCpp = new sipQOpenGLWindow(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLWindow[] = {{185, 255, 1}};


static PyMethodDef methods_QOpenGLWindow[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QOpenGLWindow_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QOpenGLWindow_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_context), meth_QOpenGLWindow_context, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLWindow_context)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QOpenGLWindow_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultFramebufferObject), meth_QOpenGLWindow_defaultFramebufferObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLWindow_defaultFramebufferObject)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QOpenGLWindow_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_doneCurrent), meth_QOpenGLWindow_doneCurrent, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLWindow_doneCurrent)},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_QOpenGLWindow_event, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_exposeEvent), (PyCFunction)meth_QOpenGLWindow_exposeEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusInEvent), (PyCFunction)meth_QOpenGLWindow_focusInEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusOutEvent), (PyCFunction)meth_QOpenGLWindow_focusOutEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_grabFramebuffer), meth_QOpenGLWindow_grabFramebuffer, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLWindow_grabFramebuffer)},
    {SIP_MLNAME_CAST(sipName_hideEvent), (PyCFunction)meth_QOpenGLWindow_hideEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_initializeGL), (PyCFunction)meth_QOpenGLWindow_initializeGL, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLWindow_initializeGL)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QOpenGLWindow_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QOpenGLWindow_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLWindow_isValid)},
    {SIP_MLNAME_CAST(sipName_keyPressEvent), (PyCFunction)meth_QOpenGLWindow_keyPressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyReleaseEvent), (PyCFunction)meth_QOpenGLWindow_keyReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_makeCurrent), meth_QOpenGLWindow_makeCurrent, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLWindow_makeCurrent)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QOpenGLWindow_metric, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLWindow_metric)},
    {SIP_MLNAME_CAST(sipName_mouseDoubleClickEvent), (PyCFunction)meth_QOpenGLWindow_mouseDoubleClickEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoveEvent), (PyCFunction)meth_QOpenGLWindow_mouseMoveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mousePressEvent), (PyCFunction)meth_QOpenGLWindow_mousePressEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseReleaseEvent), (PyCFunction)meth_QOpenGLWindow_mouseReleaseEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_moveEvent), (PyCFunction)meth_QOpenGLWindow_moveEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_paintEvent), (PyCFunction)meth_QOpenGLWindow_paintEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLWindow_paintEvent)},
    {SIP_MLNAME_CAST(sipName_paintGL), (PyCFunction)meth_QOpenGLWindow_paintGL, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLWindow_paintGL)},
    {SIP_MLNAME_CAST(sipName_paintOverGL), (PyCFunction)meth_QOpenGLWindow_paintOverGL, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLWindow_paintOverGL)},
    {SIP_MLNAME_CAST(sipName_paintUnderGL), (PyCFunction)meth_QOpenGLWindow_paintUnderGL, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLWindow_paintUnderGL)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QOpenGLWindow_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_resizeEvent), (PyCFunction)meth_QOpenGLWindow_resizeEvent, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLWindow_resizeEvent)},
    {SIP_MLNAME_CAST(sipName_resizeGL), (PyCFunction)meth_QOpenGLWindow_resizeGL, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLWindow_resizeGL)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QOpenGLWindow_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QOpenGLWindow_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_showEvent), (PyCFunction)meth_QOpenGLWindow_showEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_tabletEvent), (PyCFunction)meth_QOpenGLWindow_tabletEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QOpenGLWindow_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_touchEvent), (PyCFunction)meth_QOpenGLWindow_touchEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateBehavior), meth_QOpenGLWindow_updateBehavior, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLWindow_updateBehavior)},
    {SIP_MLNAME_CAST(sipName_wheelEvent), (PyCFunction)meth_QOpenGLWindow_wheelEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_QOpenGLWindow[] = {
    {sipName_NoPartialUpdate, static_cast<int>(QOpenGLWindow::NoPartialUpdate), 171},
    {sipName_PartialUpdateBlend, static_cast<int>(QOpenGLWindow::PartialUpdateBlend), 171},
    {sipName_PartialUpdateBlit, static_cast<int>(QOpenGLWindow::PartialUpdateBlit), 171},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QOpenGLWindow[] = {
    {"frameSwapped()", "\1QOpenGLWindow.frameSwapped", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QOpenGLWindow, "\1QOpenGLWindow(QOpenGLWindow.UpdateBehavior updateBehavior=QOpenGLWindow.NoPartialUpdate, QWindow parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLWindow = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLWindow,
        {0}
    },
    {
        sipNameNr_QOpenGLWindow,
        {0, 0, 1},
        40, methods_QOpenGLWindow,
        3, enummembers_QOpenGLWindow,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLWindow,
    -1,
    -1,
    supers_QOpenGLWindow,
    0,
    init_type_QOpenGLWindow,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLWindow,
    0,
    0,
    0,
    release_QOpenGLWindow,
    cast_QOpenGLWindow,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOpenGLWindow::staticMetaObject,
    0,
    signals_QOpenGLWindow,
    0
};

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevicewindow.sip"
#include <qpaintdevicewindow.h>
#line 108888 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 108892 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 743 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108895 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 108898 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 368 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108901 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 108904 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 108907 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 108910 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 192 "sip/QtCore/qglobal.sip"
#include <QtGlobal>
#line 108913 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108916 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108919 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 247 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108922 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 202 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108925 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 333 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108928 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 441 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108931 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 430 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108934 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 354 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108937 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108940 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 395 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 108943 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 108946 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 108949 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 108952 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 108955 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 108958 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 108961 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 108964 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 108967 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmargins.sip"
#include <qmargins.h>
#line 108970 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 108973 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 108976 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 108979 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 108982 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 108985 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 108988 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 108991 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 108994 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 108997 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 109000 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 109003 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 109006 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 109009 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 109012 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 109015 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 109018 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QPaintDeviceWindow_update, "QPaintDeviceWindow.update(QRect)\n"
    "QPaintDeviceWindow.update(QRegion)\n"
    "QPaintDeviceWindow.update()");

extern "C" {static PyObject *meth_QPaintDeviceWindow_update(PyObject *, PyObject *);}
static PyObject *meth_QPaintDeviceWindow_update(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        QPaintDeviceWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPaintDeviceWindow, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->update(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRegion* a0;
        QPaintDeviceWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPaintDeviceWindow, &sipCpp, sipType_QRegion, &a0))
        {
            sipCpp->update(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QPaintDeviceWindow *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDeviceWindow, &sipCpp))
        {
            sipCpp->update();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDeviceWindow, sipName_update, doc_QPaintDeviceWindow_update);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPaintDeviceWindow(void *, const sipTypeDef *);}
static void *cast_QPaintDeviceWindow(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPaintDeviceWindow)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QWindow)->ctd_cast((QWindow *)(QPaintDeviceWindow *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_QPaintDevice)->ctd_cast((QPaintDevice *)(QPaintDeviceWindow *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPaintDeviceWindow(void *, int);}
static void release_QPaintDeviceWindow(void *sipCppV,int)
{
    QPaintDeviceWindow *sipCpp = reinterpret_cast<QPaintDeviceWindow *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QPaintDeviceWindow(sipSimpleWrapper *);}
static void dealloc_QPaintDeviceWindow(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QPaintDeviceWindow(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPaintDeviceWindow[] = {{362, 255, 0}, {183, 255, 1}};


static PyMethodDef methods_QPaintDeviceWindow[] = {
    {SIP_MLNAME_CAST(sipName_update), meth_QPaintDeviceWindow_update, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDeviceWindow_update)}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QPaintDeviceWindow = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPaintDeviceWindow,
        {0}
    },
    {
        sipNameNr_QPaintDeviceWindow,
        {0, 0, 1},
        1, methods_QPaintDeviceWindow,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QPaintDeviceWindow,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPaintDeviceWindow,
    0,
    0,
    0,
    release_QPaintDeviceWindow,
    cast_QPaintDeviceWindow,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QPaintDeviceWindow::staticMetaObject,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglvertexarrayobject.sip"
#include <qopenglvertexarrayobject.h>
#line 45 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglvertexarrayobject.sip"
#include <qopenglvertexarrayobject.h>
#line 109184 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglvertexarrayobject.sip"
#include <qopenglvertexarrayobject.h>
#line 109188 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_Binder_release, "QOpenGLVertexArrayObject.Binder.release()");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_Binder_release(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_Binder_release(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLVertexArrayObject::Binder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVertexArrayObject_Binder, &sipCpp))
        {
            sipCpp->release();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Binder, sipName_release, doc_QOpenGLVertexArrayObject_Binder_release);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_Binder_rebind, "QOpenGLVertexArrayObject.Binder.rebind()");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_Binder_rebind(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_Binder_rebind(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLVertexArrayObject::Binder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVertexArrayObject_Binder, &sipCpp))
        {
            sipCpp->rebind();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Binder, sipName_rebind, doc_QOpenGLVertexArrayObject_Binder_rebind);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_Binder___enter__, "QOpenGLVertexArrayObject.Binder.__enter__() -> object");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_Binder___enter__(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_Binder___enter__(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLVertexArrayObject::Binder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVertexArrayObject_Binder, &sipCpp))
        {
            PyObject * sipRes = 0;

#line 55 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglvertexarrayobject.sip"
            // Just return a reference to self.
            sipRes = sipSelf;
            Py_INCREF(sipRes);
#line 109261 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Binder, sipName___enter__, doc_QOpenGLVertexArrayObject_Binder___enter__);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_Binder___exit__, "QOpenGLVertexArrayObject.Binder.__exit__(object, object, object)");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_Binder___exit__(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_Binder___exit__(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        PyObject * a1;
        PyObject * a2;
        QOpenGLVertexArrayObject::Binder *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BP0P0P0", &sipSelf, sipType_QOpenGLVertexArrayObject_Binder, &sipCpp, &a0, &a1, &a2))
        {
#line 62 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglvertexarrayobject.sip"
            sipCpp->release();
#line 109291 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_Binder, sipName___exit__, doc_QOpenGLVertexArrayObject_Binder___exit__);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLVertexArrayObject_Binder(void *, const sipTypeDef *);}
static void *cast_QOpenGLVertexArrayObject_Binder(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLVertexArrayObject_Binder)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLVertexArrayObject_Binder(void *, int);}
static void release_QOpenGLVertexArrayObject_Binder(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLVertexArrayObject::Binder *>(sipCppV);
}


extern "C" {static void dealloc_QOpenGLVertexArrayObject_Binder(sipSimpleWrapper *);}
static void dealloc_QOpenGLVertexArrayObject_Binder(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLVertexArrayObject_Binder(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLVertexArrayObject_Binder(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLVertexArrayObject_Binder(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLVertexArrayObject::Binder *sipCpp = 0;

    {
        QOpenGLVertexArrayObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QOpenGLVertexArrayObject, &a0))
        {
            sipCpp = new QOpenGLVertexArrayObject::Binder(a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QOpenGLVertexArrayObject_Binder[] = {
    {SIP_MLNAME_CAST(sipName___enter__), meth_QOpenGLVertexArrayObject_Binder___enter__, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_Binder___enter__)},
    {SIP_MLNAME_CAST(sipName___exit__), meth_QOpenGLVertexArrayObject_Binder___exit__, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_Binder___exit__)},
    {SIP_MLNAME_CAST(sipName_rebind), meth_QOpenGLVertexArrayObject_Binder_rebind, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_Binder_rebind)},
    {SIP_MLNAME_CAST(sipName_release), meth_QOpenGLVertexArrayObject_Binder_release, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_Binder_release)}
};

PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_Binder, "\1QOpenGLVertexArrayObject.Binder(QOpenGLVertexArrayObject)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLVertexArrayObject_Binder = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_NONLAZY|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLVertexArrayObject__Binder,
        {0}
    },
    {
        sipNameNr_Binder,
        {168, 255, 0},
        4, methods_QOpenGLVertexArrayObject_Binder,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLVertexArrayObject_Binder,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QOpenGLVertexArrayObject_Binder,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLVertexArrayObject_Binder,
    0,
    0,
    0,
    release_QOpenGLVertexArrayObject_Binder,
    cast_QOpenGLVertexArrayObject_Binder,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglvertexarrayobject.sip"
#include <qopenglvertexarrayobject.h>
#line 109421 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 109425 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 109428 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 109431 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 109434 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 109437 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 109440 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 109443 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 109446 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 109449 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 109452 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 109455 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 109458 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 109461 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 109464 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 109467 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 109470 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLVertexArrayObject : public QOpenGLVertexArrayObject
{
public:
    sipQOpenGLVertexArrayObject(QObject*);
    virtual ~sipQOpenGLVertexArrayObject();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLVertexArrayObject(const sipQOpenGLVertexArrayObject &);
    sipQOpenGLVertexArrayObject &operator = (const sipQOpenGLVertexArrayObject &);

    char sipPyMethods[7];
};

sipQOpenGLVertexArrayObject::sipQOpenGLVertexArrayObject(QObject*a0): QOpenGLVertexArrayObject(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLVertexArrayObject::~sipQOpenGLVertexArrayObject()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQOpenGLVertexArrayObject::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLVertexArrayObject);
}

int sipQOpenGLVertexArrayObject::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QOpenGLVertexArrayObject::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QOpenGLVertexArrayObject,_c,_id,_a);

    return _id;
}

void *sipQOpenGLVertexArrayObject::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QOpenGLVertexArrayObject, _clname, &sipCpp) ? sipCpp : QOpenGLVertexArrayObject::qt_metacast(_clname));
}

void sipQOpenGLVertexArrayObject::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QOpenGLVertexArrayObject::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLVertexArrayObject::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QOpenGLVertexArrayObject::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLVertexArrayObject::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QOpenGLVertexArrayObject::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLVertexArrayObject::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QOpenGLVertexArrayObject::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLVertexArrayObject::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QOpenGLVertexArrayObject::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOpenGLVertexArrayObject::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QOpenGLVertexArrayObject::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQOpenGLVertexArrayObject::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QOpenGLVertexArrayObject::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQOpenGLVertexArrayObject::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQOpenGLVertexArrayObject::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQOpenGLVertexArrayObject::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQOpenGLVertexArrayObject::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQOpenGLVertexArrayObject::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQOpenGLVertexArrayObject::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQOpenGLVertexArrayObject::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQOpenGLVertexArrayObject::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQOpenGLVertexArrayObject::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_sender, "QOpenGLVertexArrayObject.sender() -> QObject");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLVertexArrayObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 109758 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_sender, doc_QOpenGLVertexArrayObject_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_receivers, "QOpenGLVertexArrayObject.receivers(signal) -> int");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQOpenGLVertexArrayObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 109817 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_receivers, doc_QOpenGLVertexArrayObject_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_timerEvent, "QOpenGLVertexArrayObject.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQOpenGLVertexArrayObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_timerEvent, doc_QOpenGLVertexArrayObject_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_childEvent, "QOpenGLVertexArrayObject.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQOpenGLVertexArrayObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_childEvent, doc_QOpenGLVertexArrayObject_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_customEvent, "QOpenGLVertexArrayObject.customEvent(QEvent)");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOpenGLVertexArrayObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_customEvent, doc_QOpenGLVertexArrayObject_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_connectNotify, "QOpenGLVertexArrayObject.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLVertexArrayObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_connectNotify, doc_QOpenGLVertexArrayObject_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_disconnectNotify, "QOpenGLVertexArrayObject.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLVertexArrayObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_disconnectNotify, doc_QOpenGLVertexArrayObject_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_senderSignalIndex, "QOpenGLVertexArrayObject.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLVertexArrayObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_senderSignalIndex, doc_QOpenGLVertexArrayObject_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_isSignalConnected, "QOpenGLVertexArrayObject.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQOpenGLVertexArrayObject *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_isSignalConnected, doc_QOpenGLVertexArrayObject_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_create, "QOpenGLVertexArrayObject.create() -> bool");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_create(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLVertexArrayObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->create();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_create, doc_QOpenGLVertexArrayObject_create);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_destroy, "QOpenGLVertexArrayObject.destroy()");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_destroy(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_destroy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLVertexArrayObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp))
        {
            sipCpp->destroy();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_destroy, doc_QOpenGLVertexArrayObject_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_isCreated, "QOpenGLVertexArrayObject.isCreated() -> bool");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_isCreated(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_isCreated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVertexArrayObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCreated();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_isCreated, doc_QOpenGLVertexArrayObject_isCreated);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_objectId, "QOpenGLVertexArrayObject.objectId() -> int");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_objectId(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_objectId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVertexArrayObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->objectId();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_objectId, doc_QOpenGLVertexArrayObject_objectId);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_bind, "QOpenGLVertexArrayObject.bind()");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_bind(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_bind(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLVertexArrayObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp))
        {
            sipCpp->bind();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_bind, doc_QOpenGLVertexArrayObject_bind);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVertexArrayObject_release, "QOpenGLVertexArrayObject.release()");

extern "C" {static PyObject *meth_QOpenGLVertexArrayObject_release(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVertexArrayObject_release(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLVertexArrayObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVertexArrayObject, &sipCpp))
        {
            sipCpp->release();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVertexArrayObject, sipName_release, doc_QOpenGLVertexArrayObject_release);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLVertexArrayObject(void *, const sipTypeDef *);}
static void *cast_QOpenGLVertexArrayObject(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLVertexArrayObject)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QOpenGLVertexArrayObject *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLVertexArrayObject(void *, int);}
static void release_QOpenGLVertexArrayObject(void *sipCppV,int)
{
    QOpenGLVertexArrayObject *sipCpp = reinterpret_cast<QOpenGLVertexArrayObject *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOpenGLVertexArrayObject(sipSimpleWrapper *);}
static void dealloc_QOpenGLVertexArrayObject(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLVertexArrayObject *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLVertexArrayObject(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLVertexArrayObject(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLVertexArrayObject(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQOpenGLVertexArrayObject *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQOpenGLVertexArrayObject(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLVertexArrayObject[] = {{162, 0, 1}};


static PyMethodDef methods_QOpenGLVertexArrayObject[] = {
    {SIP_MLNAME_CAST(sipName_bind), meth_QOpenGLVertexArrayObject_bind, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_bind)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QOpenGLVertexArrayObject_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QOpenGLVertexArrayObject_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_QOpenGLVertexArrayObject_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_create)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QOpenGLVertexArrayObject_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), meth_QOpenGLVertexArrayObject_destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_destroy)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QOpenGLVertexArrayObject_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isCreated), meth_QOpenGLVertexArrayObject_isCreated, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_isCreated)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QOpenGLVertexArrayObject_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_objectId), meth_QOpenGLVertexArrayObject_objectId, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_objectId)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QOpenGLVertexArrayObject_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_release), meth_QOpenGLVertexArrayObject_release, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVertexArrayObject_release)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QOpenGLVertexArrayObject_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QOpenGLVertexArrayObject_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QOpenGLVertexArrayObject_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

PyDoc_STRVAR(doc_QOpenGLVertexArrayObject, "\1QOpenGLVertexArrayObject(QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLVertexArrayObject = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLVertexArrayObject,
        {0}
    },
    {
        sipNameNr_QOpenGLVertexArrayObject,
        {0, 0, 1},
        15, methods_QOpenGLVertexArrayObject,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLVertexArrayObject,
    -1,
    -1,
    supers_QOpenGLVertexArrayObject,
    0,
    init_type_QOpenGLVertexArrayObject,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLVertexArrayObject,
    0,
    0,
    0,
    release_QOpenGLVertexArrayObject,
    cast_QOpenGLVertexArrayObject,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOpenGLVertexArrayObject::staticMetaObject,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglversionfunctions.sip"
#include <qopenglversionfunctions.h>
#line 110342 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QAbstractOpenGLFunctions(void *, const sipTypeDef *);}
static void *cast_QAbstractOpenGLFunctions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QAbstractOpenGLFunctions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAbstractOpenGLFunctions(void *, int);}
static void release_QAbstractOpenGLFunctions(void *sipCppV,int)
{
    delete reinterpret_cast<QAbstractOpenGLFunctions *>(sipCppV);
}


extern "C" {static void dealloc_QAbstractOpenGLFunctions(sipSimpleWrapper *);}
static void dealloc_QAbstractOpenGLFunctions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QAbstractOpenGLFunctions(sipGetAddress(sipSelf),0);
    }
}


pyqt5ClassTypeDef sipTypeDef_QtGui_QAbstractOpenGLFunctions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QAbstractOpenGLFunctions,
        {0}
    },
    {
        sipNameNr_QAbstractOpenGLFunctions,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QAbstractOpenGLFunctions,
    0,
    0,
    0,
    release_QAbstractOpenGLFunctions,
    cast_QAbstractOpenGLFunctions,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 58 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengltimerquery.sip"
#include <qopengltimerquery.h>
#line 110431 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 110435 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 339 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#include <qopengl.h>
#line 110439 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 110442 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 110445 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 110448 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 110451 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 110454 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 110457 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 110460 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 110463 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 110466 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 110469 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 110472 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 110475 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 110478 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 110481 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 110484 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 110487 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLTimeMonitor : public QOpenGLTimeMonitor
{
public:
    sipQOpenGLTimeMonitor(QObject*);
    virtual ~sipQOpenGLTimeMonitor();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLTimeMonitor(const sipQOpenGLTimeMonitor &);
    sipQOpenGLTimeMonitor &operator = (const sipQOpenGLTimeMonitor &);

    char sipPyMethods[7];
};

sipQOpenGLTimeMonitor::sipQOpenGLTimeMonitor(QObject*a0): QOpenGLTimeMonitor(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLTimeMonitor::~sipQOpenGLTimeMonitor()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQOpenGLTimeMonitor::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLTimeMonitor);
}

int sipQOpenGLTimeMonitor::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QOpenGLTimeMonitor::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QOpenGLTimeMonitor,_c,_id,_a);

    return _id;
}

void *sipQOpenGLTimeMonitor::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QOpenGLTimeMonitor, _clname, &sipCpp) ? sipCpp : QOpenGLTimeMonitor::qt_metacast(_clname));
}

void sipQOpenGLTimeMonitor::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QOpenGLTimeMonitor::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimeMonitor::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QOpenGLTimeMonitor::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimeMonitor::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QOpenGLTimeMonitor::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimeMonitor::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QOpenGLTimeMonitor::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimeMonitor::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QOpenGLTimeMonitor::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOpenGLTimeMonitor::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QOpenGLTimeMonitor::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQOpenGLTimeMonitor::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QOpenGLTimeMonitor::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQOpenGLTimeMonitor::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQOpenGLTimeMonitor::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQOpenGLTimeMonitor::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQOpenGLTimeMonitor::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQOpenGLTimeMonitor::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQOpenGLTimeMonitor::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQOpenGLTimeMonitor::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQOpenGLTimeMonitor::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQOpenGLTimeMonitor::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_sender, "QOpenGLTimeMonitor.sender() -> QObject");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLTimeMonitor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 110775 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_sender, doc_QOpenGLTimeMonitor_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_receivers, "QOpenGLTimeMonitor.receivers(signal) -> int");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQOpenGLTimeMonitor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 110834 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_receivers, doc_QOpenGLTimeMonitor_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_timerEvent, "QOpenGLTimeMonitor.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQOpenGLTimeMonitor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_timerEvent, doc_QOpenGLTimeMonitor_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_childEvent, "QOpenGLTimeMonitor.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQOpenGLTimeMonitor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_childEvent, doc_QOpenGLTimeMonitor_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_customEvent, "QOpenGLTimeMonitor.customEvent(QEvent)");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOpenGLTimeMonitor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_customEvent, doc_QOpenGLTimeMonitor_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_connectNotify, "QOpenGLTimeMonitor.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLTimeMonitor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_connectNotify, doc_QOpenGLTimeMonitor_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_disconnectNotify, "QOpenGLTimeMonitor.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLTimeMonitor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_disconnectNotify, doc_QOpenGLTimeMonitor_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_senderSignalIndex, "QOpenGLTimeMonitor.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLTimeMonitor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_senderSignalIndex, doc_QOpenGLTimeMonitor_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_isSignalConnected, "QOpenGLTimeMonitor.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQOpenGLTimeMonitor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_isSignalConnected, doc_QOpenGLTimeMonitor_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_setSampleCount, "QOpenGLTimeMonitor.setSampleCount(int)");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_setSampleCount(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_setSampleCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp, &a0))
        {
            sipCpp->setSampleCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_setSampleCount, doc_QOpenGLTimeMonitor_setSampleCount);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_sampleCount, "QOpenGLTimeMonitor.sampleCount() -> int");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_sampleCount(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_sampleCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sampleCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_sampleCount, doc_QOpenGLTimeMonitor_sampleCount);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_create, "QOpenGLTimeMonitor.create() -> bool");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_create(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->create();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_create, doc_QOpenGLTimeMonitor_create);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_destroy, "QOpenGLTimeMonitor.destroy()");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_destroy(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_destroy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            sipCpp->destroy();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_destroy, doc_QOpenGLTimeMonitor_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_isCreated, "QOpenGLTimeMonitor.isCreated() -> bool");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_isCreated(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_isCreated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCreated();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_isCreated, doc_QOpenGLTimeMonitor_isCreated);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_objectIds, "QOpenGLTimeMonitor.objectIds() -> list-of-int");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_objectIds(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_objectIds(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            QVector<GLuint>*sipRes;

            sipRes = new QVector<GLuint>(sipCpp->objectIds());

            return sipConvertFromNewType(sipRes,sipType_QVector_1900,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_objectIds, doc_QOpenGLTimeMonitor_objectIds);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_recordSample, "QOpenGLTimeMonitor.recordSample() -> int");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_recordSample(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_recordSample(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->recordSample();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_recordSample, doc_QOpenGLTimeMonitor_recordSample);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_isResultAvailable, "QOpenGLTimeMonitor.isResultAvailable() -> bool");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_isResultAvailable(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_isResultAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isResultAvailable();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_isResultAvailable, doc_QOpenGLTimeMonitor_isResultAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_waitForSamples, "QOpenGLTimeMonitor.waitForSamples() -> list-of-int");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_waitForSamples(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_waitForSamples(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            QVector<GLuint64>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVector<GLuint64>(sipCpp->waitForSamples());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVector_3900,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_waitForSamples, doc_QOpenGLTimeMonitor_waitForSamples);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_waitForIntervals, "QOpenGLTimeMonitor.waitForIntervals() -> list-of-int");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_waitForIntervals(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_waitForIntervals(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            QVector<GLuint64>*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QVector<GLuint64>(sipCpp->waitForIntervals());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QVector_3900,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_waitForIntervals, doc_QOpenGLTimeMonitor_waitForIntervals);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimeMonitor_reset, "QOpenGLTimeMonitor.reset()");

extern "C" {static PyObject *meth_QOpenGLTimeMonitor_reset(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimeMonitor_reset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTimeMonitor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimeMonitor, &sipCpp))
        {
            sipCpp->reset();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimeMonitor, sipName_reset, doc_QOpenGLTimeMonitor_reset);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLTimeMonitor(void *, const sipTypeDef *);}
static void *cast_QOpenGLTimeMonitor(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLTimeMonitor)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QOpenGLTimeMonitor *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLTimeMonitor(void *, int);}
static void release_QOpenGLTimeMonitor(void *sipCppV,int)
{
    QOpenGLTimeMonitor *sipCpp = reinterpret_cast<QOpenGLTimeMonitor *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOpenGLTimeMonitor(sipSimpleWrapper *);}
static void dealloc_QOpenGLTimeMonitor(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLTimeMonitor *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLTimeMonitor(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLTimeMonitor(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLTimeMonitor(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQOpenGLTimeMonitor *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQOpenGLTimeMonitor(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLTimeMonitor[] = {{162, 0, 1}};


static PyMethodDef methods_QOpenGLTimeMonitor[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QOpenGLTimeMonitor_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QOpenGLTimeMonitor_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_QOpenGLTimeMonitor_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_create)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QOpenGLTimeMonitor_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), meth_QOpenGLTimeMonitor_destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_destroy)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QOpenGLTimeMonitor_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isCreated), meth_QOpenGLTimeMonitor_isCreated, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_isCreated)},
    {SIP_MLNAME_CAST(sipName_isResultAvailable), meth_QOpenGLTimeMonitor_isResultAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_isResultAvailable)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QOpenGLTimeMonitor_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_objectIds), meth_QOpenGLTimeMonitor_objectIds, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_objectIds)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QOpenGLTimeMonitor_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_recordSample), meth_QOpenGLTimeMonitor_recordSample, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_recordSample)},
    {SIP_MLNAME_CAST(sipName_reset), meth_QOpenGLTimeMonitor_reset, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_reset)},
    {SIP_MLNAME_CAST(sipName_sampleCount), meth_QOpenGLTimeMonitor_sampleCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_sampleCount)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QOpenGLTimeMonitor_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QOpenGLTimeMonitor_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setSampleCount), meth_QOpenGLTimeMonitor_setSampleCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_setSampleCount)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QOpenGLTimeMonitor_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForIntervals), meth_QOpenGLTimeMonitor_waitForIntervals, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_waitForIntervals)},
    {SIP_MLNAME_CAST(sipName_waitForSamples), meth_QOpenGLTimeMonitor_waitForSamples, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimeMonitor_waitForSamples)}
};

PyDoc_STRVAR(doc_QOpenGLTimeMonitor, "\1QOpenGLTimeMonitor(QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLTimeMonitor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTimeMonitor,
        {0}
    },
    {
        sipNameNr_QOpenGLTimeMonitor,
        {0, 0, 1},
        20, methods_QOpenGLTimeMonitor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLTimeMonitor,
    -1,
    -1,
    supers_QOpenGLTimeMonitor,
    0,
    init_type_QOpenGLTimeMonitor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLTimeMonitor,
    0,
    0,
    0,
    release_QOpenGLTimeMonitor,
    cast_QOpenGLTimeMonitor,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOpenGLTimeMonitor::staticMetaObject,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengltimerquery.sip"
#include <qopengltimerquery.h>
#line 111504 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 111508 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 111511 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 111514 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 111517 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 111520 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 111523 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 111526 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 111529 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 111532 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 111535 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 111538 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 111541 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 111544 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 111547 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 111550 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 111553 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLTimerQuery : public QOpenGLTimerQuery
{
public:
    sipQOpenGLTimerQuery(QObject*);
    virtual ~sipQOpenGLTimerQuery();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLTimerQuery(const sipQOpenGLTimerQuery &);
    sipQOpenGLTimerQuery &operator = (const sipQOpenGLTimerQuery &);

    char sipPyMethods[7];
};

sipQOpenGLTimerQuery::sipQOpenGLTimerQuery(QObject*a0): QOpenGLTimerQuery(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLTimerQuery::~sipQOpenGLTimerQuery()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQOpenGLTimerQuery::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLTimerQuery);
}

int sipQOpenGLTimerQuery::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QOpenGLTimerQuery::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QOpenGLTimerQuery,_c,_id,_a);

    return _id;
}

void *sipQOpenGLTimerQuery::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QOpenGLTimerQuery, _clname, &sipCpp) ? sipCpp : QOpenGLTimerQuery::qt_metacast(_clname));
}

void sipQOpenGLTimerQuery::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QOpenGLTimerQuery::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimerQuery::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QOpenGLTimerQuery::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimerQuery::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QOpenGLTimerQuery::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimerQuery::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QOpenGLTimerQuery::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLTimerQuery::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QOpenGLTimerQuery::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOpenGLTimerQuery::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QOpenGLTimerQuery::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQOpenGLTimerQuery::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QOpenGLTimerQuery::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQOpenGLTimerQuery::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQOpenGLTimerQuery::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQOpenGLTimerQuery::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQOpenGLTimerQuery::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQOpenGLTimerQuery::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQOpenGLTimerQuery::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQOpenGLTimerQuery::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQOpenGLTimerQuery::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQOpenGLTimerQuery::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_sender, "QOpenGLTimerQuery.sender() -> QObject");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLTimerQuery *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 111841 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_sender, doc_QOpenGLTimerQuery_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_receivers, "QOpenGLTimerQuery.receivers(signal) -> int");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQOpenGLTimerQuery *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 111900 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_receivers, doc_QOpenGLTimerQuery_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_timerEvent, "QOpenGLTimerQuery.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQOpenGLTimerQuery *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_timerEvent, doc_QOpenGLTimerQuery_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_childEvent, "QOpenGLTimerQuery.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQOpenGLTimerQuery *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_childEvent, doc_QOpenGLTimerQuery_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_customEvent, "QOpenGLTimerQuery.customEvent(QEvent)");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOpenGLTimerQuery *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_customEvent, doc_QOpenGLTimerQuery_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_connectNotify, "QOpenGLTimerQuery.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLTimerQuery *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_connectNotify, doc_QOpenGLTimerQuery_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_disconnectNotify, "QOpenGLTimerQuery.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLTimerQuery *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_disconnectNotify, doc_QOpenGLTimerQuery_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_senderSignalIndex, "QOpenGLTimerQuery.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLTimerQuery *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_senderSignalIndex, doc_QOpenGLTimerQuery_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_isSignalConnected, "QOpenGLTimerQuery.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQOpenGLTimerQuery *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_isSignalConnected, doc_QOpenGLTimerQuery_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_create, "QOpenGLTimerQuery.create() -> bool");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_create(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->create();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_create, doc_QOpenGLTimerQuery_create);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_destroy, "QOpenGLTimerQuery.destroy()");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_destroy(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_destroy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            sipCpp->destroy();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_destroy, doc_QOpenGLTimerQuery_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_isCreated, "QOpenGLTimerQuery.isCreated() -> bool");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_isCreated(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_isCreated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCreated();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_isCreated, doc_QOpenGLTimerQuery_isCreated);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_objectId, "QOpenGLTimerQuery.objectId() -> int");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_objectId(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_objectId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->objectId();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_objectId, doc_QOpenGLTimerQuery_objectId);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_begin, "QOpenGLTimerQuery.begin()");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_begin(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_begin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            sipCpp->begin();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_begin, doc_QOpenGLTimerQuery_begin);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_end, "QOpenGLTimerQuery.end()");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_end(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_end(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            sipCpp->end();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_end, doc_QOpenGLTimerQuery_end);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_waitForTimestamp, "QOpenGLTimerQuery.waitForTimestamp() -> int");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_waitForTimestamp(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_waitForTimestamp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            GLuint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForTimestamp();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_waitForTimestamp, doc_QOpenGLTimerQuery_waitForTimestamp);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_recordTimestamp, "QOpenGLTimerQuery.recordTimestamp()");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_recordTimestamp(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_recordTimestamp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            sipCpp->recordTimestamp();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_recordTimestamp, doc_QOpenGLTimerQuery_recordTimestamp);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_isResultAvailable, "QOpenGLTimerQuery.isResultAvailable() -> bool");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_isResultAvailable(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_isResultAvailable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isResultAvailable();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_isResultAvailable, doc_QOpenGLTimerQuery_isResultAvailable);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTimerQuery_waitForResult, "QOpenGLTimerQuery.waitForResult() -> int");

extern "C" {static PyObject *meth_QOpenGLTimerQuery_waitForResult(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTimerQuery_waitForResult(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTimerQuery *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTimerQuery, &sipCpp))
        {
            GLuint64 sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->waitForResult();
            Py_END_ALLOW_THREADS

            return PyLong_FromUnsignedLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTimerQuery, sipName_waitForResult, doc_QOpenGLTimerQuery_waitForResult);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLTimerQuery(void *, const sipTypeDef *);}
static void *cast_QOpenGLTimerQuery(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLTimerQuery)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QOpenGLTimerQuery *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLTimerQuery(void *, int);}
static void release_QOpenGLTimerQuery(void *sipCppV,int)
{
    QOpenGLTimerQuery *sipCpp = reinterpret_cast<QOpenGLTimerQuery *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOpenGLTimerQuery(sipSimpleWrapper *);}
static void dealloc_QOpenGLTimerQuery(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLTimerQuery *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLTimerQuery(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLTimerQuery(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLTimerQuery(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQOpenGLTimerQuery *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQOpenGLTimerQuery(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLTimerQuery[] = {{162, 0, 1}};


static PyMethodDef methods_QOpenGLTimerQuery[] = {
    {SIP_MLNAME_CAST(sipName_begin), meth_QOpenGLTimerQuery_begin, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_begin)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QOpenGLTimerQuery_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QOpenGLTimerQuery_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_QOpenGLTimerQuery_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_create)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QOpenGLTimerQuery_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), meth_QOpenGLTimerQuery_destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_destroy)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QOpenGLTimerQuery_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_end), meth_QOpenGLTimerQuery_end, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_end)},
    {SIP_MLNAME_CAST(sipName_isCreated), meth_QOpenGLTimerQuery_isCreated, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_isCreated)},
    {SIP_MLNAME_CAST(sipName_isResultAvailable), meth_QOpenGLTimerQuery_isResultAvailable, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_isResultAvailable)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QOpenGLTimerQuery_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_objectId), meth_QOpenGLTimerQuery_objectId, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_objectId)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QOpenGLTimerQuery_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_recordTimestamp), meth_QOpenGLTimerQuery_recordTimestamp, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_recordTimestamp)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QOpenGLTimerQuery_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QOpenGLTimerQuery_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QOpenGLTimerQuery_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_waitForResult), meth_QOpenGLTimerQuery_waitForResult, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_waitForResult)},
    {SIP_MLNAME_CAST(sipName_waitForTimestamp), meth_QOpenGLTimerQuery_waitForTimestamp, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTimerQuery_waitForTimestamp)}
};

PyDoc_STRVAR(doc_QOpenGLTimerQuery, "\1QOpenGLTimerQuery(QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLTimerQuery = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTimerQuery,
        {0}
    },
    {
        sipNameNr_QOpenGLTimerQuery,
        {0, 0, 1},
        19, methods_QOpenGLTimerQuery,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLTimerQuery,
    -1,
    -1,
    supers_QOpenGLTimerQuery,
    0,
    init_type_QOpenGLTimerQuery,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLTimerQuery,
    0,
    0,
    0,
    release_QOpenGLTimerQuery,
    cast_QOpenGLTimerQuery,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOpenGLTimerQuery::staticMetaObject,
    0,
    0,
    0
};

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 112540 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 112544 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QOpenGLTexture_Features___bool__(PyObject *);}
static int slot_QOpenGLTexture_Features___bool__(PyObject *sipSelf)
{
    QOpenGLTexture::Features *sipCpp = reinterpret_cast<QOpenGLTexture::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLTexture_Features));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLTexture::Features::Int() != 0);
#line 112562 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___ne__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLTexture::Features *sipCpp = reinterpret_cast<QOpenGLTexture::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLTexture_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture::Features* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLTexture_Features, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLTexture::Features::Int() != a0->operator QOpenGLTexture::Features::Int());
#line 112592 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLTexture::Features *>(a0),sipType_QOpenGLTexture_Features,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QOpenGLTexture_Features,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___eq__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLTexture::Features *sipCpp = reinterpret_cast<QOpenGLTexture::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLTexture_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture::Features* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLTexture_Features, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLTexture::Features::Int() == a0->operator QOpenGLTexture::Features::Int());
#line 112628 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLTexture::Features *>(a0),sipType_QOpenGLTexture_Features,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLTexture_Features,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___invert__(PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___invert__(PyObject *sipSelf)
{
    QOpenGLTexture::Features *sipCpp = reinterpret_cast<QOpenGLTexture::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLTexture_Features));

    if (!sipCpp)
        return 0;


    {
        {
            QOpenGLTexture::Features*sipRes;

            sipRes = new QOpenGLTexture::Features(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QOpenGLTexture_Features,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___and__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Features* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLTexture_Features, &a0, &a0State, &a1))
        {
            QOpenGLTexture::Features*sipRes;

            sipRes = new QOpenGLTexture::Features((*a0 & a1));
            sipReleaseType(a0,sipType_QOpenGLTexture_Features,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLTexture_Features,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Features* a0;
        int a0State = 0;
        QOpenGLTexture::Features* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLTexture_Features, &a0, &a0State, sipType_QOpenGLTexture_Features, &a1, &a1State))
        {
            QOpenGLTexture::Features*sipRes;

            sipRes = new QOpenGLTexture::Features((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QOpenGLTexture_Features,a0State);
            sipReleaseType(a1,sipType_QOpenGLTexture_Features,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLTexture_Features,NULL);
        }
    }

    {
        QOpenGLTexture::Features* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLTexture_Features, &a0, &a0State, &a1))
        {
            QOpenGLTexture::Features*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLTexture::Features(*a0 ^ a1);
#line 112731 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLTexture_Features,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLTexture_Features,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Features* a0;
        int a0State = 0;
        QOpenGLTexture::Features* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLTexture_Features, &a0, &a0State, sipType_QOpenGLTexture_Features, &a1, &a1State))
        {
            QOpenGLTexture::Features*sipRes;

            sipRes = new QOpenGLTexture::Features((*a0 | *a1));
            sipReleaseType(a0,sipType_QOpenGLTexture_Features,a0State);
            sipReleaseType(a1,sipType_QOpenGLTexture_Features,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLTexture_Features,NULL);
        }
    }

    {
        QOpenGLTexture::Features* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLTexture_Features, &a0, &a0State, &a1))
        {
            QOpenGLTexture::Features*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLTexture::Features(*a0 | a1);
#line 112781 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLTexture_Features,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLTexture_Features,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___int__(PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___int__(PyObject *sipSelf)
{
    QOpenGLTexture::Features *sipCpp = reinterpret_cast<QOpenGLTexture::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLTexture_Features));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLTexture_Features)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLTexture::Features *sipCpp = reinterpret_cast<QOpenGLTexture::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLTexture_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Features* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLTexture_Features, &a0, &a0State))
        {
            sipCpp->QOpenGLTexture::Features::operator^=(*a0);
            sipReleaseType(a0,sipType_QOpenGLTexture_Features,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___ior__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLTexture_Features)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLTexture::Features *sipCpp = reinterpret_cast<QOpenGLTexture::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLTexture_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Features* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLTexture_Features, &a0, &a0State))
        {
            sipCpp->QOpenGLTexture::Features::operator|=(*a0);
            sipReleaseType(a0,sipType_QOpenGLTexture_Features,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLTexture_Features___iand__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLTexture_Features___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLTexture_Features)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLTexture::Features *sipCpp = reinterpret_cast<QOpenGLTexture::Features *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLTexture_Features));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QOpenGLTexture::Features::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLTexture_Features(void *, const sipTypeDef *);}
static void *cast_QOpenGLTexture_Features(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLTexture_Features)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLTexture_Features(void *, int);}
static void release_QOpenGLTexture_Features(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLTexture::Features *>(sipCppV);
}


extern "C" {static void assign_QOpenGLTexture_Features(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLTexture_Features(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLTexture::Features *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLTexture::Features *>(sipSrc);
}


extern "C" {static void *array_QOpenGLTexture_Features(SIP_SSIZE_T);}
static void *array_QOpenGLTexture_Features(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLTexture::Features[sipNrElem];
}


extern "C" {static void *copy_QOpenGLTexture_Features(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLTexture_Features(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLTexture::Features(reinterpret_cast<const QOpenGLTexture::Features *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLTexture_Features(sipSimpleWrapper *);}
static void dealloc_QOpenGLTexture_Features(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLTexture_Features(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLTexture_Features(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLTexture_Features(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLTexture::Features *sipCpp = 0;

    {
        const QOpenGLTexture::Features* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QOpenGLTexture_Features, &a0, &a0State))
        {
            sipCpp = new QOpenGLTexture::Features(*a0);
            sipReleaseType(const_cast<QOpenGLTexture::Features *>(a0),sipType_QOpenGLTexture_Features,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QOpenGLTexture::Features(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLTexture::Features();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QOpenGLTexture_Features(PyObject *, void **, int *, PyObject *);}
static int convertTo_QOpenGLTexture_Features(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QOpenGLTexture::Features **sipCppPtr = reinterpret_cast<QOpenGLTexture::Features **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QOpenGLTexture::Features is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLTexture_Feature)) ||
            sipCanConvertToType(sipPy, sipType_QOpenGLTexture_Features, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLTexture_Feature)))
{
    *sipCppPtr = new QOpenGLTexture::Features(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QOpenGLTexture::Features *>(sipConvertToType(sipPy, sipType_QOpenGLTexture_Features, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 113058 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLTexture_Features[] = {
    {(void *)slot_QOpenGLTexture_Features___bool__, bool_slot},
    {(void *)slot_QOpenGLTexture_Features___ne__, ne_slot},
    {(void *)slot_QOpenGLTexture_Features___eq__, eq_slot},
    {(void *)slot_QOpenGLTexture_Features___invert__, invert_slot},
    {(void *)slot_QOpenGLTexture_Features___and__, and_slot},
    {(void *)slot_QOpenGLTexture_Features___xor__, xor_slot},
    {(void *)slot_QOpenGLTexture_Features___or__, or_slot},
    {(void *)slot_QOpenGLTexture_Features___int__, int_slot},
    {(void *)slot_QOpenGLTexture_Features___ixor__, ixor_slot},
    {(void *)slot_QOpenGLTexture_Features___ior__, ior_slot},
    {(void *)slot_QOpenGLTexture_Features___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLTexture_Features, "\1QOpenGLTexture.Features(QOpenGLTexture.Features)\n"
    "QOpenGLTexture.Features(int)\n"
    "QOpenGLTexture.Features()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLTexture_Features = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTexture__Features,
        {0}
    },
    {
        sipNameNr_Features,
        {148, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLTexture_Features,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLTexture_Features,
    init_type_QOpenGLTexture_Features,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLTexture_Features,
    assign_QOpenGLTexture_Features,
    array_QOpenGLTexture_Features,
    copy_QOpenGLTexture_Features,
    release_QOpenGLTexture_Features,
    cast_QOpenGLTexture_Features,
    convertTo_QOpenGLTexture_Features,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengltexture.sip"
#include <qopengltexture.h>
#line 113140 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 113144 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 127 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qpair.sip"
#include <qpair.h>
#line 113147 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 113150 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qpair.sip"
#include <QOpenGLTexture>
#line 113153 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 133 "sip/QtCore/qpycore_qpair.sip"
#include <qpair.h>
#line 113156 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglpixeltransferoptions.sip"
#include <qopenglpixeltransferoptions.h>
#line 113159 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLTexture_create, "QOpenGLTexture.create() -> bool");

extern "C" {static PyObject *meth_QOpenGLTexture_create(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->create();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_create, doc_QOpenGLTexture_create);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_destroy, "QOpenGLTexture.destroy()");

extern "C" {static PyObject *meth_QOpenGLTexture_destroy(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_destroy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            sipCpp->destroy();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_destroy, doc_QOpenGLTexture_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_isCreated, "QOpenGLTexture.isCreated() -> bool");

extern "C" {static PyObject *meth_QOpenGLTexture_isCreated(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_isCreated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCreated();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_isCreated, doc_QOpenGLTexture_isCreated);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_textureId, "QOpenGLTexture.textureId() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_textureId(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_textureId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->textureId();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_textureId, doc_QOpenGLTexture_textureId);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_bind, "QOpenGLTexture.bind()\n"
    "QOpenGLTexture.bind(int, QOpenGLTexture.TextureUnitReset reset=QOpenGLTexture.DontResetTextureUnit)");

extern "C" {static PyObject *meth_QOpenGLTexture_bind(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_bind(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            sipCpp->bind();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        uint a0;
        QOpenGLTexture::TextureUnitReset a1 = QOpenGLTexture::DontResetTextureUnit;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_reset,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bu|E", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, sipType_QOpenGLTexture_TextureUnitReset, &a1))
        {
            sipCpp->bind(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_bind, doc_QOpenGLTexture_bind);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_release, "QOpenGLTexture.release()\n"
    "QOpenGLTexture.release(int, QOpenGLTexture.TextureUnitReset reset=QOpenGLTexture.DontResetTextureUnit)");

extern "C" {static PyObject *meth_QOpenGLTexture_release(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_release(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            sipCpp->release();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        uint a0;
        QOpenGLTexture::TextureUnitReset a1 = QOpenGLTexture::DontResetTextureUnit;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_reset,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bu|E", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, sipType_QOpenGLTexture_TextureUnitReset, &a1))
        {
            sipCpp->release(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_release, doc_QOpenGLTexture_release);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_isBound, "QOpenGLTexture.isBound() -> bool\n"
    "QOpenGLTexture.isBound(int) -> bool");

extern "C" {static PyObject *meth_QOpenGLTexture_isBound(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_isBound(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isBound();

            return PyBool_FromLong(sipRes);
        }
    }

    {
        uint a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isBound(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_isBound, doc_QOpenGLTexture_isBound);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_boundTextureId, "QOpenGLTexture.boundTextureId(QOpenGLTexture.BindingTarget) -> int\n"
    "QOpenGLTexture.boundTextureId(int, QOpenGLTexture.BindingTarget) -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_boundTextureId(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_boundTextureId(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::BindingTarget a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QOpenGLTexture_BindingTarget, &a0))
        {
            GLuint sipRes;

            sipRes = QOpenGLTexture::boundTextureId(a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        uint a0;
        QOpenGLTexture::BindingTarget a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "uE", &a0, sipType_QOpenGLTexture_BindingTarget, &a1))
        {
            GLuint sipRes;

            sipRes = QOpenGLTexture::boundTextureId(a0,a1);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_boundTextureId, doc_QOpenGLTexture_boundTextureId);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setFormat, "QOpenGLTexture.setFormat(QOpenGLTexture.TextureFormat)");

extern "C" {static PyObject *meth_QOpenGLTexture_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::TextureFormat a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_TextureFormat, &a0))
        {
            sipCpp->setFormat(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setFormat, doc_QOpenGLTexture_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_format, "QOpenGLTexture.format() -> QOpenGLTexture.TextureFormat");

extern "C" {static PyObject *meth_QOpenGLTexture_format(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            QOpenGLTexture::TextureFormat sipRes;

            sipRes = sipCpp->format();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLTexture_TextureFormat);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_format, doc_QOpenGLTexture_format);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setSize, "QOpenGLTexture.setSize(int, int height=1, int depth=1)");

extern "C" {static PyObject *meth_QOpenGLTexture_setSize(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1 = 1;
        int a2 = 1;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_height,
            sipName_depth,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|ii", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setSize(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setSize, doc_QOpenGLTexture_setSize);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_width, "QOpenGLTexture.width() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_width(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->width();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_width, doc_QOpenGLTexture_width);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_height, "QOpenGLTexture.height() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_height(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->height();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_height, doc_QOpenGLTexture_height);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_depth, "QOpenGLTexture.depth() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_depth(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_depth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->depth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_depth, doc_QOpenGLTexture_depth);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMipLevels, "QOpenGLTexture.setMipLevels(int)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMipLevels(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMipLevels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setMipLevels(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMipLevels, doc_QOpenGLTexture_setMipLevels);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_mipLevels, "QOpenGLTexture.mipLevels() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_mipLevels(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_mipLevels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->mipLevels();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_mipLevels, doc_QOpenGLTexture_mipLevels);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_maximumMipLevels, "QOpenGLTexture.maximumMipLevels() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_maximumMipLevels(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_maximumMipLevels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->maximumMipLevels();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_maximumMipLevels, doc_QOpenGLTexture_maximumMipLevels);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setLayers, "QOpenGLTexture.setLayers(int)");

extern "C" {static PyObject *meth_QOpenGLTexture_setLayers(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setLayers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setLayers(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setLayers, doc_QOpenGLTexture_setLayers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_layers, "QOpenGLTexture.layers() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_layers(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_layers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->layers();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_layers, doc_QOpenGLTexture_layers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_faces, "QOpenGLTexture.faces() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_faces(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_faces(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->faces();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_faces, doc_QOpenGLTexture_faces);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_allocateStorage, "QOpenGLTexture.allocateStorage()");

extern "C" {static PyObject *meth_QOpenGLTexture_allocateStorage(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_allocateStorage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            sipCpp->allocateStorage();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_allocateStorage, doc_QOpenGLTexture_allocateStorage);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_isStorageAllocated, "QOpenGLTexture.isStorageAllocated() -> bool");

extern "C" {static PyObject *meth_QOpenGLTexture_isStorageAllocated(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_isStorageAllocated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isStorageAllocated();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_isStorageAllocated, doc_QOpenGLTexture_isStorageAllocated);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_createTextureView, "QOpenGLTexture.createTextureView(QOpenGLTexture.Target, QOpenGLTexture.TextureFormat, int, int, int, int) -> QOpenGLTexture");

extern "C" {static PyObject *meth_QOpenGLTexture_createTextureView(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_createTextureView(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Target a0;
        QOpenGLTexture::TextureFormat a1;
        int a2;
        int a3;
        int a4;
        int a5;
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEEiiii", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_Target, &a0, sipType_QOpenGLTexture_TextureFormat, &a1, &a2, &a3, &a4, &a5))
        {
            QOpenGLTexture*sipRes;

            sipRes = sipCpp->createTextureView(a0,a1,a2,a3,a4,a5);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLTexture,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_createTextureView, doc_QOpenGLTexture_createTextureView);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_isTextureView, "QOpenGLTexture.isTextureView() -> bool");

extern "C" {static PyObject *meth_QOpenGLTexture_isTextureView(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_isTextureView(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isTextureView();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_isTextureView, doc_QOpenGLTexture_isTextureView);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setData, "QOpenGLTexture.setData(int, int, QOpenGLTexture.CubeMapFace, QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType, sip.voidptr, QOpenGLPixelTransferOptions options=None)\n"
    "QOpenGLTexture.setData(int, int, QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType, sip.voidptr, QOpenGLPixelTransferOptions options=None)\n"
    "QOpenGLTexture.setData(int, QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType, sip.voidptr, QOpenGLPixelTransferOptions options=None)\n"
    "QOpenGLTexture.setData(QOpenGLTexture.PixelFormat, QOpenGLTexture.PixelType, sip.voidptr, QOpenGLPixelTransferOptions options=None)\n"
    "QOpenGLTexture.setData(QImage, QOpenGLTexture.MipMapGeneration genMipMaps=QOpenGLTexture.GenerateMipMaps)");

extern "C" {static PyObject *meth_QOpenGLTexture_setData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QOpenGLTexture::CubeMapFace a2;
        QOpenGLTexture::PixelFormat a3;
        QOpenGLTexture::PixelType a4;
        const void* a5;
        const QOpenGLPixelTransferOptions* const a6 = 0;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiEEEv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1, sipType_QOpenGLTexture_CubeMapFace, &a2, sipType_QOpenGLTexture_PixelFormat, &a3, sipType_QOpenGLTexture_PixelType, &a4, &a5, sipType_QOpenGLPixelTransferOptions, &a6))
        {
            sipCpp->setData(a0,a1,a2,a3,a4,a5,a6);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        QOpenGLTexture::PixelFormat a2;
        QOpenGLTexture::PixelType a3;
        const void* a4;
        const QOpenGLPixelTransferOptions* const a5 = 0;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiEEv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1, sipType_QOpenGLTexture_PixelFormat, &a2, sipType_QOpenGLTexture_PixelType, &a3, &a4, sipType_QOpenGLPixelTransferOptions, &a5))
        {
            sipCpp->setData(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        QOpenGLTexture::PixelFormat a1;
        QOpenGLTexture::PixelType a2;
        const void* a3;
        const QOpenGLPixelTransferOptions* const a4 = 0;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiEEv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, sipType_QOpenGLTexture_PixelFormat, &a1, sipType_QOpenGLTexture_PixelType, &a2, &a3, sipType_QOpenGLPixelTransferOptions, &a4))
        {
            sipCpp->setData(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QOpenGLTexture::PixelFormat a0;
        QOpenGLTexture::PixelType a1;
        const void* a2;
        const QOpenGLPixelTransferOptions* const a3 = 0;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BEEv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_PixelFormat, &a0, sipType_QOpenGLTexture_PixelType, &a1, &a2, sipType_QOpenGLPixelTransferOptions, &a3))
        {
            sipCpp->setData(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QImage* a0;
        QOpenGLTexture::MipMapGeneration a1 = QOpenGLTexture::GenerateMipMaps;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_genMipMaps,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QImage, &a0, sipType_QOpenGLTexture_MipMapGeneration, &a1))
        {
            sipCpp->setData(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setData, doc_QOpenGLTexture_setData);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setCompressedData, "QOpenGLTexture.setCompressedData(int, int, QOpenGLTexture.CubeMapFace, int, sip.voidptr, QOpenGLPixelTransferOptions options=None)\n"
    "QOpenGLTexture.setCompressedData(int, int, int, sip.voidptr, QOpenGLPixelTransferOptions options=None)\n"
    "QOpenGLTexture.setCompressedData(int, int, sip.voidptr, QOpenGLPixelTransferOptions options=None)\n"
    "QOpenGLTexture.setCompressedData(int, sip.voidptr, QOpenGLPixelTransferOptions options=None)");

extern "C" {static PyObject *meth_QOpenGLTexture_setCompressedData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setCompressedData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QOpenGLTexture::CubeMapFace a2;
        int a3;
        const void* a4;
        const QOpenGLPixelTransferOptions* const a5 = 0;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiEiv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1, sipType_QOpenGLTexture_CubeMapFace, &a2, &a3, &a4, sipType_QOpenGLPixelTransferOptions, &a5))
        {
            sipCpp->setCompressedData(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        const void* a3;
        const QOpenGLPixelTransferOptions* const a4 = 0;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biiiv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1, &a2, &a3, sipType_QOpenGLPixelTransferOptions, &a4))
        {
            sipCpp->setCompressedData(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        const void* a2;
        const QOpenGLPixelTransferOptions* const a3 = 0;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biiv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1, &a2, sipType_QOpenGLPixelTransferOptions, &a3))
        {
            sipCpp->setCompressedData(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const void* a1;
        const QOpenGLPixelTransferOptions* const a2 = 0;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_options,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biv|J8", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1, sipType_QOpenGLPixelTransferOptions, &a2))
        {
            sipCpp->setCompressedData(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setCompressedData, doc_QOpenGLTexture_setCompressedData);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_hasFeature, "QOpenGLTexture.hasFeature(QOpenGLTexture.Feature) -> bool");

extern "C" {static PyObject *meth_QOpenGLTexture_hasFeature(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_hasFeature(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Feature a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QOpenGLTexture_Feature, &a0))
        {
            bool sipRes;

            sipRes = QOpenGLTexture::hasFeature(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_hasFeature, doc_QOpenGLTexture_hasFeature);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMipBaseLevel, "QOpenGLTexture.setMipBaseLevel(int)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMipBaseLevel(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMipBaseLevel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setMipBaseLevel(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMipBaseLevel, doc_QOpenGLTexture_setMipBaseLevel);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_mipBaseLevel, "QOpenGLTexture.mipBaseLevel() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_mipBaseLevel(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_mipBaseLevel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->mipBaseLevel();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_mipBaseLevel, doc_QOpenGLTexture_mipBaseLevel);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMipMaxLevel, "QOpenGLTexture.setMipMaxLevel(int)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMipMaxLevel(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMipMaxLevel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setMipMaxLevel(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMipMaxLevel, doc_QOpenGLTexture_setMipMaxLevel);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_mipMaxLevel, "QOpenGLTexture.mipMaxLevel() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_mipMaxLevel(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_mipMaxLevel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->mipMaxLevel();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_mipMaxLevel, doc_QOpenGLTexture_mipMaxLevel);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMipLevelRange, "QOpenGLTexture.setMipLevelRange(int, int)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMipLevelRange(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMipLevelRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1))
        {
            sipCpp->setMipLevelRange(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMipLevelRange, doc_QOpenGLTexture_setMipLevelRange);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_mipLevelRange, "QOpenGLTexture.mipLevelRange() -> tuple-of-int-int");

extern "C" {static PyObject *meth_QOpenGLTexture_mipLevelRange(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_mipLevelRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            QPair<int,int>*sipRes;

            sipRes = new QPair<int,int>(sipCpp->mipLevelRange());

            return sipConvertFromNewType(sipRes,sipType_QPair_1800_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_mipLevelRange, doc_QOpenGLTexture_mipLevelRange);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setAutoMipMapGenerationEnabled, "QOpenGLTexture.setAutoMipMapGenerationEnabled(bool)");

extern "C" {static PyObject *meth_QOpenGLTexture_setAutoMipMapGenerationEnabled(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setAutoMipMapGenerationEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setAutoMipMapGenerationEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setAutoMipMapGenerationEnabled, doc_QOpenGLTexture_setAutoMipMapGenerationEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_isAutoMipMapGenerationEnabled, "QOpenGLTexture.isAutoMipMapGenerationEnabled() -> bool");

extern "C" {static PyObject *meth_QOpenGLTexture_isAutoMipMapGenerationEnabled(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_isAutoMipMapGenerationEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAutoMipMapGenerationEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_isAutoMipMapGenerationEnabled, doc_QOpenGLTexture_isAutoMipMapGenerationEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_generateMipMaps, "QOpenGLTexture.generateMipMaps()\n"
    "QOpenGLTexture.generateMipMaps(int, bool resetBaseLevel=True)");

extern "C" {static PyObject *meth_QOpenGLTexture_generateMipMaps(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_generateMipMaps(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            sipCpp->generateMipMaps();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        bool a1 = 1;
        QOpenGLTexture *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_resetBaseLevel,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|b", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1))
        {
            sipCpp->generateMipMaps(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_generateMipMaps, doc_QOpenGLTexture_generateMipMaps);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setSwizzleMask, "QOpenGLTexture.setSwizzleMask(QOpenGLTexture.SwizzleComponent, QOpenGLTexture.SwizzleValue)\n"
    "QOpenGLTexture.setSwizzleMask(QOpenGLTexture.SwizzleValue, QOpenGLTexture.SwizzleValue, QOpenGLTexture.SwizzleValue, QOpenGLTexture.SwizzleValue)");

extern "C" {static PyObject *meth_QOpenGLTexture_setSwizzleMask(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setSwizzleMask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::SwizzleComponent a0;
        QOpenGLTexture::SwizzleValue a1;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_SwizzleComponent, &a0, sipType_QOpenGLTexture_SwizzleValue, &a1))
        {
            sipCpp->setSwizzleMask(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QOpenGLTexture::SwizzleValue a0;
        QOpenGLTexture::SwizzleValue a1;
        QOpenGLTexture::SwizzleValue a2;
        QOpenGLTexture::SwizzleValue a3;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEEEE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_SwizzleValue, &a0, sipType_QOpenGLTexture_SwizzleValue, &a1, sipType_QOpenGLTexture_SwizzleValue, &a2, sipType_QOpenGLTexture_SwizzleValue, &a3))
        {
            sipCpp->setSwizzleMask(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setSwizzleMask, doc_QOpenGLTexture_setSwizzleMask);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_swizzleMask, "QOpenGLTexture.swizzleMask(QOpenGLTexture.SwizzleComponent) -> QOpenGLTexture.SwizzleValue");

extern "C" {static PyObject *meth_QOpenGLTexture_swizzleMask(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_swizzleMask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::SwizzleComponent a0;
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_SwizzleComponent, &a0))
        {
            QOpenGLTexture::SwizzleValue sipRes;

            sipRes = sipCpp->swizzleMask(a0);

            return sipConvertFromEnum(sipRes,sipType_QOpenGLTexture_SwizzleValue);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_swizzleMask, doc_QOpenGLTexture_swizzleMask);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setDepthStencilMode, "QOpenGLTexture.setDepthStencilMode(QOpenGLTexture.DepthStencilMode)");

extern "C" {static PyObject *meth_QOpenGLTexture_setDepthStencilMode(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setDepthStencilMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::DepthStencilMode a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_DepthStencilMode, &a0))
        {
            sipCpp->setDepthStencilMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setDepthStencilMode, doc_QOpenGLTexture_setDepthStencilMode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_depthStencilMode, "QOpenGLTexture.depthStencilMode() -> QOpenGLTexture.DepthStencilMode");

extern "C" {static PyObject *meth_QOpenGLTexture_depthStencilMode(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_depthStencilMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            QOpenGLTexture::DepthStencilMode sipRes;

            sipRes = sipCpp->depthStencilMode();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLTexture_DepthStencilMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_depthStencilMode, doc_QOpenGLTexture_depthStencilMode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMinificationFilter, "QOpenGLTexture.setMinificationFilter(QOpenGLTexture.Filter)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMinificationFilter(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMinificationFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Filter a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_Filter, &a0))
        {
            sipCpp->setMinificationFilter(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMinificationFilter, doc_QOpenGLTexture_setMinificationFilter);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_minificationFilter, "QOpenGLTexture.minificationFilter() -> QOpenGLTexture.Filter");

extern "C" {static PyObject *meth_QOpenGLTexture_minificationFilter(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_minificationFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            QOpenGLTexture::Filter sipRes;

            sipRes = sipCpp->minificationFilter();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLTexture_Filter);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_minificationFilter, doc_QOpenGLTexture_minificationFilter);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMagnificationFilter, "QOpenGLTexture.setMagnificationFilter(QOpenGLTexture.Filter)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMagnificationFilter(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMagnificationFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Filter a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_Filter, &a0))
        {
            sipCpp->setMagnificationFilter(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMagnificationFilter, doc_QOpenGLTexture_setMagnificationFilter);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_magnificationFilter, "QOpenGLTexture.magnificationFilter() -> QOpenGLTexture.Filter");

extern "C" {static PyObject *meth_QOpenGLTexture_magnificationFilter(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_magnificationFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            QOpenGLTexture::Filter sipRes;

            sipRes = sipCpp->magnificationFilter();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLTexture_Filter);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_magnificationFilter, doc_QOpenGLTexture_magnificationFilter);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMinMagFilters, "QOpenGLTexture.setMinMagFilters(QOpenGLTexture.Filter, QOpenGLTexture.Filter)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMinMagFilters(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMinMagFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::Filter a0;
        QOpenGLTexture::Filter a1;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_Filter, &a0, sipType_QOpenGLTexture_Filter, &a1))
        {
            sipCpp->setMinMagFilters(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMinMagFilters, doc_QOpenGLTexture_setMinMagFilters);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_minMagFilters, "QOpenGLTexture.minMagFilters() -> tuple-of-QOpenGLTexture.Filter-QOpenGLTexture.Filter");

extern "C" {static PyObject *meth_QOpenGLTexture_minMagFilters(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_minMagFilters(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter>*sipRes;

            sipRes = new QPair<QOpenGLTexture::Filter,QOpenGLTexture::Filter>(sipCpp->minMagFilters());

            return sipConvertFromNewType(sipRes,sipType_QPair_0100QOpenGLTexture_Filter_0100QOpenGLTexture_Filter,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_minMagFilters, doc_QOpenGLTexture_minMagFilters);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMaximumAnisotropy, "QOpenGLTexture.setMaximumAnisotropy(float)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMaximumAnisotropy(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMaximumAnisotropy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setMaximumAnisotropy(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMaximumAnisotropy, doc_QOpenGLTexture_setMaximumAnisotropy);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_maximumAnisotropy, "QOpenGLTexture.maximumAnisotropy() -> float");

extern "C" {static PyObject *meth_QOpenGLTexture_maximumAnisotropy(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_maximumAnisotropy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->maximumAnisotropy();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_maximumAnisotropy, doc_QOpenGLTexture_maximumAnisotropy);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setWrapMode, "QOpenGLTexture.setWrapMode(QOpenGLTexture.WrapMode)\n"
    "QOpenGLTexture.setWrapMode(QOpenGLTexture.CoordinateDirection, QOpenGLTexture.WrapMode)");

extern "C" {static PyObject *meth_QOpenGLTexture_setWrapMode(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setWrapMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::WrapMode a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_WrapMode, &a0))
        {
            sipCpp->setWrapMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QOpenGLTexture::CoordinateDirection a0;
        QOpenGLTexture::WrapMode a1;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_CoordinateDirection, &a0, sipType_QOpenGLTexture_WrapMode, &a1))
        {
            sipCpp->setWrapMode(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setWrapMode, doc_QOpenGLTexture_setWrapMode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_wrapMode, "QOpenGLTexture.wrapMode(QOpenGLTexture.CoordinateDirection) -> QOpenGLTexture.WrapMode");

extern "C" {static PyObject *meth_QOpenGLTexture_wrapMode(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_wrapMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLTexture::CoordinateDirection a0;
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QOpenGLTexture_CoordinateDirection, &a0))
        {
            QOpenGLTexture::WrapMode sipRes;

            sipRes = sipCpp->wrapMode(a0);

            return sipConvertFromEnum(sipRes,sipType_QOpenGLTexture_WrapMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_wrapMode, doc_QOpenGLTexture_wrapMode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setBorderColor, "QOpenGLTexture.setBorderColor(QColor)");

extern "C" {static PyObject *meth_QOpenGLTexture_setBorderColor(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setBorderColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QColor* a0;
        int a0State = 0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLTexture, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setBorderColor(*a0);
            sipReleaseType(a0,sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setBorderColor, doc_QOpenGLTexture_setBorderColor);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_borderColor, "QOpenGLTexture.borderColor() -> QColor");

extern "C" {static PyObject *meth_QOpenGLTexture_borderColor(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_borderColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->borderColor());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_borderColor, doc_QOpenGLTexture_borderColor);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMinimumLevelOfDetail, "QOpenGLTexture.setMinimumLevelOfDetail(float)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMinimumLevelOfDetail(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMinimumLevelOfDetail(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setMinimumLevelOfDetail(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMinimumLevelOfDetail, doc_QOpenGLTexture_setMinimumLevelOfDetail);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_minimumLevelOfDetail, "QOpenGLTexture.minimumLevelOfDetail() -> float");

extern "C" {static PyObject *meth_QOpenGLTexture_minimumLevelOfDetail(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_minimumLevelOfDetail(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->minimumLevelOfDetail();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_minimumLevelOfDetail, doc_QOpenGLTexture_minimumLevelOfDetail);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setMaximumLevelOfDetail, "QOpenGLTexture.setMaximumLevelOfDetail(float)");

extern "C" {static PyObject *meth_QOpenGLTexture_setMaximumLevelOfDetail(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setMaximumLevelOfDetail(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setMaximumLevelOfDetail(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setMaximumLevelOfDetail, doc_QOpenGLTexture_setMaximumLevelOfDetail);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_maximumLevelOfDetail, "QOpenGLTexture.maximumLevelOfDetail() -> float");

extern "C" {static PyObject *meth_QOpenGLTexture_maximumLevelOfDetail(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_maximumLevelOfDetail(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->maximumLevelOfDetail();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_maximumLevelOfDetail, doc_QOpenGLTexture_maximumLevelOfDetail);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setLevelOfDetailRange, "QOpenGLTexture.setLevelOfDetailRange(float, float)");

extern "C" {static PyObject *meth_QOpenGLTexture_setLevelOfDetailRange(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setLevelOfDetailRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        float a1;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bff", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0, &a1))
        {
            sipCpp->setLevelOfDetailRange(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setLevelOfDetailRange, doc_QOpenGLTexture_setLevelOfDetailRange);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_levelOfDetailRange, "QOpenGLTexture.levelOfDetailRange() -> tuple-of-float-float");

extern "C" {static PyObject *meth_QOpenGLTexture_levelOfDetailRange(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_levelOfDetailRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            QPair<float,float>*sipRes;

            sipRes = new QPair<float,float>(sipCpp->levelOfDetailRange());

            return sipConvertFromNewType(sipRes,sipType_QPair_2200_2200,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_levelOfDetailRange, doc_QOpenGLTexture_levelOfDetailRange);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setLevelofDetailBias, "QOpenGLTexture.setLevelofDetailBias(float)");

extern "C" {static PyObject *meth_QOpenGLTexture_setLevelofDetailBias(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setLevelofDetailBias(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setLevelofDetailBias(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setLevelofDetailBias, doc_QOpenGLTexture_setLevelofDetailBias);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_levelofDetailBias, "QOpenGLTexture.levelofDetailBias() -> float");

extern "C" {static PyObject *meth_QOpenGLTexture_levelofDetailBias(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_levelofDetailBias(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->levelofDetailBias();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_levelofDetailBias, doc_QOpenGLTexture_levelofDetailBias);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_target, "QOpenGLTexture.target() -> QOpenGLTexture.Target");

extern "C" {static PyObject *meth_QOpenGLTexture_target(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_target(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            QOpenGLTexture::Target sipRes;

            sipRes = sipCpp->target();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLTexture_Target);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_target, doc_QOpenGLTexture_target);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setSamples, "QOpenGLTexture.setSamples(int)");

extern "C" {static PyObject *meth_QOpenGLTexture_setSamples(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setSamples(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setSamples(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setSamples, doc_QOpenGLTexture_setSamples);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_samples, "QOpenGLTexture.samples() -> int");

extern "C" {static PyObject *meth_QOpenGLTexture_samples(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_samples(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->samples();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_samples, doc_QOpenGLTexture_samples);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_setFixedSamplePositions, "QOpenGLTexture.setFixedSamplePositions(bool)");

extern "C" {static PyObject *meth_QOpenGLTexture_setFixedSamplePositions(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_setFixedSamplePositions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QOpenGLTexture, &sipCpp, &a0))
        {
            sipCpp->setFixedSamplePositions(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_setFixedSamplePositions, doc_QOpenGLTexture_setFixedSamplePositions);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLTexture_isFixedSamplePositions, "QOpenGLTexture.isFixedSamplePositions() -> bool");

extern "C" {static PyObject *meth_QOpenGLTexture_isFixedSamplePositions(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLTexture_isFixedSamplePositions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLTexture *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLTexture, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isFixedSamplePositions();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLTexture, sipName_isFixedSamplePositions, doc_QOpenGLTexture_isFixedSamplePositions);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLTexture(void *, const sipTypeDef *);}
static void *cast_QOpenGLTexture(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLTexture)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLTexture(void *, int);}
static void release_QOpenGLTexture(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLTexture *>(sipCppV);
}


extern "C" {static void dealloc_QOpenGLTexture(sipSimpleWrapper *);}
static void dealloc_QOpenGLTexture(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLTexture(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLTexture(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLTexture(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLTexture *sipCpp = 0;

    {
        QOpenGLTexture::Target a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_QOpenGLTexture_Target, &a0))
        {
            sipCpp = new QOpenGLTexture(a0);

            return sipCpp;
        }
    }

    {
        const QImage* a0;
        QOpenGLTexture::MipMapGeneration a1 = QOpenGLTexture::GenerateMipMaps;

        static const char *sipKwdList[] = {
            NULL,
            sipName_genMipMaps,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|E", sipType_QImage, &a0, sipType_QOpenGLTexture_MipMapGeneration, &a1))
        {
            sipCpp = new QOpenGLTexture(*a0,a1);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QOpenGLTexture[] = {
    {SIP_MLNAME_CAST(sipName_allocateStorage), meth_QOpenGLTexture_allocateStorage, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_allocateStorage)},
    {SIP_MLNAME_CAST(sipName_bind), (PyCFunction)meth_QOpenGLTexture_bind, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLTexture_bind)},
    {SIP_MLNAME_CAST(sipName_borderColor), meth_QOpenGLTexture_borderColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_borderColor)},
    {SIP_MLNAME_CAST(sipName_boundTextureId), meth_QOpenGLTexture_boundTextureId, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_boundTextureId)},
    {SIP_MLNAME_CAST(sipName_create), meth_QOpenGLTexture_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_create)},
    {SIP_MLNAME_CAST(sipName_createTextureView), meth_QOpenGLTexture_createTextureView, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_createTextureView)},
    {SIP_MLNAME_CAST(sipName_depth), meth_QOpenGLTexture_depth, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_depth)},
    {SIP_MLNAME_CAST(sipName_depthStencilMode), meth_QOpenGLTexture_depthStencilMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_depthStencilMode)},
    {SIP_MLNAME_CAST(sipName_destroy), meth_QOpenGLTexture_destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_destroy)},
    {SIP_MLNAME_CAST(sipName_faces), meth_QOpenGLTexture_faces, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_faces)},
    {SIP_MLNAME_CAST(sipName_format), meth_QOpenGLTexture_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_format)},
    {SIP_MLNAME_CAST(sipName_generateMipMaps), (PyCFunction)meth_QOpenGLTexture_generateMipMaps, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLTexture_generateMipMaps)},
    {SIP_MLNAME_CAST(sipName_hasFeature), meth_QOpenGLTexture_hasFeature, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_hasFeature)},
    {SIP_MLNAME_CAST(sipName_height), meth_QOpenGLTexture_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_height)},
    {SIP_MLNAME_CAST(sipName_isAutoMipMapGenerationEnabled), meth_QOpenGLTexture_isAutoMipMapGenerationEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_isAutoMipMapGenerationEnabled)},
    {SIP_MLNAME_CAST(sipName_isBound), meth_QOpenGLTexture_isBound, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_isBound)},
    {SIP_MLNAME_CAST(sipName_isCreated), meth_QOpenGLTexture_isCreated, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_isCreated)},
    {SIP_MLNAME_CAST(sipName_isFixedSamplePositions), meth_QOpenGLTexture_isFixedSamplePositions, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_isFixedSamplePositions)},
    {SIP_MLNAME_CAST(sipName_isStorageAllocated), meth_QOpenGLTexture_isStorageAllocated, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_isStorageAllocated)},
    {SIP_MLNAME_CAST(sipName_isTextureView), meth_QOpenGLTexture_isTextureView, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_isTextureView)},
    {SIP_MLNAME_CAST(sipName_layers), meth_QOpenGLTexture_layers, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_layers)},
    {SIP_MLNAME_CAST(sipName_levelOfDetailRange), meth_QOpenGLTexture_levelOfDetailRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_levelOfDetailRange)},
    {SIP_MLNAME_CAST(sipName_levelofDetailBias), meth_QOpenGLTexture_levelofDetailBias, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_levelofDetailBias)},
    {SIP_MLNAME_CAST(sipName_magnificationFilter), meth_QOpenGLTexture_magnificationFilter, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_magnificationFilter)},
    {SIP_MLNAME_CAST(sipName_maximumAnisotropy), meth_QOpenGLTexture_maximumAnisotropy, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_maximumAnisotropy)},
    {SIP_MLNAME_CAST(sipName_maximumLevelOfDetail), meth_QOpenGLTexture_maximumLevelOfDetail, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_maximumLevelOfDetail)},
    {SIP_MLNAME_CAST(sipName_maximumMipLevels), meth_QOpenGLTexture_maximumMipLevels, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_maximumMipLevels)},
    {SIP_MLNAME_CAST(sipName_minMagFilters), meth_QOpenGLTexture_minMagFilters, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_minMagFilters)},
    {SIP_MLNAME_CAST(sipName_minificationFilter), meth_QOpenGLTexture_minificationFilter, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_minificationFilter)},
    {SIP_MLNAME_CAST(sipName_minimumLevelOfDetail), meth_QOpenGLTexture_minimumLevelOfDetail, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_minimumLevelOfDetail)},
    {SIP_MLNAME_CAST(sipName_mipBaseLevel), meth_QOpenGLTexture_mipBaseLevel, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_mipBaseLevel)},
    {SIP_MLNAME_CAST(sipName_mipLevelRange), meth_QOpenGLTexture_mipLevelRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_mipLevelRange)},
    {SIP_MLNAME_CAST(sipName_mipLevels), meth_QOpenGLTexture_mipLevels, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_mipLevels)},
    {SIP_MLNAME_CAST(sipName_mipMaxLevel), meth_QOpenGLTexture_mipMaxLevel, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_mipMaxLevel)},
    {SIP_MLNAME_CAST(sipName_release), (PyCFunction)meth_QOpenGLTexture_release, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLTexture_release)},
    {SIP_MLNAME_CAST(sipName_samples), meth_QOpenGLTexture_samples, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_samples)},
    {SIP_MLNAME_CAST(sipName_setAutoMipMapGenerationEnabled), meth_QOpenGLTexture_setAutoMipMapGenerationEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setAutoMipMapGenerationEnabled)},
    {SIP_MLNAME_CAST(sipName_setBorderColor), meth_QOpenGLTexture_setBorderColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setBorderColor)},
    {SIP_MLNAME_CAST(sipName_setCompressedData), (PyCFunction)meth_QOpenGLTexture_setCompressedData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setCompressedData)},
    {SIP_MLNAME_CAST(sipName_setData), (PyCFunction)meth_QOpenGLTexture_setData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setData)},
    {SIP_MLNAME_CAST(sipName_setDepthStencilMode), meth_QOpenGLTexture_setDepthStencilMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setDepthStencilMode)},
    {SIP_MLNAME_CAST(sipName_setFixedSamplePositions), meth_QOpenGLTexture_setFixedSamplePositions, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setFixedSamplePositions)},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QOpenGLTexture_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setFormat)},
    {SIP_MLNAME_CAST(sipName_setLayers), meth_QOpenGLTexture_setLayers, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setLayers)},
    {SIP_MLNAME_CAST(sipName_setLevelOfDetailRange), meth_QOpenGLTexture_setLevelOfDetailRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setLevelOfDetailRange)},
    {SIP_MLNAME_CAST(sipName_setLevelofDetailBias), meth_QOpenGLTexture_setLevelofDetailBias, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setLevelofDetailBias)},
    {SIP_MLNAME_CAST(sipName_setMagnificationFilter), meth_QOpenGLTexture_setMagnificationFilter, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMagnificationFilter)},
    {SIP_MLNAME_CAST(sipName_setMaximumAnisotropy), meth_QOpenGLTexture_setMaximumAnisotropy, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMaximumAnisotropy)},
    {SIP_MLNAME_CAST(sipName_setMaximumLevelOfDetail), meth_QOpenGLTexture_setMaximumLevelOfDetail, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMaximumLevelOfDetail)},
    {SIP_MLNAME_CAST(sipName_setMinMagFilters), meth_QOpenGLTexture_setMinMagFilters, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMinMagFilters)},
    {SIP_MLNAME_CAST(sipName_setMinificationFilter), meth_QOpenGLTexture_setMinificationFilter, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMinificationFilter)},
    {SIP_MLNAME_CAST(sipName_setMinimumLevelOfDetail), meth_QOpenGLTexture_setMinimumLevelOfDetail, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMinimumLevelOfDetail)},
    {SIP_MLNAME_CAST(sipName_setMipBaseLevel), meth_QOpenGLTexture_setMipBaseLevel, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMipBaseLevel)},
    {SIP_MLNAME_CAST(sipName_setMipLevelRange), meth_QOpenGLTexture_setMipLevelRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMipLevelRange)},
    {SIP_MLNAME_CAST(sipName_setMipLevels), meth_QOpenGLTexture_setMipLevels, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMipLevels)},
    {SIP_MLNAME_CAST(sipName_setMipMaxLevel), meth_QOpenGLTexture_setMipMaxLevel, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setMipMaxLevel)},
    {SIP_MLNAME_CAST(sipName_setSamples), meth_QOpenGLTexture_setSamples, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setSamples)},
    {SIP_MLNAME_CAST(sipName_setSize), (PyCFunction)meth_QOpenGLTexture_setSize, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setSize)},
    {SIP_MLNAME_CAST(sipName_setSwizzleMask), meth_QOpenGLTexture_setSwizzleMask, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setSwizzleMask)},
    {SIP_MLNAME_CAST(sipName_setWrapMode), meth_QOpenGLTexture_setWrapMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_setWrapMode)},
    {SIP_MLNAME_CAST(sipName_swizzleMask), meth_QOpenGLTexture_swizzleMask, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_swizzleMask)},
    {SIP_MLNAME_CAST(sipName_target), meth_QOpenGLTexture_target, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_target)},
    {SIP_MLNAME_CAST(sipName_textureId), meth_QOpenGLTexture_textureId, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_textureId)},
    {SIP_MLNAME_CAST(sipName_width), meth_QOpenGLTexture_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_width)},
    {SIP_MLNAME_CAST(sipName_wrapMode), meth_QOpenGLTexture_wrapMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLTexture_wrapMode)}
};

static sipEnumMemberDef enummembers_QOpenGLTexture[] = {
    {sipName_Alpha, static_cast<int>(QOpenGLTexture::Alpha), 157},
    {sipName_AlphaFormat, static_cast<int>(QOpenGLTexture::AlphaFormat), 162},
    {sipName_AlphaValue, static_cast<int>(QOpenGLTexture::AlphaValue), 160},
    {sipName_AnisotropicFiltering, static_cast<int>(QOpenGLTexture::AnisotropicFiltering), 153},
    {sipName_BGR, static_cast<int>(QOpenGLTexture::BGR), 157},
    {sipName_BGRA, static_cast<int>(QOpenGLTexture::BGRA), 157},
    {sipName_BGRA_Integer, static_cast<int>(QOpenGLTexture::BGRA_Integer), 157},
    {sipName_BGR_Integer, static_cast<int>(QOpenGLTexture::BGR_Integer), 157},
    {sipName_BindingTarget1D, static_cast<int>(QOpenGLTexture::BindingTarget1D), 149},
    {sipName_BindingTarget1DArray, static_cast<int>(QOpenGLTexture::BindingTarget1DArray), 149},
    {sipName_BindingTarget2D, static_cast<int>(QOpenGLTexture::BindingTarget2D), 149},
    {sipName_BindingTarget2DArray, static_cast<int>(QOpenGLTexture::BindingTarget2DArray), 149},
    {sipName_BindingTarget2DMultisample, static_cast<int>(QOpenGLTexture::BindingTarget2DMultisample), 149},
    {sipName_BindingTarget2DMultisampleArray, static_cast<int>(QOpenGLTexture::BindingTarget2DMultisampleArray), 149},
    {sipName_BindingTarget3D, static_cast<int>(QOpenGLTexture::BindingTarget3D), 149},
    {sipName_BindingTargetBuffer, static_cast<int>(QOpenGLTexture::BindingTargetBuffer), 149},
    {sipName_BindingTargetCubeMap, static_cast<int>(QOpenGLTexture::BindingTargetCubeMap), 149},
    {sipName_BindingTargetCubeMapArray, static_cast<int>(QOpenGLTexture::BindingTargetCubeMapArray), 149},
    {sipName_BindingTargetRectangle, static_cast<int>(QOpenGLTexture::BindingTargetRectangle), 149},
    {sipName_BlueValue, static_cast<int>(QOpenGLTexture::BlueValue), 160},
    {sipName_ClampToBorder, static_cast<int>(QOpenGLTexture::ClampToBorder), 164},
    {sipName_ClampToEdge, static_cast<int>(QOpenGLTexture::ClampToEdge), 164},
    {sipName_CubeMapNegativeX, static_cast<int>(QOpenGLTexture::CubeMapNegativeX), 151},
    {sipName_CubeMapNegativeY, static_cast<int>(QOpenGLTexture::CubeMapNegativeY), 151},
    {sipName_CubeMapNegativeZ, static_cast<int>(QOpenGLTexture::CubeMapNegativeZ), 151},
    {sipName_CubeMapPositiveX, static_cast<int>(QOpenGLTexture::CubeMapPositiveX), 151},
    {sipName_CubeMapPositiveY, static_cast<int>(QOpenGLTexture::CubeMapPositiveY), 151},
    {sipName_CubeMapPositiveZ, static_cast<int>(QOpenGLTexture::CubeMapPositiveZ), 151},
    {sipName_D16, static_cast<int>(QOpenGLTexture::D16), 162},
    {sipName_D24, static_cast<int>(QOpenGLTexture::D24), 162},
    {sipName_D24S8, static_cast<int>(QOpenGLTexture::D24S8), 162},
    {sipName_D32, static_cast<int>(QOpenGLTexture::D32), 162},
    {sipName_D32F, static_cast<int>(QOpenGLTexture::D32F), 162},
    {sipName_D32FS8X24, static_cast<int>(QOpenGLTexture::D32FS8X24), 162},
    {sipName_Depth, static_cast<int>(QOpenGLTexture::Depth), 157},
    {sipName_DepthFormat, static_cast<int>(QOpenGLTexture::DepthFormat), 162},
    {sipName_DepthMode, static_cast<int>(QOpenGLTexture::DepthMode), 152},
    {sipName_DepthStencil, static_cast<int>(QOpenGLTexture::DepthStencil), 157},
    {sipName_DirectionR, static_cast<int>(QOpenGLTexture::DirectionR), 150},
    {sipName_DirectionS, static_cast<int>(QOpenGLTexture::DirectionS), 150},
    {sipName_DirectionT, static_cast<int>(QOpenGLTexture::DirectionT), 150},
    {sipName_DontGenerateMipMaps, static_cast<int>(QOpenGLTexture::DontGenerateMipMaps), 156},
    {sipName_DontResetTextureUnit, static_cast<int>(QOpenGLTexture::DontResetTextureUnit), 163},
    {sipName_Float16, static_cast<int>(QOpenGLTexture::Float16), 158},
    {sipName_Float16OES, static_cast<int>(QOpenGLTexture::Float16OES), 158},
    {sipName_Float32, static_cast<int>(QOpenGLTexture::Float32), 158},
    {sipName_Float32_D32_UInt32_S8_X24, static_cast<int>(QOpenGLTexture::Float32_D32_UInt32_S8_X24), 158},
    {sipName_GenerateMipMaps, static_cast<int>(QOpenGLTexture::GenerateMipMaps), 156},
    {sipName_GreenValue, static_cast<int>(QOpenGLTexture::GreenValue), 160},
    {sipName_ImmutableMultisampleStorage, static_cast<int>(QOpenGLTexture::ImmutableMultisampleStorage), 153},
    {sipName_ImmutableStorage, static_cast<int>(QOpenGLTexture::ImmutableStorage), 153},
    {sipName_Int16, static_cast<int>(QOpenGLTexture::Int16), 158},
    {sipName_Int32, static_cast<int>(QOpenGLTexture::Int32), 158},
    {sipName_Int8, static_cast<int>(QOpenGLTexture::Int8), 158},
    {sipName_Linear, static_cast<int>(QOpenGLTexture::Linear), 155},
    {sipName_LinearMipMapLinear, static_cast<int>(QOpenGLTexture::LinearMipMapLinear), 155},
    {sipName_LinearMipMapNearest, static_cast<int>(QOpenGLTexture::LinearMipMapNearest), 155},
    {sipName_Luminance, static_cast<int>(QOpenGLTexture::Luminance), 157},
    {sipName_LuminanceAlpha, static_cast<int>(QOpenGLTexture::LuminanceAlpha), 157},
    {sipName_LuminanceAlphaFormat, static_cast<int>(QOpenGLTexture::LuminanceAlphaFormat), 162},
    {sipName_LuminanceFormat, static_cast<int>(QOpenGLTexture::LuminanceFormat), 162},
    {sipName_MirroredRepeat, static_cast<int>(QOpenGLTexture::MirroredRepeat), 164},
    {sipName_NPOTTextureRepeat, static_cast<int>(QOpenGLTexture::NPOTTextureRepeat), 153},
    {sipName_NPOTTextures, static_cast<int>(QOpenGLTexture::NPOTTextures), 153},
    {sipName_Nearest, static_cast<int>(QOpenGLTexture::Nearest), 155},
    {sipName_NearestMipMapLinear, static_cast<int>(QOpenGLTexture::NearestMipMapLinear), 155},
    {sipName_NearestMipMapNearest, static_cast<int>(QOpenGLTexture::NearestMipMapNearest), 155},
    {sipName_NoFormat, static_cast<int>(QOpenGLTexture::NoFormat), 162},
    {sipName_NoPixelType, static_cast<int>(QOpenGLTexture::NoPixelType), 158},
    {sipName_NoSourceFormat, static_cast<int>(QOpenGLTexture::NoSourceFormat), 157},
    {sipName_OneValue, static_cast<int>(QOpenGLTexture::OneValue), 160},
    {sipName_R16F, static_cast<int>(QOpenGLTexture::R16F), 162},
    {sipName_R16I, static_cast<int>(QOpenGLTexture::R16I), 162},
    {sipName_R16U, static_cast<int>(QOpenGLTexture::R16U), 162},
    {sipName_R16_SNorm, static_cast<int>(QOpenGLTexture::R16_SNorm), 162},
    {sipName_R16_UNorm, static_cast<int>(QOpenGLTexture::R16_UNorm), 162},
    {sipName_R32F, static_cast<int>(QOpenGLTexture::R32F), 162},
    {sipName_R32I, static_cast<int>(QOpenGLTexture::R32I), 162},
    {sipName_R32U, static_cast<int>(QOpenGLTexture::R32U), 162},
    {sipName_R5G6B5, static_cast<int>(QOpenGLTexture::R5G6B5), 162},
    {sipName_R8I, static_cast<int>(QOpenGLTexture::R8I), 162},
    {sipName_R8U, static_cast<int>(QOpenGLTexture::R8U), 162},
    {sipName_R8_SNorm, static_cast<int>(QOpenGLTexture::R8_SNorm), 162},
    {sipName_R8_UNorm, static_cast<int>(QOpenGLTexture::R8_UNorm), 162},
    {sipName_RG, static_cast<int>(QOpenGLTexture::RG), 157},
    {sipName_RG11B10F, static_cast<int>(QOpenGLTexture::RG11B10F), 162},
    {sipName_RG16F, static_cast<int>(QOpenGLTexture::RG16F), 162},
    {sipName_RG16I, static_cast<int>(QOpenGLTexture::RG16I), 162},
    {sipName_RG16U, static_cast<int>(QOpenGLTexture::RG16U), 162},
    {sipName_RG16_SNorm, static_cast<int>(QOpenGLTexture::RG16_SNorm), 162},
    {sipName_RG16_UNorm, static_cast<int>(QOpenGLTexture::RG16_UNorm), 162},
    {sipName_RG32F, static_cast<int>(QOpenGLTexture::RG32F), 162},
    {sipName_RG32I, static_cast<int>(QOpenGLTexture::RG32I), 162},
    {sipName_RG32U, static_cast<int>(QOpenGLTexture::RG32U), 162},
    {sipName_RG3B2, static_cast<int>(QOpenGLTexture::RG3B2), 162},
    {sipName_RG8I, static_cast<int>(QOpenGLTexture::RG8I), 162},
    {sipName_RG8U, static_cast<int>(QOpenGLTexture::RG8U), 162},
    {sipName_RG8_SNorm, static_cast<int>(QOpenGLTexture::RG8_SNorm), 162},
    {sipName_RG8_UNorm, static_cast<int>(QOpenGLTexture::RG8_UNorm), 162},
    {sipName_RGB, static_cast<int>(QOpenGLTexture::RGB), 157},
    {sipName_RGB10A2, static_cast<int>(QOpenGLTexture::RGB10A2), 162},
    {sipName_RGB16F, static_cast<int>(QOpenGLTexture::RGB16F), 162},
    {sipName_RGB16I, static_cast<int>(QOpenGLTexture::RGB16I), 162},
    {sipName_RGB16U, static_cast<int>(QOpenGLTexture::RGB16U), 162},
    {sipName_RGB16_SNorm, static_cast<int>(QOpenGLTexture::RGB16_SNorm), 162},
    {sipName_RGB16_UNorm, static_cast<int>(QOpenGLTexture::RGB16_UNorm), 162},
    {sipName_RGB32F, static_cast<int>(QOpenGLTexture::RGB32F), 162},
    {sipName_RGB32I, static_cast<int>(QOpenGLTexture::RGB32I), 162},
    {sipName_RGB32U, static_cast<int>(QOpenGLTexture::RGB32U), 162},
    {sipName_RGB5A1, static_cast<int>(QOpenGLTexture::RGB5A1), 162},
    {sipName_RGB8I, static_cast<int>(QOpenGLTexture::RGB8I), 162},
    {sipName_RGB8U, static_cast<int>(QOpenGLTexture::RGB8U), 162},
    {sipName_RGB8_SNorm, static_cast<int>(QOpenGLTexture::RGB8_SNorm), 162},
    {sipName_RGB8_UNorm, static_cast<int>(QOpenGLTexture::RGB8_UNorm), 162},
    {sipName_RGB9E5, static_cast<int>(QOpenGLTexture::RGB9E5), 162},
    {sipName_RGBA, static_cast<int>(QOpenGLTexture::RGBA), 157},
    {sipName_RGBA16F, static_cast<int>(QOpenGLTexture::RGBA16F), 162},
    {sipName_RGBA16I, static_cast<int>(QOpenGLTexture::RGBA16I), 162},
    {sipName_RGBA16U, static_cast<int>(QOpenGLTexture::RGBA16U), 162},
    {sipName_RGBA16_SNorm, static_cast<int>(QOpenGLTexture::RGBA16_SNorm), 162},
    {sipName_RGBA16_UNorm, static_cast<int>(QOpenGLTexture::RGBA16_UNorm), 162},
    {sipName_RGBA32F, static_cast<int>(QOpenGLTexture::RGBA32F), 162},
    {sipName_RGBA32I, static_cast<int>(QOpenGLTexture::RGBA32I), 162},
    {sipName_RGBA32U, static_cast<int>(QOpenGLTexture::RGBA32U), 162},
    {sipName_RGBA4, static_cast<int>(QOpenGLTexture::RGBA4), 162},
    {sipName_RGBA8I, static_cast<int>(QOpenGLTexture::RGBA8I), 162},
    {sipName_RGBA8U, static_cast<int>(QOpenGLTexture::RGBA8U), 162},
    {sipName_RGBA8_SNorm, static_cast<int>(QOpenGLTexture::RGBA8_SNorm), 162},
    {sipName_RGBA8_UNorm, static_cast<int>(QOpenGLTexture::RGBA8_UNorm), 162},
    {sipName_RGBAFormat, static_cast<int>(QOpenGLTexture::RGBAFormat), 162},
    {sipName_RGBA_DXT1, static_cast<int>(QOpenGLTexture::RGBA_DXT1), 162},
    {sipName_RGBA_DXT3, static_cast<int>(QOpenGLTexture::RGBA_DXT3), 162},
    {sipName_RGBA_DXT5, static_cast<int>(QOpenGLTexture::RGBA_DXT5), 162},
    {sipName_RGBA_Integer, static_cast<int>(QOpenGLTexture::RGBA_Integer), 157},
    {sipName_RGBFormat, static_cast<int>(QOpenGLTexture::RGBFormat), 162},
    {sipName_RGB_BP_SIGNED_FLOAT, static_cast<int>(QOpenGLTexture::RGB_BP_SIGNED_FLOAT), 162},
    {sipName_RGB_BP_UNSIGNED_FLOAT, static_cast<int>(QOpenGLTexture::RGB_BP_UNSIGNED_FLOAT), 162},
    {sipName_RGB_BP_UNorm, static_cast<int>(QOpenGLTexture::RGB_BP_UNorm), 162},
    {sipName_RGB_DXT1, static_cast<int>(QOpenGLTexture::RGB_DXT1), 162},
    {sipName_RGB_Integer, static_cast<int>(QOpenGLTexture::RGB_Integer), 157},
    {sipName_RG_ATI2N_SNorm, static_cast<int>(QOpenGLTexture::RG_ATI2N_SNorm), 162},
    {sipName_RG_ATI2N_UNorm, static_cast<int>(QOpenGLTexture::RG_ATI2N_UNorm), 162},
    {sipName_RG_Integer, static_cast<int>(QOpenGLTexture::RG_Integer), 157},
    {sipName_R_ATI1N_SNorm, static_cast<int>(QOpenGLTexture::R_ATI1N_SNorm), 162},
    {sipName_R_ATI1N_UNorm, static_cast<int>(QOpenGLTexture::R_ATI1N_UNorm), 162},
    {sipName_Red, static_cast<int>(QOpenGLTexture::Red), 157},
    {sipName_RedValue, static_cast<int>(QOpenGLTexture::RedValue), 160},
    {sipName_Red_Integer, static_cast<int>(QOpenGLTexture::Red_Integer), 157},
    {sipName_Repeat, static_cast<int>(QOpenGLTexture::Repeat), 164},
    {sipName_ResetTextureUnit, static_cast<int>(QOpenGLTexture::ResetTextureUnit), 163},
    {sipName_S8, static_cast<int>(QOpenGLTexture::S8), 162},
    {sipName_SRGB8, static_cast<int>(QOpenGLTexture::SRGB8), 162},
    {sipName_SRGB8_Alpha8, static_cast<int>(QOpenGLTexture::SRGB8_Alpha8), 162},
    {sipName_SRGB_Alpha_DXT1, static_cast<int>(QOpenGLTexture::SRGB_Alpha_DXT1), 162},
    {sipName_SRGB_Alpha_DXT3, static_cast<int>(QOpenGLTexture::SRGB_Alpha_DXT3), 162},
    {sipName_SRGB_Alpha_DXT5, static_cast<int>(QOpenGLTexture::SRGB_Alpha_DXT5), 162},
    {sipName_SRGB_BP_UNorm, static_cast<int>(QOpenGLTexture::SRGB_BP_UNorm), 162},
    {sipName_SRGB_DXT1, static_cast<int>(QOpenGLTexture::SRGB_DXT1), 162},
    {sipName_Stencil, static_cast<int>(QOpenGLTexture::Stencil), 157},
    {sipName_StencilMode, static_cast<int>(QOpenGLTexture::StencilMode), 152},
    {sipName_StencilTexturing, static_cast<int>(QOpenGLTexture::StencilTexturing), 153},
    {sipName_Swizzle, static_cast<int>(QOpenGLTexture::Swizzle), 153},
    {sipName_SwizzleAlpha, static_cast<int>(QOpenGLTexture::SwizzleAlpha), 159},
    {sipName_SwizzleBlue, static_cast<int>(QOpenGLTexture::SwizzleBlue), 159},
    {sipName_SwizzleGreen, static_cast<int>(QOpenGLTexture::SwizzleGreen), 159},
    {sipName_SwizzleRed, static_cast<int>(QOpenGLTexture::SwizzleRed), 159},
    {sipName_Target1D, static_cast<int>(QOpenGLTexture::Target1D), 161},
    {sipName_Target1DArray, static_cast<int>(QOpenGLTexture::Target1DArray), 161},
    {sipName_Target2D, static_cast<int>(QOpenGLTexture::Target2D), 161},
    {sipName_Target2DArray, static_cast<int>(QOpenGLTexture::Target2DArray), 161},
    {sipName_Target2DMultisample, static_cast<int>(QOpenGLTexture::Target2DMultisample), 161},
    {sipName_Target2DMultisampleArray, static_cast<int>(QOpenGLTexture::Target2DMultisampleArray), 161},
    {sipName_Target3D, static_cast<int>(QOpenGLTexture::Target3D), 161},
    {sipName_TargetBuffer, static_cast<int>(QOpenGLTexture::TargetBuffer), 161},
    {sipName_TargetCubeMap, static_cast<int>(QOpenGLTexture::TargetCubeMap), 161},
    {sipName_TargetCubeMapArray, static_cast<int>(QOpenGLTexture::TargetCubeMapArray), 161},
    {sipName_TargetRectangle, static_cast<int>(QOpenGLTexture::TargetRectangle), 161},
    {sipName_Texture1D, static_cast<int>(QOpenGLTexture::Texture1D), 153},
    {sipName_Texture3D, static_cast<int>(QOpenGLTexture::Texture3D), 153},
    {sipName_TextureArrays, static_cast<int>(QOpenGLTexture::TextureArrays), 153},
    {sipName_TextureBuffer, static_cast<int>(QOpenGLTexture::TextureBuffer), 153},
    {sipName_TextureCubeMapArrays, static_cast<int>(QOpenGLTexture::TextureCubeMapArrays), 153},
    {sipName_TextureMultisample, static_cast<int>(QOpenGLTexture::TextureMultisample), 153},
    {sipName_TextureRectangle, static_cast<int>(QOpenGLTexture::TextureRectangle), 153},
    {sipName_UInt16, static_cast<int>(QOpenGLTexture::UInt16), 158},
    {sipName_UInt16_R5G6B5, static_cast<int>(QOpenGLTexture::UInt16_R5G6B5), 158},
    {sipName_UInt16_R5G6B5_Rev, static_cast<int>(QOpenGLTexture::UInt16_R5G6B5_Rev), 158},
    {sipName_UInt16_RGB5A1, static_cast<int>(QOpenGLTexture::UInt16_RGB5A1), 158},
    {sipName_UInt16_RGB5A1_Rev, static_cast<int>(QOpenGLTexture::UInt16_RGB5A1_Rev), 158},
    {sipName_UInt16_RGBA4, static_cast<int>(QOpenGLTexture::UInt16_RGBA4), 158},
    {sipName_UInt16_RGBA4_Rev, static_cast<int>(QOpenGLTexture::UInt16_RGBA4_Rev), 158},
    {sipName_UInt32, static_cast<int>(QOpenGLTexture::UInt32), 158},
    {sipName_UInt32_D24S8, static_cast<int>(QOpenGLTexture::UInt32_D24S8), 158},
    {sipName_UInt32_RG11B10F, static_cast<int>(QOpenGLTexture::UInt32_RG11B10F), 158},
    {sipName_UInt32_RGB10A2, static_cast<int>(QOpenGLTexture::UInt32_RGB10A2), 158},
    {sipName_UInt32_RGB10A2_Rev, static_cast<int>(QOpenGLTexture::UInt32_RGB10A2_Rev), 158},
    {sipName_UInt32_RGB9_E5, static_cast<int>(QOpenGLTexture::UInt32_RGB9_E5), 158},
    {sipName_UInt32_RGBA8, static_cast<int>(QOpenGLTexture::UInt32_RGBA8), 158},
    {sipName_UInt32_RGBA8_Rev, static_cast<int>(QOpenGLTexture::UInt32_RGBA8_Rev), 158},
    {sipName_UInt8, static_cast<int>(QOpenGLTexture::UInt8), 158},
    {sipName_UInt8_RG3B2, static_cast<int>(QOpenGLTexture::UInt8_RG3B2), 158},
    {sipName_UInt8_RG3B2_Rev, static_cast<int>(QOpenGLTexture::UInt8_RG3B2_Rev), 158},
    {sipName_ZeroValue, static_cast<int>(QOpenGLTexture::ZeroValue), 160},
};

PyDoc_STRVAR(doc_QOpenGLTexture, "\1QOpenGLTexture(QOpenGLTexture.Target)\n"
    "QOpenGLTexture(QImage, QOpenGLTexture.MipMapGeneration genMipMaps=QOpenGLTexture.GenerateMipMaps)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLTexture = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLTexture,
        {0}
    },
    {
        sipNameNr_QOpenGLTexture,
        {0, 0, 1},
        65, methods_QOpenGLTexture,
        203, enummembers_QOpenGLTexture,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLTexture,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QOpenGLTexture,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLTexture,
    0,
    0,
    0,
    release_QOpenGLTexture,
    cast_QOpenGLTexture,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 80 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 115657 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 115661 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 115664 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 115667 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 115670 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 115673 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 115676 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 115679 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 115682 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 115685 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 115688 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 115691 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 1073 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 115694 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 927 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 115697 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 781 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 115700 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 632 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 115703 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 483 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 115706 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 331 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 115709 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 179 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 115712 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 115715 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 115718 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 115721 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 115724 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 115727 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 115730 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 115733 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 115736 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 115739 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 115742 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 115745 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 115748 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 115751 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 115754 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 115757 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 115760 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 115763 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 115766 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 115769 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 115772 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 115775 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLShaderProgram : public QOpenGLShaderProgram
{
public:
    sipQOpenGLShaderProgram(QObject*);
    virtual ~sipQOpenGLShaderProgram();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool link();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLShaderProgram(const sipQOpenGLShaderProgram &);
    sipQOpenGLShaderProgram &operator = (const sipQOpenGLShaderProgram &);

    char sipPyMethods[8];
};

sipQOpenGLShaderProgram::sipQOpenGLShaderProgram(QObject*a0): QOpenGLShaderProgram(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLShaderProgram::~sipQOpenGLShaderProgram()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQOpenGLShaderProgram::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLShaderProgram);
}

int sipQOpenGLShaderProgram::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QOpenGLShaderProgram::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QOpenGLShaderProgram,_c,_id,_a);

    return _id;
}

void *sipQOpenGLShaderProgram::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QOpenGLShaderProgram, _clname, &sipCpp) ? sipCpp : QOpenGLShaderProgram::qt_metacast(_clname));
}

void sipQOpenGLShaderProgram::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QOpenGLShaderProgram::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLShaderProgram::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QOpenGLShaderProgram::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLShaderProgram::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QOpenGLShaderProgram::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLShaderProgram::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QOpenGLShaderProgram::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLShaderProgram::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QOpenGLShaderProgram::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOpenGLShaderProgram::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QOpenGLShaderProgram::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQOpenGLShaderProgram::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QOpenGLShaderProgram::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOpenGLShaderProgram::link()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_link);

    if (!sipMeth)
        return QOpenGLShaderProgram::link();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtGui_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QObject* sipQOpenGLShaderProgram::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQOpenGLShaderProgram::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQOpenGLShaderProgram::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQOpenGLShaderProgram::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQOpenGLShaderProgram::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQOpenGLShaderProgram::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQOpenGLShaderProgram::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQOpenGLShaderProgram::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQOpenGLShaderProgram::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_sender, "QOpenGLShaderProgram.sender() -> QObject");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLShaderProgram *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 116079 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_sender, doc_QOpenGLShaderProgram_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_receivers, "QOpenGLShaderProgram.receivers(signal) -> int");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQOpenGLShaderProgram *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 116138 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_receivers, doc_QOpenGLShaderProgram_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_timerEvent, "QOpenGLShaderProgram.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQOpenGLShaderProgram *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_timerEvent, doc_QOpenGLShaderProgram_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_childEvent, "QOpenGLShaderProgram.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQOpenGLShaderProgram *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_childEvent, doc_QOpenGLShaderProgram_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_customEvent, "QOpenGLShaderProgram.customEvent(QEvent)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOpenGLShaderProgram *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_customEvent, doc_QOpenGLShaderProgram_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_connectNotify, "QOpenGLShaderProgram.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLShaderProgram *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_connectNotify, doc_QOpenGLShaderProgram_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_disconnectNotify, "QOpenGLShaderProgram.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLShaderProgram *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_disconnectNotify, doc_QOpenGLShaderProgram_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_senderSignalIndex, "QOpenGLShaderProgram.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLShaderProgram *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_senderSignalIndex, doc_QOpenGLShaderProgram_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_isSignalConnected, "QOpenGLShaderProgram.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQOpenGLShaderProgram *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_isSignalConnected, doc_QOpenGLShaderProgram_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_addShader, "QOpenGLShaderProgram.addShader(QOpenGLShader) -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_addShader(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_addShader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader* a0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QOpenGLShader, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->addShader(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_addShader, doc_QOpenGLShaderProgram_addShader);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_removeShader, "QOpenGLShaderProgram.removeShader(QOpenGLShader)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_removeShader(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_removeShader(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader* a0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QOpenGLShader, &a0))
        {
            sipCpp->removeShader(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_removeShader, doc_QOpenGLShaderProgram_removeShader);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_shaders, "QOpenGLShaderProgram.shaders() -> list-of-QOpenGLShader");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_shaders(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_shaders(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            QList<QOpenGLShader*>*sipRes;

            sipRes = new QList<QOpenGLShader*>(sipCpp->shaders());

            return sipConvertFromNewType(sipRes,sipType_QList_0101QOpenGLShader,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_shaders, doc_QOpenGLShaderProgram_shaders);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_addShaderFromSourceCode, "QOpenGLShaderProgram.addShaderFromSourceCode(QOpenGLShader.ShaderType, QByteArray) -> bool\n"
    "QOpenGLShaderProgram.addShaderFromSourceCode(QOpenGLShader.ShaderType, str) -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_addShaderFromSourceCode(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_addShaderFromSourceCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        const QByteArray* a1;
        int a1State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QOpenGLShader_ShaderType, &a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->addShaderFromSourceCode(*a0,*a1);
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QOpenGLShader_ShaderType, &a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->addShaderFromSourceCode(*a0,*a1);
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_addShaderFromSourceCode, doc_QOpenGLShaderProgram_addShaderFromSourceCode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_addShaderFromSourceFile, "QOpenGLShaderProgram.addShaderFromSourceFile(QOpenGLShader.ShaderType, str) -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_addShaderFromSourceFile(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_addShaderFromSourceFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QOpenGLShader_ShaderType, &a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->addShaderFromSourceFile(*a0,*a1);
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_addShaderFromSourceFile, doc_QOpenGLShaderProgram_addShaderFromSourceFile);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_removeAllShaders, "QOpenGLShaderProgram.removeAllShaders()");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_removeAllShaders(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_removeAllShaders(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            sipCpp->removeAllShaders();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_removeAllShaders, doc_QOpenGLShaderProgram_removeAllShaders);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_link, "QOpenGLShaderProgram.link() -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_link(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_link(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QOpenGLShaderProgram::link() : sipCpp->link());

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_link, doc_QOpenGLShaderProgram_link);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_isLinked, "QOpenGLShaderProgram.isLinked() -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_isLinked(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_isLinked(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isLinked();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_isLinked, doc_QOpenGLShaderProgram_isLinked);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_log, "QOpenGLShaderProgram.log() -> str");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_log(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_log(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->log());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_log, doc_QOpenGLShaderProgram_log);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_bind, "QOpenGLShaderProgram.bind() -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_bind(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_bind(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->bind();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_bind, doc_QOpenGLShaderProgram_bind);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_release, "QOpenGLShaderProgram.release()");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_release(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_release(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            sipCpp->release();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_release, doc_QOpenGLShaderProgram_release);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_programId, "QOpenGLShaderProgram.programId() -> int");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_programId(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_programId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->programId();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_programId, doc_QOpenGLShaderProgram_programId);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_bindAttributeLocation, "QOpenGLShaderProgram.bindAttributeLocation(QByteArray, int)\n"
    "QOpenGLShaderProgram.bindAttributeLocation(str, int)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_bindAttributeLocation(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_bindAttributeLocation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        int a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1))
        {
            sipCpp->bindAttributeLocation(*a0,a1);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        int a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1i", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            sipCpp->bindAttributeLocation(*a0,a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_bindAttributeLocation, doc_QOpenGLShaderProgram_bindAttributeLocation);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_attributeLocation, "QOpenGLShaderProgram.attributeLocation(QByteArray) -> int\n"
    "QOpenGLShaderProgram.attributeLocation(str) -> int");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_attributeLocation(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_attributeLocation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            int sipRes;

            sipRes = sipCpp->attributeLocation(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            sipRes = sipCpp->attributeLocation(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_attributeLocation, doc_QOpenGLShaderProgram_attributeLocation);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_setAttributeValue, "QOpenGLShaderProgram.setAttributeValue(int, float)\n"
    "QOpenGLShaderProgram.setAttributeValue(int, float, float)\n"
    "QOpenGLShaderProgram.setAttributeValue(int, float, float, float)\n"
    "QOpenGLShaderProgram.setAttributeValue(int, float, float, float, float)\n"
    "QOpenGLShaderProgram.setAttributeValue(int, QVector2D)\n"
    "QOpenGLShaderProgram.setAttributeValue(int, QVector3D)\n"
    "QOpenGLShaderProgram.setAttributeValue(int, QVector4D)\n"
    "QOpenGLShaderProgram.setAttributeValue(int, QColor)\n"
    "QOpenGLShaderProgram.setAttributeValue(str, float)\n"
    "QOpenGLShaderProgram.setAttributeValue(str, float, float)\n"
    "QOpenGLShaderProgram.setAttributeValue(str, float, float, float)\n"
    "QOpenGLShaderProgram.setAttributeValue(str, float, float, float, float)\n"
    "QOpenGLShaderProgram.setAttributeValue(str, QVector2D)\n"
    "QOpenGLShaderProgram.setAttributeValue(str, QVector3D)\n"
    "QOpenGLShaderProgram.setAttributeValue(str, QVector4D)\n"
    "QOpenGLShaderProgram.setAttributeValue(str, QColor)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_setAttributeValue(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_setAttributeValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        GLfloat a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bif", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipCpp->setAttributeValue(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        GLfloat a1;
        GLfloat a2;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setAttributeValue(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        GLfloat a1;
        GLfloat a2;
        GLfloat a3;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bifff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setAttributeValue(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        GLfloat a1;
        GLfloat a2;
        GLfloat a3;
        GLfloat a4;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biffff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setAttributeValue(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QVector2D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector2D, &a1))
        {
            sipCpp->setAttributeValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QVector3D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector3D, &a1))
        {
            sipCpp->setAttributeValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QVector4D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector4D, &a1))
        {
            sipCpp->setAttributeValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QColor* a1;
        int a1State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->setAttributeValue(a0,*a1);
            sipReleaseType(const_cast<QColor *>(a1),sipType_QColor,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLfloat a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAf", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1))
        {
            sipCpp->setAttributeValue(a0,a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLfloat a1;
        GLfloat a2;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1, &a2))
        {
            sipCpp->setAttributeValue(a0,a1,a2);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLfloat a1;
        GLfloat a2;
        GLfloat a3;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAfff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1, &a2, &a3))
        {
            sipCpp->setAttributeValue(a0,a1,a2,a3);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLfloat a1;
        GLfloat a2;
        GLfloat a3;
        GLfloat a4;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAffff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setAttributeValue(a0,a1,a2,a3,a4);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QVector2D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QVector2D, &a1))
        {
            sipCpp->setAttributeValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QVector3D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QVector3D, &a1))
        {
            sipCpp->setAttributeValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QVector4D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QVector4D, &a1))
        {
            sipCpp->setAttributeValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QColor* a1;
        int a1State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->setAttributeValue(a0,*a1);
            Py_DECREF(a0Keep);
            sipReleaseType(const_cast<QColor *>(a1),sipType_QColor,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_setAttributeValue, doc_QOpenGLShaderProgram_setAttributeValue);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_setAttributeArray, "QOpenGLShaderProgram.setAttributeArray(int, sequence)\n"
    "QOpenGLShaderProgram.setAttributeArray(str, sequence)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_setAttributeArray(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_setAttributeArray(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        PyObject * a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiP0", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 121 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
        const GLfloat *values;
        int tsize;
        
        values = qpyopengl_attribute_array(a1, sipSelf, SIPLong_FromLong(a0), &tsize,
                &sipError);
        
        if (values)
            sipCpp->setAttributeArray(a0, values, tsize);
#line 117115 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        PyObject * a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAP0", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 133 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
        const GLfloat *values;
        int tsize;
        
        values = qpyopengl_attribute_array(a1, sipSelf, SIPBytes_FromString(a0),
                &tsize, &sipError);
        
        if (values)
            sipCpp->setAttributeArray(a0, values, tsize);
#line 117149 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            Py_DECREF(a0Keep);

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_setAttributeArray, doc_QOpenGLShaderProgram_setAttributeArray);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_setAttributeBuffer, "QOpenGLShaderProgram.setAttributeBuffer(int, int, int, int, int stride=0)\n"
    "QOpenGLShaderProgram.setAttributeBuffer(str, int, int, int, int stride=0)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_setAttributeBuffer(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_setAttributeBuffer(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        GLenum a1;
        int a2;
        int a3;
        int a4 = 0;
        QOpenGLShaderProgram *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_stride,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biuii|i", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setAttributeBuffer(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLenum a1;
        int a2;
        int a3;
        int a4 = 0;
        QOpenGLShaderProgram *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_stride,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BAAuii|i", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setAttributeBuffer(a0,a1,a2,a3,a4);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_setAttributeBuffer, doc_QOpenGLShaderProgram_setAttributeBuffer);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_enableAttributeArray, "QOpenGLShaderProgram.enableAttributeArray(int)\n"
    "QOpenGLShaderProgram.enableAttributeArray(str)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_enableAttributeArray(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_enableAttributeArray(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0))
        {
            sipCpp->enableAttributeArray(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0))
        {
            sipCpp->enableAttributeArray(a0);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_enableAttributeArray, doc_QOpenGLShaderProgram_enableAttributeArray);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_disableAttributeArray, "QOpenGLShaderProgram.disableAttributeArray(int)\n"
    "QOpenGLShaderProgram.disableAttributeArray(str)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_disableAttributeArray(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_disableAttributeArray(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0))
        {
            sipCpp->disableAttributeArray(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAA", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0))
        {
            sipCpp->disableAttributeArray(a0);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_disableAttributeArray, doc_QOpenGLShaderProgram_disableAttributeArray);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_uniformLocation, "QOpenGLShaderProgram.uniformLocation(QByteArray) -> int\n"
    "QOpenGLShaderProgram.uniformLocation(str) -> int");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_uniformLocation(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_uniformLocation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            int sipRes;

            sipRes = sipCpp->uniformLocation(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QString,&a0, &a0State))
        {
            int sipRes;

            sipRes = sipCpp->uniformLocation(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_uniformLocation, doc_QOpenGLShaderProgram_uniformLocation);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_setUniformValue, "QOpenGLShaderProgram.setUniformValue(int, int)\n"
    "QOpenGLShaderProgram.setUniformValue(int, float)\n"
    "QOpenGLShaderProgram.setUniformValue(int, float, float)\n"
    "QOpenGLShaderProgram.setUniformValue(int, float, float, float)\n"
    "QOpenGLShaderProgram.setUniformValue(int, float, float, float, float)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QVector2D)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QVector3D)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QVector4D)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QColor)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QPoint)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QPointF)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QSize)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QSizeF)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QMatrix2x2)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QMatrix2x3)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QMatrix2x4)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QMatrix3x2)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QMatrix3x3)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QMatrix3x4)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QMatrix4x2)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QMatrix4x3)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QMatrix4x4)\n"
    "QOpenGLShaderProgram.setUniformValue(int, QTransform)\n"
    "QOpenGLShaderProgram.setUniformValue(str, int)\n"
    "QOpenGLShaderProgram.setUniformValue(str, float)\n"
    "QOpenGLShaderProgram.setUniformValue(str, float, float)\n"
    "QOpenGLShaderProgram.setUniformValue(str, float, float, float)\n"
    "QOpenGLShaderProgram.setUniformValue(str, float, float, float, float)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QVector2D)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QVector3D)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QVector4D)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QColor)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QPoint)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QPointF)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QSize)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QSizeF)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QMatrix2x2)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QMatrix2x3)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QMatrix2x4)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QMatrix3x2)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QMatrix3x3)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QMatrix3x4)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QMatrix4x2)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QMatrix4x3)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QMatrix4x4)\n"
    "QOpenGLShaderProgram.setUniformValue(str, QTransform)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_setUniformValue(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_setUniformValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        GLint a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiXi", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipCpp->setUniformValue(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        GLfloat a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiXf", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipCpp->setUniformValue(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        GLfloat a1;
        GLfloat a2;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setUniformValue(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        GLfloat a1;
        GLfloat a2;
        GLfloat a3;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bifff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setUniformValue(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        GLfloat a1;
        GLfloat a2;
        GLfloat a3;
        GLfloat a4;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biffff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setUniformValue(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QVector2D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector2D, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QVector3D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector3D, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QVector4D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QVector4D, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QColor* a1;
        int a1State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->setUniformValue(a0,*a1);
            sipReleaseType(const_cast<QColor *>(a1),sipType_QColor,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QPoint* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QPoint, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QPointF* a1;
        int a1State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QPointF, &a1, &a1State))
        {
            sipCpp->setUniformValue(a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QSize* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QSize, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QSizeF* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QSizeF, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QMatrix2x2* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix2x2, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QMatrix2x3* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix2x3, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QMatrix2x4* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix2x4, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QMatrix3x2* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix3x2, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QMatrix3x3* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix3x3, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QMatrix3x4* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix3x4, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QMatrix4x2* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix4x2, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QMatrix4x3* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix4x3, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QMatrix4x4* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QMatrix4x4, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        const QTransform* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, sipType_QTransform, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLint a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAXi", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1))
        {
            sipCpp->setUniformValue(a0,a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLfloat a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAXf", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1))
        {
            sipCpp->setUniformValue(a0,a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLfloat a1;
        GLfloat a2;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1, &a2))
        {
            sipCpp->setUniformValue(a0,a1,a2);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLfloat a1;
        GLfloat a2;
        GLfloat a3;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAfff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1, &a2, &a3))
        {
            sipCpp->setUniformValue(a0,a1,a2,a3);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        GLfloat a1;
        GLfloat a2;
        GLfloat a3;
        GLfloat a4;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAffff", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setUniformValue(a0,a1,a2,a3,a4);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QVector2D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QVector2D, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QVector3D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QVector3D, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QVector4D* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QVector4D, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QColor* a1;
        int a1State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);
            sipReleaseType(const_cast<QColor *>(a1),sipType_QColor,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QPoint* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QPoint, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QPointF* a1;
        int a1State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QPointF, &a1, &a1State))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QSize* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QSize, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QSizeF* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QSizeF, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QMatrix2x2* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QMatrix2x2, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QMatrix2x3* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QMatrix2x3, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QMatrix2x4* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QMatrix2x4, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QMatrix3x2* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QMatrix3x2, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QMatrix3x3* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QMatrix3x3, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QMatrix3x4* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QMatrix3x4, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QMatrix4x2* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QMatrix4x2, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QMatrix4x3* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QMatrix4x3, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QMatrix4x4* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QMatrix4x4, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        const QTransform* a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAJ9", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, sipType_QTransform, &a1))
        {
            sipCpp->setUniformValue(a0,*a1);
            Py_DECREF(a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_setUniformValue, doc_QOpenGLShaderProgram_setUniformValue);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_setUniformValueArray, "QOpenGLShaderProgram.setUniformValueArray(int, sequence)\n"
    "QOpenGLShaderProgram.setUniformValueArray(str, sequence)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_setUniformValueArray(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_setUniformValueArray(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        PyObject * a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiP0", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 199 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
        const void *values;
        const sipTypeDef *array_type;
        int array_len, tsize;
        
        values = qpyopengl_uniform_value_array(a1, sipSelf, SIPLong_FromLong(a0),
                    &array_type, &array_len, &tsize, &sipError);
        
        if (values)
        {
            if (array_type == sipType_QVector2D)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QVector2D *>(values), array_len);
            else if (array_type == sipType_QVector3D)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QVector3D *>(values), array_len);
            else if (array_type == sipType_QVector4D)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QVector4D *>(values), array_len);
            else if (array_type == sipType_QMatrix2x2)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix2x2 *>(values), array_len);
            else if (array_type == sipType_QMatrix2x3)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix2x3 *>(values), array_len);
            else if (array_type == sipType_QMatrix2x4)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix2x4 *>(values), array_len);
            else if (array_type == sipType_QMatrix3x2)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix3x2 *>(values), array_len);
            else if (array_type == sipType_QMatrix3x3)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix3x3 *>(values), array_len);
            else if (array_type == sipType_QMatrix3x4)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix3x4 *>(values), array_len);
            else if (array_type == sipType_QMatrix4x2)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix4x2 *>(values), array_len);
            else if (array_type == sipType_QMatrix4x3)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix4x3 *>(values), array_len);
            else if (array_type == sipType_QMatrix4x4)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix4x4 *>(values), array_len);
            else
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const GLfloat *>(values), array_len, tsize);
        }
#line 118208 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    {
        const char* a0;
        PyObject *a0Keep;
        PyObject * a1;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BAAP0", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0Keep, &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 252 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
        const void *values;
        const sipTypeDef *array_type;
        int array_len, tsize;
        
        values = qpyopengl_uniform_value_array(a1, sipSelf, SIPBytes_FromString(a0),
                    &array_type, &array_len, &tsize, &sipError);
        
        if (values)
        {
            if (array_type == sipType_QVector2D)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QVector2D *>(values), array_len);
            else if (array_type == sipType_QVector3D)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QVector3D *>(values), array_len);
            else if (array_type == sipType_QVector4D)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QVector4D *>(values), array_len);
            else if (array_type == sipType_QMatrix2x2)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix2x2 *>(values), array_len);
            else if (array_type == sipType_QMatrix2x3)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix2x3 *>(values), array_len);
            else if (array_type == sipType_QMatrix2x4)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix2x4 *>(values), array_len);
            else if (array_type == sipType_QMatrix3x2)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix3x2 *>(values), array_len);
            else if (array_type == sipType_QMatrix3x3)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix3x3 *>(values), array_len);
            else if (array_type == sipType_QMatrix3x4)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix3x4 *>(values), array_len);
            else if (array_type == sipType_QMatrix4x2)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix4x2 *>(values), array_len);
            else if (array_type == sipType_QMatrix4x3)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix4x3 *>(values), array_len);
            else if (array_type == sipType_QMatrix4x4)
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const QMatrix4x4 *>(values), array_len);
            else
                sipCpp->setUniformValueArray(a0,
                        reinterpret_cast<const GLfloat *>(values), array_len, tsize);
        }
#line 118283 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            Py_DECREF(a0Keep);

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            Py_INCREF(Py_None);
            return Py_None;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_setUniformValueArray, doc_QOpenGLShaderProgram_setUniformValueArray);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_hasOpenGLShaderPrograms, "QOpenGLShaderProgram.hasOpenGLShaderPrograms(QOpenGLContext context=None) -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_hasOpenGLShaderPrograms(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_hasOpenGLShaderPrograms(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLContext* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_context,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "|J8", sipType_QOpenGLContext, &a0))
        {
            bool sipRes;

            sipRes = QOpenGLShaderProgram::hasOpenGLShaderPrograms(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_hasOpenGLShaderPrograms, doc_QOpenGLShaderProgram_hasOpenGLShaderPrograms);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_maxGeometryOutputVertices, "QOpenGLShaderProgram.maxGeometryOutputVertices() -> int");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_maxGeometryOutputVertices(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_maxGeometryOutputVertices(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->maxGeometryOutputVertices();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_maxGeometryOutputVertices, doc_QOpenGLShaderProgram_maxGeometryOutputVertices);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_setPatchVertexCount, "QOpenGLShaderProgram.setPatchVertexCount(int)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_setPatchVertexCount(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_setPatchVertexCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, &a0))
        {
            sipCpp->setPatchVertexCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_setPatchVertexCount, doc_QOpenGLShaderProgram_setPatchVertexCount);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_patchVertexCount, "QOpenGLShaderProgram.patchVertexCount() -> int");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_patchVertexCount(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_patchVertexCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->patchVertexCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_patchVertexCount, doc_QOpenGLShaderProgram_patchVertexCount);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_setDefaultOuterTessellationLevels, "QOpenGLShaderProgram.setDefaultOuterTessellationLevels(list-of-float)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_setDefaultOuterTessellationLevels(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_setDefaultOuterTessellationLevels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector<float>* a0;
        int a0State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QVector_2200,&a0, &a0State))
        {
            sipCpp->setDefaultOuterTessellationLevels(*a0);
            sipReleaseType(const_cast<QVector<float> *>(a0),sipType_QVector_2200,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_setDefaultOuterTessellationLevels, doc_QOpenGLShaderProgram_setDefaultOuterTessellationLevels);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_defaultOuterTessellationLevels, "QOpenGLShaderProgram.defaultOuterTessellationLevels() -> list-of-float");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_defaultOuterTessellationLevels(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_defaultOuterTessellationLevels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            QVector<float>*sipRes;

            sipRes = new QVector<float>(sipCpp->defaultOuterTessellationLevels());

            return sipConvertFromNewType(sipRes,sipType_QVector_2200,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_defaultOuterTessellationLevels, doc_QOpenGLShaderProgram_defaultOuterTessellationLevels);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_setDefaultInnerTessellationLevels, "QOpenGLShaderProgram.setDefaultInnerTessellationLevels(list-of-float)");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_setDefaultInnerTessellationLevels(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_setDefaultInnerTessellationLevels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector<float>* a0;
        int a0State = 0;
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp, sipType_QVector_2200,&a0, &a0State))
        {
            sipCpp->setDefaultInnerTessellationLevels(*a0);
            sipReleaseType(const_cast<QVector<float> *>(a0),sipType_QVector_2200,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_setDefaultInnerTessellationLevels, doc_QOpenGLShaderProgram_setDefaultInnerTessellationLevels);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_defaultInnerTessellationLevels, "QOpenGLShaderProgram.defaultInnerTessellationLevels() -> list-of-float");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_defaultInnerTessellationLevels(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_defaultInnerTessellationLevels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            QVector<float>*sipRes;

            sipRes = new QVector<float>(sipCpp->defaultInnerTessellationLevels());

            return sipConvertFromNewType(sipRes,sipType_QVector_2200,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_defaultInnerTessellationLevels, doc_QOpenGLShaderProgram_defaultInnerTessellationLevels);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShaderProgram_create, "QOpenGLShaderProgram.create() -> bool");

extern "C" {static PyObject *meth_QOpenGLShaderProgram_create(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShaderProgram_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShaderProgram *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShaderProgram, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->create();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShaderProgram, sipName_create, doc_QOpenGLShaderProgram_create);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLShaderProgram(void *, const sipTypeDef *);}
static void *cast_QOpenGLShaderProgram(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLShaderProgram)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QOpenGLShaderProgram *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLShaderProgram(void *, int);}
static void release_QOpenGLShaderProgram(void *sipCppV,int)
{
    QOpenGLShaderProgram *sipCpp = reinterpret_cast<QOpenGLShaderProgram *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOpenGLShaderProgram(sipSimpleWrapper *);}
static void dealloc_QOpenGLShaderProgram(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLShaderProgram *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLShaderProgram(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLShaderProgram(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLShaderProgram(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQOpenGLShaderProgram *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQOpenGLShaderProgram(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLShaderProgram[] = {{162, 0, 1}};


static PyMethodDef methods_QOpenGLShaderProgram[] = {
    {SIP_MLNAME_CAST(sipName_addShader), meth_QOpenGLShaderProgram_addShader, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_addShader)},
    {SIP_MLNAME_CAST(sipName_addShaderFromSourceCode), meth_QOpenGLShaderProgram_addShaderFromSourceCode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_addShaderFromSourceCode)},
    {SIP_MLNAME_CAST(sipName_addShaderFromSourceFile), meth_QOpenGLShaderProgram_addShaderFromSourceFile, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_addShaderFromSourceFile)},
    {SIP_MLNAME_CAST(sipName_attributeLocation), meth_QOpenGLShaderProgram_attributeLocation, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_attributeLocation)},
    {SIP_MLNAME_CAST(sipName_bind), meth_QOpenGLShaderProgram_bind, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_bind)},
    {SIP_MLNAME_CAST(sipName_bindAttributeLocation), meth_QOpenGLShaderProgram_bindAttributeLocation, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_bindAttributeLocation)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QOpenGLShaderProgram_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QOpenGLShaderProgram_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_QOpenGLShaderProgram_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_create)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QOpenGLShaderProgram_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultInnerTessellationLevels), meth_QOpenGLShaderProgram_defaultInnerTessellationLevels, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_defaultInnerTessellationLevels)},
    {SIP_MLNAME_CAST(sipName_defaultOuterTessellationLevels), meth_QOpenGLShaderProgram_defaultOuterTessellationLevels, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_defaultOuterTessellationLevels)},
    {SIP_MLNAME_CAST(sipName_disableAttributeArray), meth_QOpenGLShaderProgram_disableAttributeArray, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_disableAttributeArray)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QOpenGLShaderProgram_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_enableAttributeArray), meth_QOpenGLShaderProgram_enableAttributeArray, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_enableAttributeArray)},
    {SIP_MLNAME_CAST(sipName_hasOpenGLShaderPrograms), (PyCFunction)meth_QOpenGLShaderProgram_hasOpenGLShaderPrograms, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_hasOpenGLShaderPrograms)},
    {SIP_MLNAME_CAST(sipName_isLinked), meth_QOpenGLShaderProgram_isLinked, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_isLinked)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QOpenGLShaderProgram_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_link), meth_QOpenGLShaderProgram_link, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_link)},
    {SIP_MLNAME_CAST(sipName_log), meth_QOpenGLShaderProgram_log, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_log)},
    {SIP_MLNAME_CAST(sipName_maxGeometryOutputVertices), meth_QOpenGLShaderProgram_maxGeometryOutputVertices, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_maxGeometryOutputVertices)},
    {SIP_MLNAME_CAST(sipName_patchVertexCount), meth_QOpenGLShaderProgram_patchVertexCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_patchVertexCount)},
    {SIP_MLNAME_CAST(sipName_programId), meth_QOpenGLShaderProgram_programId, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_programId)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QOpenGLShaderProgram_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_release), meth_QOpenGLShaderProgram_release, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_release)},
    {SIP_MLNAME_CAST(sipName_removeAllShaders), meth_QOpenGLShaderProgram_removeAllShaders, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_removeAllShaders)},
    {SIP_MLNAME_CAST(sipName_removeShader), meth_QOpenGLShaderProgram_removeShader, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_removeShader)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QOpenGLShaderProgram_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QOpenGLShaderProgram_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setAttributeArray), meth_QOpenGLShaderProgram_setAttributeArray, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_setAttributeArray)},
    {SIP_MLNAME_CAST(sipName_setAttributeBuffer), (PyCFunction)meth_QOpenGLShaderProgram_setAttributeBuffer, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_setAttributeBuffer)},
    {SIP_MLNAME_CAST(sipName_setAttributeValue), meth_QOpenGLShaderProgram_setAttributeValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_setAttributeValue)},
    {SIP_MLNAME_CAST(sipName_setDefaultInnerTessellationLevels), meth_QOpenGLShaderProgram_setDefaultInnerTessellationLevels, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_setDefaultInnerTessellationLevels)},
    {SIP_MLNAME_CAST(sipName_setDefaultOuterTessellationLevels), meth_QOpenGLShaderProgram_setDefaultOuterTessellationLevels, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_setDefaultOuterTessellationLevels)},
    {SIP_MLNAME_CAST(sipName_setPatchVertexCount), meth_QOpenGLShaderProgram_setPatchVertexCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_setPatchVertexCount)},
    {SIP_MLNAME_CAST(sipName_setUniformValue), meth_QOpenGLShaderProgram_setUniformValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_setUniformValue)},
    {SIP_MLNAME_CAST(sipName_setUniformValueArray), meth_QOpenGLShaderProgram_setUniformValueArray, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_setUniformValueArray)},
    {SIP_MLNAME_CAST(sipName_shaders), meth_QOpenGLShaderProgram_shaders, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_shaders)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QOpenGLShaderProgram_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_uniformLocation), meth_QOpenGLShaderProgram_uniformLocation, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShaderProgram_uniformLocation)}
};

PyDoc_STRVAR(doc_QOpenGLShaderProgram, "\1QOpenGLShaderProgram(QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLShaderProgram = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLShaderProgram,
        {0}
    },
    {
        sipNameNr_QOpenGLShaderProgram,
        {0, 0, 1},
        40, methods_QOpenGLShaderProgram,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLShaderProgram,
    -1,
    -1,
    supers_QOpenGLShaderProgram,
    0,
    init_type_QOpenGLShaderProgram,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLShaderProgram,
    0,
    0,
    0,
    release_QOpenGLShaderProgram,
    cast_QOpenGLShaderProgram,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOpenGLShaderProgram::staticMetaObject,
    0,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 118732 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 118736 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QOpenGLShader_ShaderType___bool__(PyObject *);}
static int slot_QOpenGLShader_ShaderType___bool__(PyObject *sipSelf)
{
    QOpenGLShader::ShaderType *sipCpp = reinterpret_cast<QOpenGLShader::ShaderType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLShader_ShaderType));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLShader::ShaderType::Int() != 0);
#line 118754 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___ne__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLShader::ShaderType *sipCpp = reinterpret_cast<QOpenGLShader::ShaderType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLShader_ShaderType));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShader::ShaderType* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLShader_ShaderType, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLShader::ShaderType::Int() != a0->operator QOpenGLShader::ShaderType::Int());
#line 118784 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLShader::ShaderType *>(a0),sipType_QOpenGLShader_ShaderType,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QOpenGLShader_ShaderType,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___eq__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLShader::ShaderType *sipCpp = reinterpret_cast<QOpenGLShader::ShaderType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLShader_ShaderType));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShader::ShaderType* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLShader_ShaderType, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLShader::ShaderType::Int() == a0->operator QOpenGLShader::ShaderType::Int());
#line 118820 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLShader::ShaderType *>(a0),sipType_QOpenGLShader_ShaderType,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLShader_ShaderType,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___invert__(PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___invert__(PyObject *sipSelf)
{
    QOpenGLShader::ShaderType *sipCpp = reinterpret_cast<QOpenGLShader::ShaderType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLShader_ShaderType));

    if (!sipCpp)
        return 0;


    {
        {
            QOpenGLShader::ShaderType*sipRes;

            sipRes = new QOpenGLShader::ShaderType(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QOpenGLShader_ShaderType,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___and__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLShader_ShaderType, &a0, &a0State, &a1))
        {
            QOpenGLShader::ShaderType*sipRes;

            sipRes = new QOpenGLShader::ShaderType((*a0 & a1));
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLShader_ShaderType,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        QOpenGLShader::ShaderType* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLShader_ShaderType, &a0, &a0State, sipType_QOpenGLShader_ShaderType, &a1, &a1State))
        {
            QOpenGLShader::ShaderType*sipRes;

            sipRes = new QOpenGLShader::ShaderType((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);
            sipReleaseType(a1,sipType_QOpenGLShader_ShaderType,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLShader_ShaderType,NULL);
        }
    }

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLShader_ShaderType, &a0, &a0State, &a1))
        {
            QOpenGLShader::ShaderType*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLShader::ShaderType(*a0 ^ a1);
#line 118923 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLShader_ShaderType,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        QOpenGLShader::ShaderType* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLShader_ShaderType, &a0, &a0State, sipType_QOpenGLShader_ShaderType, &a1, &a1State))
        {
            QOpenGLShader::ShaderType*sipRes;

            sipRes = new QOpenGLShader::ShaderType((*a0 | *a1));
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);
            sipReleaseType(a1,sipType_QOpenGLShader_ShaderType,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLShader_ShaderType,NULL);
        }
    }

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLShader_ShaderType, &a0, &a0State, &a1))
        {
            QOpenGLShader::ShaderType*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLShader::ShaderType(*a0 | a1);
#line 118973 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLShader_ShaderType,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___int__(PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___int__(PyObject *sipSelf)
{
    QOpenGLShader::ShaderType *sipCpp = reinterpret_cast<QOpenGLShader::ShaderType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLShader_ShaderType));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLShader_ShaderType)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLShader::ShaderType *sipCpp = reinterpret_cast<QOpenGLShader::ShaderType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLShader_ShaderType));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLShader_ShaderType, &a0, &a0State))
        {
            sipCpp->QOpenGLShader::ShaderType::operator^=(*a0);
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___ior__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLShader_ShaderType)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLShader::ShaderType *sipCpp = reinterpret_cast<QOpenGLShader::ShaderType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLShader_ShaderType));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLShader_ShaderType, &a0, &a0State))
        {
            sipCpp->QOpenGLShader::ShaderType::operator|=(*a0);
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLShader_ShaderType___iand__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLShader_ShaderType___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLShader_ShaderType)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLShader::ShaderType *sipCpp = reinterpret_cast<QOpenGLShader::ShaderType *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLShader_ShaderType));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QOpenGLShader::ShaderType::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLShader_ShaderType(void *, const sipTypeDef *);}
static void *cast_QOpenGLShader_ShaderType(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLShader_ShaderType)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLShader_ShaderType(void *, int);}
static void release_QOpenGLShader_ShaderType(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLShader::ShaderType *>(sipCppV);
}


extern "C" {static void assign_QOpenGLShader_ShaderType(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLShader_ShaderType(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLShader::ShaderType *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLShader::ShaderType *>(sipSrc);
}


extern "C" {static void *array_QOpenGLShader_ShaderType(SIP_SSIZE_T);}
static void *array_QOpenGLShader_ShaderType(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLShader::ShaderType[sipNrElem];
}


extern "C" {static void *copy_QOpenGLShader_ShaderType(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLShader_ShaderType(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLShader::ShaderType(reinterpret_cast<const QOpenGLShader::ShaderType *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLShader_ShaderType(sipSimpleWrapper *);}
static void dealloc_QOpenGLShader_ShaderType(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLShader_ShaderType(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLShader_ShaderType(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLShader_ShaderType(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLShader::ShaderType *sipCpp = 0;

    {
        const QOpenGLShader::ShaderType* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QOpenGLShader_ShaderType, &a0, &a0State))
        {
            sipCpp = new QOpenGLShader::ShaderType(*a0);
            sipReleaseType(const_cast<QOpenGLShader::ShaderType *>(a0),sipType_QOpenGLShader_ShaderType,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QOpenGLShader::ShaderType(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLShader::ShaderType();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QOpenGLShader_ShaderType(PyObject *, void **, int *, PyObject *);}
static int convertTo_QOpenGLShader_ShaderType(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QOpenGLShader::ShaderType **sipCppPtr = reinterpret_cast<QOpenGLShader::ShaderType **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QOpenGLShader::ShaderType is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLShader_ShaderTypeBit)) ||
            sipCanConvertToType(sipPy, sipType_QOpenGLShader_ShaderType, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLShader_ShaderTypeBit)))
{
    *sipCppPtr = new QOpenGLShader::ShaderType(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QOpenGLShader::ShaderType *>(sipConvertToType(sipPy, sipType_QOpenGLShader_ShaderType, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 119250 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLShader_ShaderType[] = {
    {(void *)slot_QOpenGLShader_ShaderType___bool__, bool_slot},
    {(void *)slot_QOpenGLShader_ShaderType___ne__, ne_slot},
    {(void *)slot_QOpenGLShader_ShaderType___eq__, eq_slot},
    {(void *)slot_QOpenGLShader_ShaderType___invert__, invert_slot},
    {(void *)slot_QOpenGLShader_ShaderType___and__, and_slot},
    {(void *)slot_QOpenGLShader_ShaderType___xor__, xor_slot},
    {(void *)slot_QOpenGLShader_ShaderType___or__, or_slot},
    {(void *)slot_QOpenGLShader_ShaderType___int__, int_slot},
    {(void *)slot_QOpenGLShader_ShaderType___ixor__, ixor_slot},
    {(void *)slot_QOpenGLShader_ShaderType___ior__, ior_slot},
    {(void *)slot_QOpenGLShader_ShaderType___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLShader_ShaderType, "\1QOpenGLShader.ShaderType(QOpenGLShader.ShaderType)\n"
    "QOpenGLShader.ShaderType(int)\n"
    "QOpenGLShader.ShaderType()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLShader_ShaderType = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLShader__ShaderType,
        {0}
    },
    {
        sipNameNr_ShaderType,
        {144, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLShader_ShaderType,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLShader_ShaderType,
    init_type_QOpenGLShader_ShaderType,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLShader_ShaderType,
    assign_QOpenGLShader_ShaderType,
    array_QOpenGLShader_ShaderType,
    copy_QOpenGLShader_ShaderType,
    release_QOpenGLShader_ShaderType,
    cast_QOpenGLShader_ShaderType,
    convertTo_QOpenGLShader_ShaderType,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 119332 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglshaderprogram.sip"
#include <qopenglshaderprogram.h>
#line 119336 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 119339 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 119342 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 119345 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 119348 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 119351 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 119354 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 119357 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 119360 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 119363 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 119366 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 119369 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 119372 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 119375 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 119378 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 119381 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 119384 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 119387 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLShader : public QOpenGLShader
{
public:
    sipQOpenGLShader(QOpenGLShader::ShaderType,QObject*);
    virtual ~sipQOpenGLShader();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLShader(const sipQOpenGLShader &);
    sipQOpenGLShader &operator = (const sipQOpenGLShader &);

    char sipPyMethods[7];
};

sipQOpenGLShader::sipQOpenGLShader(QOpenGLShader::ShaderType a0,QObject*a1): QOpenGLShader(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLShader::~sipQOpenGLShader()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQOpenGLShader::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLShader);
}

int sipQOpenGLShader::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QOpenGLShader::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QOpenGLShader,_c,_id,_a);

    return _id;
}

void *sipQOpenGLShader::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QOpenGLShader, _clname, &sipCpp) ? sipCpp : QOpenGLShader::qt_metacast(_clname));
}

void sipQOpenGLShader::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QOpenGLShader::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLShader::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QOpenGLShader::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLShader::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QOpenGLShader::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLShader::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QOpenGLShader::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLShader::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QOpenGLShader::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOpenGLShader::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QOpenGLShader::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQOpenGLShader::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QOpenGLShader::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQOpenGLShader::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQOpenGLShader::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQOpenGLShader::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQOpenGLShader::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQOpenGLShader::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQOpenGLShader::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQOpenGLShader::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQOpenGLShader::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQOpenGLShader::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QOpenGLShader_sender, "QOpenGLShader.sender() -> QObject");

extern "C" {static PyObject *meth_QOpenGLShader_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLShader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLShader, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 119675 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_sender, doc_QOpenGLShader_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_receivers, "QOpenGLShader.receivers(signal) -> int");

extern "C" {static PyObject *meth_QOpenGLShader_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQOpenGLShader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QOpenGLShader, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 119734 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_receivers, doc_QOpenGLShader_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_timerEvent, "QOpenGLShader.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QOpenGLShader_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQOpenGLShader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLShader, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_timerEvent, doc_QOpenGLShader_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_childEvent, "QOpenGLShader.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QOpenGLShader_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQOpenGLShader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLShader, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_childEvent, doc_QOpenGLShader_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_customEvent, "QOpenGLShader.customEvent(QEvent)");

extern "C" {static PyObject *meth_QOpenGLShader_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOpenGLShader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLShader, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_customEvent, doc_QOpenGLShader_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_connectNotify, "QOpenGLShader.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLShader_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLShader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLShader, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_connectNotify, doc_QOpenGLShader_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_disconnectNotify, "QOpenGLShader.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLShader_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLShader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLShader, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_disconnectNotify, doc_QOpenGLShader_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_senderSignalIndex, "QOpenGLShader.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QOpenGLShader_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLShader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLShader, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_senderSignalIndex, doc_QOpenGLShader_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_isSignalConnected, "QOpenGLShader.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QOpenGLShader_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQOpenGLShader *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLShader, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_isSignalConnected, doc_QOpenGLShader_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_shaderType, "QOpenGLShader.shaderType() -> QOpenGLShader.ShaderType");

extern "C" {static PyObject *meth_QOpenGLShader_shaderType(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_shaderType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShader, &sipCpp))
        {
            QOpenGLShader::ShaderType*sipRes;

            sipRes = new QOpenGLShader::ShaderType(sipCpp->shaderType());

            return sipConvertFromNewType(sipRes,sipType_QOpenGLShader_ShaderType,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_shaderType, doc_QOpenGLShader_shaderType);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_compileSourceCode, "QOpenGLShader.compileSourceCode(QByteArray) -> bool\n"
    "QOpenGLShader.compileSourceCode(str) -> bool");

extern "C" {static PyObject *meth_QOpenGLShader_compileSourceCode(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_compileSourceCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QOpenGLShader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLShader, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->compileSourceCode(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QOpenGLShader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLShader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->compileSourceCode(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_compileSourceCode, doc_QOpenGLShader_compileSourceCode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_compileSourceFile, "QOpenGLShader.compileSourceFile(str) -> bool");

extern "C" {static PyObject *meth_QOpenGLShader_compileSourceFile(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_compileSourceFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QOpenGLShader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLShader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->compileSourceFile(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_compileSourceFile, doc_QOpenGLShader_compileSourceFile);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_sourceCode, "QOpenGLShader.sourceCode() -> QByteArray");

extern "C" {static PyObject *meth_QOpenGLShader_sourceCode(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_sourceCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShader, &sipCpp))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(sipCpp->sourceCode());

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_sourceCode, doc_QOpenGLShader_sourceCode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_isCompiled, "QOpenGLShader.isCompiled() -> bool");

extern "C" {static PyObject *meth_QOpenGLShader_isCompiled(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_isCompiled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShader, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCompiled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_isCompiled, doc_QOpenGLShader_isCompiled);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_log, "QOpenGLShader.log() -> str");

extern "C" {static PyObject *meth_QOpenGLShader_log(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_log(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShader, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->log());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_log, doc_QOpenGLShader_log);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_shaderId, "QOpenGLShader.shaderId() -> int");

extern "C" {static PyObject *meth_QOpenGLShader_shaderId(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_shaderId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLShader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLShader, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->shaderId();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_shaderId, doc_QOpenGLShader_shaderId);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLShader_hasOpenGLShaders, "QOpenGLShader.hasOpenGLShaders(QOpenGLShader.ShaderType, QOpenGLContext context=None) -> bool");

extern "C" {static PyObject *meth_QOpenGLShader_hasOpenGLShaders(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLShader_hasOpenGLShaders(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        QOpenGLContext* a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_context,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|J8", sipType_QOpenGLShader_ShaderType, &a0, &a0State, sipType_QOpenGLContext, &a1))
        {
            bool sipRes;

            sipRes = QOpenGLShader::hasOpenGLShaders(*a0,a1);
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLShader, sipName_hasOpenGLShaders, doc_QOpenGLShader_hasOpenGLShaders);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLShader(void *, const sipTypeDef *);}
static void *cast_QOpenGLShader(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLShader)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QOpenGLShader *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLShader(void *, int);}
static void release_QOpenGLShader(void *sipCppV,int)
{
    QOpenGLShader *sipCpp = reinterpret_cast<QOpenGLShader *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOpenGLShader(sipSimpleWrapper *);}
static void dealloc_QOpenGLShader(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLShader *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLShader(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLShader(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLShader(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQOpenGLShader *sipCpp = 0;

    {
        QOpenGLShader::ShaderType* a0;
        int a0State = 0;
        QObject* a1 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|JH", sipType_QOpenGLShader_ShaderType, &a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipQOpenGLShader(*a0,a1);
            sipReleaseType(a0,sipType_QOpenGLShader_ShaderType,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLShader[] = {{162, 0, 1}};


static PyMethodDef methods_QOpenGLShader[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QOpenGLShader_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_compileSourceCode), meth_QOpenGLShader_compileSourceCode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShader_compileSourceCode)},
    {SIP_MLNAME_CAST(sipName_compileSourceFile), meth_QOpenGLShader_compileSourceFile, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShader_compileSourceFile)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QOpenGLShader_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QOpenGLShader_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QOpenGLShader_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_hasOpenGLShaders), (PyCFunction)meth_QOpenGLShader_hasOpenGLShaders, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLShader_hasOpenGLShaders)},
    {SIP_MLNAME_CAST(sipName_isCompiled), meth_QOpenGLShader_isCompiled, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShader_isCompiled)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QOpenGLShader_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_log), meth_QOpenGLShader_log, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShader_log)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QOpenGLShader_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QOpenGLShader_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QOpenGLShader_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_shaderId), meth_QOpenGLShader_shaderId, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShader_shaderId)},
    {SIP_MLNAME_CAST(sipName_shaderType), meth_QOpenGLShader_shaderType, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShader_shaderType)},
    {SIP_MLNAME_CAST(sipName_sourceCode), meth_QOpenGLShader_sourceCode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLShader_sourceCode)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QOpenGLShader_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_QOpenGLShader[] = {
    {sipName_Compute, static_cast<int>(QOpenGLShader::Compute), 146},
    {sipName_Fragment, static_cast<int>(QOpenGLShader::Fragment), 146},
    {sipName_Geometry, static_cast<int>(QOpenGLShader::Geometry), 146},
    {sipName_TessellationControl, static_cast<int>(QOpenGLShader::TessellationControl), 146},
    {sipName_TessellationEvaluation, static_cast<int>(QOpenGLShader::TessellationEvaluation), 146},
    {sipName_Vertex, static_cast<int>(QOpenGLShader::Vertex), 146},
};

PyDoc_STRVAR(doc_QOpenGLShader, "\1QOpenGLShader(QOpenGLShader.ShaderType, QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLShader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLShader,
        {0}
    },
    {
        sipNameNr_QOpenGLShader,
        {0, 0, 1},
        17, methods_QOpenGLShader,
        6, enummembers_QOpenGLShader,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLShader,
    -1,
    -1,
    supers_QOpenGLShader,
    0,
    init_type_QOpenGLShader,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLShader,
    0,
    0,
    0,
    release_QOpenGLShader,
    cast_QOpenGLShader,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOpenGLShader::staticMetaObject,
    0,
    0,
    0
};

#line 29 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglpixeltransferoptions.sip"
#include <qopenglpixeltransferoptions.h>
#line 120362 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_swap, "QOpenGLPixelTransferOptions.swap(QOpenGLPixelTransferOptions)");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_swap(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLPixelTransferOptions* a0;
        QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp, sipType_QOpenGLPixelTransferOptions, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_swap, doc_QOpenGLPixelTransferOptions_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_setAlignment, "QOpenGLPixelTransferOptions.setAlignment(int)");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_setAlignment(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_setAlignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp, &a0))
        {
            sipCpp->setAlignment(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_setAlignment, doc_QOpenGLPixelTransferOptions_setAlignment);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_alignment, "QOpenGLPixelTransferOptions.alignment() -> int");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_alignment(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_alignment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->alignment();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_alignment, doc_QOpenGLPixelTransferOptions_alignment);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_setSkipImages, "QOpenGLPixelTransferOptions.setSkipImages(int)");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_setSkipImages(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_setSkipImages(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp, &a0))
        {
            sipCpp->setSkipImages(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_setSkipImages, doc_QOpenGLPixelTransferOptions_setSkipImages);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_skipImages, "QOpenGLPixelTransferOptions.skipImages() -> int");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_skipImages(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_skipImages(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->skipImages();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_skipImages, doc_QOpenGLPixelTransferOptions_skipImages);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_setSkipRows, "QOpenGLPixelTransferOptions.setSkipRows(int)");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_setSkipRows(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_setSkipRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp, &a0))
        {
            sipCpp->setSkipRows(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_setSkipRows, doc_QOpenGLPixelTransferOptions_setSkipRows);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_skipRows, "QOpenGLPixelTransferOptions.skipRows() -> int");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_skipRows(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_skipRows(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->skipRows();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_skipRows, doc_QOpenGLPixelTransferOptions_skipRows);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_setSkipPixels, "QOpenGLPixelTransferOptions.setSkipPixels(int)");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_setSkipPixels(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_setSkipPixels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp, &a0))
        {
            sipCpp->setSkipPixels(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_setSkipPixels, doc_QOpenGLPixelTransferOptions_setSkipPixels);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_skipPixels, "QOpenGLPixelTransferOptions.skipPixels() -> int");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_skipPixels(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_skipPixels(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->skipPixels();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_skipPixels, doc_QOpenGLPixelTransferOptions_skipPixels);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_setImageHeight, "QOpenGLPixelTransferOptions.setImageHeight(int)");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_setImageHeight(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_setImageHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp, &a0))
        {
            sipCpp->setImageHeight(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_setImageHeight, doc_QOpenGLPixelTransferOptions_setImageHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_imageHeight, "QOpenGLPixelTransferOptions.imageHeight() -> int");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_imageHeight(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_imageHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->imageHeight();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_imageHeight, doc_QOpenGLPixelTransferOptions_imageHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_setRowLength, "QOpenGLPixelTransferOptions.setRowLength(int)");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_setRowLength(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_setRowLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp, &a0))
        {
            sipCpp->setRowLength(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_setRowLength, doc_QOpenGLPixelTransferOptions_setRowLength);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_rowLength, "QOpenGLPixelTransferOptions.rowLength() -> int");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_rowLength(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_rowLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->rowLength();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_rowLength, doc_QOpenGLPixelTransferOptions_rowLength);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_setLeastSignificantByteFirst, "QOpenGLPixelTransferOptions.setLeastSignificantByteFirst(bool)");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_setLeastSignificantByteFirst(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_setLeastSignificantByteFirst(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp, &a0))
        {
            sipCpp->setLeastSignificantByteFirst(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_setLeastSignificantByteFirst, doc_QOpenGLPixelTransferOptions_setLeastSignificantByteFirst);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_isLeastSignificantBitFirst, "QOpenGLPixelTransferOptions.isLeastSignificantBitFirst() -> bool");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_isLeastSignificantBitFirst(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_isLeastSignificantBitFirst(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isLeastSignificantBitFirst();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_isLeastSignificantBitFirst, doc_QOpenGLPixelTransferOptions_isLeastSignificantBitFirst);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_setSwapBytesEnabled, "QOpenGLPixelTransferOptions.setSwapBytesEnabled(bool)");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_setSwapBytesEnabled(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_setSwapBytesEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp, &a0))
        {
            sipCpp->setSwapBytesEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_setSwapBytesEnabled, doc_QOpenGLPixelTransferOptions_setSwapBytesEnabled);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions_isSwapBytesEnabled, "QOpenGLPixelTransferOptions.isSwapBytesEnabled() -> bool");

extern "C" {static PyObject *meth_QOpenGLPixelTransferOptions_isSwapBytesEnabled(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPixelTransferOptions_isSwapBytesEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPixelTransferOptions *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPixelTransferOptions, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isSwapBytesEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPixelTransferOptions, sipName_isSwapBytesEnabled, doc_QOpenGLPixelTransferOptions_isSwapBytesEnabled);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLPixelTransferOptions(void *, const sipTypeDef *);}
static void *cast_QOpenGLPixelTransferOptions(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLPixelTransferOptions)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLPixelTransferOptions(void *, int);}
static void release_QOpenGLPixelTransferOptions(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLPixelTransferOptions *>(sipCppV);
}


extern "C" {static void assign_QOpenGLPixelTransferOptions(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLPixelTransferOptions(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLPixelTransferOptions *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLPixelTransferOptions *>(sipSrc);
}


extern "C" {static void *array_QOpenGLPixelTransferOptions(SIP_SSIZE_T);}
static void *array_QOpenGLPixelTransferOptions(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLPixelTransferOptions[sipNrElem];
}


extern "C" {static void *copy_QOpenGLPixelTransferOptions(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLPixelTransferOptions(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLPixelTransferOptions(reinterpret_cast<const QOpenGLPixelTransferOptions *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLPixelTransferOptions(sipSimpleWrapper *);}
static void dealloc_QOpenGLPixelTransferOptions(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLPixelTransferOptions(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLPixelTransferOptions(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLPixelTransferOptions(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLPixelTransferOptions *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLPixelTransferOptions();

            return sipCpp;
        }
    }

    {
        const QOpenGLPixelTransferOptions* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QOpenGLPixelTransferOptions, &a0))
        {
            sipCpp = new QOpenGLPixelTransferOptions(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QOpenGLPixelTransferOptions[] = {
    {SIP_MLNAME_CAST(sipName_alignment), meth_QOpenGLPixelTransferOptions_alignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_alignment)},
    {SIP_MLNAME_CAST(sipName_imageHeight), meth_QOpenGLPixelTransferOptions_imageHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_imageHeight)},
    {SIP_MLNAME_CAST(sipName_isLeastSignificantBitFirst), meth_QOpenGLPixelTransferOptions_isLeastSignificantBitFirst, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_isLeastSignificantBitFirst)},
    {SIP_MLNAME_CAST(sipName_isSwapBytesEnabled), meth_QOpenGLPixelTransferOptions_isSwapBytesEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_isSwapBytesEnabled)},
    {SIP_MLNAME_CAST(sipName_rowLength), meth_QOpenGLPixelTransferOptions_rowLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_rowLength)},
    {SIP_MLNAME_CAST(sipName_setAlignment), meth_QOpenGLPixelTransferOptions_setAlignment, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_setAlignment)},
    {SIP_MLNAME_CAST(sipName_setImageHeight), meth_QOpenGLPixelTransferOptions_setImageHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_setImageHeight)},
    {SIP_MLNAME_CAST(sipName_setLeastSignificantByteFirst), meth_QOpenGLPixelTransferOptions_setLeastSignificantByteFirst, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_setLeastSignificantByteFirst)},
    {SIP_MLNAME_CAST(sipName_setRowLength), meth_QOpenGLPixelTransferOptions_setRowLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_setRowLength)},
    {SIP_MLNAME_CAST(sipName_setSkipImages), meth_QOpenGLPixelTransferOptions_setSkipImages, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_setSkipImages)},
    {SIP_MLNAME_CAST(sipName_setSkipPixels), meth_QOpenGLPixelTransferOptions_setSkipPixels, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_setSkipPixels)},
    {SIP_MLNAME_CAST(sipName_setSkipRows), meth_QOpenGLPixelTransferOptions_setSkipRows, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_setSkipRows)},
    {SIP_MLNAME_CAST(sipName_setSwapBytesEnabled), meth_QOpenGLPixelTransferOptions_setSwapBytesEnabled, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_setSwapBytesEnabled)},
    {SIP_MLNAME_CAST(sipName_skipImages), meth_QOpenGLPixelTransferOptions_skipImages, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_skipImages)},
    {SIP_MLNAME_CAST(sipName_skipPixels), meth_QOpenGLPixelTransferOptions_skipPixels, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_skipPixels)},
    {SIP_MLNAME_CAST(sipName_skipRows), meth_QOpenGLPixelTransferOptions_skipRows, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_skipRows)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QOpenGLPixelTransferOptions_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPixelTransferOptions_swap)}
};

PyDoc_STRVAR(doc_QOpenGLPixelTransferOptions, "\1QOpenGLPixelTransferOptions()\n"
    "QOpenGLPixelTransferOptions(QOpenGLPixelTransferOptions)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLPixelTransferOptions = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLPixelTransferOptions,
        {0}
    },
    {
        sipNameNr_QOpenGLPixelTransferOptions,
        {0, 0, 1},
        17, methods_QOpenGLPixelTransferOptions,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLPixelTransferOptions,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QOpenGLPixelTransferOptions,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLPixelTransferOptions,
    assign_QOpenGLPixelTransferOptions,
    array_QOpenGLPixelTransferOptions,
    copy_QOpenGLPixelTransferOptions,
    release_QOpenGLPixelTransferOptions,
    cast_QOpenGLPixelTransferOptions,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglpaintdevice.sip"
#include <qopenglpaintdevice.h>
#line 120985 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 120989 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 120992 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 120995 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 120998 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLPaintDevice : public QOpenGLPaintDevice
{
public:
    sipQOpenGLPaintDevice();
    sipQOpenGLPaintDevice(const QSize&);
    sipQOpenGLPaintDevice(int,int);
    virtual ~sipQOpenGLPaintDevice();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int metric(QPaintDevice::PaintDeviceMetric) const;
    void ensureActiveTarget();
    QPaintEngine* paintEngine() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLPaintDevice(const sipQOpenGLPaintDevice &);
    sipQOpenGLPaintDevice &operator = (const sipQOpenGLPaintDevice &);

    char sipPyMethods[3];
};

sipQOpenGLPaintDevice::sipQOpenGLPaintDevice(): QOpenGLPaintDevice(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLPaintDevice::sipQOpenGLPaintDevice(const QSize& a0): QOpenGLPaintDevice(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLPaintDevice::sipQOpenGLPaintDevice(int a0,int a1): QOpenGLPaintDevice(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLPaintDevice::~sipQOpenGLPaintDevice()
{
    sipCommonDtor(sipPySelf);
}

int sipQOpenGLPaintDevice::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QOpenGLPaintDevice::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLPaintDevice::ensureActiveTarget()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_ensureActiveTarget);

    if (!sipMeth)
    {
        QOpenGLPaintDevice::ensureActiveTarget();
        return;
    }

    typedef void (*sipVH_QtCore_11)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    ((sipVH_QtCore_11)(sipModuleAPI_QtGui_QtCore->em_virthandlers[11]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QPaintEngine* sipQOpenGLPaintDevice::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QOpenGLPaintDevice::paintEngine();

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQOpenGLPaintDevice::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QOpenGLPaintDevice::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_paintEngine, "QOpenGLPaintDevice.paintEngine() -> QPaintEngine");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_paintEngine(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_paintEngine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp))
        {
            QPaintEngine*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QOpenGLPaintDevice::paintEngine() : sipCpp->paintEngine());

            return sipConvertFromType(sipRes,sipType_QPaintEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_paintEngine, doc_QOpenGLPaintDevice_paintEngine);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_context, "QOpenGLPaintDevice.context() -> QOpenGLContext");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_context(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_context(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp))
        {
            QOpenGLContext*sipRes;

            sipRes = sipCpp->context();

            return sipConvertFromType(sipRes,sipType_QOpenGLContext,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_context, doc_QOpenGLPaintDevice_context);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_size, "QOpenGLPaintDevice.size() -> QSize");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_size(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_size, doc_QOpenGLPaintDevice_size);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_setSize, "QOpenGLPaintDevice.setSize(QSize)");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_setSize(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_setSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->setSize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_setSize, doc_QOpenGLPaintDevice_setSize);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_dotsPerMeterX, "QOpenGLPaintDevice.dotsPerMeterX() -> float");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_dotsPerMeterX(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_dotsPerMeterX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->dotsPerMeterX();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_dotsPerMeterX, doc_QOpenGLPaintDevice_dotsPerMeterX);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_dotsPerMeterY, "QOpenGLPaintDevice.dotsPerMeterY() -> float");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_dotsPerMeterY(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_dotsPerMeterY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->dotsPerMeterY();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_dotsPerMeterY, doc_QOpenGLPaintDevice_dotsPerMeterY);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_setDotsPerMeterX, "QOpenGLPaintDevice.setDotsPerMeterX(float)");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_setDotsPerMeterX(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_setDotsPerMeterX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp, &a0))
        {
            sipCpp->setDotsPerMeterX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_setDotsPerMeterX, doc_QOpenGLPaintDevice_setDotsPerMeterX);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_setDotsPerMeterY, "QOpenGLPaintDevice.setDotsPerMeterY(float)");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_setDotsPerMeterY(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_setDotsPerMeterY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp, &a0))
        {
            sipCpp->setDotsPerMeterY(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_setDotsPerMeterY, doc_QOpenGLPaintDevice_setDotsPerMeterY);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_setPaintFlipped, "QOpenGLPaintDevice.setPaintFlipped(bool)");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_setPaintFlipped(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_setPaintFlipped(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp, &a0))
        {
            sipCpp->setPaintFlipped(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_setPaintFlipped, doc_QOpenGLPaintDevice_setPaintFlipped);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_paintFlipped, "QOpenGLPaintDevice.paintFlipped() -> bool");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_paintFlipped(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_paintFlipped(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->paintFlipped();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_paintFlipped, doc_QOpenGLPaintDevice_paintFlipped);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_ensureActiveTarget, "QOpenGLPaintDevice.ensureActiveTarget()");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_ensureActiveTarget(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_ensureActiveTarget(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp))
        {
            (sipSelfWasArg ? sipCpp->QOpenGLPaintDevice::ensureActiveTarget() : sipCpp->ensureActiveTarget());

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_ensureActiveTarget, doc_QOpenGLPaintDevice_ensureActiveTarget);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_setDevicePixelRatio, "QOpenGLPaintDevice.setDevicePixelRatio(float)");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_setDevicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_setDevicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QOpenGLPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp, &a0))
        {
            sipCpp->setDevicePixelRatio(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_setDevicePixelRatio, doc_QOpenGLPaintDevice_setDevicePixelRatio);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLPaintDevice_metric, "QOpenGLPaintDevice.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QOpenGLPaintDevice_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLPaintDevice_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQOpenGLPaintDevice *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QOpenGLPaintDevice, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLPaintDevice, sipName_metric, doc_QOpenGLPaintDevice_metric);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLPaintDevice(void *, const sipTypeDef *);}
static void *cast_QOpenGLPaintDevice(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLPaintDevice)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPaintDevice)->ctd_cast((QPaintDevice *)(QOpenGLPaintDevice *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLPaintDevice(void *, int);}
static void release_QOpenGLPaintDevice(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQOpenGLPaintDevice *>(sipCppV);
    else
        delete reinterpret_cast<QOpenGLPaintDevice *>(sipCppV);
}


extern "C" {static void dealloc_QOpenGLPaintDevice(sipSimpleWrapper *);}
static void dealloc_QOpenGLPaintDevice(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLPaintDevice *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLPaintDevice(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLPaintDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLPaintDevice(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQOpenGLPaintDevice *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQOpenGLPaintDevice();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QSize* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSize, &a0))
        {
            sipCpp = new sipQOpenGLPaintDevice(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ii", &a0, &a1))
        {
            sipCpp = new sipQOpenGLPaintDevice(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLPaintDevice[] = {{183, 255, 1}};


static PyMethodDef methods_QOpenGLPaintDevice[] = {
    {SIP_MLNAME_CAST(sipName_context), meth_QOpenGLPaintDevice_context, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_context)},
    {SIP_MLNAME_CAST(sipName_dotsPerMeterX), meth_QOpenGLPaintDevice_dotsPerMeterX, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_dotsPerMeterX)},
    {SIP_MLNAME_CAST(sipName_dotsPerMeterY), meth_QOpenGLPaintDevice_dotsPerMeterY, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_dotsPerMeterY)},
    {SIP_MLNAME_CAST(sipName_ensureActiveTarget), meth_QOpenGLPaintDevice_ensureActiveTarget, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_ensureActiveTarget)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QOpenGLPaintDevice_metric, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_metric)},
    {SIP_MLNAME_CAST(sipName_paintEngine), meth_QOpenGLPaintDevice_paintEngine, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_paintEngine)},
    {SIP_MLNAME_CAST(sipName_paintFlipped), meth_QOpenGLPaintDevice_paintFlipped, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_paintFlipped)},
    {SIP_MLNAME_CAST(sipName_setDevicePixelRatio), meth_QOpenGLPaintDevice_setDevicePixelRatio, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_setDevicePixelRatio)},
    {SIP_MLNAME_CAST(sipName_setDotsPerMeterX), meth_QOpenGLPaintDevice_setDotsPerMeterX, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_setDotsPerMeterX)},
    {SIP_MLNAME_CAST(sipName_setDotsPerMeterY), meth_QOpenGLPaintDevice_setDotsPerMeterY, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_setDotsPerMeterY)},
    {SIP_MLNAME_CAST(sipName_setPaintFlipped), meth_QOpenGLPaintDevice_setPaintFlipped, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_setPaintFlipped)},
    {SIP_MLNAME_CAST(sipName_setSize), meth_QOpenGLPaintDevice_setSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_setSize)},
    {SIP_MLNAME_CAST(sipName_size), meth_QOpenGLPaintDevice_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLPaintDevice_size)}
};

PyDoc_STRVAR(doc_QOpenGLPaintDevice, "\1QOpenGLPaintDevice()\n"
    "QOpenGLPaintDevice(QSize)\n"
    "QOpenGLPaintDevice(int, int)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLPaintDevice = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLPaintDevice,
        {0}
    },
    {
        sipNameNr_QOpenGLPaintDevice,
        {0, 0, 1},
        13, methods_QOpenGLPaintDevice,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLPaintDevice,
    -1,
    -1,
    supers_QOpenGLPaintDevice,
    0,
    init_type_QOpenGLPaintDevice,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLPaintDevice,
    0,
    0,
    0,
    release_QOpenGLPaintDevice,
    cast_QOpenGLPaintDevice,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 90 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 121631 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 121635 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_setSamples, "QOpenGLFramebufferObjectFormat.setSamples(int)");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_setSamples(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_setSamples(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp, &a0))
        {
            sipCpp->setSamples(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_setSamples, doc_QOpenGLFramebufferObjectFormat_setSamples);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_samples, "QOpenGLFramebufferObjectFormat.samples() -> int");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_samples(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_samples(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->samples();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_samples, doc_QOpenGLFramebufferObjectFormat_samples);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_setMipmap, "QOpenGLFramebufferObjectFormat.setMipmap(bool)");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_setMipmap(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_setMipmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp, &a0))
        {
            sipCpp->setMipmap(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_setMipmap, doc_QOpenGLFramebufferObjectFormat_setMipmap);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_mipmap, "QOpenGLFramebufferObjectFormat.mipmap() -> bool");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_mipmap(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_mipmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->mipmap();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_mipmap, doc_QOpenGLFramebufferObjectFormat_mipmap);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_setAttachment, "QOpenGLFramebufferObjectFormat.setAttachment(QOpenGLFramebufferObject.Attachment)");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_setAttachment(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_setAttachment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLFramebufferObject::Attachment a0;
        QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp, sipType_QOpenGLFramebufferObject_Attachment, &a0))
        {
            sipCpp->setAttachment(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_setAttachment, doc_QOpenGLFramebufferObjectFormat_setAttachment);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_attachment, "QOpenGLFramebufferObjectFormat.attachment() -> QOpenGLFramebufferObject.Attachment");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_attachment(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_attachment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp))
        {
            QOpenGLFramebufferObject::Attachment sipRes;

            sipRes = sipCpp->attachment();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLFramebufferObject_Attachment);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_attachment, doc_QOpenGLFramebufferObjectFormat_attachment);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_setTextureTarget, "QOpenGLFramebufferObjectFormat.setTextureTarget(int)");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_setTextureTarget(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_setTextureTarget(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        GLenum a0;
        QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp, &a0))
        {
            sipCpp->setTextureTarget(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_setTextureTarget, doc_QOpenGLFramebufferObjectFormat_setTextureTarget);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_textureTarget, "QOpenGLFramebufferObjectFormat.textureTarget() -> int");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_textureTarget(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_textureTarget(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp))
        {
            GLenum sipRes;

            sipRes = sipCpp->textureTarget();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_textureTarget, doc_QOpenGLFramebufferObjectFormat_textureTarget);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_setInternalTextureFormat, "QOpenGLFramebufferObjectFormat.setInternalTextureFormat(int)");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_setInternalTextureFormat(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_setInternalTextureFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        GLenum a0;
        QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp, &a0))
        {
            sipCpp->setInternalTextureFormat(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_setInternalTextureFormat, doc_QOpenGLFramebufferObjectFormat_setInternalTextureFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat_internalTextureFormat, "QOpenGLFramebufferObjectFormat.internalTextureFormat() -> int");

extern "C" {static PyObject *meth_QOpenGLFramebufferObjectFormat_internalTextureFormat(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObjectFormat_internalTextureFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObjectFormat *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObjectFormat, &sipCpp))
        {
            GLenum sipRes;

            sipRes = sipCpp->internalTextureFormat();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObjectFormat, sipName_internalTextureFormat, doc_QOpenGLFramebufferObjectFormat_internalTextureFormat);

    return NULL;
}


extern "C" {static PyObject *slot_QOpenGLFramebufferObjectFormat___ne__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLFramebufferObjectFormat___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLFramebufferObjectFormat *sipCpp = reinterpret_cast<QOpenGLFramebufferObjectFormat *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLFramebufferObjectFormat));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObjectFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QOpenGLFramebufferObjectFormat, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QOpenGLFramebufferObjectFormat::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QOpenGLFramebufferObjectFormat,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLFramebufferObjectFormat___eq__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLFramebufferObjectFormat___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLFramebufferObjectFormat *sipCpp = reinterpret_cast<QOpenGLFramebufferObjectFormat *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLFramebufferObjectFormat));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObjectFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QOpenGLFramebufferObjectFormat, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QOpenGLFramebufferObjectFormat::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLFramebufferObjectFormat,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLFramebufferObjectFormat(void *, const sipTypeDef *);}
static void *cast_QOpenGLFramebufferObjectFormat(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLFramebufferObjectFormat)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLFramebufferObjectFormat(void *, int);}
static void release_QOpenGLFramebufferObjectFormat(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLFramebufferObjectFormat *>(sipCppV);
}


extern "C" {static void assign_QOpenGLFramebufferObjectFormat(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLFramebufferObjectFormat(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLFramebufferObjectFormat *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLFramebufferObjectFormat *>(sipSrc);
}


extern "C" {static void *array_QOpenGLFramebufferObjectFormat(SIP_SSIZE_T);}
static void *array_QOpenGLFramebufferObjectFormat(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLFramebufferObjectFormat[sipNrElem];
}


extern "C" {static void *copy_QOpenGLFramebufferObjectFormat(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLFramebufferObjectFormat(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLFramebufferObjectFormat(reinterpret_cast<const QOpenGLFramebufferObjectFormat *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLFramebufferObjectFormat(sipSimpleWrapper *);}
static void dealloc_QOpenGLFramebufferObjectFormat(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLFramebufferObjectFormat(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLFramebufferObjectFormat(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLFramebufferObjectFormat(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLFramebufferObjectFormat *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLFramebufferObjectFormat();

            return sipCpp;
        }
    }

    {
        const QOpenGLFramebufferObjectFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QOpenGLFramebufferObjectFormat, &a0))
        {
            sipCpp = new QOpenGLFramebufferObjectFormat(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLFramebufferObjectFormat[] = {
    {(void *)slot_QOpenGLFramebufferObjectFormat___ne__, ne_slot},
    {(void *)slot_QOpenGLFramebufferObjectFormat___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QOpenGLFramebufferObjectFormat[] = {
    {SIP_MLNAME_CAST(sipName_attachment), meth_QOpenGLFramebufferObjectFormat_attachment, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_attachment)},
    {SIP_MLNAME_CAST(sipName_internalTextureFormat), meth_QOpenGLFramebufferObjectFormat_internalTextureFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_internalTextureFormat)},
    {SIP_MLNAME_CAST(sipName_mipmap), meth_QOpenGLFramebufferObjectFormat_mipmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_mipmap)},
    {SIP_MLNAME_CAST(sipName_samples), meth_QOpenGLFramebufferObjectFormat_samples, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_samples)},
    {SIP_MLNAME_CAST(sipName_setAttachment), meth_QOpenGLFramebufferObjectFormat_setAttachment, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_setAttachment)},
    {SIP_MLNAME_CAST(sipName_setInternalTextureFormat), meth_QOpenGLFramebufferObjectFormat_setInternalTextureFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_setInternalTextureFormat)},
    {SIP_MLNAME_CAST(sipName_setMipmap), meth_QOpenGLFramebufferObjectFormat_setMipmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_setMipmap)},
    {SIP_MLNAME_CAST(sipName_setSamples), meth_QOpenGLFramebufferObjectFormat_setSamples, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_setSamples)},
    {SIP_MLNAME_CAST(sipName_setTextureTarget), meth_QOpenGLFramebufferObjectFormat_setTextureTarget, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_setTextureTarget)},
    {SIP_MLNAME_CAST(sipName_textureTarget), meth_QOpenGLFramebufferObjectFormat_textureTarget, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObjectFormat_textureTarget)}
};

PyDoc_STRVAR(doc_QOpenGLFramebufferObjectFormat, "\1QOpenGLFramebufferObjectFormat()\n"
    "QOpenGLFramebufferObjectFormat(QOpenGLFramebufferObjectFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLFramebufferObjectFormat = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLFramebufferObjectFormat,
        {0}
    },
    {
        sipNameNr_QOpenGLFramebufferObjectFormat,
        {0, 0, 1},
        10, methods_QOpenGLFramebufferObjectFormat,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLFramebufferObjectFormat,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLFramebufferObjectFormat,
    init_type_QOpenGLFramebufferObjectFormat,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLFramebufferObjectFormat,
    assign_QOpenGLFramebufferObjectFormat,
    array_QOpenGLFramebufferObjectFormat,
    copy_QOpenGLFramebufferObjectFormat,
    release_QOpenGLFramebufferObjectFormat,
    cast_QOpenGLFramebufferObjectFormat,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 122133 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 122137 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 90 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglframebufferobject.sip"
#include <qopenglframebufferobject.h>
#line 122140 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 122143 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 122146 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglframebufferobject.sip"
// The defaults are different for desktop OpenGL and OpenGL/ES so pretend the
// latter is the former.
#if defined(QT_OPENGL_ES)
#undef  GL_RGBA8
#define GL_RGBA8        GL_RGBA
#endif
#line 122154 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLFramebufferObject : public QOpenGLFramebufferObject
{
public:
    sipQOpenGLFramebufferObject(const QSize&,GLenum);
    sipQOpenGLFramebufferObject(int,int,GLenum);
    sipQOpenGLFramebufferObject(const QSize&,QOpenGLFramebufferObject::Attachment,GLenum,GLenum);
    sipQOpenGLFramebufferObject(int,int,QOpenGLFramebufferObject::Attachment,GLenum,GLenum);
    sipQOpenGLFramebufferObject(const QSize&,const QOpenGLFramebufferObjectFormat&);
    sipQOpenGLFramebufferObject(int,int,const QOpenGLFramebufferObjectFormat&);
    ~sipQOpenGLFramebufferObject();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLFramebufferObject(const sipQOpenGLFramebufferObject &);
    sipQOpenGLFramebufferObject &operator = (const sipQOpenGLFramebufferObject &);
};

sipQOpenGLFramebufferObject::sipQOpenGLFramebufferObject(const QSize& a0,GLenum a1): QOpenGLFramebufferObject(a0,a1), sipPySelf(0)
{
}

sipQOpenGLFramebufferObject::sipQOpenGLFramebufferObject(int a0,int a1,GLenum a2): QOpenGLFramebufferObject(a0,a1,a2), sipPySelf(0)
{
}

sipQOpenGLFramebufferObject::sipQOpenGLFramebufferObject(const QSize& a0,QOpenGLFramebufferObject::Attachment a1,GLenum a2,GLenum a3): QOpenGLFramebufferObject(a0,a1,a2,a3), sipPySelf(0)
{
}

sipQOpenGLFramebufferObject::sipQOpenGLFramebufferObject(int a0,int a1,QOpenGLFramebufferObject::Attachment a2,GLenum a3,GLenum a4): QOpenGLFramebufferObject(a0,a1,a2,a3,a4), sipPySelf(0)
{
}

sipQOpenGLFramebufferObject::sipQOpenGLFramebufferObject(const QSize& a0,const QOpenGLFramebufferObjectFormat& a1): QOpenGLFramebufferObject(a0,a1), sipPySelf(0)
{
}

sipQOpenGLFramebufferObject::sipQOpenGLFramebufferObject(int a0,int a1,const QOpenGLFramebufferObjectFormat& a2): QOpenGLFramebufferObject(a0,a1,a2), sipPySelf(0)
{
}

sipQOpenGLFramebufferObject::~sipQOpenGLFramebufferObject()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_format, "QOpenGLFramebufferObject.format() -> QOpenGLFramebufferObjectFormat");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_format(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            QOpenGLFramebufferObjectFormat*sipRes;

            sipRes = new QOpenGLFramebufferObjectFormat(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QOpenGLFramebufferObjectFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_format, doc_QOpenGLFramebufferObject_format);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_isValid, "QOpenGLFramebufferObject.isValid() -> bool");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_isValid(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_isValid, doc_QOpenGLFramebufferObject_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_isBound, "QOpenGLFramebufferObject.isBound() -> bool");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_isBound(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_isBound(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isBound();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_isBound, doc_QOpenGLFramebufferObject_isBound);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_bind, "QOpenGLFramebufferObject.bind() -> bool");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_bind(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_bind(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->bind();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_bind, doc_QOpenGLFramebufferObject_bind);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_release, "QOpenGLFramebufferObject.release() -> bool");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_release(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_release(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->release();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_release, doc_QOpenGLFramebufferObject_release);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_width, "QOpenGLFramebufferObject.width() -> int");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_width(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->width();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_width, doc_QOpenGLFramebufferObject_width);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_height, "QOpenGLFramebufferObject.height() -> int");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_height(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->height();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_height, doc_QOpenGLFramebufferObject_height);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_texture, "QOpenGLFramebufferObject.texture() -> int");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_texture(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_texture(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->texture();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_texture, doc_QOpenGLFramebufferObject_texture);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_size, "QOpenGLFramebufferObject.size() -> QSize");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_size(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_size, doc_QOpenGLFramebufferObject_size);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_toImage, "QOpenGLFramebufferObject.toImage() -> QImage\n"
    "QOpenGLFramebufferObject.toImage(bool) -> QImage");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_toImage(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_toImage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->toImage());

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    {
        bool a0;
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp, &a0))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->toImage(a0));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_toImage, doc_QOpenGLFramebufferObject_toImage);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_attachment, "QOpenGLFramebufferObject.attachment() -> QOpenGLFramebufferObject.Attachment");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_attachment(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_attachment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            QOpenGLFramebufferObject::Attachment sipRes;

            sipRes = sipCpp->attachment();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLFramebufferObject_Attachment);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_attachment, doc_QOpenGLFramebufferObject_attachment);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_setAttachment, "QOpenGLFramebufferObject.setAttachment(QOpenGLFramebufferObject.Attachment)");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_setAttachment(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_setAttachment(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLFramebufferObject::Attachment a0;
        QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp, sipType_QOpenGLFramebufferObject_Attachment, &a0))
        {
            sipCpp->setAttachment(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_setAttachment, doc_QOpenGLFramebufferObject_setAttachment);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_handle, "QOpenGLFramebufferObject.handle() -> int");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_handle(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_handle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->handle();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_handle, doc_QOpenGLFramebufferObject_handle);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_bindDefault, "QOpenGLFramebufferObject.bindDefault() -> bool");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_bindDefault(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_bindDefault(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            sipRes = QOpenGLFramebufferObject::bindDefault();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_bindDefault, doc_QOpenGLFramebufferObject_bindDefault);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_hasOpenGLFramebufferObjects, "QOpenGLFramebufferObject.hasOpenGLFramebufferObjects() -> bool");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_hasOpenGLFramebufferObjects(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_hasOpenGLFramebufferObjects(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            sipRes = QOpenGLFramebufferObject::hasOpenGLFramebufferObjects();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_hasOpenGLFramebufferObjects, doc_QOpenGLFramebufferObject_hasOpenGLFramebufferObjects);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_hasOpenGLFramebufferBlit, "QOpenGLFramebufferObject.hasOpenGLFramebufferBlit() -> bool");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_hasOpenGLFramebufferBlit(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_hasOpenGLFramebufferBlit(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            sipRes = QOpenGLFramebufferObject::hasOpenGLFramebufferBlit();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_hasOpenGLFramebufferBlit, doc_QOpenGLFramebufferObject_hasOpenGLFramebufferBlit);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_blitFramebuffer, "QOpenGLFramebufferObject.blitFramebuffer(QOpenGLFramebufferObject, QRect, QOpenGLFramebufferObject, QRect, int buffers=GL_COLOR_BUFFER_BIT, int filter=GL_NEAREST)\n"
    "QOpenGLFramebufferObject.blitFramebuffer(QOpenGLFramebufferObject, QOpenGLFramebufferObject, int buffers=GL_COLOR_BUFFER_BIT, int filter=GL_NEAREST)");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_blitFramebuffer(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_blitFramebuffer(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLFramebufferObject* a0;
        const QRect* a1;
        QOpenGLFramebufferObject* a2;
        const QRect* a3;
        GLbitfield a4 = GL_COLOR_BUFFER_BIT;
        GLenum a5 = GL_NEAREST;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_buffers,
            sipName_filter,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J8J9J8J9|uu", sipType_QOpenGLFramebufferObject, &a0, sipType_QRect, &a1, sipType_QOpenGLFramebufferObject, &a2, sipType_QRect, &a3, &a4, &a5))
        {
            QOpenGLFramebufferObject::blitFramebuffer(a0,*a1,a2,*a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QOpenGLFramebufferObject* a0;
        QOpenGLFramebufferObject* a1;
        GLbitfield a2 = GL_COLOR_BUFFER_BIT;
        GLenum a3 = GL_NEAREST;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_buffers,
            sipName_filter,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J8J8|uu", sipType_QOpenGLFramebufferObject, &a0, sipType_QOpenGLFramebufferObject, &a1, &a2, &a3))
        {
            QOpenGLFramebufferObject::blitFramebuffer(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_blitFramebuffer, doc_QOpenGLFramebufferObject_blitFramebuffer);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLFramebufferObject_takeTexture, "QOpenGLFramebufferObject.takeTexture() -> int");

extern "C" {static PyObject *meth_QOpenGLFramebufferObject_takeTexture(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLFramebufferObject_takeTexture(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLFramebufferObject *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLFramebufferObject, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->takeTexture();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLFramebufferObject, sipName_takeTexture, doc_QOpenGLFramebufferObject_takeTexture);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLFramebufferObject(void *, const sipTypeDef *);}
static void *cast_QOpenGLFramebufferObject(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLFramebufferObject)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLFramebufferObject(void *, int);}
static void release_QOpenGLFramebufferObject(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQOpenGLFramebufferObject *>(sipCppV);
    else
        delete reinterpret_cast<QOpenGLFramebufferObject *>(sipCppV);
}


extern "C" {static void dealloc_QOpenGLFramebufferObject(sipSimpleWrapper *);}
static void dealloc_QOpenGLFramebufferObject(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLFramebufferObject *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLFramebufferObject(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLFramebufferObject(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLFramebufferObject(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQOpenGLFramebufferObject *sipCpp = 0;

    {
        const QSize* a0;
        GLenum a1 = GL_TEXTURE_2D;

        static const char *sipKwdList[] = {
            NULL,
            sipName_target,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|u", sipType_QSize, &a0, &a1))
        {
            sipCpp = new sipQOpenGLFramebufferObject(*a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        GLenum a2 = GL_TEXTURE_2D;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_target,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "ii|u", &a0, &a1, &a2))
        {
            sipCpp = new sipQOpenGLFramebufferObject(a0,a1,a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QSize* a0;
        QOpenGLFramebufferObject::Attachment a1;
        GLenum a2 = GL_TEXTURE_2D;
        GLenum a3 = GL_RGBA8;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_target,
            sipName_internal_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9E|uu", sipType_QSize, &a0, sipType_QOpenGLFramebufferObject_Attachment, &a1, &a2, &a3))
        {
            sipCpp = new sipQOpenGLFramebufferObject(*a0,a1,a2,a3);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        QOpenGLFramebufferObject::Attachment a2;
        GLenum a3 = GL_TEXTURE_2D;
        GLenum a4 = GL_RGBA8;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_target,
            sipName_internal_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "iiE|uu", &a0, &a1, sipType_QOpenGLFramebufferObject_Attachment, &a2, &a3, &a4))
        {
            sipCpp = new sipQOpenGLFramebufferObject(a0,a1,a2,a3,a4);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QSize* a0;
        const QOpenGLFramebufferObjectFormat* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9", sipType_QSize, &a0, sipType_QOpenGLFramebufferObjectFormat, &a1))
        {
            sipCpp = new sipQOpenGLFramebufferObject(*a0,*a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        const QOpenGLFramebufferObjectFormat* a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iiJ9", &a0, &a1, sipType_QOpenGLFramebufferObjectFormat, &a2))
        {
            sipCpp = new sipQOpenGLFramebufferObject(a0,a1,*a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QOpenGLFramebufferObject[] = {
    {SIP_MLNAME_CAST(sipName_attachment), meth_QOpenGLFramebufferObject_attachment, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_attachment)},
    {SIP_MLNAME_CAST(sipName_bind), meth_QOpenGLFramebufferObject_bind, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_bind)},
    {SIP_MLNAME_CAST(sipName_bindDefault), meth_QOpenGLFramebufferObject_bindDefault, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_bindDefault)},
    {SIP_MLNAME_CAST(sipName_blitFramebuffer), (PyCFunction)meth_QOpenGLFramebufferObject_blitFramebuffer, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_blitFramebuffer)},
    {SIP_MLNAME_CAST(sipName_format), meth_QOpenGLFramebufferObject_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_format)},
    {SIP_MLNAME_CAST(sipName_handle), meth_QOpenGLFramebufferObject_handle, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_handle)},
    {SIP_MLNAME_CAST(sipName_hasOpenGLFramebufferBlit), meth_QOpenGLFramebufferObject_hasOpenGLFramebufferBlit, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_hasOpenGLFramebufferBlit)},
    {SIP_MLNAME_CAST(sipName_hasOpenGLFramebufferObjects), meth_QOpenGLFramebufferObject_hasOpenGLFramebufferObjects, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_hasOpenGLFramebufferObjects)},
    {SIP_MLNAME_CAST(sipName_height), meth_QOpenGLFramebufferObject_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_height)},
    {SIP_MLNAME_CAST(sipName_isBound), meth_QOpenGLFramebufferObject_isBound, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_isBound)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QOpenGLFramebufferObject_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_isValid)},
    {SIP_MLNAME_CAST(sipName_release), meth_QOpenGLFramebufferObject_release, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_release)},
    {SIP_MLNAME_CAST(sipName_setAttachment), meth_QOpenGLFramebufferObject_setAttachment, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_setAttachment)},
    {SIP_MLNAME_CAST(sipName_size), meth_QOpenGLFramebufferObject_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_size)},
    {SIP_MLNAME_CAST(sipName_takeTexture), meth_QOpenGLFramebufferObject_takeTexture, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_takeTexture)},
    {SIP_MLNAME_CAST(sipName_texture), meth_QOpenGLFramebufferObject_texture, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_texture)},
    {SIP_MLNAME_CAST(sipName_toImage), meth_QOpenGLFramebufferObject_toImage, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_toImage)},
    {SIP_MLNAME_CAST(sipName_width), meth_QOpenGLFramebufferObject_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLFramebufferObject_width)}
};

static sipEnumMemberDef enummembers_QOpenGLFramebufferObject[] = {
    {sipName_CombinedDepthStencil, static_cast<int>(QOpenGLFramebufferObject::CombinedDepthStencil), 140},
    {sipName_Depth, static_cast<int>(QOpenGLFramebufferObject::Depth), 140},
    {sipName_NoAttachment, static_cast<int>(QOpenGLFramebufferObject::NoAttachment), 140},
};

PyDoc_STRVAR(doc_QOpenGLFramebufferObject, "\1QOpenGLFramebufferObject(QSize, int target=GL_TEXTURE_2D)\n"
    "QOpenGLFramebufferObject(int, int, int target=GL_TEXTURE_2D)\n"
    "QOpenGLFramebufferObject(QSize, QOpenGLFramebufferObject.Attachment, int target=GL_TEXTURE_2D, int internal_format=GL_RGBA8)\n"
    "QOpenGLFramebufferObject(int, int, QOpenGLFramebufferObject.Attachment, int target=GL_TEXTURE_2D, int internal_format=GL_RGBA8)\n"
    "QOpenGLFramebufferObject(QSize, QOpenGLFramebufferObjectFormat)\n"
    "QOpenGLFramebufferObject(int, int, QOpenGLFramebufferObjectFormat)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLFramebufferObject = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLFramebufferObject,
        {0}
    },
    {
        sipNameNr_QOpenGLFramebufferObject,
        {0, 0, 1},
        18, methods_QOpenGLFramebufferObject,
        3, enummembers_QOpenGLFramebufferObject,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLFramebufferObject,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QOpenGLFramebufferObject,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLFramebufferObject,
    0,
    0,
    0,
    release_QOpenGLFramebufferObject,
    cast_QOpenGLFramebufferObject,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 119 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 122990 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 122994 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 122997 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 123000 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 123003 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 123006 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 123009 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 123012 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 123015 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 123018 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 123021 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 123024 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 123027 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 123030 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 123033 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 123036 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 123039 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 123042 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 123045 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 123048 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 123051 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 123054 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 123057 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLDebugLogger : public QOpenGLDebugLogger
{
public:
    sipQOpenGLDebugLogger(QObject*);
    virtual ~sipQOpenGLDebugLogger();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLDebugLogger(const sipQOpenGLDebugLogger &);
    sipQOpenGLDebugLogger &operator = (const sipQOpenGLDebugLogger &);

    char sipPyMethods[7];
};

sipQOpenGLDebugLogger::sipQOpenGLDebugLogger(QObject*a0): QOpenGLDebugLogger(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLDebugLogger::~sipQOpenGLDebugLogger()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQOpenGLDebugLogger::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLDebugLogger);
}

int sipQOpenGLDebugLogger::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QOpenGLDebugLogger::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QOpenGLDebugLogger,_c,_id,_a);

    return _id;
}

void *sipQOpenGLDebugLogger::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QOpenGLDebugLogger, _clname, &sipCpp) ? sipCpp : QOpenGLDebugLogger::qt_metacast(_clname));
}

void sipQOpenGLDebugLogger::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QOpenGLDebugLogger::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLDebugLogger::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QOpenGLDebugLogger::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLDebugLogger::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QOpenGLDebugLogger::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLDebugLogger::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QOpenGLDebugLogger::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLDebugLogger::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QOpenGLDebugLogger::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOpenGLDebugLogger::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QOpenGLDebugLogger::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQOpenGLDebugLogger::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QOpenGLDebugLogger::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQOpenGLDebugLogger::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQOpenGLDebugLogger::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQOpenGLDebugLogger::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQOpenGLDebugLogger::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQOpenGLDebugLogger::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQOpenGLDebugLogger::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQOpenGLDebugLogger::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQOpenGLDebugLogger::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQOpenGLDebugLogger::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_sender, "QOpenGLDebugLogger.sender() -> QObject");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLDebugLogger *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 123345 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_sender, doc_QOpenGLDebugLogger_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_receivers, "QOpenGLDebugLogger.receivers(signal) -> int");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQOpenGLDebugLogger *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 123404 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_receivers, doc_QOpenGLDebugLogger_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_timerEvent, "QOpenGLDebugLogger.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQOpenGLDebugLogger *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_timerEvent, doc_QOpenGLDebugLogger_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_childEvent, "QOpenGLDebugLogger.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQOpenGLDebugLogger *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_childEvent, doc_QOpenGLDebugLogger_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_customEvent, "QOpenGLDebugLogger.customEvent(QEvent)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOpenGLDebugLogger *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_customEvent, doc_QOpenGLDebugLogger_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_connectNotify, "QOpenGLDebugLogger.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLDebugLogger *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_connectNotify, doc_QOpenGLDebugLogger_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_disconnectNotify, "QOpenGLDebugLogger.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLDebugLogger *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_disconnectNotify, doc_QOpenGLDebugLogger_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_senderSignalIndex, "QOpenGLDebugLogger.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLDebugLogger *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_senderSignalIndex, doc_QOpenGLDebugLogger_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_isSignalConnected, "QOpenGLDebugLogger.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQOpenGLDebugLogger *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_isSignalConnected, doc_QOpenGLDebugLogger_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_initialize, "QOpenGLDebugLogger.initialize() -> bool");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_initialize(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_initialize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugLogger *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->initialize();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_initialize, doc_QOpenGLDebugLogger_initialize);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_isLogging, "QOpenGLDebugLogger.isLogging() -> bool");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_isLogging(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_isLogging(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugLogger *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isLogging();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_isLogging, doc_QOpenGLDebugLogger_isLogging);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_loggingMode, "QOpenGLDebugLogger.loggingMode() -> QOpenGLDebugLogger.LoggingMode");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_loggingMode(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_loggingMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugLogger *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp))
        {
            QOpenGLDebugLogger::LoggingMode sipRes;

            sipRes = sipCpp->loggingMode();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLDebugLogger_LoggingMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_loggingMode, doc_QOpenGLDebugLogger_loggingMode);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_maximumMessageLength, "QOpenGLDebugLogger.maximumMessageLength() -> int");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_maximumMessageLength(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_maximumMessageLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugLogger *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp))
        {
            qint64 sipRes;

            sipRes = sipCpp->maximumMessageLength();

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_maximumMessageLength, doc_QOpenGLDebugLogger_maximumMessageLength);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_pushGroup, "QOpenGLDebugLogger.pushGroup(str, int id=0, QOpenGLDebugMessage.Source source=QOpenGLDebugMessage.ApplicationSource)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_pushGroup(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_pushGroup(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        GLuint a1 = 0;
        QOpenGLDebugMessage::Source a2 = QOpenGLDebugMessage::ApplicationSource;
        QOpenGLDebugLogger *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_id,
            sipName_source,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|uE", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QString,&a0, &a0State, &a1, sipType_QOpenGLDebugMessage_Source, &a2))
        {
            sipCpp->pushGroup(*a0,a1,a2);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_pushGroup, doc_QOpenGLDebugLogger_pushGroup);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_popGroup, "QOpenGLDebugLogger.popGroup()");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_popGroup(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_popGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugLogger *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp))
        {
            sipCpp->popGroup();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_popGroup, doc_QOpenGLDebugLogger_popGroup);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_enableMessages, "QOpenGLDebugLogger.enableMessages(QOpenGLDebugMessage.Sources sources=QOpenGLDebugMessage.AnySource, QOpenGLDebugMessage.Types types=QOpenGLDebugMessage.AnyType, QOpenGLDebugMessage.Severities severities=QOpenGLDebugMessage.AnySeverity)\n"
    "QOpenGLDebugLogger.enableMessages(list-of-int, QOpenGLDebugMessage.Sources sources=QOpenGLDebugMessage.AnySource, QOpenGLDebugMessage.Types types=QOpenGLDebugMessage.AnyType)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_enableMessages(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_enableMessages(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Sources a0def = QOpenGLDebugMessage::AnySource;
        QOpenGLDebugMessage::Sources* a0 = &a0def;
        int a0State = 0;
        QOpenGLDebugMessage::Types a1def = QOpenGLDebugMessage::AnyType;
        QOpenGLDebugMessage::Types* a1 = &a1def;
        int a1State = 0;
        QOpenGLDebugMessage::Severities a2def = QOpenGLDebugMessage::AnySeverity;
        QOpenGLDebugMessage::Severities* a2 = &a2def;
        int a2State = 0;
        QOpenGLDebugLogger *sipCpp;

        static const char *sipKwdList[] = {
            sipName_sources,
            sipName_types,
            sipName_severities,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1J1J1", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QOpenGLDebugMessage_Sources, &a0, &a0State, sipType_QOpenGLDebugMessage_Types, &a1, &a1State, sipType_QOpenGLDebugMessage_Severities, &a2, &a2State))
        {
            sipCpp->enableMessages(*a0,*a1,*a2);
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Sources,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Types,a1State);
            sipReleaseType(a2,sipType_QOpenGLDebugMessage_Severities,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<uint>* a0;
        int a0State = 0;
        QOpenGLDebugMessage::Sources a1def = QOpenGLDebugMessage::AnySource;
        QOpenGLDebugMessage::Sources* a1 = &a1def;
        int a1State = 0;
        QOpenGLDebugMessage::Types a2def = QOpenGLDebugMessage::AnyType;
        QOpenGLDebugMessage::Types* a2 = &a2def;
        int a2State = 0;
        QOpenGLDebugLogger *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_sources,
            sipName_types,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1J1", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QVector_1900,&a0, &a0State, sipType_QOpenGLDebugMessage_Sources, &a1, &a1State, sipType_QOpenGLDebugMessage_Types, &a2, &a2State))
        {
            sipCpp->enableMessages(*a0,*a1,*a2);
            sipReleaseType(const_cast<QVector<uint> *>(a0),sipType_QVector_1900,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Sources,a1State);
            sipReleaseType(a2,sipType_QOpenGLDebugMessage_Types,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_enableMessages, doc_QOpenGLDebugLogger_enableMessages);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_disableMessages, "QOpenGLDebugLogger.disableMessages(QOpenGLDebugMessage.Sources sources=QOpenGLDebugMessage.AnySource, QOpenGLDebugMessage.Types types=QOpenGLDebugMessage.AnyType, QOpenGLDebugMessage.Severities severities=QOpenGLDebugMessage.AnySeverity)\n"
    "QOpenGLDebugLogger.disableMessages(list-of-int, QOpenGLDebugMessage.Sources sources=QOpenGLDebugMessage.AnySource, QOpenGLDebugMessage.Types types=QOpenGLDebugMessage.AnyType)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_disableMessages(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_disableMessages(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Sources a0def = QOpenGLDebugMessage::AnySource;
        QOpenGLDebugMessage::Sources* a0 = &a0def;
        int a0State = 0;
        QOpenGLDebugMessage::Types a1def = QOpenGLDebugMessage::AnyType;
        QOpenGLDebugMessage::Types* a1 = &a1def;
        int a1State = 0;
        QOpenGLDebugMessage::Severities a2def = QOpenGLDebugMessage::AnySeverity;
        QOpenGLDebugMessage::Severities* a2 = &a2def;
        int a2State = 0;
        QOpenGLDebugLogger *sipCpp;

        static const char *sipKwdList[] = {
            sipName_sources,
            sipName_types,
            sipName_severities,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1J1J1", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QOpenGLDebugMessage_Sources, &a0, &a0State, sipType_QOpenGLDebugMessage_Types, &a1, &a1State, sipType_QOpenGLDebugMessage_Severities, &a2, &a2State))
        {
            sipCpp->disableMessages(*a0,*a1,*a2);
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Sources,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Types,a1State);
            sipReleaseType(a2,sipType_QOpenGLDebugMessage_Severities,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QVector<uint>* a0;
        int a0State = 0;
        QOpenGLDebugMessage::Sources a1def = QOpenGLDebugMessage::AnySource;
        QOpenGLDebugMessage::Sources* a1 = &a1def;
        int a1State = 0;
        QOpenGLDebugMessage::Types a2def = QOpenGLDebugMessage::AnyType;
        QOpenGLDebugMessage::Types* a2 = &a2def;
        int a2State = 0;
        QOpenGLDebugLogger *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_sources,
            sipName_types,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1J1", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QVector_1900,&a0, &a0State, sipType_QOpenGLDebugMessage_Sources, &a1, &a1State, sipType_QOpenGLDebugMessage_Types, &a2, &a2State))
        {
            sipCpp->disableMessages(*a0,*a1,*a2);
            sipReleaseType(const_cast<QVector<uint> *>(a0),sipType_QVector_1900,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Sources,a1State);
            sipReleaseType(a2,sipType_QOpenGLDebugMessage_Types,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_disableMessages, doc_QOpenGLDebugLogger_disableMessages);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_loggedMessages, "QOpenGLDebugLogger.loggedMessages() -> list-of-QOpenGLDebugMessage");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_loggedMessages(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_loggedMessages(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugLogger *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp))
        {
            QList<QOpenGLDebugMessage>*sipRes;

            sipRes = new QList<QOpenGLDebugMessage>(sipCpp->loggedMessages());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QOpenGLDebugMessage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_loggedMessages, doc_QOpenGLDebugLogger_loggedMessages);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_logMessage, "QOpenGLDebugLogger.logMessage(QOpenGLDebugMessage)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_logMessage(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_logMessage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage* a0;
        QOpenGLDebugLogger *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QOpenGLDebugMessage, &a0))
        {
            sipCpp->logMessage(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_logMessage, doc_QOpenGLDebugLogger_logMessage);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_startLogging, "QOpenGLDebugLogger.startLogging(QOpenGLDebugLogger.LoggingMode loggingMode=QOpenGLDebugLogger.AsynchronousLogging)");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_startLogging(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_startLogging(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugLogger::LoggingMode a0 = QOpenGLDebugLogger::AsynchronousLogging;
        QOpenGLDebugLogger *sipCpp;

        static const char *sipKwdList[] = {
            sipName_loggingMode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp, sipType_QOpenGLDebugLogger_LoggingMode, &a0))
        {
            sipCpp->startLogging(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_startLogging, doc_QOpenGLDebugLogger_startLogging);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugLogger_stopLogging, "QOpenGLDebugLogger.stopLogging()");

extern "C" {static PyObject *meth_QOpenGLDebugLogger_stopLogging(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugLogger_stopLogging(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugLogger *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugLogger, &sipCpp))
        {
            sipCpp->stopLogging();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugLogger, sipName_stopLogging, doc_QOpenGLDebugLogger_stopLogging);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLDebugLogger(void *, const sipTypeDef *);}
static void *cast_QOpenGLDebugLogger(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLDebugLogger)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QOpenGLDebugLogger *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLDebugLogger(void *, int);}
static void release_QOpenGLDebugLogger(void *sipCppV,int)
{
    QOpenGLDebugLogger *sipCpp = reinterpret_cast<QOpenGLDebugLogger *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOpenGLDebugLogger(sipSimpleWrapper *);}
static void dealloc_QOpenGLDebugLogger(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLDebugLogger *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLDebugLogger(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLDebugLogger(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLDebugLogger(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQOpenGLDebugLogger *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQOpenGLDebugLogger(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLDebugLogger[] = {{162, 0, 1}};


static PyMethodDef methods_QOpenGLDebugLogger[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QOpenGLDebugLogger_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QOpenGLDebugLogger_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QOpenGLDebugLogger_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disableMessages), (PyCFunction)meth_QOpenGLDebugLogger_disableMessages, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_disableMessages)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QOpenGLDebugLogger_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_enableMessages), (PyCFunction)meth_QOpenGLDebugLogger_enableMessages, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_enableMessages)},
    {SIP_MLNAME_CAST(sipName_initialize), meth_QOpenGLDebugLogger_initialize, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_initialize)},
    {SIP_MLNAME_CAST(sipName_isLogging), meth_QOpenGLDebugLogger_isLogging, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_isLogging)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QOpenGLDebugLogger_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_logMessage), meth_QOpenGLDebugLogger_logMessage, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_logMessage)},
    {SIP_MLNAME_CAST(sipName_loggedMessages), meth_QOpenGLDebugLogger_loggedMessages, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_loggedMessages)},
    {SIP_MLNAME_CAST(sipName_loggingMode), meth_QOpenGLDebugLogger_loggingMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_loggingMode)},
    {SIP_MLNAME_CAST(sipName_maximumMessageLength), meth_QOpenGLDebugLogger_maximumMessageLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_maximumMessageLength)},
    {SIP_MLNAME_CAST(sipName_popGroup), meth_QOpenGLDebugLogger_popGroup, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_popGroup)},
    {SIP_MLNAME_CAST(sipName_pushGroup), (PyCFunction)meth_QOpenGLDebugLogger_pushGroup, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_pushGroup)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QOpenGLDebugLogger_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QOpenGLDebugLogger_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QOpenGLDebugLogger_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_startLogging), (PyCFunction)meth_QOpenGLDebugLogger_startLogging, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_startLogging)},
    {SIP_MLNAME_CAST(sipName_stopLogging), meth_QOpenGLDebugLogger_stopLogging, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugLogger_stopLogging)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QOpenGLDebugLogger_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_QOpenGLDebugLogger[] = {
    {sipName_AsynchronousLogging, static_cast<int>(QOpenGLDebugLogger::AsynchronousLogging), 131},
    {sipName_SynchronousLogging, static_cast<int>(QOpenGLDebugLogger::SynchronousLogging), 131},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QOpenGLDebugLogger[] = {
    {"messageLogged(QOpenGLDebugMessage)", "\1QOpenGLDebugLogger.messageLogged[QOpenGLDebugMessage]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QOpenGLDebugLogger, "\1QOpenGLDebugLogger(QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLDebugLogger = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugLogger,
        {0}
    },
    {
        sipNameNr_QOpenGLDebugLogger,
        {0, 0, 1},
        21, methods_QOpenGLDebugLogger,
        2, enummembers_QOpenGLDebugLogger,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLDebugLogger,
    -1,
    -1,
    supers_QOpenGLDebugLogger,
    0,
    init_type_QOpenGLDebugLogger,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLDebugLogger,
    0,
    0,
    0,
    release_QOpenGLDebugLogger,
    cast_QOpenGLDebugLogger,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOpenGLDebugLogger::staticMetaObject,
    0,
    signals_QOpenGLDebugLogger,
    0
};

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 124218 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 124222 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QOpenGLDebugMessage_Severities___bool__(PyObject *);}
static int slot_QOpenGLDebugMessage_Severities___bool__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Severities *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Severities));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Severities::Int() != 0);
#line 124240 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___ne__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLDebugMessage::Severities *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Severities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Severities::Int() != a0->operator QOpenGLDebugMessage::Severities::Int());
#line 124270 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLDebugMessage::Severities *>(a0),sipType_QOpenGLDebugMessage_Severities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QOpenGLDebugMessage_Severities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___eq__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLDebugMessage::Severities *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Severities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Severities::Int() == a0->operator QOpenGLDebugMessage::Severities::Int());
#line 124306 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLDebugMessage::Severities *>(a0),sipType_QOpenGLDebugMessage_Severities,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLDebugMessage_Severities,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___invert__(PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___invert__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Severities *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Severities));

    if (!sipCpp)
        return 0;


    {
        {
            QOpenGLDebugMessage::Severities*sipRes;

            sipRes = new QOpenGLDebugMessage::Severities(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Severities,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___and__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Severities*sipRes;

            sipRes = new QOpenGLDebugMessage::Severities((*a0 & a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Severities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Severities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;
        QOpenGLDebugMessage::Severities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State, sipType_QOpenGLDebugMessage_Severities, &a1, &a1State))
        {
            QOpenGLDebugMessage::Severities*sipRes;

            sipRes = new QOpenGLDebugMessage::Severities((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Severities,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Severities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Severities,NULL);
        }
    }

    {
        QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Severities*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLDebugMessage::Severities(*a0 ^ a1);
#line 124409 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Severities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Severities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;
        QOpenGLDebugMessage::Severities* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State, sipType_QOpenGLDebugMessage_Severities, &a1, &a1State))
        {
            QOpenGLDebugMessage::Severities*sipRes;

            sipRes = new QOpenGLDebugMessage::Severities((*a0 | *a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Severities,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Severities,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Severities,NULL);
        }
    }

    {
        QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Severities*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLDebugMessage::Severities(*a0 | a1);
#line 124459 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Severities,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Severities,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___int__(PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___int__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Severities *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Severities));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Severities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Severities *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Severities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State))
        {
            sipCpp->QOpenGLDebugMessage::Severities::operator^=(*a0);
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Severities,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___ior__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Severities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Severities *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Severities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State))
        {
            sipCpp->QOpenGLDebugMessage::Severities::operator|=(*a0);
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Severities,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Severities___iand__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Severities___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Severities)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Severities *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Severities));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QOpenGLDebugMessage::Severities::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLDebugMessage_Severities(void *, const sipTypeDef *);}
static void *cast_QOpenGLDebugMessage_Severities(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLDebugMessage_Severities)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLDebugMessage_Severities(void *, int);}
static void release_QOpenGLDebugMessage_Severities(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipCppV);
}


extern "C" {static void assign_QOpenGLDebugMessage_Severities(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLDebugMessage_Severities(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLDebugMessage::Severities *>(sipSrc);
}


extern "C" {static void *array_QOpenGLDebugMessage_Severities(SIP_SSIZE_T);}
static void *array_QOpenGLDebugMessage_Severities(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLDebugMessage::Severities[sipNrElem];
}


extern "C" {static void *copy_QOpenGLDebugMessage_Severities(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLDebugMessage_Severities(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLDebugMessage::Severities(reinterpret_cast<const QOpenGLDebugMessage::Severities *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLDebugMessage_Severities(sipSimpleWrapper *);}
static void dealloc_QOpenGLDebugMessage_Severities(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLDebugMessage_Severities(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLDebugMessage_Severities(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLDebugMessage_Severities(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLDebugMessage::Severities *sipCpp = 0;

    {
        const QOpenGLDebugMessage::Severities* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QOpenGLDebugMessage_Severities, &a0, &a0State))
        {
            sipCpp = new QOpenGLDebugMessage::Severities(*a0);
            sipReleaseType(const_cast<QOpenGLDebugMessage::Severities *>(a0),sipType_QOpenGLDebugMessage_Severities,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QOpenGLDebugMessage::Severities(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLDebugMessage::Severities();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QOpenGLDebugMessage_Severities(PyObject *, void **, int *, PyObject *);}
static int convertTo_QOpenGLDebugMessage_Severities(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QOpenGLDebugMessage::Severities **sipCppPtr = reinterpret_cast<QOpenGLDebugMessage::Severities **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QOpenGLDebugMessage::Severities is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Severity)) ||
            sipCanConvertToType(sipPy, sipType_QOpenGLDebugMessage_Severities, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Severity)))
{
    *sipCppPtr = new QOpenGLDebugMessage::Severities(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QOpenGLDebugMessage::Severities *>(sipConvertToType(sipPy, sipType_QOpenGLDebugMessage_Severities, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 124736 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLDebugMessage_Severities[] = {
    {(void *)slot_QOpenGLDebugMessage_Severities___bool__, bool_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___ne__, ne_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___eq__, eq_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___invert__, invert_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___and__, and_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___xor__, xor_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___or__, or_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___int__, int_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___ixor__, ixor_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___ior__, ior_slot},
    {(void *)slot_QOpenGLDebugMessage_Severities___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLDebugMessage_Severities, "\1QOpenGLDebugMessage.Severities(QOpenGLDebugMessage.Severities)\n"
    "QOpenGLDebugMessage.Severities(int)\n"
    "QOpenGLDebugMessage.Severities()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLDebugMessage_Severities = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugMessage__Severities,
        {0}
    },
    {
        sipNameNr_Severities,
        {132, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLDebugMessage_Severities,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLDebugMessage_Severities,
    init_type_QOpenGLDebugMessage_Severities,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLDebugMessage_Severities,
    assign_QOpenGLDebugMessage_Severities,
    array_QOpenGLDebugMessage_Severities,
    copy_QOpenGLDebugMessage_Severities,
    release_QOpenGLDebugMessage_Severities,
    cast_QOpenGLDebugMessage_Severities,
    convertTo_QOpenGLDebugMessage_Severities,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 124818 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 124822 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QOpenGLDebugMessage_Types___bool__(PyObject *);}
static int slot_QOpenGLDebugMessage_Types___bool__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Types::Int() != 0);
#line 124840 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___ne__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage::Types* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Types, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Types::Int() != a0->operator QOpenGLDebugMessage::Types::Int());
#line 124870 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLDebugMessage::Types *>(a0),sipType_QOpenGLDebugMessage_Types,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QOpenGLDebugMessage_Types,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___eq__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage::Types* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Types, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Types::Int() == a0->operator QOpenGLDebugMessage::Types::Int());
#line 124906 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLDebugMessage::Types *>(a0),sipType_QOpenGLDebugMessage_Types,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLDebugMessage_Types,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___invert__(PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___invert__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;


    {
        {
            QOpenGLDebugMessage::Types*sipRes;

            sipRes = new QOpenGLDebugMessage::Types(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Types,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___and__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Types* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Types, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Types*sipRes;

            sipRes = new QOpenGLDebugMessage::Types((*a0 & a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Types,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Types,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Types* a0;
        int a0State = 0;
        QOpenGLDebugMessage::Types* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLDebugMessage_Types, &a0, &a0State, sipType_QOpenGLDebugMessage_Types, &a1, &a1State))
        {
            QOpenGLDebugMessage::Types*sipRes;

            sipRes = new QOpenGLDebugMessage::Types((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Types,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Types,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Types,NULL);
        }
    }

    {
        QOpenGLDebugMessage::Types* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Types, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Types*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLDebugMessage::Types(*a0 ^ a1);
#line 125009 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Types,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Types,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Types* a0;
        int a0State = 0;
        QOpenGLDebugMessage::Types* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLDebugMessage_Types, &a0, &a0State, sipType_QOpenGLDebugMessage_Types, &a1, &a1State))
        {
            QOpenGLDebugMessage::Types*sipRes;

            sipRes = new QOpenGLDebugMessage::Types((*a0 | *a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Types,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Types,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Types,NULL);
        }
    }

    {
        QOpenGLDebugMessage::Types* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Types, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Types*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLDebugMessage::Types(*a0 | a1);
#line 125059 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Types,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Types,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___int__(PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___int__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Types)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Types* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Types, &a0, &a0State))
        {
            sipCpp->QOpenGLDebugMessage::Types::operator^=(*a0);
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Types,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___ior__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Types)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Types* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Types, &a0, &a0State))
        {
            sipCpp->QOpenGLDebugMessage::Types::operator|=(*a0);
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Types,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Types___iand__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Types___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Types)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QOpenGLDebugMessage::Types::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLDebugMessage_Types(void *, const sipTypeDef *);}
static void *cast_QOpenGLDebugMessage_Types(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLDebugMessage_Types)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLDebugMessage_Types(void *, int);}
static void release_QOpenGLDebugMessage_Types(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLDebugMessage::Types *>(sipCppV);
}


extern "C" {static void assign_QOpenGLDebugMessage_Types(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLDebugMessage_Types(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLDebugMessage::Types *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLDebugMessage::Types *>(sipSrc);
}


extern "C" {static void *array_QOpenGLDebugMessage_Types(SIP_SSIZE_T);}
static void *array_QOpenGLDebugMessage_Types(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLDebugMessage::Types[sipNrElem];
}


extern "C" {static void *copy_QOpenGLDebugMessage_Types(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLDebugMessage_Types(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLDebugMessage::Types(reinterpret_cast<const QOpenGLDebugMessage::Types *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLDebugMessage_Types(sipSimpleWrapper *);}
static void dealloc_QOpenGLDebugMessage_Types(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLDebugMessage_Types(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLDebugMessage_Types(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLDebugMessage_Types(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLDebugMessage::Types *sipCpp = 0;

    {
        const QOpenGLDebugMessage::Types* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QOpenGLDebugMessage_Types, &a0, &a0State))
        {
            sipCpp = new QOpenGLDebugMessage::Types(*a0);
            sipReleaseType(const_cast<QOpenGLDebugMessage::Types *>(a0),sipType_QOpenGLDebugMessage_Types,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QOpenGLDebugMessage::Types(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLDebugMessage::Types();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QOpenGLDebugMessage_Types(PyObject *, void **, int *, PyObject *);}
static int convertTo_QOpenGLDebugMessage_Types(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QOpenGLDebugMessage::Types **sipCppPtr = reinterpret_cast<QOpenGLDebugMessage::Types **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QOpenGLDebugMessage::Types is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Type)) ||
            sipCanConvertToType(sipPy, sipType_QOpenGLDebugMessage_Types, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Type)))
{
    *sipCppPtr = new QOpenGLDebugMessage::Types(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipConvertToType(sipPy, sipType_QOpenGLDebugMessage_Types, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 125336 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLDebugMessage_Types[] = {
    {(void *)slot_QOpenGLDebugMessage_Types___bool__, bool_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___ne__, ne_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___eq__, eq_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___invert__, invert_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___and__, and_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___xor__, xor_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___or__, or_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___int__, int_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___ixor__, ixor_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___ior__, ior_slot},
    {(void *)slot_QOpenGLDebugMessage_Types___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLDebugMessage_Types, "\1QOpenGLDebugMessage.Types(QOpenGLDebugMessage.Types)\n"
    "QOpenGLDebugMessage.Types(int)\n"
    "QOpenGLDebugMessage.Types()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLDebugMessage_Types = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugMessage__Types,
        {0}
    },
    {
        sipNameNr_Types,
        {132, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLDebugMessage_Types,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLDebugMessage_Types,
    init_type_QOpenGLDebugMessage_Types,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLDebugMessage_Types,
    assign_QOpenGLDebugMessage_Types,
    array_QOpenGLDebugMessage_Types,
    copy_QOpenGLDebugMessage_Types,
    release_QOpenGLDebugMessage_Types,
    cast_QOpenGLDebugMessage_Types,
    convertTo_QOpenGLDebugMessage_Types,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 125418 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 125422 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QOpenGLDebugMessage_Sources___bool__(PyObject *);}
static int slot_QOpenGLDebugMessage_Sources___bool__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Sources *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Sources));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Sources::Int() != 0);
#line 125440 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___ne__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLDebugMessage::Sources *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Sources));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Sources::Int() != a0->operator QOpenGLDebugMessage::Sources::Int());
#line 125470 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLDebugMessage::Sources *>(a0),sipType_QOpenGLDebugMessage_Sources,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QOpenGLDebugMessage_Sources,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___eq__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLDebugMessage::Sources *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Sources));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLDebugMessage::Sources::Int() == a0->operator QOpenGLDebugMessage::Sources::Int());
#line 125506 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLDebugMessage::Sources *>(a0),sipType_QOpenGLDebugMessage_Sources,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLDebugMessage_Sources,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___invert__(PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___invert__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Sources *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Sources));

    if (!sipCpp)
        return 0;


    {
        {
            QOpenGLDebugMessage::Sources*sipRes;

            sipRes = new QOpenGLDebugMessage::Sources(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Sources,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___and__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Sources*sipRes;

            sipRes = new QOpenGLDebugMessage::Sources((*a0 & a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Sources,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Sources,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;
        QOpenGLDebugMessage::Sources* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State, sipType_QOpenGLDebugMessage_Sources, &a1, &a1State))
        {
            QOpenGLDebugMessage::Sources*sipRes;

            sipRes = new QOpenGLDebugMessage::Sources((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Sources,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Sources,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Sources,NULL);
        }
    }

    {
        QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Sources*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLDebugMessage::Sources(*a0 ^ a1);
#line 125609 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Sources,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Sources,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;
        QOpenGLDebugMessage::Sources* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State, sipType_QOpenGLDebugMessage_Sources, &a1, &a1State))
        {
            QOpenGLDebugMessage::Sources*sipRes;

            sipRes = new QOpenGLDebugMessage::Sources((*a0 | *a1));
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Sources,a0State);
            sipReleaseType(a1,sipType_QOpenGLDebugMessage_Sources,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Sources,NULL);
        }
    }

    {
        QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State, &a1))
        {
            QOpenGLDebugMessage::Sources*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLDebugMessage::Sources(*a0 | a1);
#line 125659 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Sources,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage_Sources,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___int__(PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___int__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Sources *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Sources));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Sources)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Sources *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Sources));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State))
        {
            sipCpp->QOpenGLDebugMessage::Sources::operator^=(*a0);
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Sources,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___ior__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Sources)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Sources *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Sources));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State))
        {
            sipCpp->QOpenGLDebugMessage::Sources::operator|=(*a0);
            sipReleaseType(a0,sipType_QOpenGLDebugMessage_Sources,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage_Sources___iand__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage_Sources___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Sources)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Sources *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Sources));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QOpenGLDebugMessage::Sources::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLDebugMessage_Sources(void *, const sipTypeDef *);}
static void *cast_QOpenGLDebugMessage_Sources(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLDebugMessage_Sources)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLDebugMessage_Sources(void *, int);}
static void release_QOpenGLDebugMessage_Sources(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipCppV);
}


extern "C" {static void assign_QOpenGLDebugMessage_Sources(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLDebugMessage_Sources(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLDebugMessage::Sources *>(sipSrc);
}


extern "C" {static void *array_QOpenGLDebugMessage_Sources(SIP_SSIZE_T);}
static void *array_QOpenGLDebugMessage_Sources(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLDebugMessage::Sources[sipNrElem];
}


extern "C" {static void *copy_QOpenGLDebugMessage_Sources(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLDebugMessage_Sources(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLDebugMessage::Sources(reinterpret_cast<const QOpenGLDebugMessage::Sources *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLDebugMessage_Sources(sipSimpleWrapper *);}
static void dealloc_QOpenGLDebugMessage_Sources(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLDebugMessage_Sources(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLDebugMessage_Sources(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLDebugMessage_Sources(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLDebugMessage::Sources *sipCpp = 0;

    {
        const QOpenGLDebugMessage::Sources* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QOpenGLDebugMessage_Sources, &a0, &a0State))
        {
            sipCpp = new QOpenGLDebugMessage::Sources(*a0);
            sipReleaseType(const_cast<QOpenGLDebugMessage::Sources *>(a0),sipType_QOpenGLDebugMessage_Sources,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QOpenGLDebugMessage::Sources(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLDebugMessage::Sources();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QOpenGLDebugMessage_Sources(PyObject *, void **, int *, PyObject *);}
static int convertTo_QOpenGLDebugMessage_Sources(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QOpenGLDebugMessage::Sources **sipCppPtr = reinterpret_cast<QOpenGLDebugMessage::Sources **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QOpenGLDebugMessage::Sources is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Source)) ||
            sipCanConvertToType(sipPy, sipType_QOpenGLDebugMessage_Sources, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Source)))
{
    *sipCppPtr = new QOpenGLDebugMessage::Sources(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QOpenGLDebugMessage::Sources *>(sipConvertToType(sipPy, sipType_QOpenGLDebugMessage_Sources, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 125936 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLDebugMessage_Sources[] = {
    {(void *)slot_QOpenGLDebugMessage_Sources___bool__, bool_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___ne__, ne_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___eq__, eq_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___invert__, invert_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___and__, and_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___xor__, xor_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___or__, or_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___int__, int_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___ixor__, ixor_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___ior__, ior_slot},
    {(void *)slot_QOpenGLDebugMessage_Sources___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLDebugMessage_Sources, "\1QOpenGLDebugMessage.Sources(QOpenGLDebugMessage.Sources)\n"
    "QOpenGLDebugMessage.Sources(int)\n"
    "QOpenGLDebugMessage.Sources()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLDebugMessage_Sources = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugMessage__Sources,
        {0}
    },
    {
        sipNameNr_Sources,
        {132, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLDebugMessage_Sources,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLDebugMessage_Sources,
    init_type_QOpenGLDebugMessage_Sources,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLDebugMessage_Sources,
    assign_QOpenGLDebugMessage_Sources,
    array_QOpenGLDebugMessage_Sources,
    copy_QOpenGLDebugMessage_Sources,
    release_QOpenGLDebugMessage_Sources,
    cast_QOpenGLDebugMessage_Sources,
    convertTo_QOpenGLDebugMessage_Sources,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 35 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopengldebug.sip"
#include <qopengldebug.h>
#line 126018 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 126022 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLDebugMessage_swap, "QOpenGLDebugMessage.swap(QOpenGLDebugMessage)");

extern "C" {static PyObject *meth_QOpenGLDebugMessage_swap(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugMessage_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLDebugMessage* a0;
        QOpenGLDebugMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QOpenGLDebugMessage, &sipCpp, sipType_QOpenGLDebugMessage, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugMessage, sipName_swap, doc_QOpenGLDebugMessage_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugMessage_source, "QOpenGLDebugMessage.source() -> QOpenGLDebugMessage.Source");

extern "C" {static PyObject *meth_QOpenGLDebugMessage_source(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugMessage_source(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugMessage, &sipCpp))
        {
            QOpenGLDebugMessage::Source sipRes;

            sipRes = sipCpp->source();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLDebugMessage_Source);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugMessage, sipName_source, doc_QOpenGLDebugMessage_source);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugMessage_type, "QOpenGLDebugMessage.type() -> QOpenGLDebugMessage.Type");

extern "C" {static PyObject *meth_QOpenGLDebugMessage_type(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugMessage_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugMessage, &sipCpp))
        {
            QOpenGLDebugMessage::Type sipRes;

            sipRes = sipCpp->type();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLDebugMessage_Type);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugMessage, sipName_type, doc_QOpenGLDebugMessage_type);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugMessage_severity, "QOpenGLDebugMessage.severity() -> QOpenGLDebugMessage.Severity");

extern "C" {static PyObject *meth_QOpenGLDebugMessage_severity(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugMessage_severity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugMessage, &sipCpp))
        {
            QOpenGLDebugMessage::Severity sipRes;

            sipRes = sipCpp->severity();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLDebugMessage_Severity);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugMessage, sipName_severity, doc_QOpenGLDebugMessage_severity);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugMessage_id, "QOpenGLDebugMessage.id() -> int");

extern "C" {static PyObject *meth_QOpenGLDebugMessage_id(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugMessage_id(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugMessage, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->id();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugMessage, sipName_id, doc_QOpenGLDebugMessage_id);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugMessage_message, "QOpenGLDebugMessage.message() -> str");

extern "C" {static PyObject *meth_QOpenGLDebugMessage_message(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugMessage_message(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLDebugMessage, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->message());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugMessage, sipName_message, doc_QOpenGLDebugMessage_message);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugMessage_createApplicationMessage, "QOpenGLDebugMessage.createApplicationMessage(str, int id=0, QOpenGLDebugMessage.Severity severity=QOpenGLDebugMessage.NotificationSeverity, QOpenGLDebugMessage.Type type=QOpenGLDebugMessage.OtherType) -> QOpenGLDebugMessage");

extern "C" {static PyObject *meth_QOpenGLDebugMessage_createApplicationMessage(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugMessage_createApplicationMessage(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        GLuint a1 = 0;
        QOpenGLDebugMessage::Severity a2 = QOpenGLDebugMessage::NotificationSeverity;
        QOpenGLDebugMessage::Type a3 = QOpenGLDebugMessage::OtherType;

        static const char *sipKwdList[] = {
            NULL,
            sipName_id,
            sipName_severity,
            sipName_type,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|uEE", sipType_QString,&a0, &a0State, &a1, sipType_QOpenGLDebugMessage_Severity, &a2, sipType_QOpenGLDebugMessage_Type, &a3))
        {
            QOpenGLDebugMessage*sipRes;

            sipRes = new QOpenGLDebugMessage(QOpenGLDebugMessage::createApplicationMessage(*a0,a1,a2,a3));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugMessage, sipName_createApplicationMessage, doc_QOpenGLDebugMessage_createApplicationMessage);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLDebugMessage_createThirdPartyMessage, "QOpenGLDebugMessage.createThirdPartyMessage(str, int id=0, QOpenGLDebugMessage.Severity severity=QOpenGLDebugMessage.NotificationSeverity, QOpenGLDebugMessage.Type type=QOpenGLDebugMessage.OtherType) -> QOpenGLDebugMessage");

extern "C" {static PyObject *meth_QOpenGLDebugMessage_createThirdPartyMessage(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLDebugMessage_createThirdPartyMessage(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        GLuint a1 = 0;
        QOpenGLDebugMessage::Severity a2 = QOpenGLDebugMessage::NotificationSeverity;
        QOpenGLDebugMessage::Type a3 = QOpenGLDebugMessage::OtherType;

        static const char *sipKwdList[] = {
            NULL,
            sipName_id,
            sipName_severity,
            sipName_type,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|uEE", sipType_QString,&a0, &a0State, &a1, sipType_QOpenGLDebugMessage_Severity, &a2, sipType_QOpenGLDebugMessage_Type, &a3))
        {
            QOpenGLDebugMessage*sipRes;

            sipRes = new QOpenGLDebugMessage(QOpenGLDebugMessage::createThirdPartyMessage(*a0,a1,a2,a3));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLDebugMessage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLDebugMessage, sipName_createThirdPartyMessage, doc_QOpenGLDebugMessage_createThirdPartyMessage);

    return NULL;
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage___ne__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLDebugMessage *sipCpp = reinterpret_cast<QOpenGLDebugMessage *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QOpenGLDebugMessage, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QOpenGLDebugMessage::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QOpenGLDebugMessage,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLDebugMessage___eq__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLDebugMessage___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLDebugMessage *sipCpp = reinterpret_cast<QOpenGLDebugMessage *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLDebugMessage* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QOpenGLDebugMessage, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QOpenGLDebugMessage::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLDebugMessage,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLDebugMessage(void *, const sipTypeDef *);}
static void *cast_QOpenGLDebugMessage(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLDebugMessage)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLDebugMessage(void *, int);}
static void release_QOpenGLDebugMessage(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLDebugMessage *>(sipCppV);
}


extern "C" {static void assign_QOpenGLDebugMessage(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLDebugMessage(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLDebugMessage *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLDebugMessage *>(sipSrc);
}


extern "C" {static void *array_QOpenGLDebugMessage(SIP_SSIZE_T);}
static void *array_QOpenGLDebugMessage(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLDebugMessage[sipNrElem];
}


extern "C" {static void *copy_QOpenGLDebugMessage(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLDebugMessage(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLDebugMessage(reinterpret_cast<const QOpenGLDebugMessage *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLDebugMessage(sipSimpleWrapper *);}
static void dealloc_QOpenGLDebugMessage(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLDebugMessage(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLDebugMessage(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLDebugMessage(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLDebugMessage *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLDebugMessage();

            return sipCpp;
        }
    }

    {
        const QOpenGLDebugMessage* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QOpenGLDebugMessage, &a0))
        {
            sipCpp = new QOpenGLDebugMessage(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLDebugMessage[] = {
    {(void *)slot_QOpenGLDebugMessage___ne__, ne_slot},
    {(void *)slot_QOpenGLDebugMessage___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QOpenGLDebugMessage[] = {
    {SIP_MLNAME_CAST(sipName_createApplicationMessage), (PyCFunction)meth_QOpenGLDebugMessage_createApplicationMessage, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLDebugMessage_createApplicationMessage)},
    {SIP_MLNAME_CAST(sipName_createThirdPartyMessage), (PyCFunction)meth_QOpenGLDebugMessage_createThirdPartyMessage, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLDebugMessage_createThirdPartyMessage)},
    {SIP_MLNAME_CAST(sipName_id), meth_QOpenGLDebugMessage_id, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugMessage_id)},
    {SIP_MLNAME_CAST(sipName_message), meth_QOpenGLDebugMessage_message, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugMessage_message)},
    {SIP_MLNAME_CAST(sipName_severity), meth_QOpenGLDebugMessage_severity, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugMessage_severity)},
    {SIP_MLNAME_CAST(sipName_source), meth_QOpenGLDebugMessage_source, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugMessage_source)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QOpenGLDebugMessage_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugMessage_swap)},
    {SIP_MLNAME_CAST(sipName_type), meth_QOpenGLDebugMessage_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLDebugMessage_type)}
};

static sipEnumMemberDef enummembers_QOpenGLDebugMessage[] = {
    {sipName_APISource, static_cast<int>(QOpenGLDebugMessage::APISource), 135},
    {sipName_AnySeverity, static_cast<int>(QOpenGLDebugMessage::AnySeverity), 134},
    {sipName_AnySource, static_cast<int>(QOpenGLDebugMessage::AnySource), 135},
    {sipName_AnyType, static_cast<int>(QOpenGLDebugMessage::AnyType), 137},
    {sipName_ApplicationSource, static_cast<int>(QOpenGLDebugMessage::ApplicationSource), 135},
    {sipName_DeprecatedBehaviorType, static_cast<int>(QOpenGLDebugMessage::DeprecatedBehaviorType), 137},
    {sipName_ErrorType, static_cast<int>(QOpenGLDebugMessage::ErrorType), 137},
    {sipName_GroupPopType, static_cast<int>(QOpenGLDebugMessage::GroupPopType), 137},
    {sipName_GroupPushType, static_cast<int>(QOpenGLDebugMessage::GroupPushType), 137},
    {sipName_HighSeverity, static_cast<int>(QOpenGLDebugMessage::HighSeverity), 134},
    {sipName_InvalidSeverity, static_cast<int>(QOpenGLDebugMessage::InvalidSeverity), 134},
    {sipName_InvalidSource, static_cast<int>(QOpenGLDebugMessage::InvalidSource), 135},
    {sipName_InvalidType, static_cast<int>(QOpenGLDebugMessage::InvalidType), 137},
    {sipName_LowSeverity, static_cast<int>(QOpenGLDebugMessage::LowSeverity), 134},
    {sipName_MarkerType, static_cast<int>(QOpenGLDebugMessage::MarkerType), 137},
    {sipName_MediumSeverity, static_cast<int>(QOpenGLDebugMessage::MediumSeverity), 134},
    {sipName_NotificationSeverity, static_cast<int>(QOpenGLDebugMessage::NotificationSeverity), 134},
    {sipName_OtherSource, static_cast<int>(QOpenGLDebugMessage::OtherSource), 135},
    {sipName_OtherType, static_cast<int>(QOpenGLDebugMessage::OtherType), 137},
    {sipName_PerformanceType, static_cast<int>(QOpenGLDebugMessage::PerformanceType), 137},
    {sipName_PortabilityType, static_cast<int>(QOpenGLDebugMessage::PortabilityType), 137},
    {sipName_ShaderCompilerSource, static_cast<int>(QOpenGLDebugMessage::ShaderCompilerSource), 135},
    {sipName_ThirdPartySource, static_cast<int>(QOpenGLDebugMessage::ThirdPartySource), 135},
    {sipName_UndefinedBehaviorType, static_cast<int>(QOpenGLDebugMessage::UndefinedBehaviorType), 137},
    {sipName_WindowSystemSource, static_cast<int>(QOpenGLDebugMessage::WindowSystemSource), 135},
};

PyDoc_STRVAR(doc_QOpenGLDebugMessage, "\1QOpenGLDebugMessage()\n"
    "QOpenGLDebugMessage(QOpenGLDebugMessage)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLDebugMessage = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLDebugMessage,
        {0}
    },
    {
        sipNameNr_QOpenGLDebugMessage,
        {0, 0, 1},
        8, methods_QOpenGLDebugMessage,
        25, enummembers_QOpenGLDebugMessage,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLDebugMessage,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLDebugMessage,
    init_type_QOpenGLDebugMessage,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLDebugMessage,
    assign_QOpenGLDebugMessage,
    array_QOpenGLDebugMessage,
    copy_QOpenGLDebugMessage,
    release_QOpenGLDebugMessage,
    cast_QOpenGLDebugMessage,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 119 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 126516 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 126520 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 133 "sip/QtCore/qpycore_qpair.sip"
#include <qpair.h>
#line 126523 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLVersionProfile_version, "QOpenGLVersionProfile.version() -> tuple-of-int-int");

extern "C" {static PyObject *meth_QOpenGLVersionProfile_version(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVersionProfile_version(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVersionProfile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVersionProfile, &sipCpp))
        {
            QPair<int,int>*sipRes;

            sipRes = new QPair<int,int>(sipCpp->version());

            return sipConvertFromNewType(sipRes,sipType_QPair_1800_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVersionProfile, sipName_version, doc_QOpenGLVersionProfile_version);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVersionProfile_setVersion, "QOpenGLVersionProfile.setVersion(int, int)");

extern "C" {static PyObject *meth_QOpenGLVersionProfile_setVersion(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVersionProfile_setVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QOpenGLVersionProfile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QOpenGLVersionProfile, &sipCpp, &a0, &a1))
        {
            sipCpp->setVersion(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVersionProfile, sipName_setVersion, doc_QOpenGLVersionProfile_setVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVersionProfile_profile, "QOpenGLVersionProfile.profile() -> QSurfaceFormat.OpenGLContextProfile");

extern "C" {static PyObject *meth_QOpenGLVersionProfile_profile(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVersionProfile_profile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVersionProfile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVersionProfile, &sipCpp))
        {
            QSurfaceFormat::OpenGLContextProfile sipRes;

            sipRes = sipCpp->profile();

            return sipConvertFromEnum(sipRes,sipType_QSurfaceFormat_OpenGLContextProfile);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVersionProfile, sipName_profile, doc_QOpenGLVersionProfile_profile);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVersionProfile_setProfile, "QOpenGLVersionProfile.setProfile(QSurfaceFormat.OpenGLContextProfile)");

extern "C" {static PyObject *meth_QOpenGLVersionProfile_setProfile(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVersionProfile_setProfile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSurfaceFormat::OpenGLContextProfile a0;
        QOpenGLVersionProfile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLVersionProfile, &sipCpp, sipType_QSurfaceFormat_OpenGLContextProfile, &a0))
        {
            sipCpp->setProfile(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVersionProfile, sipName_setProfile, doc_QOpenGLVersionProfile_setProfile);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVersionProfile_hasProfiles, "QOpenGLVersionProfile.hasProfiles() -> bool");

extern "C" {static PyObject *meth_QOpenGLVersionProfile_hasProfiles(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVersionProfile_hasProfiles(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVersionProfile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVersionProfile, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasProfiles();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVersionProfile, sipName_hasProfiles, doc_QOpenGLVersionProfile_hasProfiles);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVersionProfile_isLegacyVersion, "QOpenGLVersionProfile.isLegacyVersion() -> bool");

extern "C" {static PyObject *meth_QOpenGLVersionProfile_isLegacyVersion(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVersionProfile_isLegacyVersion(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVersionProfile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVersionProfile, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isLegacyVersion();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVersionProfile, sipName_isLegacyVersion, doc_QOpenGLVersionProfile_isLegacyVersion);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLVersionProfile_isValid, "QOpenGLVersionProfile.isValid() -> bool");

extern "C" {static PyObject *meth_QOpenGLVersionProfile_isValid(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLVersionProfile_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVersionProfile *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLVersionProfile, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLVersionProfile, sipName_isValid, doc_QOpenGLVersionProfile_isValid);

    return NULL;
}


extern "C" {static PyObject *slot_QOpenGLVersionProfile___eq__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLVersionProfile___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLVersionProfile *sipCpp = reinterpret_cast<QOpenGLVersionProfile *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLVersionProfile));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVersionProfile* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QOpenGLVersionProfile, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLVersionProfile,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLVersionProfile___ne__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLVersionProfile___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLVersionProfile *sipCpp = reinterpret_cast<QOpenGLVersionProfile *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLVersionProfile));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVersionProfile* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QOpenGLVersionProfile, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QOpenGLVersionProfile,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLVersionProfile(void *, const sipTypeDef *);}
static void *cast_QOpenGLVersionProfile(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLVersionProfile)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLVersionProfile(void *, int);}
static void release_QOpenGLVersionProfile(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLVersionProfile *>(sipCppV);
}


extern "C" {static void assign_QOpenGLVersionProfile(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLVersionProfile(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLVersionProfile *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLVersionProfile *>(sipSrc);
}


extern "C" {static void *array_QOpenGLVersionProfile(SIP_SSIZE_T);}
static void *array_QOpenGLVersionProfile(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLVersionProfile[sipNrElem];
}


extern "C" {static void *copy_QOpenGLVersionProfile(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLVersionProfile(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLVersionProfile(reinterpret_cast<const QOpenGLVersionProfile *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLVersionProfile(sipSimpleWrapper *);}
static void dealloc_QOpenGLVersionProfile(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLVersionProfile(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLVersionProfile(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLVersionProfile(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLVersionProfile *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLVersionProfile();

            return sipCpp;
        }
    }

    {
        const QSurfaceFormat* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSurfaceFormat, &a0))
        {
            sipCpp = new QOpenGLVersionProfile(*a0);

            return sipCpp;
        }
    }

    {
        const QOpenGLVersionProfile* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QOpenGLVersionProfile, &a0))
        {
            sipCpp = new QOpenGLVersionProfile(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLVersionProfile[] = {
    {(void *)slot_QOpenGLVersionProfile___eq__, eq_slot},
    {(void *)slot_QOpenGLVersionProfile___ne__, ne_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QOpenGLVersionProfile[] = {
    {SIP_MLNAME_CAST(sipName_hasProfiles), meth_QOpenGLVersionProfile_hasProfiles, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVersionProfile_hasProfiles)},
    {SIP_MLNAME_CAST(sipName_isLegacyVersion), meth_QOpenGLVersionProfile_isLegacyVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVersionProfile_isLegacyVersion)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QOpenGLVersionProfile_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVersionProfile_isValid)},
    {SIP_MLNAME_CAST(sipName_profile), meth_QOpenGLVersionProfile_profile, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVersionProfile_profile)},
    {SIP_MLNAME_CAST(sipName_setProfile), meth_QOpenGLVersionProfile_setProfile, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVersionProfile_setProfile)},
    {SIP_MLNAME_CAST(sipName_setVersion), meth_QOpenGLVersionProfile_setVersion, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVersionProfile_setVersion)},
    {SIP_MLNAME_CAST(sipName_version), meth_QOpenGLVersionProfile_version, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLVersionProfile_version)}
};

PyDoc_STRVAR(doc_QOpenGLVersionProfile, "\1QOpenGLVersionProfile()\n"
    "QOpenGLVersionProfile(QSurfaceFormat)\n"
    "QOpenGLVersionProfile(QOpenGLVersionProfile)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLVersionProfile = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLVersionProfile,
        {0}
    },
    {
        sipNameNr_QOpenGLVersionProfile,
        {0, 0, 1},
        7, methods_QOpenGLVersionProfile,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLVersionProfile,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLVersionProfile,
    init_type_QOpenGLVersionProfile,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLVersionProfile,
    assign_QOpenGLVersionProfile,
    array_QOpenGLVersionProfile,
    copy_QOpenGLVersionProfile,
    release_QOpenGLVersionProfile,
    cast_QOpenGLVersionProfile,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 126950 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 126954 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 126957 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 119 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 126960 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 126963 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qset.sip"
#include <qset.h>
#line 126966 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 126969 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 126972 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 126975 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 126978 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 126981 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 126984 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 126987 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 126990 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 126993 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 126996 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 126999 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 127002 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 127005 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 127008 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 127011 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 127014 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 127017 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOpenGLContext : public QOpenGLContext
{
public:
    sipQOpenGLContext(QObject*);
    virtual ~sipQOpenGLContext();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOpenGLContext(const sipQOpenGLContext &);
    sipQOpenGLContext &operator = (const sipQOpenGLContext &);

    char sipPyMethods[7];
};

sipQOpenGLContext::sipQOpenGLContext(QObject*a0): QOpenGLContext(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOpenGLContext::~sipQOpenGLContext()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQOpenGLContext::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOpenGLContext);
}

int sipQOpenGLContext::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QOpenGLContext::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QOpenGLContext,_c,_id,_a);

    return _id;
}

void *sipQOpenGLContext::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QOpenGLContext, _clname, &sipCpp) ? sipCpp : QOpenGLContext::qt_metacast(_clname));
}

void sipQOpenGLContext::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QOpenGLContext::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLContext::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QOpenGLContext::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLContext::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QOpenGLContext::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLContext::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QOpenGLContext::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOpenGLContext::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QOpenGLContext::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOpenGLContext::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QOpenGLContext::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQOpenGLContext::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QOpenGLContext::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQOpenGLContext::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQOpenGLContext::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQOpenGLContext::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQOpenGLContext::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQOpenGLContext::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQOpenGLContext::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQOpenGLContext::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQOpenGLContext::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQOpenGLContext::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QOpenGLContext_sender, "QOpenGLContext.sender() -> QObject");

extern "C" {static PyObject *meth_QOpenGLContext_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLContext *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 127305 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_sender, doc_QOpenGLContext_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_receivers, "QOpenGLContext.receivers(signal) -> int");

extern "C" {static PyObject *meth_QOpenGLContext_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQOpenGLContext *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QOpenGLContext, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 127364 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_receivers, doc_QOpenGLContext_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_timerEvent, "QOpenGLContext.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QOpenGLContext_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQOpenGLContext *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_timerEvent, doc_QOpenGLContext_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_childEvent, "QOpenGLContext.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QOpenGLContext_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQOpenGLContext *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_childEvent, doc_QOpenGLContext_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_customEvent, "QOpenGLContext.customEvent(QEvent)");

extern "C" {static PyObject *meth_QOpenGLContext_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOpenGLContext *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_customEvent, doc_QOpenGLContext_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_connectNotify, "QOpenGLContext.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLContext_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLContext *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_connectNotify, doc_QOpenGLContext_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_disconnectNotify, "QOpenGLContext.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOpenGLContext_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOpenGLContext *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_disconnectNotify, doc_QOpenGLContext_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_senderSignalIndex, "QOpenGLContext.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QOpenGLContext_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOpenGLContext *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_senderSignalIndex, doc_QOpenGLContext_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_isSignalConnected, "QOpenGLContext.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QOpenGLContext_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQOpenGLContext *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_isSignalConnected, doc_QOpenGLContext_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_setFormat, "QOpenGLContext.setFormat(QSurfaceFormat)");

extern "C" {static PyObject *meth_QOpenGLContext_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat* a0;
        QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QSurfaceFormat, &a0))
        {
            sipCpp->setFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_setFormat, doc_QOpenGLContext_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_setShareContext, "QOpenGLContext.setShareContext(QOpenGLContext)");

extern "C" {static PyObject *meth_QOpenGLContext_setShareContext(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_setShareContext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLContext* a0;
        QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QOpenGLContext, &a0))
        {
            sipCpp->setShareContext(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_setShareContext, doc_QOpenGLContext_setShareContext);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_setScreen, "QOpenGLContext.setScreen(QScreen)");

extern "C" {static PyObject *meth_QOpenGLContext_setScreen(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_setScreen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScreen* a0;
        QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QScreen, &a0))
        {
            sipCpp->setScreen(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_setScreen, doc_QOpenGLContext_setScreen);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_create, "QOpenGLContext.create() -> bool");

extern "C" {static PyObject *meth_QOpenGLContext_create(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->create();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_create, doc_QOpenGLContext_create);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_isValid, "QOpenGLContext.isValid() -> bool");

extern "C" {static PyObject *meth_QOpenGLContext_isValid(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_isValid, doc_QOpenGLContext_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_format, "QOpenGLContext.format() -> QSurfaceFormat");

extern "C" {static PyObject *meth_QOpenGLContext_format(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            QSurfaceFormat*sipRes;

            sipRes = new QSurfaceFormat(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_format, doc_QOpenGLContext_format);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_shareContext, "QOpenGLContext.shareContext() -> QOpenGLContext");

extern "C" {static PyObject *meth_QOpenGLContext_shareContext(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_shareContext(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            QOpenGLContext*sipRes;

            sipRes = sipCpp->shareContext();

            return sipConvertFromType(sipRes,sipType_QOpenGLContext,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_shareContext, doc_QOpenGLContext_shareContext);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_shareGroup, "QOpenGLContext.shareGroup() -> QOpenGLContextGroup");

extern "C" {static PyObject *meth_QOpenGLContext_shareGroup(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_shareGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            QOpenGLContextGroup*sipRes;

            sipRes = sipCpp->shareGroup();

            return sipConvertFromType(sipRes,sipType_QOpenGLContextGroup,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_shareGroup, doc_QOpenGLContext_shareGroup);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_screen, "QOpenGLContext.screen() -> QScreen");

extern "C" {static PyObject *meth_QOpenGLContext_screen(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_screen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            QScreen*sipRes;

            sipRes = sipCpp->screen();

            return sipConvertFromType(sipRes,sipType_QScreen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_screen, doc_QOpenGLContext_screen);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_defaultFramebufferObject, "QOpenGLContext.defaultFramebufferObject() -> int");

extern "C" {static PyObject *meth_QOpenGLContext_defaultFramebufferObject(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_defaultFramebufferObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->defaultFramebufferObject();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_defaultFramebufferObject, doc_QOpenGLContext_defaultFramebufferObject);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_makeCurrent, "QOpenGLContext.makeCurrent(QSurface) -> bool");

extern "C" {static PyObject *meth_QOpenGLContext_makeCurrent(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_makeCurrent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSurface* a0;
        QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QSurface, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->makeCurrent(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_makeCurrent, doc_QOpenGLContext_makeCurrent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_doneCurrent, "QOpenGLContext.doneCurrent()");

extern "C" {static PyObject *meth_QOpenGLContext_doneCurrent(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_doneCurrent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            sipCpp->doneCurrent();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_doneCurrent, doc_QOpenGLContext_doneCurrent);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_swapBuffers, "QOpenGLContext.swapBuffers(QSurface)");

extern "C" {static PyObject *meth_QOpenGLContext_swapBuffers(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_swapBuffers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QSurface* a0;
        QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QSurface, &a0))
        {
            sipCpp->swapBuffers(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_swapBuffers, doc_QOpenGLContext_swapBuffers);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_surface, "QOpenGLContext.surface() -> QSurface");

extern "C" {static PyObject *meth_QOpenGLContext_surface(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_surface(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            QSurface*sipRes;

            sipRes = sipCpp->surface();

            return sipConvertFromType(sipRes,sipType_QSurface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_surface, doc_QOpenGLContext_surface);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_currentContext, "QOpenGLContext.currentContext() -> QOpenGLContext");

extern "C" {static PyObject *meth_QOpenGLContext_currentContext(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_currentContext(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QOpenGLContext*sipRes;

            sipRes = QOpenGLContext::currentContext();

            return sipConvertFromType(sipRes,sipType_QOpenGLContext,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_currentContext, doc_QOpenGLContext_currentContext);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_areSharing, "QOpenGLContext.areSharing(QOpenGLContext, QOpenGLContext) -> bool");

extern "C" {static PyObject *meth_QOpenGLContext_areSharing(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_areSharing(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLContext* a0;
        QOpenGLContext* a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8J8", sipType_QOpenGLContext, &a0, sipType_QOpenGLContext, &a1))
        {
            bool sipRes;

            sipRes = QOpenGLContext::areSharing(a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_areSharing, doc_QOpenGLContext_areSharing);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_extensions, "QOpenGLContext.extensions() -> set-of-QByteArray");

extern "C" {static PyObject *meth_QOpenGLContext_extensions(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_extensions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            QSet<QByteArray>*sipRes;

            sipRes = new QSet<QByteArray>(sipCpp->extensions());

            return sipConvertFromNewType(sipRes,sipType_QSet_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_extensions, doc_QOpenGLContext_extensions);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_hasExtension, "QOpenGLContext.hasExtension(QByteArray) -> bool");

extern "C" {static PyObject *meth_QOpenGLContext_hasExtension(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_hasExtension(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->hasExtension(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_hasExtension, doc_QOpenGLContext_hasExtension);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_versionFunctions, "QOpenGLContext.versionFunctions(QOpenGLVersionProfile versionProfile=None) -> object");

extern "C" {static PyObject *meth_QOpenGLContext_versionFunctions(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_versionFunctions(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLVersionProfile* a0 = 0;
        const QOpenGLContext *sipCpp;

        static const char *sipKwdList[] = {
            sipName_versionProfile,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J8", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QOpenGLVersionProfile, &a0))
        {
            PyObject * sipRes = 0;

#line 82 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
        sipRes = qpyopengl_version_functions(sipCpp, sipSelf, a0);
#line 128089 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_versionFunctions, doc_QOpenGLContext_versionFunctions);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_openGLModuleHandle, "QOpenGLContext.openGLModuleHandle() -> sip.voidptr");

extern "C" {static PyObject *meth_QOpenGLContext_openGLModuleHandle(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_openGLModuleHandle(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            void*sipRes;

            sipRes = QOpenGLContext::openGLModuleHandle();

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_openGLModuleHandle, doc_QOpenGLContext_openGLModuleHandle);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_openGLModuleType, "QOpenGLContext.openGLModuleType() -> QOpenGLContext.OpenGLModuleType");

extern "C" {static PyObject *meth_QOpenGLContext_openGLModuleType(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_openGLModuleType(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QOpenGLContext::OpenGLModuleType sipRes;

            sipRes = QOpenGLContext::openGLModuleType();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLContext_OpenGLModuleType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_openGLModuleType, doc_QOpenGLContext_openGLModuleType);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_isOpenGLES, "QOpenGLContext.isOpenGLES() -> bool");

extern "C" {static PyObject *meth_QOpenGLContext_isOpenGLES(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_isOpenGLES(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isOpenGLES();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_isOpenGLES, doc_QOpenGLContext_isOpenGLES);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_setNativeHandle, "QOpenGLContext.setNativeHandle(QVariant)");

extern "C" {static PyObject *meth_QOpenGLContext_setNativeHandle(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_setNativeHandle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVariant* a0;
        int a0State = 0;
        QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QOpenGLContext, &sipCpp, sipType_QVariant, &a0, &a0State))
        {
            sipCpp->setNativeHandle(*a0);
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_setNativeHandle, doc_QOpenGLContext_setNativeHandle);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContext_nativeHandle, "QOpenGLContext.nativeHandle() -> QVariant");

extern "C" {static PyObject *meth_QOpenGLContext_nativeHandle(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContext_nativeHandle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContext *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContext, &sipCpp))
        {
            QVariant*sipRes;

            sipRes = new QVariant(sipCpp->nativeHandle());

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContext, sipName_nativeHandle, doc_QOpenGLContext_nativeHandle);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLContext(void *, const sipTypeDef *);}
static void *cast_QOpenGLContext(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLContext)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QOpenGLContext *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLContext(void *, int);}
static void release_QOpenGLContext(void *sipCppV,int)
{
    QOpenGLContext *sipCpp = reinterpret_cast<QOpenGLContext *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOpenGLContext(sipSimpleWrapper *);}
static void dealloc_QOpenGLContext(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOpenGLContext *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLContext(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOpenGLContext(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLContext(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQOpenGLContext *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQOpenGLContext(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLContext[] = {{162, 0, 1}};


static PyMethodDef methods_QOpenGLContext[] = {
    {SIP_MLNAME_CAST(sipName_areSharing), meth_QOpenGLContext_areSharing, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_areSharing)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QOpenGLContext_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QOpenGLContext_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_QOpenGLContext_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_create)},
    {SIP_MLNAME_CAST(sipName_currentContext), meth_QOpenGLContext_currentContext, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_currentContext)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QOpenGLContext_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultFramebufferObject), meth_QOpenGLContext_defaultFramebufferObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_defaultFramebufferObject)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QOpenGLContext_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_doneCurrent), meth_QOpenGLContext_doneCurrent, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_doneCurrent)},
    {SIP_MLNAME_CAST(sipName_extensions), meth_QOpenGLContext_extensions, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_extensions)},
    {SIP_MLNAME_CAST(sipName_format), meth_QOpenGLContext_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_format)},
    {SIP_MLNAME_CAST(sipName_hasExtension), meth_QOpenGLContext_hasExtension, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_hasExtension)},
    {SIP_MLNAME_CAST(sipName_isOpenGLES), meth_QOpenGLContext_isOpenGLES, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_isOpenGLES)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QOpenGLContext_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QOpenGLContext_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_isValid)},
    {SIP_MLNAME_CAST(sipName_makeCurrent), meth_QOpenGLContext_makeCurrent, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_makeCurrent)},
    {SIP_MLNAME_CAST(sipName_nativeHandle), meth_QOpenGLContext_nativeHandle, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_nativeHandle)},
    {SIP_MLNAME_CAST(sipName_openGLModuleHandle), meth_QOpenGLContext_openGLModuleHandle, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_openGLModuleHandle)},
    {SIP_MLNAME_CAST(sipName_openGLModuleType), meth_QOpenGLContext_openGLModuleType, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_openGLModuleType)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QOpenGLContext_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_screen), meth_QOpenGLContext_screen, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_screen)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QOpenGLContext_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QOpenGLContext_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QOpenGLContext_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_setFormat)},
    {SIP_MLNAME_CAST(sipName_setNativeHandle), meth_QOpenGLContext_setNativeHandle, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_setNativeHandle)},
    {SIP_MLNAME_CAST(sipName_setScreen), meth_QOpenGLContext_setScreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_setScreen)},
    {SIP_MLNAME_CAST(sipName_setShareContext), meth_QOpenGLContext_setShareContext, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_setShareContext)},
    {SIP_MLNAME_CAST(sipName_shareContext), meth_QOpenGLContext_shareContext, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_shareContext)},
    {SIP_MLNAME_CAST(sipName_shareGroup), meth_QOpenGLContext_shareGroup, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_shareGroup)},
    {SIP_MLNAME_CAST(sipName_surface), meth_QOpenGLContext_surface, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_surface)},
    {SIP_MLNAME_CAST(sipName_swapBuffers), meth_QOpenGLContext_swapBuffers, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContext_swapBuffers)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QOpenGLContext_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_versionFunctions), (PyCFunction)meth_QOpenGLContext_versionFunctions, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QOpenGLContext_versionFunctions)}
};

static sipEnumMemberDef enummembers_QOpenGLContext[] = {
    {sipName_LibGL, static_cast<int>(QOpenGLContext::LibGL), 128},
    {sipName_LibGLES, static_cast<int>(QOpenGLContext::LibGLES), 128},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QOpenGLContext[] = {
    {"aboutToBeDestroyed()", "\1QOpenGLContext.aboutToBeDestroyed", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QOpenGLContext, "\1QOpenGLContext(QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLContext = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLContext,
        {0}
    },
    {
        sipNameNr_QOpenGLContext,
        {0, 0, 1},
        33, methods_QOpenGLContext,
        2, enummembers_QOpenGLContext,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLContext,
    -1,
    -1,
    supers_QOpenGLContext,
    0,
    init_type_QOpenGLContext,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLContext,
    0,
    0,
    0,
    release_QOpenGLContext,
    cast_QOpenGLContext,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOpenGLContext::staticMetaObject,
    0,
    signals_QOpenGLContext,
    0
};

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 128415 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 128419 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglcontext.sip"
#include <qopenglcontext.h>
#line 128422 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 128425 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 128428 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 128431 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 128434 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 128437 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 128440 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 128443 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 128446 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 128449 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 128452 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 128455 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 128458 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 128461 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 128464 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 128467 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 128470 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLContextGroup_shares, "QOpenGLContextGroup.shares() -> list-of-QOpenGLContext");

extern "C" {static PyObject *meth_QOpenGLContextGroup_shares(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContextGroup_shares(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLContextGroup *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLContextGroup, &sipCpp))
        {
            QList<QOpenGLContext*>*sipRes;

            sipRes = new QList<QOpenGLContext*>(sipCpp->shares());

            return sipConvertFromNewType(sipRes,sipType_QList_0101QOpenGLContext,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContextGroup, sipName_shares, doc_QOpenGLContextGroup_shares);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLContextGroup_currentContextGroup, "QOpenGLContextGroup.currentContextGroup() -> QOpenGLContextGroup");

extern "C" {static PyObject *meth_QOpenGLContextGroup_currentContextGroup(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLContextGroup_currentContextGroup(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QOpenGLContextGroup*sipRes;

            sipRes = QOpenGLContextGroup::currentContextGroup();

            return sipConvertFromType(sipRes,sipType_QOpenGLContextGroup,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLContextGroup, sipName_currentContextGroup, doc_QOpenGLContextGroup_currentContextGroup);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLContextGroup(void *, const sipTypeDef *);}
static void *cast_QOpenGLContextGroup(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOpenGLContextGroup)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QOpenGLContextGroup *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLContextGroup(void *, int);}
static void release_QOpenGLContextGroup(void *sipCppV,int)
{
    QOpenGLContextGroup *sipCpp = reinterpret_cast<QOpenGLContextGroup *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOpenGLContextGroup(sipSimpleWrapper *);}
static void dealloc_QOpenGLContextGroup(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLContextGroup(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOpenGLContextGroup[] = {{162, 0, 1}};


static PyMethodDef methods_QOpenGLContextGroup[] = {
    {SIP_MLNAME_CAST(sipName_currentContextGroup), meth_QOpenGLContextGroup_currentContextGroup, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContextGroup_currentContextGroup)},
    {SIP_MLNAME_CAST(sipName_shares), meth_QOpenGLContextGroup_shares, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLContextGroup_shares)}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLContextGroup = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLContextGroup,
        {0}
    },
    {
        sipNameNr_QOpenGLContextGroup,
        {0, 0, 1},
        2, methods_QOpenGLContextGroup,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QOpenGLContextGroup,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLContextGroup,
    0,
    0,
    0,
    release_QOpenGLContextGroup,
    cast_QOpenGLContextGroup,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOpenGLContextGroup::staticMetaObject,
    0,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 128630 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 128634 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QOpenGLBuffer_RangeAccessFlags___bool__(PyObject *);}
static int slot_QOpenGLBuffer_RangeAccessFlags___bool__(PyObject *sipSelf)
{
    QOpenGLBuffer::RangeAccessFlags *sipCpp = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer_RangeAccessFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLBuffer::RangeAccessFlags::Int() != 0);
#line 128652 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLBuffer::RangeAccessFlags *sipCpp = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer_RangeAccessFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLBuffer::RangeAccessFlags::Int() != a0->operator QOpenGLBuffer::RangeAccessFlags::Int());
#line 128682 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLBuffer::RangeAccessFlags *>(a0),sipType_QOpenGLBuffer_RangeAccessFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QOpenGLBuffer_RangeAccessFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QOpenGLBuffer::RangeAccessFlags *sipCpp = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer_RangeAccessFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QOpenGLBuffer::RangeAccessFlags::Int() == a0->operator QOpenGLBuffer::RangeAccessFlags::Int());
#line 128718 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QOpenGLBuffer::RangeAccessFlags *>(a0),sipType_QOpenGLBuffer_RangeAccessFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QOpenGLBuffer_RangeAccessFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___invert__(PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___invert__(PyObject *sipSelf)
{
    QOpenGLBuffer::RangeAccessFlags *sipCpp = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer_RangeAccessFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QOpenGLBuffer::RangeAccessFlags*sipRes;

            sipRes = new QOpenGLBuffer::RangeAccessFlags(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QOpenGLBuffer_RangeAccessFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State, &a1))
        {
            QOpenGLBuffer::RangeAccessFlags*sipRes;

            sipRes = new QOpenGLBuffer::RangeAccessFlags((*a0 & a1));
            sipReleaseType(a0,sipType_QOpenGLBuffer_RangeAccessFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLBuffer_RangeAccessFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;
        QOpenGLBuffer::RangeAccessFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State, sipType_QOpenGLBuffer_RangeAccessFlags, &a1, &a1State))
        {
            QOpenGLBuffer::RangeAccessFlags*sipRes;

            sipRes = new QOpenGLBuffer::RangeAccessFlags((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QOpenGLBuffer_RangeAccessFlags,a0State);
            sipReleaseType(a1,sipType_QOpenGLBuffer_RangeAccessFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLBuffer_RangeAccessFlags,NULL);
        }
    }

    {
        QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State, &a1))
        {
            QOpenGLBuffer::RangeAccessFlags*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLBuffer::RangeAccessFlags(*a0 ^ a1);
#line 128821 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLBuffer_RangeAccessFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLBuffer_RangeAccessFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;
        QOpenGLBuffer::RangeAccessFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State, sipType_QOpenGLBuffer_RangeAccessFlags, &a1, &a1State))
        {
            QOpenGLBuffer::RangeAccessFlags*sipRes;

            sipRes = new QOpenGLBuffer::RangeAccessFlags((*a0 | *a1));
            sipReleaseType(a0,sipType_QOpenGLBuffer_RangeAccessFlags,a0State);
            sipReleaseType(a1,sipType_QOpenGLBuffer_RangeAccessFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLBuffer_RangeAccessFlags,NULL);
        }
    }

    {
        QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State, &a1))
        {
            QOpenGLBuffer::RangeAccessFlags*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QOpenGLBuffer::RangeAccessFlags(*a0 | a1);
#line 128871 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QOpenGLBuffer_RangeAccessFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QOpenGLBuffer_RangeAccessFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___int__(PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___int__(PyObject *sipSelf)
{
    QOpenGLBuffer::RangeAccessFlags *sipCpp = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer_RangeAccessFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLBuffer_RangeAccessFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLBuffer::RangeAccessFlags *sipCpp = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer_RangeAccessFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State))
        {
            sipCpp->QOpenGLBuffer::RangeAccessFlags::operator^=(*a0);
            sipReleaseType(a0,sipType_QOpenGLBuffer_RangeAccessFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLBuffer_RangeAccessFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLBuffer::RangeAccessFlags *sipCpp = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer_RangeAccessFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State))
        {
            sipCpp->QOpenGLBuffer::RangeAccessFlags::operator|=(*a0);
            sipReleaseType(a0,sipType_QOpenGLBuffer_RangeAccessFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QOpenGLBuffer_RangeAccessFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLBuffer_RangeAccessFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLBuffer::RangeAccessFlags *sipCpp = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer_RangeAccessFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QOpenGLBuffer::RangeAccessFlags::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLBuffer_RangeAccessFlags(void *, const sipTypeDef *);}
static void *cast_QOpenGLBuffer_RangeAccessFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLBuffer_RangeAccessFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLBuffer_RangeAccessFlags(void *, int);}
static void release_QOpenGLBuffer_RangeAccessFlags(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipCppV);
}


extern "C" {static void assign_QOpenGLBuffer_RangeAccessFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLBuffer_RangeAccessFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLBuffer::RangeAccessFlags *>(sipSrc);
}


extern "C" {static void *array_QOpenGLBuffer_RangeAccessFlags(SIP_SSIZE_T);}
static void *array_QOpenGLBuffer_RangeAccessFlags(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLBuffer::RangeAccessFlags[sipNrElem];
}


extern "C" {static void *copy_QOpenGLBuffer_RangeAccessFlags(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLBuffer_RangeAccessFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLBuffer::RangeAccessFlags(reinterpret_cast<const QOpenGLBuffer::RangeAccessFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLBuffer_RangeAccessFlags(sipSimpleWrapper *);}
static void dealloc_QOpenGLBuffer_RangeAccessFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLBuffer_RangeAccessFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLBuffer_RangeAccessFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLBuffer_RangeAccessFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLBuffer::RangeAccessFlags *sipCpp = 0;

    {
        const QOpenGLBuffer::RangeAccessFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QOpenGLBuffer_RangeAccessFlags, &a0, &a0State))
        {
            sipCpp = new QOpenGLBuffer::RangeAccessFlags(*a0);
            sipReleaseType(const_cast<QOpenGLBuffer::RangeAccessFlags *>(a0),sipType_QOpenGLBuffer_RangeAccessFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QOpenGLBuffer::RangeAccessFlags(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLBuffer::RangeAccessFlags();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QOpenGLBuffer_RangeAccessFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QOpenGLBuffer_RangeAccessFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QOpenGLBuffer::RangeAccessFlags **sipCppPtr = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QOpenGLBuffer::RangeAccessFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLBuffer_RangeAccessFlag)) ||
            sipCanConvertToType(sipPy, sipType_QOpenGLBuffer_RangeAccessFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QOpenGLBuffer_RangeAccessFlag)))
{
    *sipCppPtr = new QOpenGLBuffer::RangeAccessFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QOpenGLBuffer::RangeAccessFlags *>(sipConvertToType(sipPy, sipType_QOpenGLBuffer_RangeAccessFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 129148 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLBuffer_RangeAccessFlags[] = {
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___bool__, bool_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___ne__, ne_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___eq__, eq_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___invert__, invert_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___and__, and_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___xor__, xor_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___or__, or_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___int__, int_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___ixor__, ixor_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___ior__, ior_slot},
    {(void *)slot_QOpenGLBuffer_RangeAccessFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QOpenGLBuffer_RangeAccessFlags, "\1QOpenGLBuffer.RangeAccessFlags(QOpenGLBuffer.RangeAccessFlags)\n"
    "QOpenGLBuffer.RangeAccessFlags(int)\n"
    "QOpenGLBuffer.RangeAccessFlags()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLBuffer_RangeAccessFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLBuffer__RangeAccessFlags,
        {0}
    },
    {
        sipNameNr_RangeAccessFlags,
        {121, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLBuffer_RangeAccessFlags,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLBuffer_RangeAccessFlags,
    init_type_QOpenGLBuffer_RangeAccessFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLBuffer_RangeAccessFlags,
    assign_QOpenGLBuffer_RangeAccessFlags,
    array_QOpenGLBuffer_RangeAccessFlags,
    copy_QOpenGLBuffer_RangeAccessFlags,
    release_QOpenGLBuffer_RangeAccessFlags,
    cast_QOpenGLBuffer_RangeAccessFlags,
    convertTo_QOpenGLBuffer_RangeAccessFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 129230 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qopenglbuffer.sip"
#include <qopenglbuffer.h>
#line 129234 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QOpenGLBuffer_type, "QOpenGLBuffer.type() -> QOpenGLBuffer.Type");

extern "C" {static PyObject *meth_QOpenGLBuffer_type(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            QOpenGLBuffer::Type sipRes;

            sipRes = sipCpp->type();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLBuffer_Type);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_type, doc_QOpenGLBuffer_type);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_usagePattern, "QOpenGLBuffer.usagePattern() -> QOpenGLBuffer.UsagePattern");

extern "C" {static PyObject *meth_QOpenGLBuffer_usagePattern(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_usagePattern(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            QOpenGLBuffer::UsagePattern sipRes;

            sipRes = sipCpp->usagePattern();

            return sipConvertFromEnum(sipRes,sipType_QOpenGLBuffer_UsagePattern);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_usagePattern, doc_QOpenGLBuffer_usagePattern);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_setUsagePattern, "QOpenGLBuffer.setUsagePattern(QOpenGLBuffer.UsagePattern)");

extern "C" {static PyObject *meth_QOpenGLBuffer_setUsagePattern(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_setUsagePattern(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer::UsagePattern a0;
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLBuffer, &sipCpp, sipType_QOpenGLBuffer_UsagePattern, &a0))
        {
            sipCpp->setUsagePattern(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_setUsagePattern, doc_QOpenGLBuffer_setUsagePattern);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_create, "QOpenGLBuffer.create() -> bool");

extern "C" {static PyObject *meth_QOpenGLBuffer_create(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->create();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_create, doc_QOpenGLBuffer_create);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_isCreated, "QOpenGLBuffer.isCreated() -> bool");

extern "C" {static PyObject *meth_QOpenGLBuffer_isCreated(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_isCreated(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isCreated();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_isCreated, doc_QOpenGLBuffer_isCreated);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_destroy, "QOpenGLBuffer.destroy()");

extern "C" {static PyObject *meth_QOpenGLBuffer_destroy(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_destroy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            sipCpp->destroy();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_destroy, doc_QOpenGLBuffer_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_bind, "QOpenGLBuffer.bind() -> bool");

extern "C" {static PyObject *meth_QOpenGLBuffer_bind(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_bind(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->bind();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_bind, doc_QOpenGLBuffer_bind);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_release, "QOpenGLBuffer.release()\n"
    "QOpenGLBuffer.release(QOpenGLBuffer.Type)");

extern "C" {static PyObject *meth_QOpenGLBuffer_release(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_release(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            sipCpp->release();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QOpenGLBuffer::Type a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QOpenGLBuffer_Type, &a0))
        {
            QOpenGLBuffer::release(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_release, doc_QOpenGLBuffer_release);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_bufferId, "QOpenGLBuffer.bufferId() -> int");

extern "C" {static PyObject *meth_QOpenGLBuffer_bufferId(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_bufferId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            GLuint sipRes;

            sipRes = sipCpp->bufferId();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_bufferId, doc_QOpenGLBuffer_bufferId);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_size, "QOpenGLBuffer.size() -> int");

extern "C" {static PyObject *meth_QOpenGLBuffer_size(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->size();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_size, doc_QOpenGLBuffer_size);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_read, "QOpenGLBuffer.read(int, sip.voidptr, int) -> bool");

extern "C" {static PyObject *meth_QOpenGLBuffer_read(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_read(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        void* a1;
        int a2;
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bivi", &sipSelf, sipType_QOpenGLBuffer, &sipCpp, &a0, &a1, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->read(a0,a1,a2);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_read, doc_QOpenGLBuffer_read);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_write, "QOpenGLBuffer.write(int, sip.voidptr, int)");

extern "C" {static PyObject *meth_QOpenGLBuffer_write(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_write(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const void* a1;
        int a2;
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bivi", &sipSelf, sipType_QOpenGLBuffer, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->write(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_write, doc_QOpenGLBuffer_write);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_allocate, "QOpenGLBuffer.allocate(sip.voidptr, int)\n"
    "QOpenGLBuffer.allocate(int)");

extern "C" {static PyObject *meth_QOpenGLBuffer_allocate(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_allocate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const void* a0;
        int a1;
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bvi", &sipSelf, sipType_QOpenGLBuffer, &sipCpp, &a0, &a1))
        {
            sipCpp->allocate(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QOpenGLBuffer, &sipCpp, &a0))
        {
            sipCpp->allocate(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_allocate, doc_QOpenGLBuffer_allocate);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_map, "QOpenGLBuffer.map(QOpenGLBuffer.Access) -> sip.voidptr");

extern "C" {static PyObject *meth_QOpenGLBuffer_map(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_map(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer::Access a0;
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QOpenGLBuffer, &sipCpp, sipType_QOpenGLBuffer_Access, &a0))
        {
            void*sipRes;

            sipRes = sipCpp->map(a0);

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_map, doc_QOpenGLBuffer_map);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_unmap, "QOpenGLBuffer.unmap() -> bool");

extern "C" {static PyObject *meth_QOpenGLBuffer_unmap(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_unmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOpenGLBuffer, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->unmap();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_unmap, doc_QOpenGLBuffer_unmap);

    return NULL;
}


PyDoc_STRVAR(doc_QOpenGLBuffer_mapRange, "QOpenGLBuffer.mapRange(int, int, QOpenGLBuffer.RangeAccessFlags) -> sip.voidptr");

extern "C" {static PyObject *meth_QOpenGLBuffer_mapRange(PyObject *, PyObject *);}
static PyObject *meth_QOpenGLBuffer_mapRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        QOpenGLBuffer::RangeAccessFlags* a2;
        int a2State = 0;
        QOpenGLBuffer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiiJ1", &sipSelf, sipType_QOpenGLBuffer, &sipCpp, &a0, &a1, sipType_QOpenGLBuffer_RangeAccessFlags, &a2, &a2State))
        {
            void*sipRes;

            sipRes = sipCpp->mapRange(a0,a1,*a2);
            sipReleaseType(a2,sipType_QOpenGLBuffer_RangeAccessFlags,a2State);

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOpenGLBuffer, sipName_mapRange, doc_QOpenGLBuffer_mapRange);

    return NULL;
}


extern "C" {static SIP_SSIZE_T slot_QOpenGLBuffer___len__(PyObject *);}
static SIP_SSIZE_T slot_QOpenGLBuffer___len__(PyObject *sipSelf)
{
    QOpenGLBuffer *sipCpp = reinterpret_cast<QOpenGLBuffer *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLBuffer));

    if (!sipCpp)
        return 0;


    {
        {
            SIP_SSIZE_T sipRes = 0;

#line 1 "Auto-generated"
            sipRes = (SIP_SSIZE_T)sipCpp->size();
#line 129721 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOpenGLBuffer(void *, const sipTypeDef *);}
static void *cast_QOpenGLBuffer(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QOpenGLBuffer)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOpenGLBuffer(void *, int);}
static void release_QOpenGLBuffer(void *sipCppV,int)
{
    delete reinterpret_cast<QOpenGLBuffer *>(sipCppV);
}


extern "C" {static void assign_QOpenGLBuffer(void *, SIP_SSIZE_T, const void *);}
static void assign_QOpenGLBuffer(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QOpenGLBuffer *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QOpenGLBuffer *>(sipSrc);
}


extern "C" {static void *array_QOpenGLBuffer(SIP_SSIZE_T);}
static void *array_QOpenGLBuffer(SIP_SSIZE_T sipNrElem)
{
    return new QOpenGLBuffer[sipNrElem];
}


extern "C" {static void *copy_QOpenGLBuffer(const void *, SIP_SSIZE_T);}
static void *copy_QOpenGLBuffer(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QOpenGLBuffer(reinterpret_cast<const QOpenGLBuffer *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QOpenGLBuffer(sipSimpleWrapper *);}
static void dealloc_QOpenGLBuffer(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QOpenGLBuffer(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QOpenGLBuffer(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOpenGLBuffer(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QOpenGLBuffer *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QOpenGLBuffer();

            return sipCpp;
        }
    }

    {
        QOpenGLBuffer::Type a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_QOpenGLBuffer_Type, &a0))
        {
            sipCpp = new QOpenGLBuffer(a0);

            return sipCpp;
        }
    }

    {
        const QOpenGLBuffer* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QOpenGLBuffer, &a0))
        {
            sipCpp = new QOpenGLBuffer(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QOpenGLBuffer[] = {
    {(void *)slot_QOpenGLBuffer___len__, len_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QOpenGLBuffer[] = {
    {SIP_MLNAME_CAST(sipName_allocate), meth_QOpenGLBuffer_allocate, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_allocate)},
    {SIP_MLNAME_CAST(sipName_bind), meth_QOpenGLBuffer_bind, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_bind)},
    {SIP_MLNAME_CAST(sipName_bufferId), meth_QOpenGLBuffer_bufferId, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_bufferId)},
    {SIP_MLNAME_CAST(sipName_create), meth_QOpenGLBuffer_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_create)},
    {SIP_MLNAME_CAST(sipName_destroy), meth_QOpenGLBuffer_destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_destroy)},
    {SIP_MLNAME_CAST(sipName_isCreated), meth_QOpenGLBuffer_isCreated, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_isCreated)},
    {SIP_MLNAME_CAST(sipName_map), meth_QOpenGLBuffer_map, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_map)},
    {SIP_MLNAME_CAST(sipName_mapRange), meth_QOpenGLBuffer_mapRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_mapRange)},
    {SIP_MLNAME_CAST(sipName_read), meth_QOpenGLBuffer_read, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_read)},
    {SIP_MLNAME_CAST(sipName_release), meth_QOpenGLBuffer_release, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_release)},
    {SIP_MLNAME_CAST(sipName_setUsagePattern), meth_QOpenGLBuffer_setUsagePattern, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_setUsagePattern)},
    {SIP_MLNAME_CAST(sipName_size), meth_QOpenGLBuffer_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_size)},
    {SIP_MLNAME_CAST(sipName_type), meth_QOpenGLBuffer_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_type)},
    {SIP_MLNAME_CAST(sipName_unmap), meth_QOpenGLBuffer_unmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_unmap)},
    {SIP_MLNAME_CAST(sipName_usagePattern), meth_QOpenGLBuffer_usagePattern, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_usagePattern)},
    {SIP_MLNAME_CAST(sipName_write), meth_QOpenGLBuffer_write, METH_VARARGS, SIP_MLDOC_CAST(doc_QOpenGLBuffer_write)}
};

static sipEnumMemberDef enummembers_QOpenGLBuffer[] = {
    {sipName_DynamicCopy, static_cast<int>(QOpenGLBuffer::DynamicCopy), 126},
    {sipName_DynamicDraw, static_cast<int>(QOpenGLBuffer::DynamicDraw), 126},
    {sipName_DynamicRead, static_cast<int>(QOpenGLBuffer::DynamicRead), 126},
    {sipName_IndexBuffer, static_cast<int>(QOpenGLBuffer::IndexBuffer), 125},
    {sipName_PixelPackBuffer, static_cast<int>(QOpenGLBuffer::PixelPackBuffer), 125},
    {sipName_PixelUnpackBuffer, static_cast<int>(QOpenGLBuffer::PixelUnpackBuffer), 125},
    {sipName_RangeFlushExplicit, static_cast<int>(QOpenGLBuffer::RangeFlushExplicit), 123},
    {sipName_RangeInvalidate, static_cast<int>(QOpenGLBuffer::RangeInvalidate), 123},
    {sipName_RangeInvalidateBuffer, static_cast<int>(QOpenGLBuffer::RangeInvalidateBuffer), 123},
    {sipName_RangeRead, static_cast<int>(QOpenGLBuffer::RangeRead), 123},
    {sipName_RangeUnsynchronized, static_cast<int>(QOpenGLBuffer::RangeUnsynchronized), 123},
    {sipName_RangeWrite, static_cast<int>(QOpenGLBuffer::RangeWrite), 123},
    {sipName_ReadOnly, static_cast<int>(QOpenGLBuffer::ReadOnly), 122},
    {sipName_ReadWrite, static_cast<int>(QOpenGLBuffer::ReadWrite), 122},
    {sipName_StaticCopy, static_cast<int>(QOpenGLBuffer::StaticCopy), 126},
    {sipName_StaticDraw, static_cast<int>(QOpenGLBuffer::StaticDraw), 126},
    {sipName_StaticRead, static_cast<int>(QOpenGLBuffer::StaticRead), 126},
    {sipName_StreamCopy, static_cast<int>(QOpenGLBuffer::StreamCopy), 126},
    {sipName_StreamDraw, static_cast<int>(QOpenGLBuffer::StreamDraw), 126},
    {sipName_StreamRead, static_cast<int>(QOpenGLBuffer::StreamRead), 126},
    {sipName_VertexBuffer, static_cast<int>(QOpenGLBuffer::VertexBuffer), 125},
    {sipName_WriteOnly, static_cast<int>(QOpenGLBuffer::WriteOnly), 122},
};

PyDoc_STRVAR(doc_QOpenGLBuffer, "\1QOpenGLBuffer()\n"
    "QOpenGLBuffer(QOpenGLBuffer.Type)\n"
    "QOpenGLBuffer(QOpenGLBuffer)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOpenGLBuffer = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOpenGLBuffer,
        {0}
    },
    {
        sipNameNr_QOpenGLBuffer,
        {0, 0, 1},
        16, methods_QOpenGLBuffer,
        22, enummembers_QOpenGLBuffer,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOpenGLBuffer,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QOpenGLBuffer,
    init_type_QOpenGLBuffer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOpenGLBuffer,
    assign_QOpenGLBuffer,
    array_QOpenGLBuffer,
    copy_QOpenGLBuffer,
    release_QOpenGLBuffer,
    cast_QOpenGLBuffer,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qoffscreensurface.sip"
#include <qoffscreensurface.h>
#line 129934 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 129938 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 129941 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 129944 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 129947 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 129950 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 129953 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 129956 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 129959 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 129962 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 129965 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 129968 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 129971 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 129974 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 129977 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 129980 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 129983 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 129986 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 129989 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 129992 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 129995 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQOffscreenSurface : public QOffscreenSurface
{
public:
    sipQOffscreenSurface(QScreen*);
    virtual ~sipQOffscreenSurface();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    QSize size() const;
    QSurfaceFormat format() const;
    QSurface::SurfaceType surfaceType() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQOffscreenSurface(const sipQOffscreenSurface &);
    sipQOffscreenSurface &operator = (const sipQOffscreenSurface &);

    char sipPyMethods[10];
};

sipQOffscreenSurface::sipQOffscreenSurface(QScreen*a0): QOffscreenSurface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQOffscreenSurface::~sipQOffscreenSurface()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQOffscreenSurface::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QOffscreenSurface);
}

int sipQOffscreenSurface::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QOffscreenSurface::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QOffscreenSurface,_c,_id,_a);

    return _id;
}

void *sipQOffscreenSurface::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QOffscreenSurface, _clname, &sipCpp) ? sipCpp : QOffscreenSurface::qt_metacast(_clname));
}

void sipQOffscreenSurface::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QOffscreenSurface::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOffscreenSurface::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QOffscreenSurface::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOffscreenSurface::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QOffscreenSurface::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOffscreenSurface::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QOffscreenSurface::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQOffscreenSurface::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QOffscreenSurface::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQOffscreenSurface::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QOffscreenSurface::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQOffscreenSurface::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QOffscreenSurface::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QSize sipQOffscreenSurface::size() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_size);

    if (!sipMeth)
        return QOffscreenSurface::size();

    extern QSize sipVH_QtGui_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_12(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSurfaceFormat sipQOffscreenSurface::format() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_format);

    if (!sipMeth)
        return QOffscreenSurface::format();

    extern QSurfaceFormat sipVH_QtGui_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_13(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QSurface::SurfaceType sipQOffscreenSurface::surfaceType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_surfaceType);

    if (!sipMeth)
        return QOffscreenSurface::surfaceType();

    extern QSurface::SurfaceType sipVH_QtGui_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_14(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QObject* sipQOffscreenSurface::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQOffscreenSurface::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQOffscreenSurface::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQOffscreenSurface::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQOffscreenSurface::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQOffscreenSurface::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQOffscreenSurface::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQOffscreenSurface::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQOffscreenSurface::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QOffscreenSurface_sender, "QOffscreenSurface.sender() -> QObject");

extern "C" {static PyObject *meth_QOffscreenSurface_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOffscreenSurface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 130331 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_sender, doc_QOffscreenSurface_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_receivers, "QOffscreenSurface.receivers(signal) -> int");

extern "C" {static PyObject *meth_QOffscreenSurface_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQOffscreenSurface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QOffscreenSurface, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 130390 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_receivers, doc_QOffscreenSurface_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_timerEvent, "QOffscreenSurface.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QOffscreenSurface_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQOffscreenSurface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOffscreenSurface, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_timerEvent, doc_QOffscreenSurface_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_childEvent, "QOffscreenSurface.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QOffscreenSurface_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQOffscreenSurface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOffscreenSurface, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_childEvent, doc_QOffscreenSurface_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_customEvent, "QOffscreenSurface.customEvent(QEvent)");

extern "C" {static PyObject *meth_QOffscreenSurface_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQOffscreenSurface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QOffscreenSurface, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_customEvent, doc_QOffscreenSurface_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_connectNotify, "QOffscreenSurface.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOffscreenSurface_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOffscreenSurface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOffscreenSurface, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_connectNotify, doc_QOffscreenSurface_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_disconnectNotify, "QOffscreenSurface.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QOffscreenSurface_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQOffscreenSurface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOffscreenSurface, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_disconnectNotify, doc_QOffscreenSurface_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_senderSignalIndex, "QOffscreenSurface.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QOffscreenSurface_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQOffscreenSurface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_senderSignalIndex, doc_QOffscreenSurface_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_isSignalConnected, "QOffscreenSurface.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QOffscreenSurface_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQOffscreenSurface *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QOffscreenSurface, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_isSignalConnected, doc_QOffscreenSurface_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_surfaceType, "QOffscreenSurface.surfaceType() -> QSurface.SurfaceType");

extern "C" {static PyObject *meth_QOffscreenSurface_surfaceType(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_surfaceType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            QSurface::SurfaceType sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QOffscreenSurface::surfaceType() : sipCpp->surfaceType());

            return sipConvertFromEnum(sipRes,sipType_QSurface_SurfaceType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_surfaceType, doc_QOffscreenSurface_surfaceType);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_create, "QOffscreenSurface.create()");

extern "C" {static PyObject *meth_QOffscreenSurface_create(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_create(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            sipCpp->create();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_create, doc_QOffscreenSurface_create);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_destroy, "QOffscreenSurface.destroy()");

extern "C" {static PyObject *meth_QOffscreenSurface_destroy(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_destroy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            sipCpp->destroy();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_destroy, doc_QOffscreenSurface_destroy);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_isValid, "QOffscreenSurface.isValid() -> bool");

extern "C" {static PyObject *meth_QOffscreenSurface_isValid(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_isValid, doc_QOffscreenSurface_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_setFormat, "QOffscreenSurface.setFormat(QSurfaceFormat)");

extern "C" {static PyObject *meth_QOffscreenSurface_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurfaceFormat* a0;
        QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QOffscreenSurface, &sipCpp, sipType_QSurfaceFormat, &a0))
        {
            sipCpp->setFormat(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_setFormat, doc_QOffscreenSurface_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_format, "QOffscreenSurface.format() -> QSurfaceFormat");

extern "C" {static PyObject *meth_QOffscreenSurface_format(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            QSurfaceFormat*sipRes;

            sipRes = new QSurfaceFormat((sipSelfWasArg ? sipCpp->QOffscreenSurface::format() : sipCpp->format()));

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_format, doc_QOffscreenSurface_format);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_requestedFormat, "QOffscreenSurface.requestedFormat() -> QSurfaceFormat");

extern "C" {static PyObject *meth_QOffscreenSurface_requestedFormat(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_requestedFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            QSurfaceFormat*sipRes;

            sipRes = new QSurfaceFormat(sipCpp->requestedFormat());

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_requestedFormat, doc_QOffscreenSurface_requestedFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_size, "QOffscreenSurface.size() -> QSize");

extern "C" {static PyObject *meth_QOffscreenSurface_size(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize((sipSelfWasArg ? sipCpp->QOffscreenSurface::size() : sipCpp->size()));

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_size, doc_QOffscreenSurface_size);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_screen, "QOffscreenSurface.screen() -> QScreen");

extern "C" {static PyObject *meth_QOffscreenSurface_screen(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_screen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QOffscreenSurface, &sipCpp))
        {
            QScreen*sipRes;

            sipRes = sipCpp->screen();

            return sipConvertFromType(sipRes,sipType_QScreen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_screen, doc_QOffscreenSurface_screen);

    return NULL;
}


PyDoc_STRVAR(doc_QOffscreenSurface_setScreen, "QOffscreenSurface.setScreen(QScreen)");

extern "C" {static PyObject *meth_QOffscreenSurface_setScreen(PyObject *, PyObject *);}
static PyObject *meth_QOffscreenSurface_setScreen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QScreen* a0;
        QOffscreenSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QOffscreenSurface, &sipCpp, sipType_QScreen, &a0))
        {
            sipCpp->setScreen(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QOffscreenSurface, sipName_setScreen, doc_QOffscreenSurface_setScreen);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QOffscreenSurface(void *, const sipTypeDef *);}
static void *cast_QOffscreenSurface(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QOffscreenSurface)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QOffscreenSurface *)ptr,targetType)) != NULL)
        return res;

    if ((res = ((const sipClassTypeDef *)sipType_QSurface)->ctd_cast((QSurface *)(QOffscreenSurface *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QOffscreenSurface(void *, int);}
static void release_QOffscreenSurface(void *sipCppV,int)
{
    QOffscreenSurface *sipCpp = reinterpret_cast<QOffscreenSurface *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QOffscreenSurface(sipSimpleWrapper *);}
static void dealloc_QOffscreenSurface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQOffscreenSurface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QOffscreenSurface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QOffscreenSurface(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QOffscreenSurface(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQOffscreenSurface *sipCpp = 0;

    {
        QScreen* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_screen,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|J8", sipType_QScreen, &a0))
        {
            sipCpp = new sipQOffscreenSurface(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QOffscreenSurface[] = {{162, 0, 0}, {256, 255, 1}};


static PyMethodDef methods_QOffscreenSurface[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QOffscreenSurface_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QOffscreenSurface_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_create), meth_QOffscreenSurface_create, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_create)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QOffscreenSurface_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_destroy), meth_QOffscreenSurface_destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_destroy)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QOffscreenSurface_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_format), meth_QOffscreenSurface_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_format)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QOffscreenSurface_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QOffscreenSurface_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_isValid)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QOffscreenSurface_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_requestedFormat), meth_QOffscreenSurface_requestedFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_requestedFormat)},
    {SIP_MLNAME_CAST(sipName_screen), meth_QOffscreenSurface_screen, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_screen)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QOffscreenSurface_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QOffscreenSurface_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QOffscreenSurface_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_setFormat)},
    {SIP_MLNAME_CAST(sipName_setScreen), meth_QOffscreenSurface_setScreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_setScreen)},
    {SIP_MLNAME_CAST(sipName_size), meth_QOffscreenSurface_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_size)},
    {SIP_MLNAME_CAST(sipName_surfaceType), meth_QOffscreenSurface_surfaceType, METH_VARARGS, SIP_MLDOC_CAST(doc_QOffscreenSurface_surfaceType)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QOffscreenSurface_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QOffscreenSurface[] = {
    {"screenChanged(QScreen*)", "\1QOffscreenSurface.screenChanged[QScreen]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QOffscreenSurface, "\1QOffscreenSurface(QScreen screen=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QOffscreenSurface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QOffscreenSurface,
        {0}
    },
    {
        sipNameNr_QOffscreenSurface,
        {0, 0, 1},
        19, methods_QOffscreenSurface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QOffscreenSurface,
    -1,
    -1,
    supers_QOffscreenSurface,
    0,
    init_type_QOffscreenSurface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QOffscreenSurface,
    0,
    0,
    0,
    release_QOffscreenSurface,
    cast_QOffscreenSurface,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QOffscreenSurface::staticMetaObject,
    0,
    signals_QOffscreenSurface,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurface.sip"
#include <qsurface.h>
#line 131041 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 131045 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsurfaceformat.sip"
#include <qsurfaceformat.h>
#line 131048 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QSurface_surfaceClass, "QSurface.surfaceClass() -> QSurface.SurfaceClass");

extern "C" {static PyObject *meth_QSurface_surfaceClass(PyObject *, PyObject *);}
static PyObject *meth_QSurface_surfaceClass(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurface, &sipCpp))
        {
            QSurface::SurfaceClass sipRes;

            sipRes = sipCpp->surfaceClass();

            return sipConvertFromEnum(sipRes,sipType_QSurface_SurfaceClass);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurface, sipName_surfaceClass, doc_QSurface_surfaceClass);

    return NULL;
}


PyDoc_STRVAR(doc_QSurface_format, "QSurface.format() -> QSurfaceFormat");

extern "C" {static PyObject *meth_QSurface_format(PyObject *, PyObject *);}
static PyObject *meth_QSurface_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurface, &sipCpp))
        {
            QSurfaceFormat*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QSurface, sipName_format);
                return NULL;
            }

            sipRes = new QSurfaceFormat(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QSurfaceFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurface, sipName_format, doc_QSurface_format);

    return NULL;
}


PyDoc_STRVAR(doc_QSurface_surfaceType, "QSurface.surfaceType() -> QSurface.SurfaceType");

extern "C" {static PyObject *meth_QSurface_surfaceType(PyObject *, PyObject *);}
static PyObject *meth_QSurface_surfaceType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurface, &sipCpp))
        {
            QSurface::SurfaceType sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QSurface, sipName_surfaceType);
                return NULL;
            }

            sipRes = sipCpp->surfaceType();

            return sipConvertFromEnum(sipRes,sipType_QSurface_SurfaceType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurface, sipName_surfaceType, doc_QSurface_surfaceType);

    return NULL;
}


PyDoc_STRVAR(doc_QSurface_size, "QSurface.size() -> QSize");

extern "C" {static PyObject *meth_QSurface_size(PyObject *, PyObject *);}
static PyObject *meth_QSurface_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurface, &sipCpp))
        {
            QSize*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QSurface, sipName_size);
                return NULL;
            }

            sipRes = new QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurface, sipName_size, doc_QSurface_size);

    return NULL;
}


PyDoc_STRVAR(doc_QSurface_supportsOpenGL, "QSurface.supportsOpenGL() -> bool");

extern "C" {static PyObject *meth_QSurface_supportsOpenGL(PyObject *, PyObject *);}
static PyObject *meth_QSurface_supportsOpenGL(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSurface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSurface, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->supportsOpenGL();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QSurface, sipName_supportsOpenGL, doc_QSurface_supportsOpenGL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QSurface(void *, const sipTypeDef *);}
static void *cast_QSurface(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QSurface)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QSurface(void *, int);}
static void release_QSurface(void *sipCppV,int)
{
    delete reinterpret_cast<QSurface *>(sipCppV);
}


extern "C" {static void dealloc_QSurface(sipSimpleWrapper *);}
static void dealloc_QSurface(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QSurface(sipGetAddress(sipSelf),0);
    }
}


static PyMethodDef methods_QSurface[] = {
    {SIP_MLNAME_CAST(sipName_format), meth_QSurface_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurface_format)},
    {SIP_MLNAME_CAST(sipName_size), meth_QSurface_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurface_size)},
    {SIP_MLNAME_CAST(sipName_supportsOpenGL), meth_QSurface_supportsOpenGL, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurface_supportsOpenGL)},
    {SIP_MLNAME_CAST(sipName_surfaceClass), meth_QSurface_surfaceClass, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurface_surfaceClass)},
    {SIP_MLNAME_CAST(sipName_surfaceType), meth_QSurface_surfaceType, METH_VARARGS, SIP_MLDOC_CAST(doc_QSurface_surfaceType)}
};

static sipEnumMemberDef enummembers_QSurface[] = {
    {sipName_Offscreen, static_cast<int>(QSurface::Offscreen), 257},
    {sipName_OpenGLSurface, static_cast<int>(QSurface::OpenGLSurface), 258},
    {sipName_RasterGLSurface, static_cast<int>(QSurface::RasterGLSurface), 258},
    {sipName_RasterSurface, static_cast<int>(QSurface::RasterSurface), 258},
    {sipName_Window, static_cast<int>(QSurface::Window), 257},
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QSurface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QSurface,
        {0}
    },
    {
        sipNameNr_QSurface,
        {0, 0, 1},
        5, methods_QSurface,
        5, enummembers_QSurface,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QSurface,
    0,
    0,
    0,
    release_QSurface,
    cast_QSurface,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmovie.sip"
#include <qmovie.h>
#line 131309 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 131313 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 131316 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 131319 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 131322 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimagereader.sip"
#include <qimagereader.h>
#line 131325 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 131328 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 131331 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 131334 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 131337 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 131340 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 131343 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 131346 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 131349 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 131352 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 131355 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 131358 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 131361 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 131364 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 131367 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 131370 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 131373 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 131376 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 131379 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQMovie : public QMovie
{
public:
    sipQMovie(QObject*);
    sipQMovie(QIODevice*,const QByteArray&,QObject*);
    sipQMovie(const QString&,const QByteArray&,QObject*);
    virtual ~sipQMovie();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQMovie(const sipQMovie &);
    sipQMovie &operator = (const sipQMovie &);

    char sipPyMethods[7];
};

sipQMovie::sipQMovie(QObject*a0): QMovie(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQMovie::sipQMovie(QIODevice*a0,const QByteArray& a1,QObject*a2): QMovie(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQMovie::sipQMovie(const QString& a0,const QByteArray& a1,QObject*a2): QMovie(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQMovie::~sipQMovie()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQMovie::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QMovie);
}

int sipQMovie::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QMovie::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QMovie,_c,_id,_a);

    return _id;
}

void *sipQMovie::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QMovie, _clname, &sipCpp) ? sipCpp : QMovie::qt_metacast(_clname));
}

void sipQMovie::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QMovie::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQMovie::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QMovie::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQMovie::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QMovie::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQMovie::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QMovie::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQMovie::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QMovie::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQMovie::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QMovie::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQMovie::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QMovie::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQMovie::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQMovie::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQMovie::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQMovie::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQMovie::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQMovie::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQMovie::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQMovie::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQMovie::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QMovie_sender, "QMovie.sender() -> QObject");

extern "C" {static PyObject *meth_QMovie_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMovie_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQMovie *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 131679 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_sender, doc_QMovie_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_receivers, "QMovie.receivers(signal) -> int");

extern "C" {static PyObject *meth_QMovie_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMovie_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQMovie *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QMovie, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 131738 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_receivers, doc_QMovie_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_timerEvent, "QMovie.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QMovie_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMovie_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQMovie *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QMovie, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_timerEvent, doc_QMovie_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_childEvent, "QMovie.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QMovie_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMovie_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQMovie *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QMovie, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_childEvent, doc_QMovie_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_customEvent, "QMovie.customEvent(QEvent)");

extern "C" {static PyObject *meth_QMovie_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMovie_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQMovie *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QMovie, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_customEvent, doc_QMovie_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_connectNotify, "QMovie.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QMovie_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMovie_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQMovie *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QMovie, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_connectNotify, doc_QMovie_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_disconnectNotify, "QMovie.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QMovie_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMovie_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQMovie *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QMovie, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_disconnectNotify, doc_QMovie_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_senderSignalIndex, "QMovie.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QMovie_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMovie_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQMovie *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_senderSignalIndex, doc_QMovie_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_isSignalConnected, "QMovie.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QMovie_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMovie_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQMovie *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QMovie, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_isSignalConnected, doc_QMovie_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_supportedFormats, "QMovie.supportedFormats() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QMovie_supportedFormats(PyObject *, PyObject *);}
static PyObject *meth_QMovie_supportedFormats(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(QMovie::supportedFormats());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_supportedFormats, doc_QMovie_supportedFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_setDevice, "QMovie.setDevice(QIODevice)");

extern "C" {static PyObject *meth_QMovie_setDevice(PyObject *, PyObject *);}
static PyObject *meth_QMovie_setDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QMovie, &sipCpp, sipType_QIODevice, &a0))
        {
            sipCpp->setDevice(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_setDevice, doc_QMovie_setDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_device, "QMovie.device() -> QIODevice");

extern "C" {static PyObject *meth_QMovie_device(PyObject *, PyObject *);}
static PyObject *meth_QMovie_device(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QIODevice*sipRes;

            sipRes = sipCpp->device();

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_device, doc_QMovie_device);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_setFileName, "QMovie.setFileName(str)");

extern "C" {static PyObject *meth_QMovie_setFileName(PyObject *, PyObject *);}
static PyObject *meth_QMovie_setFileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QMovie, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setFileName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_setFileName, doc_QMovie_setFileName);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_fileName, "QMovie.fileName() -> str");

extern "C" {static PyObject *meth_QMovie_fileName(PyObject *, PyObject *);}
static PyObject *meth_QMovie_fileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->fileName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_fileName, doc_QMovie_fileName);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_setFormat, "QMovie.setFormat(QByteArray)");

extern "C" {static PyObject *meth_QMovie_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QMovie_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QMovie, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            sipCpp->setFormat(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_setFormat, doc_QMovie_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_format, "QMovie.format() -> QByteArray");

extern "C" {static PyObject *meth_QMovie_format(PyObject *, PyObject *);}
static PyObject *meth_QMovie_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_format, doc_QMovie_format);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_setBackgroundColor, "QMovie.setBackgroundColor(QColor)");

extern "C" {static PyObject *meth_QMovie_setBackgroundColor(PyObject *, PyObject *);}
static PyObject *meth_QMovie_setBackgroundColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QMovie, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setBackgroundColor(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_setBackgroundColor, doc_QMovie_setBackgroundColor);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_backgroundColor, "QMovie.backgroundColor() -> QColor");

extern "C" {static PyObject *meth_QMovie_backgroundColor(PyObject *, PyObject *);}
static PyObject *meth_QMovie_backgroundColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->backgroundColor());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_backgroundColor, doc_QMovie_backgroundColor);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_state, "QMovie.state() -> QMovie.MovieState");

extern "C" {static PyObject *meth_QMovie_state(PyObject *, PyObject *);}
static PyObject *meth_QMovie_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QMovie::MovieState sipRes;

            sipRes = sipCpp->state();

            return sipConvertFromEnum(sipRes,sipType_QMovie_MovieState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_state, doc_QMovie_state);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_frameRect, "QMovie.frameRect() -> QRect");

extern "C" {static PyObject *meth_QMovie_frameRect(PyObject *, PyObject *);}
static PyObject *meth_QMovie_frameRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->frameRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_frameRect, doc_QMovie_frameRect);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_currentImage, "QMovie.currentImage() -> QImage");

extern "C" {static PyObject *meth_QMovie_currentImage(PyObject *, PyObject *);}
static PyObject *meth_QMovie_currentImage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->currentImage());

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_currentImage, doc_QMovie_currentImage);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_currentPixmap, "QMovie.currentPixmap() -> QPixmap");

extern "C" {static PyObject *meth_QMovie_currentPixmap(PyObject *, PyObject *);}
static PyObject *meth_QMovie_currentPixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->currentPixmap());

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_currentPixmap, doc_QMovie_currentPixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_isValid, "QMovie.isValid() -> bool");

extern "C" {static PyObject *meth_QMovie_isValid(PyObject *, PyObject *);}
static PyObject *meth_QMovie_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_isValid, doc_QMovie_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_jumpToFrame, "QMovie.jumpToFrame(int) -> bool");

extern "C" {static PyObject *meth_QMovie_jumpToFrame(PyObject *, PyObject *);}
static PyObject *meth_QMovie_jumpToFrame(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QMovie, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->jumpToFrame(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_jumpToFrame, doc_QMovie_jumpToFrame);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_loopCount, "QMovie.loopCount() -> int");

extern "C" {static PyObject *meth_QMovie_loopCount(PyObject *, PyObject *);}
static PyObject *meth_QMovie_loopCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->loopCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_loopCount, doc_QMovie_loopCount);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_frameCount, "QMovie.frameCount() -> int");

extern "C" {static PyObject *meth_QMovie_frameCount(PyObject *, PyObject *);}
static PyObject *meth_QMovie_frameCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->frameCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_frameCount, doc_QMovie_frameCount);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_nextFrameDelay, "QMovie.nextFrameDelay() -> int");

extern "C" {static PyObject *meth_QMovie_nextFrameDelay(PyObject *, PyObject *);}
static PyObject *meth_QMovie_nextFrameDelay(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->nextFrameDelay();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_nextFrameDelay, doc_QMovie_nextFrameDelay);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_currentFrameNumber, "QMovie.currentFrameNumber() -> int");

extern "C" {static PyObject *meth_QMovie_currentFrameNumber(PyObject *, PyObject *);}
static PyObject *meth_QMovie_currentFrameNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->currentFrameNumber();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_currentFrameNumber, doc_QMovie_currentFrameNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_setSpeed, "QMovie.setSpeed(int)");

extern "C" {static PyObject *meth_QMovie_setSpeed(PyObject *, PyObject *);}
static PyObject *meth_QMovie_setSpeed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QMovie, &sipCpp, &a0))
        {
            sipCpp->setSpeed(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_setSpeed, doc_QMovie_setSpeed);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_speed, "QMovie.speed() -> int");

extern "C" {static PyObject *meth_QMovie_speed(PyObject *, PyObject *);}
static PyObject *meth_QMovie_speed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->speed();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_speed, doc_QMovie_speed);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_scaledSize, "QMovie.scaledSize() -> QSize");

extern "C" {static PyObject *meth_QMovie_scaledSize(PyObject *, PyObject *);}
static PyObject *meth_QMovie_scaledSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->scaledSize());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_scaledSize, doc_QMovie_scaledSize);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_setScaledSize, "QMovie.setScaledSize(QSize)");

extern "C" {static PyObject *meth_QMovie_setScaledSize(PyObject *, PyObject *);}
static PyObject *meth_QMovie_setScaledSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMovie, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->setScaledSize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_setScaledSize, doc_QMovie_setScaledSize);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_cacheMode, "QMovie.cacheMode() -> QMovie.CacheMode");

extern "C" {static PyObject *meth_QMovie_cacheMode(PyObject *, PyObject *);}
static PyObject *meth_QMovie_cacheMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            QMovie::CacheMode sipRes;

            sipRes = sipCpp->cacheMode();

            return sipConvertFromEnum(sipRes,sipType_QMovie_CacheMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_cacheMode, doc_QMovie_cacheMode);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_setCacheMode, "QMovie.setCacheMode(QMovie.CacheMode)");

extern "C" {static PyObject *meth_QMovie_setCacheMode(PyObject *, PyObject *);}
static PyObject *meth_QMovie_setCacheMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMovie::CacheMode a0;
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QMovie, &sipCpp, sipType_QMovie_CacheMode, &a0))
        {
            sipCpp->setCacheMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_setCacheMode, doc_QMovie_setCacheMode);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_start, "QMovie.start()");

extern "C" {static PyObject *meth_QMovie_start(PyObject *, PyObject *);}
static PyObject *meth_QMovie_start(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            sipCpp->start();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_start, doc_QMovie_start);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_jumpToNextFrame, "QMovie.jumpToNextFrame() -> bool");

extern "C" {static PyObject *meth_QMovie_jumpToNextFrame(PyObject *, PyObject *);}
static PyObject *meth_QMovie_jumpToNextFrame(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->jumpToNextFrame();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_jumpToNextFrame, doc_QMovie_jumpToNextFrame);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_setPaused, "QMovie.setPaused(bool)");

extern "C" {static PyObject *meth_QMovie_setPaused(PyObject *, PyObject *);}
static PyObject *meth_QMovie_setPaused(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QMovie, &sipCpp, &a0))
        {
            sipCpp->setPaused(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_setPaused, doc_QMovie_setPaused);

    return NULL;
}


PyDoc_STRVAR(doc_QMovie_stop, "QMovie.stop()");

extern "C" {static PyObject *meth_QMovie_stop(PyObject *, PyObject *);}
static PyObject *meth_QMovie_stop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMovie *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMovie, &sipCpp))
        {
            sipCpp->stop();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMovie, sipName_stop, doc_QMovie_stop);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMovie(void *, const sipTypeDef *);}
static void *cast_QMovie(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QMovie)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QMovie *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMovie(void *, int);}
static void release_QMovie(void *sipCppV,int)
{
    QMovie *sipCpp = reinterpret_cast<QMovie *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QMovie(sipSimpleWrapper *);}
static void dealloc_QMovie(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQMovie *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QMovie(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QMovie(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMovie(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQMovie *sipCpp = 0;

    {
        QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQMovie(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QIODevice* a0;
        const QByteArray& a1def = QByteArray();
        const QByteArray* a1 = &a1def;
        int a1State = 0;
        QObject* a2 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8|J1JH", sipType_QIODevice, &a0, sipType_QByteArray, &a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            sipCpp = new sipQMovie(a0,*a1,a2);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QByteArray& a1def = QByteArray();
        const QByteArray* a1 = &a1def;
        int a1State = 0;
        QObject* a2 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|J1JH", sipType_QString,&a0, &a0State, sipType_QByteArray, &a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            sipCpp = new sipQMovie(*a0,*a1,a2);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QMovie[] = {{162, 0, 1}};


static PyMethodDef methods_QMovie[] = {
    {SIP_MLNAME_CAST(sipName_backgroundColor), meth_QMovie_backgroundColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_backgroundColor)},
    {SIP_MLNAME_CAST(sipName_cacheMode), meth_QMovie_cacheMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_cacheMode)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QMovie_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QMovie_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_currentFrameNumber), meth_QMovie_currentFrameNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_currentFrameNumber)},
    {SIP_MLNAME_CAST(sipName_currentImage), meth_QMovie_currentImage, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_currentImage)},
    {SIP_MLNAME_CAST(sipName_currentPixmap), meth_QMovie_currentPixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_currentPixmap)},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QMovie_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_device), meth_QMovie_device, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_device)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QMovie_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_fileName), meth_QMovie_fileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_fileName)},
    {SIP_MLNAME_CAST(sipName_format), meth_QMovie_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_format)},
    {SIP_MLNAME_CAST(sipName_frameCount), meth_QMovie_frameCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_frameCount)},
    {SIP_MLNAME_CAST(sipName_frameRect), meth_QMovie_frameRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_frameRect)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QMovie_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QMovie_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_isValid)},
    {SIP_MLNAME_CAST(sipName_jumpToFrame), meth_QMovie_jumpToFrame, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_jumpToFrame)},
    {SIP_MLNAME_CAST(sipName_jumpToNextFrame), meth_QMovie_jumpToNextFrame, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_jumpToNextFrame)},
    {SIP_MLNAME_CAST(sipName_loopCount), meth_QMovie_loopCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_loopCount)},
    {SIP_MLNAME_CAST(sipName_nextFrameDelay), meth_QMovie_nextFrameDelay, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_nextFrameDelay)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QMovie_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_scaledSize), meth_QMovie_scaledSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_scaledSize)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QMovie_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QMovie_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setBackgroundColor), meth_QMovie_setBackgroundColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_setBackgroundColor)},
    {SIP_MLNAME_CAST(sipName_setCacheMode), meth_QMovie_setCacheMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_setCacheMode)},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_QMovie_setDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_setDevice)},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_QMovie_setFileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_setFileName)},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QMovie_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_setFormat)},
    {SIP_MLNAME_CAST(sipName_setPaused), meth_QMovie_setPaused, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_setPaused)},
    {SIP_MLNAME_CAST(sipName_setScaledSize), meth_QMovie_setScaledSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_setScaledSize)},
    {SIP_MLNAME_CAST(sipName_setSpeed), meth_QMovie_setSpeed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_setSpeed)},
    {SIP_MLNAME_CAST(sipName_speed), meth_QMovie_speed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_speed)},
    {SIP_MLNAME_CAST(sipName_start), meth_QMovie_start, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_start)},
    {SIP_MLNAME_CAST(sipName_state), meth_QMovie_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_state)},
    {SIP_MLNAME_CAST(sipName_stop), meth_QMovie_stop, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_stop)},
    {SIP_MLNAME_CAST(sipName_supportedFormats), meth_QMovie_supportedFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QMovie_supportedFormats)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QMovie_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};

static sipEnumMemberDef enummembers_QMovie[] = {
    {sipName_CacheAll, static_cast<int>(QMovie::CacheAll), 117},
    {sipName_CacheNone, static_cast<int>(QMovie::CacheNone), 117},
    {sipName_NotRunning, static_cast<int>(QMovie::NotRunning), 118},
    {sipName_Paused, static_cast<int>(QMovie::Paused), 118},
    {sipName_Running, static_cast<int>(QMovie::Running), 118},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QMovie[] = {
    {"frameChanged(int)", "\1QMovie.frameChanged[int]", 0, 0},
    {"finished()", "\1QMovie.finished", 0, 0},
    {"error(QImageReader::ImageReaderError)", "\1QMovie.error[QImageReader.ImageReaderError]", 0, 0},
    {"stateChanged(QMovie::MovieState)", "\1QMovie.stateChanged[QMovie.MovieState]", 0, 0},
    {"updated(QRect)", "\1QMovie.updated[QRect]", 0, 0},
    {"resized(QSize)", "\1QMovie.resized[QSize]", 0, 0},
    {"started()", "\1QMovie.started", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QMovie, "\1QMovie(QObject parent=None)\n"
    "QMovie(QIODevice, QByteArray format=QByteArray(), QObject parent=None)\n"
    "QMovie(str, QByteArray format=QByteArray(), QObject parent=None)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMovie = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMovie,
        {0}
    },
    {
        sipNameNr_QMovie,
        {0, 0, 1},
        38, methods_QMovie,
        5, enummembers_QMovie,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMovie,
    -1,
    -1,
    supers_QMovie,
    0,
    init_type_QMovie,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMovie,
    0,
    0,
    0,
    release_QMovie,
    cast_QMovie,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QMovie::staticMetaObject,
    0,
    signals_QMovie,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
#include <qmatrix4x4.h>
#line 132986 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 132990 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector3d.sip"
#include <qvector3d.h>
#line 132993 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector4d.sip"
#include <qvector4d.h>
#line 132996 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 132999 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 133002 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 133005 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 133008 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qquaternion.sip"
#include <qquaternion.h>
#line 133011 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 483 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 133014 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix4x4_determinant, "QMatrix4x4.determinant() -> float");

extern "C" {static PyObject *meth_QMatrix4x4_determinant(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_determinant(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            double sipRes;

            sipRes = sipCpp->determinant();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_determinant, doc_QMatrix4x4_determinant);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_inverted, "QMatrix4x4.inverted() -> (QMatrix4x4, bool)");

extern "C" {static PyObject *meth_QMatrix4x4_inverted(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_inverted(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            QMatrix4x4*sipRes;

            sipRes = new QMatrix4x4(sipCpp->inverted(&a0));

            PyObject *sipResObj = sipConvertFromNewType(sipRes,sipType_QMatrix4x4,NULL);
            return sipBuildResult(0,"(Rb)",sipResObj,a0);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_inverted, doc_QMatrix4x4_inverted);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_transposed, "QMatrix4x4.transposed() -> QMatrix4x4");

extern "C" {static PyObject *meth_QMatrix4x4_transposed(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            QMatrix4x4*sipRes;

            sipRes = new QMatrix4x4(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x4,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_transposed, doc_QMatrix4x4_transposed);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_normalMatrix, "QMatrix4x4.normalMatrix() -> QMatrix3x3");

extern "C" {static PyObject *meth_QMatrix4x4_normalMatrix(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_normalMatrix(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            QMatrix3x3*sipRes;

            sipRes = new QMatrix3x3(sipCpp->normalMatrix());

            return sipConvertFromNewType(sipRes,sipType_QMatrix3x3,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_normalMatrix, doc_QMatrix4x4_normalMatrix);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_scale, "QMatrix4x4.scale(QVector3D)\n"
    "QMatrix4x4.scale(float, float)\n"
    "QMatrix4x4.scale(float, float, float)\n"
    "QMatrix4x4.scale(float)");

extern "C" {static PyObject *meth_QMatrix4x4_scale(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_scale(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QVector3D, &a0))
        {
            sipCpp->scale(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        float a0;
        float a1;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bff", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, &a1))
        {
            sipCpp->scale(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        float a0;
        float a1;
        float a2;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bfff", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->scale(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        float a0;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0))
        {
            sipCpp->scale(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_scale, doc_QMatrix4x4_scale);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_translate, "QMatrix4x4.translate(QVector3D)\n"
    "QMatrix4x4.translate(float, float)\n"
    "QMatrix4x4.translate(float, float, float)");

extern "C" {static PyObject *meth_QMatrix4x4_translate(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_translate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QVector3D, &a0))
        {
            sipCpp->translate(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        float a0;
        float a1;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bff", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, &a1))
        {
            sipCpp->translate(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        float a0;
        float a1;
        float a2;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bfff", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->translate(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_translate, doc_QMatrix4x4_translate);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_rotate, "QMatrix4x4.rotate(float, QVector3D)\n"
    "QMatrix4x4.rotate(float, float, float, float z=0)\n"
    "QMatrix4x4.rotate(QQuaternion)");

extern "C" {static PyObject *meth_QMatrix4x4_rotate(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_rotate(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        const QVector3D* a1;
        QMatrix4x4 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BfJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, sipType_QVector3D, &a1))
        {
            sipCpp->rotate(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        float a0;
        float a1;
        float a2;
        float a3 = 0;
        QMatrix4x4 *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_z,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bfff|f", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->rotate(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QQuaternion* a0;
        QMatrix4x4 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QQuaternion, &a0))
        {
            sipCpp->rotate(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_rotate, doc_QMatrix4x4_rotate);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_ortho, "QMatrix4x4.ortho(QRect)\n"
    "QMatrix4x4.ortho(QRectF)\n"
    "QMatrix4x4.ortho(float, float, float, float, float, float)");

extern "C" {static PyObject *meth_QMatrix4x4_ortho(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_ortho(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->ortho(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRectF* a0;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->ortho(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        float a0;
        float a1;
        float a2;
        float a3;
        float a4;
        float a5;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bffffff", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp->ortho(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_ortho, doc_QMatrix4x4_ortho);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_frustum, "QMatrix4x4.frustum(float, float, float, float, float, float)");

extern "C" {static PyObject *meth_QMatrix4x4_frustum(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_frustum(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        float a1;
        float a2;
        float a3;
        float a4;
        float a5;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bffffff", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp->frustum(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_frustum, doc_QMatrix4x4_frustum);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_perspective, "QMatrix4x4.perspective(float, float, float, float)");

extern "C" {static PyObject *meth_QMatrix4x4_perspective(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_perspective(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        float a1;
        float a2;
        float a3;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bffff", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->perspective(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_perspective, doc_QMatrix4x4_perspective);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_lookAt, "QMatrix4x4.lookAt(QVector3D, QVector3D, QVector3D)");

extern "C" {static PyObject *meth_QMatrix4x4_lookAt(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_lookAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QVector3D* a1;
        const QVector3D* a2;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9J9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QVector3D, &a0, sipType_QVector3D, &a1, sipType_QVector3D, &a2))
        {
            sipCpp->lookAt(*a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_lookAt, doc_QMatrix4x4_lookAt);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_copyDataTo, "QMatrix4x4.copyDataTo() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix4x4_copyDataTo(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_copyDataTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
        float values[16];
        
        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(16, values, &sipRes);
#line 133494 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_copyDataTo, doc_QMatrix4x4_copyDataTo);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_toTransform, "QMatrix4x4.toTransform() -> QTransform\n"
    "QMatrix4x4.toTransform(float) -> QTransform");

extern "C" {static PyObject *meth_QMatrix4x4_toTransform(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_toTransform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->toTransform());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    {
        float a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->toTransform(a0));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_toTransform, doc_QMatrix4x4_toTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_mapRect, "QMatrix4x4.mapRect(QRect) -> QRect\n"
    "QMatrix4x4.mapRect(QRectF) -> QRectF");

extern "C" {static PyObject *meth_QMatrix4x4_mapRect(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_mapRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QRect, &a0))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->mapRect(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    {
        const QRectF* a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QRectF, &a0))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->mapRect(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_mapRect, doc_QMatrix4x4_mapRect);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_data, "QMatrix4x4.data() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix4x4_data(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 141 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
        sipError = qtgui_matrixDataAsList(16, sipCpp->constData(), &sipRes);
#line 133617 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_data, doc_QMatrix4x4_data);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_optimize, "QMatrix4x4.optimize()");

extern "C" {static PyObject *meth_QMatrix4x4_optimize(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_optimize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            sipCpp->optimize();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_optimize, doc_QMatrix4x4_optimize);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_column, "QMatrix4x4.column(int) -> QVector4D");

extern "C" {static PyObject *meth_QMatrix4x4_column(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_column(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D(sipCpp->column(a0));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_column, doc_QMatrix4x4_column);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_setColumn, "QMatrix4x4.setColumn(int, QVector4D)");

extern "C" {static PyObject *meth_QMatrix4x4_setColumn(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_setColumn(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QVector4D* a1;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, sipType_QVector4D, &a1))
        {
            sipCpp->setColumn(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_setColumn, doc_QMatrix4x4_setColumn);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_row, "QMatrix4x4.row(int) -> QVector4D");

extern "C" {static PyObject *meth_QMatrix4x4_row(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_row(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D(sipCpp->row(a0));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_row, doc_QMatrix4x4_row);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_setRow, "QMatrix4x4.setRow(int, QVector4D)");

extern "C" {static PyObject *meth_QMatrix4x4_setRow(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_setRow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QVector4D* a1;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, sipType_QVector4D, &a1))
        {
            sipCpp->setRow(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_setRow, doc_QMatrix4x4_setRow);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_isIdentity, "QMatrix4x4.isIdentity() -> bool");

extern "C" {static PyObject *meth_QMatrix4x4_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_isIdentity, doc_QMatrix4x4_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_setToIdentity, "QMatrix4x4.setToIdentity()");

extern "C" {static PyObject *meth_QMatrix4x4_setToIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_setToIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x4, &sipCpp))
        {
            sipCpp->setToIdentity();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_setToIdentity, doc_QMatrix4x4_setToIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_fill, "QMatrix4x4.fill(float)");

extern "C" {static PyObject *meth_QMatrix4x4_fill(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_fill, doc_QMatrix4x4_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_map, "QMatrix4x4.map(QPoint) -> QPoint\n"
    "QMatrix4x4.map(QPointF) -> QPointF\n"
    "QMatrix4x4.map(QVector3D) -> QVector3D\n"
    "QMatrix4x4.map(QVector4D) -> QVector4D");

extern "C" {static PyObject *meth_QMatrix4x4_map(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_map(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QPoint, &a0))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->map(*a0));
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    {
        const QVector3D* a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QVector3D, &a0))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    {
        const QVector4D* a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QVector4D, &a0))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D(sipCpp->map(*a0));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_map, doc_QMatrix4x4_map);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_mapVector, "QMatrix4x4.mapVector(QVector3D) -> QVector3D");

extern "C" {static PyObject *meth_QMatrix4x4_mapVector(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_mapVector(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector3D* a0;
        const QMatrix4x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QVector3D, &a0))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D(sipCpp->mapVector(*a0));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_mapVector, doc_QMatrix4x4_mapVector);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x4_viewport, "QMatrix4x4.viewport(float, float, float, float, float nearPlane=0, float farPlane=1)\n"
    "QMatrix4x4.viewport(QRectF)");

extern "C" {static PyObject *meth_QMatrix4x4_viewport(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x4_viewport(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        float a1;
        float a2;
        float a3;
        float a4 = 0;
        float a5 = 1;
        QMatrix4x4 *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_nearPlane,
            sipName_farPlane,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bffff|ff", &sipSelf, sipType_QMatrix4x4, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp->viewport(a0,a1,a2,a3,a4,a5);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRectF* a0;
        QMatrix4x4 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QMatrix4x4, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->viewport(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName_viewport, doc_QMatrix4x4_viewport);

    return NULL;
}


extern "C" {static PyObject *slot_QMatrix4x4___div__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___div__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QMatrix4x4, &a0, &a1))
        {
            QMatrix4x4*sipRes;

            sipRes = new QMatrix4x4((*a0 / a1));

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x4,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,div_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QMatrix4x4___add__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___add__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;
        const QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QMatrix4x4, &a0, sipType_QMatrix4x4, &a1))
        {
            QMatrix4x4*sipRes;

            sipRes = new QMatrix4x4((*a0 + *a1));

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x4,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,add_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QMatrix4x4___sub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___sub__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;
        const QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QMatrix4x4, &a0, sipType_QMatrix4x4, &a1))
        {
            QMatrix4x4*sipRes;

            sipRes = new QMatrix4x4((*a0 - *a1));

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x4,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,sub_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QMatrix4x4___mul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___mul__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;
        const QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QMatrix4x4, &a0, sipType_QMatrix4x4, &a1))
        {
            QMatrix4x4*sipRes;

            sipRes = new QMatrix4x4((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x4,NULL);
        }
    }

    {
        const QMatrix4x4* a0;
        const QVector3D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QMatrix4x4, &a0, sipType_QVector3D, &a1))
        {
            QVector3D*sipRes;

            sipRes = new QVector3D((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector3D,NULL);
        }
    }

    {
        const QMatrix4x4* a0;
        const QVector4D* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QMatrix4x4, &a0, sipType_QVector4D, &a1))
        {
            QVector4D*sipRes;

            sipRes = new QVector4D((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QVector4D,NULL);
        }
    }

    {
        const QMatrix4x4* a0;
        const QPoint* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J9", sipType_QMatrix4x4, &a0, sipType_QPoint, &a1))
        {
            QPoint*sipRes;

            sipRes = new QPoint((*a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    {
        const QMatrix4x4* a0;
        const QPointF* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9J1", sipType_QMatrix4x4, &a0, sipType_QPointF, &a1, &a1State))
        {
            QPointF*sipRes;

            sipRes = new QPointF((*a0 * *a1));
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    {
        float a0;
        const QMatrix4x4* a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "fJ9", &a0, sipType_QMatrix4x4, &a1))
        {
            QMatrix4x4*sipRes;

            sipRes = new QMatrix4x4((a0 * *a1));

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x4,NULL);
        }
    }

    {
        const QMatrix4x4* a0;
        float a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9f", sipType_QMatrix4x4, &a0, &a1))
        {
            QMatrix4x4*sipRes;

            sipRes = new QMatrix4x4((*a0 * a1));

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x4,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,mul_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QMatrix4x4___neg__(PyObject *);}
static PyObject *slot_QMatrix4x4___neg__(PyObject *sipSelf)
{
    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return 0;


    {
        {
            QMatrix4x4*sipRes;

            sipRes = new QMatrix4x4(-(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x4,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QMatrix4x4___ne__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x4, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix4x4::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QMatrix4x4,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix4x4___eq__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x4, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix4x4::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QMatrix4x4,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix4x4___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix4x4::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix4x4___imul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x4, &a0))
        {
            sipCpp->QMatrix4x4::operator*=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix4x4::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix4x4___isub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x4, &a0))
        {
            sipCpp->QMatrix4x4::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix4x4___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x4, &a0))
        {
            sipCpp->QMatrix4x4::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static int slot_QMatrix4x4___setitem__(PyObject *,PyObject *);}
static int slot_QMatrix4x4___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        qreal a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "P0d", &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 160 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
        int row, column;
        
        if ((sipError = qtgui_matrixParseIndex(a0, 4, 4, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 134494 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return -1;

            if (sipError == sipErrorNone)
            {
            return 0;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QMatrix4x4___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x4___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 147 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
        int row, column;
        
        if ((sipError = qtgui_matrixParseIndex(a0, 4, 4, &row, &column)) == sipErrorNone)
        {
            sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column));
        
            if (!sipRes)
                sipError = sipErrorFail;
        }
#line 134543 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x4, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QMatrix4x4___repr__(PyObject *);}
static PyObject *slot_QMatrix4x4___repr__(PyObject *sipSelf)
{
    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x4));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 60 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
        bool bad = false;
        int i;
        PyObject *m[16];
        PYQT_FLOAT data[16];
        
        // The raw data is in column-major order but we want row-major order.
        sipCpp->copyDataTo(data);
        
        for (i = 0; i < 16; ++i)
        {
            m[i] = PyFloat_FromDouble(data[i]);
        
            if (!m[i])
                bad = true;
        }
        
        if (!bad)
        {
        #if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix4x4("
                    "%R, %R, %R, %R, "
                    "%R, %R, %R, %R, "
                    "%R, %R, %R, %R, "
                    "%R, %R, %R, %R)",
                    m[0], m[1], m[2], m[3],
                    m[4], m[5], m[6], m[7],
                    m[8], m[9], m[10], m[11],
                    m[12], m[13], m[14], m[15]);
        #else
            sipRes = PyString_FromString("PyQt5.QtGui.QMatrix4x4(");
        
            for (i = 0; i < 16; ++i)
            {
                if (i != 0)
                    PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));
        
                PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i]));
            }
        
            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
        #endif
        }
        
        for (i = 0; i < 16; ++i)
            Py_XDECREF(m[i]);
#line 134623 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMatrix4x4(void *, const sipTypeDef *);}
static void *cast_QMatrix4x4(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QMatrix4x4)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMatrix4x4(void *, int);}
static void release_QMatrix4x4(void *sipCppV,int)
{
    delete reinterpret_cast<QMatrix4x4 *>(sipCppV);
}


extern "C" {static PyObject *pickle_QMatrix4x4(void *);}
static PyObject *pickle_QMatrix4x4(void *sipCppV)
{
    QMatrix4x4 *sipCpp = reinterpret_cast<QMatrix4x4 *>(sipCppV);
    PyObject *sipRes;

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
    PYQT_FLOAT data[16];
    
    // We want the data in row-major order.
    sipCpp->copyDataTo(data);
    
    sipRes = Py_BuildValue((char *)"dddddddddddddddd",
            (double)data[0], (double)data[1], (double)data[2], (double)data[3],
            (double)data[4], (double)data[5], (double)data[6], (double)data[7],
            (double)data[8], (double)data[9], (double)data[10], (double)data[11],
            (double)data[12], (double)data[13], (double)data[14], (double)data[15]);
#line 134669 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QMatrix4x4(void *, SIP_SSIZE_T, const void *);}
static void assign_QMatrix4x4(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMatrix4x4 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMatrix4x4 *>(sipSrc);
}


extern "C" {static void *array_QMatrix4x4(SIP_SSIZE_T);}
static void *array_QMatrix4x4(SIP_SSIZE_T sipNrElem)
{
    return new QMatrix4x4[sipNrElem];
}


extern "C" {static void *copy_QMatrix4x4(const void *, SIP_SSIZE_T);}
static void *copy_QMatrix4x4(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMatrix4x4(reinterpret_cast<const QMatrix4x4 *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QMatrix4x4(sipSimpleWrapper *);}
static void dealloc_QMatrix4x4(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QMatrix4x4(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QMatrix4x4(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMatrix4x4(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QMatrix4x4 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QMatrix4x4();

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "P0", &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qmatrix4x4.sip"
        float values[16];
        
        if ((sipError = qtgui_matrixDataFromSequence(a0, 16, values)) == sipErrorNone)
            sipCpp = new QMatrix4x4(values);
#line 134732 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    {
        float a0;
        float a1;
        float a2;
        float a3;
        float a4;
        float a5;
        float a6;
        float a7;
        float a8;
        float a9;
        float a10;
        float a11;
        float a12;
        float a13;
        float a14;
        float a15;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ffffffffffffffff", &a0, &a1, &a2, &a3, &a4, &a5, &a6, &a7, &a8, &a9, &a10, &a11, &a12, &a13, &a14, &a15))
        {
            sipCpp = new QMatrix4x4(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15);

            return sipCpp;
        }
    }

    {
        const QTransform* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTransform, &a0))
        {
            sipCpp = new QMatrix4x4(*a0);

            return sipCpp;
        }
    }

    {
        const QMatrix4x4* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMatrix4x4, &a0))
        {
            sipCpp = new QMatrix4x4(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QMatrix4x4[] = {
    {(void *)slot_QMatrix4x4___div__, div_slot},
    {(void *)slot_QMatrix4x4___add__, add_slot},
    {(void *)slot_QMatrix4x4___sub__, sub_slot},
    {(void *)slot_QMatrix4x4___mul__, mul_slot},
    {(void *)slot_QMatrix4x4___neg__, neg_slot},
    {(void *)slot_QMatrix4x4___ne__, ne_slot},
    {(void *)slot_QMatrix4x4___eq__, eq_slot},
    {(void *)slot_QMatrix4x4___idiv__, idiv_slot},
    {(void *)slot_QMatrix4x4___imul__, imul_slot},
    {(void *)slot_QMatrix4x4___isub__, isub_slot},
    {(void *)slot_QMatrix4x4___iadd__, iadd_slot},
    {(void *)slot_QMatrix4x4___setitem__, setitem_slot},
    {(void *)slot_QMatrix4x4___getitem__, getitem_slot},
    {(void *)slot_QMatrix4x4___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QMatrix4x4[] = {
    {SIP_MLNAME_CAST(sipName_column), meth_QMatrix4x4_column, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_column)},
    {SIP_MLNAME_CAST(sipName_copyDataTo), meth_QMatrix4x4_copyDataTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_copyDataTo)},
    {SIP_MLNAME_CAST(sipName_data), meth_QMatrix4x4_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_data)},
    {SIP_MLNAME_CAST(sipName_determinant), meth_QMatrix4x4_determinant, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_determinant)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QMatrix4x4_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_fill)},
    {SIP_MLNAME_CAST(sipName_frustum), meth_QMatrix4x4_frustum, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_frustum)},
    {SIP_MLNAME_CAST(sipName_inverted), (PyCFunction)meth_QMatrix4x4_inverted, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QMatrix4x4_inverted)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QMatrix4x4_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_isIdentity)},
    {SIP_MLNAME_CAST(sipName_lookAt), meth_QMatrix4x4_lookAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_lookAt)},
    {SIP_MLNAME_CAST(sipName_map), meth_QMatrix4x4_map, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_map)},
    {SIP_MLNAME_CAST(sipName_mapRect), meth_QMatrix4x4_mapRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_mapRect)},
    {SIP_MLNAME_CAST(sipName_mapVector), meth_QMatrix4x4_mapVector, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_mapVector)},
    {SIP_MLNAME_CAST(sipName_normalMatrix), meth_QMatrix4x4_normalMatrix, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_normalMatrix)},
    {SIP_MLNAME_CAST(sipName_optimize), meth_QMatrix4x4_optimize, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_optimize)},
    {SIP_MLNAME_CAST(sipName_ortho), meth_QMatrix4x4_ortho, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_ortho)},
    {SIP_MLNAME_CAST(sipName_perspective), meth_QMatrix4x4_perspective, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_perspective)},
    {SIP_MLNAME_CAST(sipName_rotate), (PyCFunction)meth_QMatrix4x4_rotate, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QMatrix4x4_rotate)},
    {SIP_MLNAME_CAST(sipName_row), meth_QMatrix4x4_row, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_row)},
    {SIP_MLNAME_CAST(sipName_scale), meth_QMatrix4x4_scale, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_scale)},
    {SIP_MLNAME_CAST(sipName_setColumn), meth_QMatrix4x4_setColumn, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_setColumn)},
    {SIP_MLNAME_CAST(sipName_setRow), meth_QMatrix4x4_setRow, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_setRow)},
    {SIP_MLNAME_CAST(sipName_setToIdentity), meth_QMatrix4x4_setToIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_setToIdentity)},
    {SIP_MLNAME_CAST(sipName_toTransform), meth_QMatrix4x4_toTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_toTransform)},
    {SIP_MLNAME_CAST(sipName_translate), meth_QMatrix4x4_translate, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_translate)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QMatrix4x4_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x4_transposed)},
    {SIP_MLNAME_CAST(sipName_viewport), (PyCFunction)meth_QMatrix4x4_viewport, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QMatrix4x4_viewport)}
};

PyDoc_STRVAR(doc_QMatrix4x4, "\1QMatrix4x4()\n"
    "QMatrix4x4(sequence-of-float)\n"
    "QMatrix4x4(float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float)\n"
    "QMatrix4x4(QTransform)\n"
    "QMatrix4x4(QMatrix4x4)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMatrix4x4 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMatrix4x4,
        {0}
    },
    {
        sipNameNr_QMatrix4x4,
        {0, 0, 1},
        26, methods_QMatrix4x4,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix4x4,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QMatrix4x4,
    init_type_QMatrix4x4,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMatrix4x4,
    assign_QMatrix4x4,
    array_QMatrix4x4,
    copy_QMatrix4x4,
    release_QMatrix4x4,
    cast_QMatrix4x4,
    0,
    0,
    0,
    pickle_QMatrix4x4,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 134914 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 134918 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 134921 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 134924 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QKeySequence_count, "QKeySequence.count() -> int");

extern "C" {static PyObject *meth_QKeySequence_count(PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_count(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeySequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeySequence, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->count();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_count, doc_QKeySequence_count);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_isEmpty, "QKeySequence.isEmpty() -> bool");

extern "C" {static PyObject *meth_QKeySequence_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeySequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeySequence, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEmpty();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_isEmpty, doc_QKeySequence_isEmpty);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_matches, "QKeySequence.matches(QKeySequence) -> QKeySequence.SequenceMatch");

extern "C" {static PyObject *meth_QKeySequence_matches(PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_matches(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeySequence* a0;
        int a0State = 0;
        const QKeySequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QKeySequence, &sipCpp, sipType_QKeySequence, &a0, &a0State))
        {
            QKeySequence::SequenceMatch sipRes;

            sipRes = sipCpp->matches(*a0);
            sipReleaseType(const_cast<QKeySequence *>(a0),sipType_QKeySequence,a0State);

            return sipConvertFromEnum(sipRes,sipType_QKeySequence_SequenceMatch);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_matches, doc_QKeySequence_matches);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_mnemonic, "QKeySequence.mnemonic(str) -> QKeySequence");

extern "C" {static PyObject *meth_QKeySequence_mnemonic(PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_mnemonic(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QKeySequence*sipRes;

            sipRes = new QKeySequence(QKeySequence::mnemonic(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QKeySequence,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_mnemonic, doc_QKeySequence_mnemonic);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_isDetached, "QKeySequence.isDetached() -> bool");

extern "C" {static PyObject *meth_QKeySequence_isDetached(PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_isDetached(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeySequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeySequence, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isDetached();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_isDetached, doc_QKeySequence_isDetached);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_swap, "QKeySequence.swap(QKeySequence)");

extern "C" {static PyObject *meth_QKeySequence_swap(PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QKeySequence* a0;
        int a0State = 0;
        QKeySequence *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QKeySequence, &sipCpp, sipType_QKeySequence, &a0, &a0State))
        {
            sipCpp->swap(*a0);
            sipReleaseType(a0,sipType_QKeySequence,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_swap, doc_QKeySequence_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_toString, "QKeySequence.toString(QKeySequence.SequenceFormat format=QKeySequence.PortableText) -> str");

extern "C" {static PyObject *meth_QKeySequence_toString(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_toString(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QKeySequence::SequenceFormat a0 = QKeySequence::PortableText;
        const QKeySequence *sipCpp;

        static const char *sipKwdList[] = {
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QKeySequence, &sipCpp, sipType_QKeySequence_SequenceFormat, &a0))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->toString(a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_toString, doc_QKeySequence_toString);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_fromString, "QKeySequence.fromString(str, QKeySequence.SequenceFormat format=QKeySequence.PortableText) -> QKeySequence");

extern "C" {static PyObject *meth_QKeySequence_fromString(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_fromString(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QKeySequence::SequenceFormat a1 = QKeySequence::PortableText;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|E", sipType_QString,&a0, &a0State, sipType_QKeySequence_SequenceFormat, &a1))
        {
            QKeySequence*sipRes;

            sipRes = new QKeySequence(QKeySequence::fromString(*a0,a1));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QKeySequence,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_fromString, doc_QKeySequence_fromString);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_keyBindings, "QKeySequence.keyBindings(QKeySequence.StandardKey) -> list-of-QKeySequence");

extern "C" {static PyObject *meth_QKeySequence_keyBindings(PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_keyBindings(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QKeySequence::StandardKey a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QKeySequence_StandardKey, &a0))
        {
            QList<QKeySequence>*sipRes;

            sipRes = new QList<QKeySequence>(QKeySequence::keyBindings(a0));

            return sipConvertFromNewType(sipRes,sipType_QList_0100QKeySequence,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_keyBindings, doc_QKeySequence_keyBindings);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_listFromString, "QKeySequence.listFromString(str, QKeySequence.SequenceFormat format=QKeySequence.PortableText) -> list-of-QKeySequence");

extern "C" {static PyObject *meth_QKeySequence_listFromString(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_listFromString(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QKeySequence::SequenceFormat a1 = QKeySequence::PortableText;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|E", sipType_QString,&a0, &a0State, sipType_QKeySequence_SequenceFormat, &a1))
        {
            QList<QKeySequence>*sipRes;

            sipRes = new QList<QKeySequence>(QKeySequence::listFromString(*a0,a1));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QList_0100QKeySequence,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_listFromString, doc_QKeySequence_listFromString);

    return NULL;
}


PyDoc_STRVAR(doc_QKeySequence_listToString, "QKeySequence.listToString(list-of-QKeySequence, QKeySequence.SequenceFormat format=QKeySequence.PortableText) -> str");

extern "C" {static PyObject *meth_QKeySequence_listToString(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QKeySequence_listToString(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QList<QKeySequence>* a0;
        int a0State = 0;
        QKeySequence::SequenceFormat a1 = QKeySequence::PortableText;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|E", sipType_QList_0100QKeySequence,&a0, &a0State, sipType_QKeySequence_SequenceFormat, &a1))
        {
            QString*sipRes;

            sipRes = new QString(QKeySequence::listToString(*a0,a1));
            sipReleaseType(const_cast<QList<QKeySequence> *>(a0),sipType_QList_0100QKeySequence,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName_listToString, doc_QKeySequence_listToString);

    return NULL;
}


extern "C" {static PyObject *slot_QKeySequence___ge__(PyObject *,PyObject *);}
static PyObject *slot_QKeySequence___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeySequence *sipCpp = reinterpret_cast<QKeySequence *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeySequence));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QKeySequence* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QKeySequence, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QKeySequence::operator>=(*a0);
            sipReleaseType(const_cast<QKeySequence *>(a0),sipType_QKeySequence,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ge_slot,sipType_QKeySequence,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QKeySequence___le__(PyObject *,PyObject *);}
static PyObject *slot_QKeySequence___le__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeySequence *sipCpp = reinterpret_cast<QKeySequence *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeySequence));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QKeySequence* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QKeySequence, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QKeySequence::operator<=(*a0);
            sipReleaseType(const_cast<QKeySequence *>(a0),sipType_QKeySequence,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,le_slot,sipType_QKeySequence,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QKeySequence___gt__(PyObject *,PyObject *);}
static PyObject *slot_QKeySequence___gt__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeySequence *sipCpp = reinterpret_cast<QKeySequence *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeySequence));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QKeySequence* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QKeySequence, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QKeySequence::operator>(*a0);
            sipReleaseType(const_cast<QKeySequence *>(a0),sipType_QKeySequence,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,gt_slot,sipType_QKeySequence,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QKeySequence___lt__(PyObject *,PyObject *);}
static PyObject *slot_QKeySequence___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeySequence *sipCpp = reinterpret_cast<QKeySequence *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeySequence));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QKeySequence* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QKeySequence, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QKeySequence::operator<(*a0);
            sipReleaseType(const_cast<QKeySequence *>(a0),sipType_QKeySequence,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,lt_slot,sipType_QKeySequence,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QKeySequence___ne__(PyObject *,PyObject *);}
static PyObject *slot_QKeySequence___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeySequence *sipCpp = reinterpret_cast<QKeySequence *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeySequence));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QKeySequence* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QKeySequence, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QKeySequence::operator!=(*a0);
            sipReleaseType(const_cast<QKeySequence *>(a0),sipType_QKeySequence,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QKeySequence,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QKeySequence___eq__(PyObject *,PyObject *);}
static PyObject *slot_QKeySequence___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeySequence *sipCpp = reinterpret_cast<QKeySequence *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeySequence));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QKeySequence* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QKeySequence, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QKeySequence::operator==(*a0);
            sipReleaseType(const_cast<QKeySequence *>(a0),sipType_QKeySequence,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QKeySequence,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QKeySequence___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QKeySequence___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeySequence *sipCpp = reinterpret_cast<QKeySequence *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeySequence));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            int sipRes = 0;
            int sipIsErr = 0;

#line 208 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
        SIP_SSIZE_T idx = sipConvertFromSequenceIndex(a0, sipCpp->count());
        
        if (idx < 0)
            sipIsErr = 1;
        else
            sipRes = sipCpp->operator[]((uint)idx);
#line 135489 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
                return 0;

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeySequence, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static SIP_SSIZE_T slot_QKeySequence___len__(PyObject *);}
static SIP_SSIZE_T slot_QKeySequence___len__(PyObject *sipSelf)
{
    QKeySequence *sipCpp = reinterpret_cast<QKeySequence *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeySequence));

    if (!sipCpp)
        return 0;


    {
        {
            SIP_SSIZE_T sipRes = 0;

#line 1 "Auto-generated"
            sipRes = (SIP_SSIZE_T)sipCpp->count();
#line 135520 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QKeySequence(void *, const sipTypeDef *);}
static void *cast_QKeySequence(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QKeySequence)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QKeySequence(void *, int);}
static void release_QKeySequence(void *sipCppV,int)
{
    delete reinterpret_cast<QKeySequence *>(sipCppV);
}


extern "C" {static PyObject *pickle_QKeySequence(void *);}
static PyObject *pickle_QKeySequence(void *sipCppV)
{
    QKeySequence *sipCpp = reinterpret_cast<QKeySequence *>(sipCppV);
    PyObject *sipRes;

#line 95 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
    sipRes = Py_BuildValue((char *)"iiii", sipCpp->operator[](0), sipCpp->operator[](1), sipCpp->operator[](2), sipCpp->operator[](3));
#line 135557 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QKeySequence(void *, SIP_SSIZE_T, const void *);}
static void assign_QKeySequence(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QKeySequence *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QKeySequence *>(sipSrc);
}


extern "C" {static void *array_QKeySequence(SIP_SSIZE_T);}
static void *array_QKeySequence(SIP_SSIZE_T sipNrElem)
{
    return new QKeySequence[sipNrElem];
}


extern "C" {static void *copy_QKeySequence(const void *, SIP_SSIZE_T);}
static void *copy_QKeySequence(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QKeySequence(reinterpret_cast<const QKeySequence *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QKeySequence(sipSimpleWrapper *);}
static void dealloc_QKeySequence(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QKeySequence(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QKeySequence(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QKeySequence(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QKeySequence *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QKeySequence();

            return sipCpp;
        }
    }

    {
        const QKeySequence* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QKeySequence, &a0, &a0State))
        {
            sipCpp = new QKeySequence(*a0);
            sipReleaseType(const_cast<QKeySequence *>(a0),sipType_QKeySequence,a0State);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QKeySequence::SequenceFormat a1 = QKeySequence::NativeText;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|E", sipType_QString,&a0, &a0State, sipType_QKeySequence_SequenceFormat, &a1))
        {
            sipCpp = new QKeySequence(*a0,a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        int a0;
        int a1 = 0;
        int a2 = 0;
        int a3 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_key2,
            sipName_key3,
            sipName_key4,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "i|iii", &a0, &a1, &a2, &a3))
        {
            sipCpp = new QKeySequence(a0,a1,a2,a3);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 195 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
        if (a0->canConvert<QKeySequence>())
            sipCpp = new QKeySequence(a0->value<QKeySequence>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 135675 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QKeySequence(PyObject *, void **, int *, PyObject *);}
static int convertTo_QKeySequence(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QKeySequence **sipCppPtr = reinterpret_cast<QKeySequence **>(sipCppPtrV);

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
// Allow a StandardKey, QString or an integer whenever a QKeySequence is
// expected.

if (sipIsErr == NULL)
{
    if (sipCanConvertToType(sipPy, sipType_QKeySequence, SIP_NO_CONVERTORS))
        return 1;

    if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QKeySequence_StandardKey)))
        return 1;

    if (sipCanConvertToType(sipPy, sipType_QString, 0))
        return 1;

    PyErr_Clear();

    SIPLong_AsLong(sipPy);

    return !PyErr_Occurred();
}

if (sipCanConvertToType(sipPy, sipType_QKeySequence, SIP_NO_CONVERTORS))
{
    *sipCppPtr = reinterpret_cast<QKeySequence *>(sipConvertToType(sipPy, sipType_QKeySequence, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

    return 0;
}

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QKeySequence_StandardKey)))
{
    *sipCppPtr = new QKeySequence((QKeySequence::StandardKey)SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

if (sipCanConvertToType(sipPy, sipType_QString, 0))
{
    int state;
    QString *qs = reinterpret_cast<QString *>(sipConvertToType(sipPy, sipType_QString, 0, 0, &state, sipIsErr));

    if (*sipIsErr)
    {
        sipReleaseType(qs, sipType_QString, state);
        return 0;
    }

    *sipCppPtr = new QKeySequence(*qs);

    sipReleaseType(qs, sipType_QString, state);

    return sipGetState(sipTransferObj);
}

int key = SIPLong_AsLong(sipPy);

*sipCppPtr = new QKeySequence(key);

return sipGetState(sipTransferObj);
#line 135761 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QKeySequence[] = {
    {(void *)slot_QKeySequence___ge__, ge_slot},
    {(void *)slot_QKeySequence___le__, le_slot},
    {(void *)slot_QKeySequence___gt__, gt_slot},
    {(void *)slot_QKeySequence___lt__, lt_slot},
    {(void *)slot_QKeySequence___ne__, ne_slot},
    {(void *)slot_QKeySequence___eq__, eq_slot},
    {(void *)slot_QKeySequence___getitem__, getitem_slot},
    {(void *)slot_QKeySequence___len__, len_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QKeySequence[] = {
    {SIP_MLNAME_CAST(sipName_count), meth_QKeySequence_count, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeySequence_count)},
    {SIP_MLNAME_CAST(sipName_fromString), (PyCFunction)meth_QKeySequence_fromString, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QKeySequence_fromString)},
    {SIP_MLNAME_CAST(sipName_isDetached), meth_QKeySequence_isDetached, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeySequence_isDetached)},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_QKeySequence_isEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeySequence_isEmpty)},
    {SIP_MLNAME_CAST(sipName_keyBindings), meth_QKeySequence_keyBindings, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeySequence_keyBindings)},
    {SIP_MLNAME_CAST(sipName_listFromString), (PyCFunction)meth_QKeySequence_listFromString, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QKeySequence_listFromString)},
    {SIP_MLNAME_CAST(sipName_listToString), (PyCFunction)meth_QKeySequence_listToString, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QKeySequence_listToString)},
    {SIP_MLNAME_CAST(sipName_matches), meth_QKeySequence_matches, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeySequence_matches)},
    {SIP_MLNAME_CAST(sipName_mnemonic), meth_QKeySequence_mnemonic, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeySequence_mnemonic)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QKeySequence_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeySequence_swap)},
    {SIP_MLNAME_CAST(sipName_toString), (PyCFunction)meth_QKeySequence_toString, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QKeySequence_toString)}
};

static sipEnumMemberDef enummembers_QKeySequence[] = {
    {sipName_AddTab, static_cast<int>(QKeySequence::AddTab), 85},
    {sipName_Back, static_cast<int>(QKeySequence::Back), 85},
    {sipName_Bold, static_cast<int>(QKeySequence::Bold), 85},
    {sipName_Close, static_cast<int>(QKeySequence::Close), 85},
    {sipName_Copy, static_cast<int>(QKeySequence::Copy), 85},
    {sipName_Cut, static_cast<int>(QKeySequence::Cut), 85},
    {sipName_Delete, static_cast<int>(QKeySequence::Delete), 85},
    {sipName_DeleteCompleteLine, static_cast<int>(QKeySequence::DeleteCompleteLine), 85},
    {sipName_DeleteEndOfLine, static_cast<int>(QKeySequence::DeleteEndOfLine), 85},
    {sipName_DeleteEndOfWord, static_cast<int>(QKeySequence::DeleteEndOfWord), 85},
    {sipName_DeleteStartOfWord, static_cast<int>(QKeySequence::DeleteStartOfWord), 85},
    {sipName_Deselect, static_cast<int>(QKeySequence::Deselect), 85},
    {sipName_ExactMatch, static_cast<int>(QKeySequence::ExactMatch), 84},
    {sipName_Find, static_cast<int>(QKeySequence::Find), 85},
    {sipName_FindNext, static_cast<int>(QKeySequence::FindNext), 85},
    {sipName_FindPrevious, static_cast<int>(QKeySequence::FindPrevious), 85},
    {sipName_Forward, static_cast<int>(QKeySequence::Forward), 85},
    {sipName_FullScreen, static_cast<int>(QKeySequence::FullScreen), 85},
    {sipName_HelpContents, static_cast<int>(QKeySequence::HelpContents), 85},
    {sipName_InsertLineSeparator, static_cast<int>(QKeySequence::InsertLineSeparator), 85},
    {sipName_InsertParagraphSeparator, static_cast<int>(QKeySequence::InsertParagraphSeparator), 85},
    {sipName_Italic, static_cast<int>(QKeySequence::Italic), 85},
    {sipName_MoveToEndOfBlock, static_cast<int>(QKeySequence::MoveToEndOfBlock), 85},
    {sipName_MoveToEndOfDocument, static_cast<int>(QKeySequence::MoveToEndOfDocument), 85},
    {sipName_MoveToEndOfLine, static_cast<int>(QKeySequence::MoveToEndOfLine), 85},
    {sipName_MoveToNextChar, static_cast<int>(QKeySequence::MoveToNextChar), 85},
    {sipName_MoveToNextLine, static_cast<int>(QKeySequence::MoveToNextLine), 85},
    {sipName_MoveToNextPage, static_cast<int>(QKeySequence::MoveToNextPage), 85},
    {sipName_MoveToNextWord, static_cast<int>(QKeySequence::MoveToNextWord), 85},
    {sipName_MoveToPreviousChar, static_cast<int>(QKeySequence::MoveToPreviousChar), 85},
    {sipName_MoveToPreviousLine, static_cast<int>(QKeySequence::MoveToPreviousLine), 85},
    {sipName_MoveToPreviousPage, static_cast<int>(QKeySequence::MoveToPreviousPage), 85},
    {sipName_MoveToPreviousWord, static_cast<int>(QKeySequence::MoveToPreviousWord), 85},
    {sipName_MoveToStartOfBlock, static_cast<int>(QKeySequence::MoveToStartOfBlock), 85},
    {sipName_MoveToStartOfDocument, static_cast<int>(QKeySequence::MoveToStartOfDocument), 85},
    {sipName_MoveToStartOfLine, static_cast<int>(QKeySequence::MoveToStartOfLine), 85},
    {sipName_NativeText, static_cast<int>(QKeySequence::NativeText), 83},
    {sipName_New, static_cast<int>(QKeySequence::New), 85},
    {sipName_NextChild, static_cast<int>(QKeySequence::NextChild), 85},
    {sipName_NoMatch, static_cast<int>(QKeySequence::NoMatch), 84},
    {sipName_Open, static_cast<int>(QKeySequence::Open), 85},
    {sipName_PartialMatch, static_cast<int>(QKeySequence::PartialMatch), 84},
    {sipName_Paste, static_cast<int>(QKeySequence::Paste), 85},
    {sipName_PortableText, static_cast<int>(QKeySequence::PortableText), 83},
    {sipName_Preferences, static_cast<int>(QKeySequence::Preferences), 85},
    {sipName_PreviousChild, static_cast<int>(QKeySequence::PreviousChild), 85},
    {sipName_Print, static_cast<int>(QKeySequence::Print), 85},
    {sipName_Quit, static_cast<int>(QKeySequence::Quit), 85},
    {sipName_Redo, static_cast<int>(QKeySequence::Redo), 85},
    {sipName_Refresh, static_cast<int>(QKeySequence::Refresh), 85},
    {sipName_Replace, static_cast<int>(QKeySequence::Replace), 85},
    {sipName_Save, static_cast<int>(QKeySequence::Save), 85},
    {sipName_SaveAs, static_cast<int>(QKeySequence::SaveAs), 85},
    {sipName_SelectAll, static_cast<int>(QKeySequence::SelectAll), 85},
    {sipName_SelectEndOfBlock, static_cast<int>(QKeySequence::SelectEndOfBlock), 85},
    {sipName_SelectEndOfDocument, static_cast<int>(QKeySequence::SelectEndOfDocument), 85},
    {sipName_SelectEndOfLine, static_cast<int>(QKeySequence::SelectEndOfLine), 85},
    {sipName_SelectNextChar, static_cast<int>(QKeySequence::SelectNextChar), 85},
    {sipName_SelectNextLine, static_cast<int>(QKeySequence::SelectNextLine), 85},
    {sipName_SelectNextPage, static_cast<int>(QKeySequence::SelectNextPage), 85},
    {sipName_SelectNextWord, static_cast<int>(QKeySequence::SelectNextWord), 85},
    {sipName_SelectPreviousChar, static_cast<int>(QKeySequence::SelectPreviousChar), 85},
    {sipName_SelectPreviousLine, static_cast<int>(QKeySequence::SelectPreviousLine), 85},
    {sipName_SelectPreviousPage, static_cast<int>(QKeySequence::SelectPreviousPage), 85},
    {sipName_SelectPreviousWord, static_cast<int>(QKeySequence::SelectPreviousWord), 85},
    {sipName_SelectStartOfBlock, static_cast<int>(QKeySequence::SelectStartOfBlock), 85},
    {sipName_SelectStartOfDocument, static_cast<int>(QKeySequence::SelectStartOfDocument), 85},
    {sipName_SelectStartOfLine, static_cast<int>(QKeySequence::SelectStartOfLine), 85},
    {sipName_Underline, static_cast<int>(QKeySequence::Underline), 85},
    {sipName_Undo, static_cast<int>(QKeySequence::Undo), 85},
    {sipName_UnknownKey, static_cast<int>(QKeySequence::UnknownKey), 85},
    {sipName_WhatsThis, static_cast<int>(QKeySequence::WhatsThis), 85},
    {sipName_ZoomIn, static_cast<int>(QKeySequence::ZoomIn), 85},
    {sipName_ZoomOut, static_cast<int>(QKeySequence::ZoomOut), 85},
};

PyDoc_STRVAR(doc_QKeySequence, "\1QKeySequence()\n"
    "QKeySequence(QKeySequence)\n"
    "QKeySequence(str, QKeySequence.SequenceFormat format=QKeySequence.NativeText)\n"
    "QKeySequence(int, int key2=0, int key3=0, int key4=0)\n"
    "QKeySequence(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QKeySequence = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QKeySequence,
        {0}
    },
    {
        sipNameNr_QKeySequence,
        {0, 0, 1},
        11, methods_QKeySequence,
        74, enummembers_QKeySequence,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QKeySequence,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QKeySequence,
    init_type_QKeySequence,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QKeySequence,
    assign_QKeySequence,
    array_QKeySequence,
    copy_QKeySequence,
    release_QKeySequence,
    cast_QKeySequence,
    convertTo_QKeySequence,
    0,
    0,
    pickle_QKeySequence,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qinputmethod.sip"
#include <qinputmethod.h>
#line 135934 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 135938 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 135941 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 135944 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 135947 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qlocale.sip"
#include <qlocale.h>
#line 135950 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 135953 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 135956 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 135959 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 135962 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 135965 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 135968 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 135971 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 135974 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 135977 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 135980 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 135983 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 135986 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 135989 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 135992 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 135995 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QInputMethod_inputItemTransform, "QInputMethod.inputItemTransform() -> QTransform");

extern "C" {static PyObject *meth_QInputMethod_inputItemTransform(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_inputItemTransform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->inputItemTransform());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_inputItemTransform, doc_QInputMethod_inputItemTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_setInputItemTransform, "QInputMethod.setInputItemTransform(QTransform)");

extern "C" {static PyObject *meth_QInputMethod_setInputItemTransform(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_setInputItemTransform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QInputMethod, &sipCpp, sipType_QTransform, &a0))
        {
            sipCpp->setInputItemTransform(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_setInputItemTransform, doc_QInputMethod_setInputItemTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_cursorRectangle, "QInputMethod.cursorRectangle() -> QRectF");

extern "C" {static PyObject *meth_QInputMethod_cursorRectangle(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_cursorRectangle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->cursorRectangle());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_cursorRectangle, doc_QInputMethod_cursorRectangle);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_keyboardRectangle, "QInputMethod.keyboardRectangle() -> QRectF");

extern "C" {static PyObject *meth_QInputMethod_keyboardRectangle(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_keyboardRectangle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->keyboardRectangle());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_keyboardRectangle, doc_QInputMethod_keyboardRectangle);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_isVisible, "QInputMethod.isVisible() -> bool");

extern "C" {static PyObject *meth_QInputMethod_isVisible(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_isVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isVisible();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_isVisible, doc_QInputMethod_isVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_setVisible, "QInputMethod.setVisible(bool)");

extern "C" {static PyObject *meth_QInputMethod_setVisible(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_setVisible(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QInputMethod, &sipCpp, &a0))
        {
            sipCpp->setVisible(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_setVisible, doc_QInputMethod_setVisible);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_isAnimating, "QInputMethod.isAnimating() -> bool");

extern "C" {static PyObject *meth_QInputMethod_isAnimating(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_isAnimating(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAnimating();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_isAnimating, doc_QInputMethod_isAnimating);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_locale, "QInputMethod.locale() -> QLocale");

extern "C" {static PyObject *meth_QInputMethod_locale(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_locale(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            QLocale*sipRes;

            sipRes = new QLocale(sipCpp->locale());

            return sipConvertFromNewType(sipRes,sipType_QLocale,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_locale, doc_QInputMethod_locale);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_inputDirection, "QInputMethod.inputDirection() -> Qt.LayoutDirection");

extern "C" {static PyObject *meth_QInputMethod_inputDirection(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_inputDirection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            Qt::LayoutDirection sipRes;

            sipRes = sipCpp->inputDirection();

            return sipConvertFromEnum(sipRes,sipType_Qt_LayoutDirection);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_inputDirection, doc_QInputMethod_inputDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_inputItemRectangle, "QInputMethod.inputItemRectangle() -> QRectF");

extern "C" {static PyObject *meth_QInputMethod_inputItemRectangle(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_inputItemRectangle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->inputItemRectangle());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_inputItemRectangle, doc_QInputMethod_inputItemRectangle);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_setInputItemRectangle, "QInputMethod.setInputItemRectangle(QRectF)");

extern "C" {static PyObject *meth_QInputMethod_setInputItemRectangle(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_setInputItemRectangle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QInputMethod, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->setInputItemRectangle(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_setInputItemRectangle, doc_QInputMethod_setInputItemRectangle);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_queryFocusObject, "QInputMethod.queryFocusObject(Qt.InputMethodQuery, QVariant) -> QVariant");

extern "C" {static PyObject *meth_QInputMethod_queryFocusObject(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_queryFocusObject(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::InputMethodQuery a0;
        QVariant* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "EJ1", sipType_Qt_InputMethodQuery, &a0, sipType_QVariant, &a1, &a1State))
        {
            QVariant*sipRes;

            sipRes = new QVariant(QInputMethod::queryFocusObject(a0,*a1));
            sipReleaseType(a1,sipType_QVariant,a1State);

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_queryFocusObject, doc_QInputMethod_queryFocusObject);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_show, "QInputMethod.show()");

extern "C" {static PyObject *meth_QInputMethod_show(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_show(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            sipCpp->show();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_show, doc_QInputMethod_show);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_hide, "QInputMethod.hide()");

extern "C" {static PyObject *meth_QInputMethod_hide(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_hide(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            sipCpp->hide();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_hide, doc_QInputMethod_hide);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_update, "QInputMethod.update(Qt.InputMethodQueries)");

extern "C" {static PyObject *meth_QInputMethod_update(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_update(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::InputMethodQueries* a0;
        int a0State = 0;
        QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QInputMethod, &sipCpp, sipType_Qt_InputMethodQueries, &a0, &a0State))
        {
            sipCpp->update(*a0);
            sipReleaseType(a0,sipType_Qt_InputMethodQueries,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_update, doc_QInputMethod_update);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_reset, "QInputMethod.reset()");

extern "C" {static PyObject *meth_QInputMethod_reset(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_reset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            sipCpp->reset();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_reset, doc_QInputMethod_reset);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_commit, "QInputMethod.commit()");

extern "C" {static PyObject *meth_QInputMethod_commit(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_commit(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethod, &sipCpp))
        {
            sipCpp->commit();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_commit, doc_QInputMethod_commit);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethod_invokeAction, "QInputMethod.invokeAction(QInputMethod.Action, int)");

extern "C" {static PyObject *meth_QInputMethod_invokeAction(PyObject *, PyObject *);}
static PyObject *meth_QInputMethod_invokeAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QInputMethod::Action a0;
        int a1;
        QInputMethod *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEi", &sipSelf, sipType_QInputMethod, &sipCpp, sipType_QInputMethod_Action, &a0, &a1))
        {
            sipCpp->invokeAction(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethod, sipName_invokeAction, doc_QInputMethod_invokeAction);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QInputMethod(void *, const sipTypeDef *);}
static void *cast_QInputMethod(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QInputMethod)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QInputMethod *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QInputMethod(void *, int);}
static void release_QInputMethod(void *,int)
{
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QInputMethod[] = {{162, 0, 1}};


static PyMethodDef methods_QInputMethod[] = {
    {SIP_MLNAME_CAST(sipName_commit), meth_QInputMethod_commit, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_commit)},
    {SIP_MLNAME_CAST(sipName_cursorRectangle), meth_QInputMethod_cursorRectangle, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_cursorRectangle)},
    {SIP_MLNAME_CAST(sipName_hide), meth_QInputMethod_hide, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_hide)},
    {SIP_MLNAME_CAST(sipName_inputDirection), meth_QInputMethod_inputDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_inputDirection)},
    {SIP_MLNAME_CAST(sipName_inputItemRectangle), meth_QInputMethod_inputItemRectangle, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_inputItemRectangle)},
    {SIP_MLNAME_CAST(sipName_inputItemTransform), meth_QInputMethod_inputItemTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_inputItemTransform)},
    {SIP_MLNAME_CAST(sipName_invokeAction), meth_QInputMethod_invokeAction, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_invokeAction)},
    {SIP_MLNAME_CAST(sipName_isAnimating), meth_QInputMethod_isAnimating, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_isAnimating)},
    {SIP_MLNAME_CAST(sipName_isVisible), meth_QInputMethod_isVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_isVisible)},
    {SIP_MLNAME_CAST(sipName_keyboardRectangle), meth_QInputMethod_keyboardRectangle, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_keyboardRectangle)},
    {SIP_MLNAME_CAST(sipName_locale), meth_QInputMethod_locale, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_locale)},
    {SIP_MLNAME_CAST(sipName_queryFocusObject), meth_QInputMethod_queryFocusObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_queryFocusObject)},
    {SIP_MLNAME_CAST(sipName_reset), meth_QInputMethod_reset, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_reset)},
    {SIP_MLNAME_CAST(sipName_setInputItemRectangle), meth_QInputMethod_setInputItemRectangle, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_setInputItemRectangle)},
    {SIP_MLNAME_CAST(sipName_setInputItemTransform), meth_QInputMethod_setInputItemTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_setInputItemTransform)},
    {SIP_MLNAME_CAST(sipName_setVisible), meth_QInputMethod_setVisible, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_setVisible)},
    {SIP_MLNAME_CAST(sipName_show), meth_QInputMethod_show, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_show)},
    {SIP_MLNAME_CAST(sipName_update), meth_QInputMethod_update, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethod_update)}
};

static sipEnumMemberDef enummembers_QInputMethod[] = {
    {sipName_Click, static_cast<int>(QInputMethod::Click), 75},
    {sipName_ContextMenu, static_cast<int>(QInputMethod::ContextMenu), 75},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QInputMethod[] = {
    {"inputDirectionChanged(Qt::LayoutDirection)", "\1QInputMethod.inputDirectionChanged[Qt.LayoutDirection]", 0, 0},
    {"localeChanged()", "\1QInputMethod.localeChanged", 0, 0},
    {"animatingChanged()", "\1QInputMethod.animatingChanged", 0, 0},
    {"visibleChanged()", "\1QInputMethod.visibleChanged", 0, 0},
    {"keyboardRectangleChanged()", "\1QInputMethod.keyboardRectangleChanged", 0, 0},
    {"cursorRectangleChanged()", "\1QInputMethod.cursorRectangleChanged", 0, 0},
    {0, 0, 0, 0}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QInputMethod = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QInputMethod,
        {0}
    },
    {
        sipNameNr_QInputMethod,
        {0, 0, 1},
        18, methods_QInputMethod,
        2, enummembers_QInputMethod,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QInputMethod,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_QInputMethod,
    cast_QInputMethod,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QInputMethod::staticMetaObject,
    0,
    signals_QInputMethod,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimagewriter.sip"
#include <qimagewriter.h>
#line 136608 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 136612 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 136615 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 136618 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 136621 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 136624 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 136627 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QImageWriter_setFormat, "QImageWriter.setFormat(QByteArray)");

extern "C" {static PyObject *meth_QImageWriter_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImageWriter, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            sipCpp->setFormat(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setFormat, doc_QImageWriter_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_format, "QImageWriter.format() -> QByteArray");

extern "C" {static PyObject *meth_QImageWriter_format(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_format, doc_QImageWriter_format);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_setDevice, "QImageWriter.setDevice(QIODevice)");

extern "C" {static PyObject *meth_QImageWriter_setDevice(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_setDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QImageWriter, &sipCpp, sipType_QIODevice, &a0))
        {
            sipCpp->setDevice(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setDevice, doc_QImageWriter_setDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_device, "QImageWriter.device() -> QIODevice");

extern "C" {static PyObject *meth_QImageWriter_device(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_device(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            QIODevice*sipRes;

            sipRes = sipCpp->device();

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_device, doc_QImageWriter_device);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_setFileName, "QImageWriter.setFileName(str)");

extern "C" {static PyObject *meth_QImageWriter_setFileName(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_setFileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImageWriter, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setFileName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setFileName, doc_QImageWriter_setFileName);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_fileName, "QImageWriter.fileName() -> str");

extern "C" {static PyObject *meth_QImageWriter_fileName(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_fileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->fileName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_fileName, doc_QImageWriter_fileName);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_setQuality, "QImageWriter.setQuality(int)");

extern "C" {static PyObject *meth_QImageWriter_setQuality(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_setQuality(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImageWriter, &sipCpp, &a0))
        {
            sipCpp->setQuality(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setQuality, doc_QImageWriter_setQuality);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_quality, "QImageWriter.quality() -> int");

extern "C" {static PyObject *meth_QImageWriter_quality(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_quality(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->quality();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_quality, doc_QImageWriter_quality);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_setGamma, "QImageWriter.setGamma(float)");

extern "C" {static PyObject *meth_QImageWriter_setGamma(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_setGamma(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QImageWriter, &sipCpp, &a0))
        {
            sipCpp->setGamma(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setGamma, doc_QImageWriter_setGamma);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_gamma, "QImageWriter.gamma() -> float");

extern "C" {static PyObject *meth_QImageWriter_gamma(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_gamma(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            float sipRes;

            sipRes = sipCpp->gamma();

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_gamma, doc_QImageWriter_gamma);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_canWrite, "QImageWriter.canWrite() -> bool");

extern "C" {static PyObject *meth_QImageWriter_canWrite(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_canWrite(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->canWrite();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_canWrite, doc_QImageWriter_canWrite);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_write, "QImageWriter.write(QImage) -> bool");

extern "C" {static PyObject *meth_QImageWriter_write(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_write(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage* a0;
        QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImageWriter, &sipCpp, sipType_QImage, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->write(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_write, doc_QImageWriter_write);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_error, "QImageWriter.error() -> QImageWriter.ImageWriterError");

extern "C" {static PyObject *meth_QImageWriter_error(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            QImageWriter::ImageWriterError sipRes;

            sipRes = sipCpp->error();

            return sipConvertFromEnum(sipRes,sipType_QImageWriter_ImageWriterError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_error, doc_QImageWriter_error);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_errorString, "QImageWriter.errorString() -> str");

extern "C" {static PyObject *meth_QImageWriter_errorString(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_errorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->errorString());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_errorString, doc_QImageWriter_errorString);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_supportedImageFormats, "QImageWriter.supportedImageFormats() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QImageWriter_supportedImageFormats(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_supportedImageFormats(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(QImageWriter::supportedImageFormats());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_supportedImageFormats, doc_QImageWriter_supportedImageFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_setText, "QImageWriter.setText(str, str)");

extern "C" {static PyObject *meth_QImageWriter_setText(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_setText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QImageWriter, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            sipCpp->setText(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setText, doc_QImageWriter_setText);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_supportsOption, "QImageWriter.supportsOption(QImageIOHandler.ImageOption) -> bool");

extern "C" {static PyObject *meth_QImageWriter_supportsOption(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_supportsOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QImageIOHandler::ImageOption a0;
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QImageWriter, &sipCpp, sipType_QImageIOHandler_ImageOption, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->supportsOption(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_supportsOption, doc_QImageWriter_supportsOption);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_setCompression, "QImageWriter.setCompression(int)");

extern "C" {static PyObject *meth_QImageWriter_setCompression(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_setCompression(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImageWriter, &sipCpp, &a0))
        {
            sipCpp->setCompression(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setCompression, doc_QImageWriter_setCompression);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_compression, "QImageWriter.compression() -> int");

extern "C" {static PyObject *meth_QImageWriter_compression(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_compression(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->compression();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_compression, doc_QImageWriter_compression);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_supportedMimeTypes, "QImageWriter.supportedMimeTypes() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QImageWriter_supportedMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_supportedMimeTypes(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(QImageWriter::supportedMimeTypes());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_supportedMimeTypes, doc_QImageWriter_supportedMimeTypes);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_setSubType, "QImageWriter.setSubType(QByteArray)");

extern "C" {static PyObject *meth_QImageWriter_setSubType(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_setSubType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImageWriter, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            sipCpp->setSubType(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_setSubType, doc_QImageWriter_setSubType);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_subType, "QImageWriter.subType() -> QByteArray");

extern "C" {static PyObject *meth_QImageWriter_subType(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_subType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(sipCpp->subType());

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_subType, doc_QImageWriter_subType);

    return NULL;
}


PyDoc_STRVAR(doc_QImageWriter_supportedSubTypes, "QImageWriter.supportedSubTypes() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QImageWriter_supportedSubTypes(PyObject *, PyObject *);}
static PyObject *meth_QImageWriter_supportedSubTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageWriter *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageWriter, &sipCpp))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(sipCpp->supportedSubTypes());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageWriter, sipName_supportedSubTypes, doc_QImageWriter_supportedSubTypes);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QImageWriter(void *, const sipTypeDef *);}
static void *cast_QImageWriter(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QImageWriter)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QImageWriter(void *, int);}
static void release_QImageWriter(void *sipCppV,int)
{
    delete reinterpret_cast<QImageWriter *>(sipCppV);
}


extern "C" {static void dealloc_QImageWriter(sipSimpleWrapper *);}
static void dealloc_QImageWriter(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QImageWriter(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QImageWriter(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QImageWriter(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QImageWriter *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QImageWriter();

            return sipCpp;
        }
    }

    {
        QIODevice* a0;
        const QByteArray* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8J1", sipType_QIODevice, &a0, sipType_QByteArray, &a1, &a1State))
        {
            sipCpp = new QImageWriter(a0,*a1);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QByteArray& a1def = QByteArray();
        const QByteArray* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|J1", sipType_QString,&a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            sipCpp = new QImageWriter(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QImageWriter[] = {
    {SIP_MLNAME_CAST(sipName_canWrite), meth_QImageWriter_canWrite, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_canWrite)},
    {SIP_MLNAME_CAST(sipName_compression), meth_QImageWriter_compression, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_compression)},
    {SIP_MLNAME_CAST(sipName_device), meth_QImageWriter_device, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_device)},
    {SIP_MLNAME_CAST(sipName_error), meth_QImageWriter_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_error)},
    {SIP_MLNAME_CAST(sipName_errorString), meth_QImageWriter_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_errorString)},
    {SIP_MLNAME_CAST(sipName_fileName), meth_QImageWriter_fileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_fileName)},
    {SIP_MLNAME_CAST(sipName_format), meth_QImageWriter_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_format)},
    {SIP_MLNAME_CAST(sipName_gamma), meth_QImageWriter_gamma, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_gamma)},
    {SIP_MLNAME_CAST(sipName_quality), meth_QImageWriter_quality, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_quality)},
    {SIP_MLNAME_CAST(sipName_setCompression), meth_QImageWriter_setCompression, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setCompression)},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_QImageWriter_setDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setDevice)},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_QImageWriter_setFileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setFileName)},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QImageWriter_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setFormat)},
    {SIP_MLNAME_CAST(sipName_setGamma), meth_QImageWriter_setGamma, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setGamma)},
    {SIP_MLNAME_CAST(sipName_setQuality), meth_QImageWriter_setQuality, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setQuality)},
    {SIP_MLNAME_CAST(sipName_setSubType), meth_QImageWriter_setSubType, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setSubType)},
    {SIP_MLNAME_CAST(sipName_setText), meth_QImageWriter_setText, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_setText)},
    {SIP_MLNAME_CAST(sipName_subType), meth_QImageWriter_subType, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_subType)},
    {SIP_MLNAME_CAST(sipName_supportedImageFormats), meth_QImageWriter_supportedImageFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_supportedImageFormats)},
    {SIP_MLNAME_CAST(sipName_supportedMimeTypes), meth_QImageWriter_supportedMimeTypes, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_supportedMimeTypes)},
    {SIP_MLNAME_CAST(sipName_supportedSubTypes), meth_QImageWriter_supportedSubTypes, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_supportedSubTypes)},
    {SIP_MLNAME_CAST(sipName_supportsOption), meth_QImageWriter_supportsOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_supportsOption)},
    {SIP_MLNAME_CAST(sipName_write), meth_QImageWriter_write, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageWriter_write)}
};

static sipEnumMemberDef enummembers_QImageWriter[] = {
    {sipName_DeviceError, static_cast<int>(QImageWriter::DeviceError), 72},
    {sipName_UnknownError, static_cast<int>(QImageWriter::UnknownError), 72},
    {sipName_UnsupportedFormatError, static_cast<int>(QImageWriter::UnsupportedFormatError), 72},
};

PyDoc_STRVAR(doc_QImageWriter, "\1QImageWriter()\n"
    "QImageWriter(QIODevice, QByteArray)\n"
    "QImageWriter(str, QByteArray format=QByteArray())");


pyqt5ClassTypeDef sipTypeDef_QtGui_QImageWriter = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QImageWriter,
        {0}
    },
    {
        sipNameNr_QImageWriter,
        {0, 0, 1},
        23, methods_QImageWriter,
        3, enummembers_QImageWriter,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QImageWriter,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QImageWriter,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QImageWriter,
    0,
    0,
    0,
    release_QImageWriter,
    cast_QImageWriter,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimagereader.sip"
#include <qimagereader.h>
#line 137439 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 137443 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 137446 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 137449 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 137452 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 137455 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 137458 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 137461 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 137464 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 137467 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 137470 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QImageReader_setFormat, "QImageReader.setFormat(QByteArray)");

extern "C" {static PyObject *meth_QImageReader_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            sipCpp->setFormat(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setFormat, doc_QImageReader_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_format, "QImageReader.format() -> QByteArray");

extern "C" {static PyObject *meth_QImageReader_format(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_format, doc_QImageReader_format);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setDevice, "QImageReader.setDevice(QIODevice)");

extern "C" {static PyObject *meth_QImageReader_setDevice(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QIODevice, &a0))
        {
            sipCpp->setDevice(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setDevice, doc_QImageReader_setDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_device, "QImageReader.device() -> QIODevice");

extern "C" {static PyObject *meth_QImageReader_device(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_device(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QIODevice*sipRes;

            sipRes = sipCpp->device();

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_device, doc_QImageReader_device);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setFileName, "QImageReader.setFileName(str)");

extern "C" {static PyObject *meth_QImageReader_setFileName(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setFileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setFileName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setFileName, doc_QImageReader_setFileName);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_fileName, "QImageReader.fileName() -> str");

extern "C" {static PyObject *meth_QImageReader_fileName(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_fileName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->fileName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_fileName, doc_QImageReader_fileName);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_size, "QImageReader.size() -> QSize");

extern "C" {static PyObject *meth_QImageReader_size(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_size, doc_QImageReader_size);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setClipRect, "QImageReader.setClipRect(QRect)");

extern "C" {static PyObject *meth_QImageReader_setClipRect(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setClipRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->setClipRect(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setClipRect, doc_QImageReader_setClipRect);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_clipRect, "QImageReader.clipRect() -> QRect");

extern "C" {static PyObject *meth_QImageReader_clipRect(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_clipRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->clipRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_clipRect, doc_QImageReader_clipRect);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setScaledSize, "QImageReader.setScaledSize(QSize)");

extern "C" {static PyObject *meth_QImageReader_setScaledSize(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setScaledSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->setScaledSize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setScaledSize, doc_QImageReader_setScaledSize);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_scaledSize, "QImageReader.scaledSize() -> QSize");

extern "C" {static PyObject *meth_QImageReader_scaledSize(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_scaledSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->scaledSize());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_scaledSize, doc_QImageReader_scaledSize);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setScaledClipRect, "QImageReader.setScaledClipRect(QRect)");

extern "C" {static PyObject *meth_QImageReader_setScaledClipRect(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setScaledClipRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect* a0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->setScaledClipRect(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setScaledClipRect, doc_QImageReader_setScaledClipRect);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_scaledClipRect, "QImageReader.scaledClipRect() -> QRect");

extern "C" {static PyObject *meth_QImageReader_scaledClipRect(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_scaledClipRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->scaledClipRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_scaledClipRect, doc_QImageReader_scaledClipRect);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_canRead, "QImageReader.canRead() -> bool");

extern "C" {static PyObject *meth_QImageReader_canRead(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_canRead(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->canRead();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_canRead, doc_QImageReader_canRead);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_read, "QImageReader.read() -> QImage\n"
    "QImageReader.read(QImage) -> bool");

extern "C" {static PyObject *meth_QImageReader_read(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_read(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QImage*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QImage(sipCpp->read());
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    {
        QImage* a0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QImage, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->read(a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_read, doc_QImageReader_read);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_jumpToNextImage, "QImageReader.jumpToNextImage() -> bool");

extern "C" {static PyObject *meth_QImageReader_jumpToNextImage(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_jumpToNextImage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->jumpToNextImage();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_jumpToNextImage, doc_QImageReader_jumpToNextImage);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_jumpToImage, "QImageReader.jumpToImage(int) -> bool");

extern "C" {static PyObject *meth_QImageReader_jumpToImage(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_jumpToImage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImageReader, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->jumpToImage(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_jumpToImage, doc_QImageReader_jumpToImage);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_loopCount, "QImageReader.loopCount() -> int");

extern "C" {static PyObject *meth_QImageReader_loopCount(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_loopCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->loopCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_loopCount, doc_QImageReader_loopCount);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_imageCount, "QImageReader.imageCount() -> int");

extern "C" {static PyObject *meth_QImageReader_imageCount(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_imageCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->imageCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_imageCount, doc_QImageReader_imageCount);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_nextImageDelay, "QImageReader.nextImageDelay() -> int");

extern "C" {static PyObject *meth_QImageReader_nextImageDelay(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_nextImageDelay(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->nextImageDelay();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_nextImageDelay, doc_QImageReader_nextImageDelay);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_currentImageNumber, "QImageReader.currentImageNumber() -> int");

extern "C" {static PyObject *meth_QImageReader_currentImageNumber(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_currentImageNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->currentImageNumber();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_currentImageNumber, doc_QImageReader_currentImageNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_currentImageRect, "QImageReader.currentImageRect() -> QRect");

extern "C" {static PyObject *meth_QImageReader_currentImageRect(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_currentImageRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->currentImageRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_currentImageRect, doc_QImageReader_currentImageRect);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_error, "QImageReader.error() -> QImageReader.ImageReaderError");

extern "C" {static PyObject *meth_QImageReader_error(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_error(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QImageReader::ImageReaderError sipRes;

            sipRes = sipCpp->error();

            return sipConvertFromEnum(sipRes,sipType_QImageReader_ImageReaderError);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_error, doc_QImageReader_error);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_errorString, "QImageReader.errorString() -> str");

extern "C" {static PyObject *meth_QImageReader_errorString(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_errorString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->errorString());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_errorString, doc_QImageReader_errorString);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_imageFormat, "QImageReader.imageFormat(str) -> QByteArray\n"
    "QImageReader.imageFormat(QIODevice) -> QByteArray\n"
    "QImageReader.imageFormat() -> QImage.Format");

extern "C" {static PyObject *meth_QImageReader_imageFormat(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_imageFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(QImageReader::imageFormat(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    {
        QIODevice* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J8", sipType_QIODevice, &a0))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(QImageReader::imageFormat(a0));

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QImage::Format sipRes;

            sipRes = sipCpp->imageFormat();

            return sipConvertFromEnum(sipRes,sipType_QImage_Format);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_imageFormat, doc_QImageReader_imageFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_supportedImageFormats, "QImageReader.supportedImageFormats() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QImageReader_supportedImageFormats(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_supportedImageFormats(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(QImageReader::supportedImageFormats());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_supportedImageFormats, doc_QImageReader_supportedImageFormats);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_textKeys, "QImageReader.textKeys() -> list-of-str");

extern "C" {static PyObject *meth_QImageReader_textKeys(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_textKeys(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QStringList*sipRes;

            sipRes = new QStringList(sipCpp->textKeys());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_textKeys, doc_QImageReader_textKeys);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_text, "QImageReader.text(str) -> str");

extern "C" {static PyObject *meth_QImageReader_text(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_text, doc_QImageReader_text);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setBackgroundColor, "QImageReader.setBackgroundColor(QColor)");

extern "C" {static PyObject *meth_QImageReader_setBackgroundColor(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setBackgroundColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setBackgroundColor(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setBackgroundColor, doc_QImageReader_setBackgroundColor);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_backgroundColor, "QImageReader.backgroundColor() -> QColor");

extern "C" {static PyObject *meth_QImageReader_backgroundColor(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_backgroundColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->backgroundColor());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_backgroundColor, doc_QImageReader_backgroundColor);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_supportsAnimation, "QImageReader.supportsAnimation() -> bool");

extern "C" {static PyObject *meth_QImageReader_supportsAnimation(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_supportsAnimation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->supportsAnimation();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_supportsAnimation, doc_QImageReader_supportsAnimation);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setQuality, "QImageReader.setQuality(int)");

extern "C" {static PyObject *meth_QImageReader_setQuality(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setQuality(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImageReader, &sipCpp, &a0))
        {
            sipCpp->setQuality(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setQuality, doc_QImageReader_setQuality);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_quality, "QImageReader.quality() -> int");

extern "C" {static PyObject *meth_QImageReader_quality(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_quality(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->quality();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_quality, doc_QImageReader_quality);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_supportsOption, "QImageReader.supportsOption(QImageIOHandler.ImageOption) -> bool");

extern "C" {static PyObject *meth_QImageReader_supportsOption(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_supportsOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QImageIOHandler::ImageOption a0;
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QImageReader, &sipCpp, sipType_QImageIOHandler_ImageOption, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->supportsOption(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_supportsOption, doc_QImageReader_supportsOption);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setAutoDetectImageFormat, "QImageReader.setAutoDetectImageFormat(bool)");

extern "C" {static PyObject *meth_QImageReader_setAutoDetectImageFormat(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setAutoDetectImageFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QImageReader, &sipCpp, &a0))
        {
            sipCpp->setAutoDetectImageFormat(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setAutoDetectImageFormat, doc_QImageReader_setAutoDetectImageFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_autoDetectImageFormat, "QImageReader.autoDetectImageFormat() -> bool");

extern "C" {static PyObject *meth_QImageReader_autoDetectImageFormat(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_autoDetectImageFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->autoDetectImageFormat();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_autoDetectImageFormat, doc_QImageReader_autoDetectImageFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_setDecideFormatFromContent, "QImageReader.setDecideFormatFromContent(bool)");

extern "C" {static PyObject *meth_QImageReader_setDecideFormatFromContent(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_setDecideFormatFromContent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QImageReader, &sipCpp, &a0))
        {
            sipCpp->setDecideFormatFromContent(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_setDecideFormatFromContent, doc_QImageReader_setDecideFormatFromContent);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_decideFormatFromContent, "QImageReader.decideFormatFromContent() -> bool");

extern "C" {static PyObject *meth_QImageReader_decideFormatFromContent(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_decideFormatFromContent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->decideFormatFromContent();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_decideFormatFromContent, doc_QImageReader_decideFormatFromContent);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_supportedMimeTypes, "QImageReader.supportedMimeTypes() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QImageReader_supportedMimeTypes(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_supportedMimeTypes(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(QImageReader::supportedMimeTypes());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_supportedMimeTypes, doc_QImageReader_supportedMimeTypes);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_subType, "QImageReader.subType() -> QByteArray");

extern "C" {static PyObject *meth_QImageReader_subType(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_subType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(sipCpp->subType());

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_subType, doc_QImageReader_subType);

    return NULL;
}


PyDoc_STRVAR(doc_QImageReader_supportedSubTypes, "QImageReader.supportedSubTypes() -> list-of-QByteArray");

extern "C" {static PyObject *meth_QImageReader_supportedSubTypes(PyObject *, PyObject *);}
static PyObject *meth_QImageReader_supportedSubTypes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageReader *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageReader, &sipCpp))
        {
            QList<QByteArray>*sipRes;

            sipRes = new QList<QByteArray>(sipCpp->supportedSubTypes());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageReader, sipName_supportedSubTypes, doc_QImageReader_supportedSubTypes);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QImageReader(void *, const sipTypeDef *);}
static void *cast_QImageReader(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QImageReader)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QImageReader(void *, int);}
static void release_QImageReader(void *sipCppV,int)
{
    delete reinterpret_cast<QImageReader *>(sipCppV);
}


extern "C" {static void dealloc_QImageReader(sipSimpleWrapper *);}
static void dealloc_QImageReader(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QImageReader(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QImageReader(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QImageReader(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QImageReader *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QImageReader();

            return sipCpp;
        }
    }

    {
        QIODevice* a0;
        const QByteArray& a1def = QByteArray();
        const QByteArray* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J8|J1", sipType_QIODevice, &a0, sipType_QByteArray, &a1, &a1State))
        {
            sipCpp = new QImageReader(a0,*a1);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QByteArray& a1def = QByteArray();
        const QByteArray* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|J1", sipType_QString,&a0, &a0State, sipType_QByteArray, &a1, &a1State))
        {
            sipCpp = new QImageReader(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QByteArray *>(a1),sipType_QByteArray,a1State);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QImageReader[] = {
    {SIP_MLNAME_CAST(sipName_autoDetectImageFormat), meth_QImageReader_autoDetectImageFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_autoDetectImageFormat)},
    {SIP_MLNAME_CAST(sipName_backgroundColor), meth_QImageReader_backgroundColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_backgroundColor)},
    {SIP_MLNAME_CAST(sipName_canRead), meth_QImageReader_canRead, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_canRead)},
    {SIP_MLNAME_CAST(sipName_clipRect), meth_QImageReader_clipRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_clipRect)},
    {SIP_MLNAME_CAST(sipName_currentImageNumber), meth_QImageReader_currentImageNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_currentImageNumber)},
    {SIP_MLNAME_CAST(sipName_currentImageRect), meth_QImageReader_currentImageRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_currentImageRect)},
    {SIP_MLNAME_CAST(sipName_decideFormatFromContent), meth_QImageReader_decideFormatFromContent, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_decideFormatFromContent)},
    {SIP_MLNAME_CAST(sipName_device), meth_QImageReader_device, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_device)},
    {SIP_MLNAME_CAST(sipName_error), meth_QImageReader_error, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_error)},
    {SIP_MLNAME_CAST(sipName_errorString), meth_QImageReader_errorString, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_errorString)},
    {SIP_MLNAME_CAST(sipName_fileName), meth_QImageReader_fileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_fileName)},
    {SIP_MLNAME_CAST(sipName_format), meth_QImageReader_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_format)},
    {SIP_MLNAME_CAST(sipName_imageCount), meth_QImageReader_imageCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_imageCount)},
    {SIP_MLNAME_CAST(sipName_imageFormat), meth_QImageReader_imageFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_imageFormat)},
    {SIP_MLNAME_CAST(sipName_jumpToImage), meth_QImageReader_jumpToImage, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_jumpToImage)},
    {SIP_MLNAME_CAST(sipName_jumpToNextImage), meth_QImageReader_jumpToNextImage, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_jumpToNextImage)},
    {SIP_MLNAME_CAST(sipName_loopCount), meth_QImageReader_loopCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_loopCount)},
    {SIP_MLNAME_CAST(sipName_nextImageDelay), meth_QImageReader_nextImageDelay, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_nextImageDelay)},
    {SIP_MLNAME_CAST(sipName_quality), meth_QImageReader_quality, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_quality)},
    {SIP_MLNAME_CAST(sipName_read), meth_QImageReader_read, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_read)},
    {SIP_MLNAME_CAST(sipName_scaledClipRect), meth_QImageReader_scaledClipRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_scaledClipRect)},
    {SIP_MLNAME_CAST(sipName_scaledSize), meth_QImageReader_scaledSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_scaledSize)},
    {SIP_MLNAME_CAST(sipName_setAutoDetectImageFormat), meth_QImageReader_setAutoDetectImageFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setAutoDetectImageFormat)},
    {SIP_MLNAME_CAST(sipName_setBackgroundColor), meth_QImageReader_setBackgroundColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setBackgroundColor)},
    {SIP_MLNAME_CAST(sipName_setClipRect), meth_QImageReader_setClipRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setClipRect)},
    {SIP_MLNAME_CAST(sipName_setDecideFormatFromContent), meth_QImageReader_setDecideFormatFromContent, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setDecideFormatFromContent)},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_QImageReader_setDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setDevice)},
    {SIP_MLNAME_CAST(sipName_setFileName), meth_QImageReader_setFileName, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setFileName)},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QImageReader_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setFormat)},
    {SIP_MLNAME_CAST(sipName_setQuality), meth_QImageReader_setQuality, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setQuality)},
    {SIP_MLNAME_CAST(sipName_setScaledClipRect), meth_QImageReader_setScaledClipRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setScaledClipRect)},
    {SIP_MLNAME_CAST(sipName_setScaledSize), meth_QImageReader_setScaledSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_setScaledSize)},
    {SIP_MLNAME_CAST(sipName_size), meth_QImageReader_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_size)},
    {SIP_MLNAME_CAST(sipName_subType), meth_QImageReader_subType, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_subType)},
    {SIP_MLNAME_CAST(sipName_supportedImageFormats), meth_QImageReader_supportedImageFormats, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_supportedImageFormats)},
    {SIP_MLNAME_CAST(sipName_supportedMimeTypes), meth_QImageReader_supportedMimeTypes, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_supportedMimeTypes)},
    {SIP_MLNAME_CAST(sipName_supportedSubTypes), meth_QImageReader_supportedSubTypes, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_supportedSubTypes)},
    {SIP_MLNAME_CAST(sipName_supportsAnimation), meth_QImageReader_supportsAnimation, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_supportsAnimation)},
    {SIP_MLNAME_CAST(sipName_supportsOption), meth_QImageReader_supportsOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_supportsOption)},
    {SIP_MLNAME_CAST(sipName_text), meth_QImageReader_text, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_text)},
    {SIP_MLNAME_CAST(sipName_textKeys), meth_QImageReader_textKeys, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageReader_textKeys)}
};

static sipEnumMemberDef enummembers_QImageReader[] = {
    {sipName_DeviceError, static_cast<int>(QImageReader::DeviceError), 70},
    {sipName_FileNotFoundError, static_cast<int>(QImageReader::FileNotFoundError), 70},
    {sipName_InvalidDataError, static_cast<int>(QImageReader::InvalidDataError), 70},
    {sipName_UnknownError, static_cast<int>(QImageReader::UnknownError), 70},
    {sipName_UnsupportedFormatError, static_cast<int>(QImageReader::UnsupportedFormatError), 70},
};

PyDoc_STRVAR(doc_QImageReader, "\1QImageReader()\n"
    "QImageReader(QIODevice, QByteArray format=QByteArray())\n"
    "QImageReader(str, QByteArray format=QByteArray())");


pyqt5ClassTypeDef sipTypeDef_QtGui_QImageReader = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QImageReader,
        {0}
    },
    {
        sipNameNr_QImageReader,
        {0, 0, 1},
        41, methods_QImageReader,
        5, enummembers_QImageReader,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QImageReader,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QImageReader,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QImageReader,
    0,
    0,
    0,
    release_QImageReader,
    cast_QImageReader,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimageiohandler.sip"
#include <qimageiohandler.h>
#line 138839 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 138843 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 138846 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 138849 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 138852 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 138855 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQImageIOHandler : public QImageIOHandler
{
public:
    sipQImageIOHandler();
    virtual ~sipQImageIOHandler();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QRect currentImageRect() const;
    int currentImageNumber() const;
    int nextImageDelay() const;
    int imageCount() const;
    int loopCount() const;
    bool jumpToImage(int);
    bool jumpToNextImage();
    bool supportsOption(QImageIOHandler::ImageOption) const;
    void setOption(QImageIOHandler::ImageOption,const QVariant&);
    QVariant option(QImageIOHandler::ImageOption) const;
    bool write(const QImage&);
    bool read(QImage*);
    bool canRead() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQImageIOHandler(const sipQImageIOHandler &);
    sipQImageIOHandler &operator = (const sipQImageIOHandler &);

    char sipPyMethods[13];
};

sipQImageIOHandler::sipQImageIOHandler(): QImageIOHandler(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImageIOHandler::~sipQImageIOHandler()
{
    sipCommonDtor(sipPySelf);
}

QRect sipQImageIOHandler::currentImageRect() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_currentImageRect);

    if (!sipMeth)
        return QImageIOHandler::currentImageRect();

    extern QRect sipVH_QtGui_53(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_53(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQImageIOHandler::currentImageNumber() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_currentImageNumber);

    if (!sipMeth)
        return QImageIOHandler::currentImageNumber();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQImageIOHandler::nextImageDelay() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_nextImageDelay);

    if (!sipMeth)
        return QImageIOHandler::nextImageDelay();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQImageIOHandler::imageCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[3]),sipPySelf,NULL,sipName_imageCount);

    if (!sipMeth)
        return QImageIOHandler::imageCount();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQImageIOHandler::loopCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,NULL,sipName_loopCount);

    if (!sipMeth)
        return QImageIOHandler::loopCount();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQImageIOHandler::jumpToImage(int a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_jumpToImage);

    if (!sipMeth)
        return QImageIOHandler::jumpToImage(a0);

    typedef bool (*sipVH_QtCore_45)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

    return ((sipVH_QtCore_45)(sipModuleAPI_QtGui_QtCore->em_virthandlers[45]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQImageIOHandler::jumpToNextImage()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_jumpToNextImage);

    if (!sipMeth)
        return QImageIOHandler::jumpToNextImage();

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtGui_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

bool sipQImageIOHandler::supportsOption(QImageIOHandler::ImageOption a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_supportsOption);

    if (!sipMeth)
        return QImageIOHandler::supportsOption(a0);

    extern bool sipVH_QtGui_54(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QImageIOHandler::ImageOption);

    return sipVH_QtGui_54(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQImageIOHandler::setOption(QImageIOHandler::ImageOption a0,const QVariant& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_setOption);

    if (!sipMeth)
    {
        QImageIOHandler::setOption(a0,a1);
        return;
    }

    extern void sipVH_QtGui_55(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QImageIOHandler::ImageOption,const QVariant&);

    sipVH_QtGui_55(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QVariant sipQImageIOHandler::option(QImageIOHandler::ImageOption a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_option);

    if (!sipMeth)
        return QImageIOHandler::option(a0);

    extern QVariant sipVH_QtGui_56(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QImageIOHandler::ImageOption);

    return sipVH_QtGui_56(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQImageIOHandler::write(const QImage& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_write);

    if (!sipMeth)
        return QImageIOHandler::write(a0);

    extern bool sipVH_QtGui_57(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QImage&);

    return sipVH_QtGui_57(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQImageIOHandler::read(QImage*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,sipName_QImageIOHandler,sipName_read);

    if (!sipMeth)
        return 0;

    extern bool sipVH_QtGui_58(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QImage*);

    return sipVH_QtGui_58(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQImageIOHandler::canRead() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,sipName_QImageIOHandler,sipName_canRead);

    if (!sipMeth)
        return 0;

    typedef bool (*sipVH_QtCore_7)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_7)(sipModuleAPI_QtGui_QtCore->em_virthandlers[7]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}


PyDoc_STRVAR(doc_QImageIOHandler_setDevice, "QImageIOHandler.setDevice(QIODevice)");

extern "C" {static PyObject *meth_QImageIOHandler_setDevice(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_setDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QImageIOHandler, &sipCpp, sipType_QIODevice, &a0))
        {
            sipCpp->setDevice(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_setDevice, doc_QImageIOHandler_setDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_device, "QImageIOHandler.device() -> QIODevice");

extern "C" {static PyObject *meth_QImageIOHandler_device(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_device(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageIOHandler, &sipCpp))
        {
            QIODevice*sipRes;

            sipRes = sipCpp->device();

            return sipConvertFromType(sipRes,sipType_QIODevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_device, doc_QImageIOHandler_device);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_setFormat, "QImageIOHandler.setFormat(QByteArray)");

extern "C" {static PyObject *meth_QImageIOHandler_setFormat(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_setFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;
        QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImageIOHandler, &sipCpp, sipType_QByteArray, &a0, &a0State))
        {
            sipCpp->setFormat(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_setFormat, doc_QImageIOHandler_setFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_format, "QImageIOHandler.format() -> QByteArray");

extern "C" {static PyObject *meth_QImageIOHandler_format(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageIOHandler, &sipCpp))
        {
            QByteArray*sipRes;

            sipRes = new QByteArray(sipCpp->format());

            return sipConvertFromNewType(sipRes,sipType_QByteArray,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_format, doc_QImageIOHandler_format);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_canRead, "QImageIOHandler.canRead() -> bool");

extern "C" {static PyObject *meth_QImageIOHandler_canRead(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_canRead(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageIOHandler, &sipCpp))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QImageIOHandler, sipName_canRead);
                return NULL;
            }

            sipRes = sipCpp->canRead();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_canRead, doc_QImageIOHandler_canRead);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_read, "QImageIOHandler.read(QImage) -> bool");

extern "C" {static PyObject *meth_QImageIOHandler_read(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_read(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QImage* a0;
        QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QImageIOHandler, &sipCpp, sipType_QImage, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QImageIOHandler, sipName_read);
                return NULL;
            }

            sipRes = sipCpp->read(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_read, doc_QImageIOHandler_read);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_write, "QImageIOHandler.write(QImage) -> bool");

extern "C" {static PyObject *meth_QImageIOHandler_write(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_write(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QImage* a0;
        QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImageIOHandler, &sipCpp, sipType_QImage, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImageIOHandler::write(*a0) : sipCpp->write(*a0));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_write, doc_QImageIOHandler_write);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_option, "QImageIOHandler.option(QImageIOHandler.ImageOption) -> QVariant");

extern "C" {static PyObject *meth_QImageIOHandler_option(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_option(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QImageIOHandler::ImageOption a0;
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QImageIOHandler, &sipCpp, sipType_QImageIOHandler_ImageOption, &a0))
        {
            QVariant*sipRes;

            sipRes = new QVariant((sipSelfWasArg ? sipCpp->QImageIOHandler::option(a0) : sipCpp->option(a0)));

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_option, doc_QImageIOHandler_option);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_setOption, "QImageIOHandler.setOption(QImageIOHandler.ImageOption, QVariant)");

extern "C" {static PyObject *meth_QImageIOHandler_setOption(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_setOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QImageIOHandler::ImageOption a0;
        const QVariant* a1;
        int a1State = 0;
        QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QImageIOHandler, &sipCpp, sipType_QImageIOHandler_ImageOption, &a0, sipType_QVariant, &a1, &a1State))
        {
            (sipSelfWasArg ? sipCpp->QImageIOHandler::setOption(a0,*a1) : sipCpp->setOption(a0,*a1));
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_setOption, doc_QImageIOHandler_setOption);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_supportsOption, "QImageIOHandler.supportsOption(QImageIOHandler.ImageOption) -> bool");

extern "C" {static PyObject *meth_QImageIOHandler_supportsOption(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_supportsOption(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QImageIOHandler::ImageOption a0;
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QImageIOHandler, &sipCpp, sipType_QImageIOHandler_ImageOption, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImageIOHandler::supportsOption(a0) : sipCpp->supportsOption(a0));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_supportsOption, doc_QImageIOHandler_supportsOption);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_jumpToNextImage, "QImageIOHandler.jumpToNextImage() -> bool");

extern "C" {static PyObject *meth_QImageIOHandler_jumpToNextImage(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_jumpToNextImage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageIOHandler, &sipCpp))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImageIOHandler::jumpToNextImage() : sipCpp->jumpToNextImage());

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_jumpToNextImage, doc_QImageIOHandler_jumpToNextImage);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_jumpToImage, "QImageIOHandler.jumpToImage(int) -> bool");

extern "C" {static PyObject *meth_QImageIOHandler_jumpToImage(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_jumpToImage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        int a0;
        QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImageIOHandler, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImageIOHandler::jumpToImage(a0) : sipCpp->jumpToImage(a0));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_jumpToImage, doc_QImageIOHandler_jumpToImage);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_loopCount, "QImageIOHandler.loopCount() -> int");

extern "C" {static PyObject *meth_QImageIOHandler_loopCount(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_loopCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageIOHandler, &sipCpp))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImageIOHandler::loopCount() : sipCpp->loopCount());

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_loopCount, doc_QImageIOHandler_loopCount);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_imageCount, "QImageIOHandler.imageCount() -> int");

extern "C" {static PyObject *meth_QImageIOHandler_imageCount(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_imageCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageIOHandler, &sipCpp))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImageIOHandler::imageCount() : sipCpp->imageCount());

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_imageCount, doc_QImageIOHandler_imageCount);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_nextImageDelay, "QImageIOHandler.nextImageDelay() -> int");

extern "C" {static PyObject *meth_QImageIOHandler_nextImageDelay(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_nextImageDelay(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageIOHandler, &sipCpp))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImageIOHandler::nextImageDelay() : sipCpp->nextImageDelay());

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_nextImageDelay, doc_QImageIOHandler_nextImageDelay);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_currentImageNumber, "QImageIOHandler.currentImageNumber() -> int");

extern "C" {static PyObject *meth_QImageIOHandler_currentImageNumber(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_currentImageNumber(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageIOHandler, &sipCpp))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImageIOHandler::currentImageNumber() : sipCpp->currentImageNumber());

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_currentImageNumber, doc_QImageIOHandler_currentImageNumber);

    return NULL;
}


PyDoc_STRVAR(doc_QImageIOHandler_currentImageRect, "QImageIOHandler.currentImageRect() -> QRect");

extern "C" {static PyObject *meth_QImageIOHandler_currentImageRect(PyObject *, PyObject *);}
static PyObject *meth_QImageIOHandler_currentImageRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QImageIOHandler *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImageIOHandler, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect((sipSelfWasArg ? sipCpp->QImageIOHandler::currentImageRect() : sipCpp->currentImageRect()));

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImageIOHandler, sipName_currentImageRect, doc_QImageIOHandler_currentImageRect);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QImageIOHandler(void *, const sipTypeDef *);}
static void *cast_QImageIOHandler(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QImageIOHandler)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QImageIOHandler(void *, int);}
static void release_QImageIOHandler(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQImageIOHandler *>(sipCppV);
    else
        delete reinterpret_cast<QImageIOHandler *>(sipCppV);
}


extern "C" {static void dealloc_QImageIOHandler(sipSimpleWrapper *);}
static void dealloc_QImageIOHandler(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQImageIOHandler *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QImageIOHandler(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QImageIOHandler(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QImageIOHandler(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQImageIOHandler *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQImageIOHandler();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QImageIOHandler[] = {
    {SIP_MLNAME_CAST(sipName_canRead), meth_QImageIOHandler_canRead, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_canRead)},
    {SIP_MLNAME_CAST(sipName_currentImageNumber), meth_QImageIOHandler_currentImageNumber, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_currentImageNumber)},
    {SIP_MLNAME_CAST(sipName_currentImageRect), meth_QImageIOHandler_currentImageRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_currentImageRect)},
    {SIP_MLNAME_CAST(sipName_device), meth_QImageIOHandler_device, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_device)},
    {SIP_MLNAME_CAST(sipName_format), meth_QImageIOHandler_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_format)},
    {SIP_MLNAME_CAST(sipName_imageCount), meth_QImageIOHandler_imageCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_imageCount)},
    {SIP_MLNAME_CAST(sipName_jumpToImage), meth_QImageIOHandler_jumpToImage, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_jumpToImage)},
    {SIP_MLNAME_CAST(sipName_jumpToNextImage), meth_QImageIOHandler_jumpToNextImage, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_jumpToNextImage)},
    {SIP_MLNAME_CAST(sipName_loopCount), meth_QImageIOHandler_loopCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_loopCount)},
    {SIP_MLNAME_CAST(sipName_nextImageDelay), meth_QImageIOHandler_nextImageDelay, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_nextImageDelay)},
    {SIP_MLNAME_CAST(sipName_option), meth_QImageIOHandler_option, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_option)},
    {SIP_MLNAME_CAST(sipName_read), meth_QImageIOHandler_read, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_read)},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_QImageIOHandler_setDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_setDevice)},
    {SIP_MLNAME_CAST(sipName_setFormat), meth_QImageIOHandler_setFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_setFormat)},
    {SIP_MLNAME_CAST(sipName_setOption), meth_QImageIOHandler_setOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_setOption)},
    {SIP_MLNAME_CAST(sipName_supportsOption), meth_QImageIOHandler_supportsOption, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_supportsOption)},
    {SIP_MLNAME_CAST(sipName_write), meth_QImageIOHandler_write, METH_VARARGS, SIP_MLDOC_CAST(doc_QImageIOHandler_write)}
};

static sipEnumMemberDef enummembers_QImageIOHandler[] = {
    {sipName_Animation, static_cast<int>(QImageIOHandler::Animation), 68},
    {sipName_BackgroundColor, static_cast<int>(QImageIOHandler::BackgroundColor), 68},
    {sipName_ClipRect, static_cast<int>(QImageIOHandler::ClipRect), 68},
    {sipName_CompressionRatio, static_cast<int>(QImageIOHandler::CompressionRatio), 68},
    {sipName_Description, static_cast<int>(QImageIOHandler::Description), 68},
    {sipName_Endianness, static_cast<int>(QImageIOHandler::Endianness), 68},
    {sipName_Gamma, static_cast<int>(QImageIOHandler::Gamma), 68},
    {sipName_IncrementalReading, static_cast<int>(QImageIOHandler::IncrementalReading), 68},
    {sipName_Name, static_cast<int>(QImageIOHandler::Name), 68},
    {sipName_Quality, static_cast<int>(QImageIOHandler::Quality), 68},
    {sipName_ScaledClipRect, static_cast<int>(QImageIOHandler::ScaledClipRect), 68},
    {sipName_ScaledSize, static_cast<int>(QImageIOHandler::ScaledSize), 68},
    {sipName_Size, static_cast<int>(QImageIOHandler::Size), 68},
    {sipName_SubType, static_cast<int>(QImageIOHandler::SubType), 68},
    {sipName_SupportedSubTypes, static_cast<int>(QImageIOHandler::SupportedSubTypes), 68},
};

PyDoc_STRVAR(doc_QImageIOHandler, "\1QImageIOHandler()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QImageIOHandler = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QImageIOHandler,
        {0}
    },
    {
        sipNameNr_QImageIOHandler,
        {0, 0, 1},
        17, methods_QImageIOHandler,
        15, enummembers_QImageIOHandler,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QImageIOHandler,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QImageIOHandler,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QImageIOHandler,
    0,
    0,
    0,
    release_QImageIOHandler,
    cast_QImageIOHandler,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 139749 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 139753 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 139756 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 139759 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixelformat.sip"
#include <qpixelformat.h>
#line 139762 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 139765 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 139768 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 139771 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 139774 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 139777 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 139780 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 139783 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 139786 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 139789 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 139792 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 139795 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 139798 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQImage : public QImage
{
public:
    sipQImage();
    sipQImage(const QSize&,QImage::Format);
    sipQImage(int,int,QImage::Format);
    sipQImage(const uchar*,int,int,QImage::Format);
    sipQImage(uchar*,int,int,QImage::Format);
    sipQImage(const uchar*,int,int,int,QImage::Format);
    sipQImage(uchar*,int,int,int,QImage::Format);
    sipQImage(const char**);
    sipQImage(const QString&,const char*);
    sipQImage(const QImage&);
    virtual ~sipQImage();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int metric(QPaintDevice::PaintDeviceMetric) const;
    QPaintEngine* paintEngine() const;
    int devType() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQImage(const sipQImage &);
    sipQImage &operator = (const sipQImage &);

    char sipPyMethods[3];
};

sipQImage::sipQImage(): QImage(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const QSize& a0,QImage::Format a1): QImage(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(int a0,int a1,QImage::Format a2): QImage(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const uchar*a0,int a1,int a2,QImage::Format a3): QImage(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(uchar*a0,int a1,int a2,QImage::Format a3): QImage(a0,a1,a2,a3), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const uchar*a0,int a1,int a2,int a3,QImage::Format a4): QImage(a0,a1,a2,a3,a4), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(uchar*a0,int a1,int a2,int a3,QImage::Format a4): QImage(a0,a1,a2,a3,a4), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const char**a0): QImage(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const QString& a0,const char*a1): QImage(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::sipQImage(const QImage& a0): QImage(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQImage::~sipQImage()
{
    sipCommonDtor(sipPySelf);
}

int sipQImage::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QImage::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQImage::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QImage::paintEngine();

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQImage::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return QImage::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQImage::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QImage::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QImage_isNull, "QImage.isNull() -> bool");

extern "C" {static PyObject *meth_QImage_isNull(PyObject *, PyObject *);}
static PyObject *meth_QImage_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_isNull, doc_QImage_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_devType, "QImage.devType() -> int");

extern "C" {static PyObject *meth_QImage_devType(PyObject *, PyObject *);}
static PyObject *meth_QImage_devType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImage::devType() : sipCpp->devType());

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_devType, doc_QImage_devType);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_detach, "QImage.detach()");

extern "C" {static PyObject *meth_QImage_detach(PyObject *, PyObject *);}
static PyObject *meth_QImage_detach(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            sipCpp->detach();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_detach, doc_QImage_detach);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_isDetached, "QImage.isDetached() -> bool");

extern "C" {static PyObject *meth_QImage_isDetached(PyObject *, PyObject *);}
static PyObject *meth_QImage_isDetached(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isDetached();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_isDetached, doc_QImage_isDetached);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_copy, "QImage.copy(QRect rect=QRect()) -> QImage\n"
    "QImage.copy(int, int, int, int) -> QImage");

extern "C" {static PyObject *meth_QImage_copy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_copy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect& a0def = QRect();
        const QRect* a0 = &a0def;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_rect,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9", &sipSelf, sipType_QImage, &sipCpp, sipType_QRect, &a0))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->copy(*a0));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QImage *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Biiii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, &a2, &a3))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->copy(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_copy, doc_QImage_copy);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_format, "QImage.format() -> QImage.Format");

extern "C" {static PyObject *meth_QImage_format(PyObject *, PyObject *);}
static PyObject *meth_QImage_format(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            QImage::Format sipRes;

            sipRes = sipCpp->format();

            return sipConvertFromEnum(sipRes,sipType_QImage_Format);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_format, doc_QImage_format);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_convertToFormat, "QImage.convertToFormat(QImage.Format, Qt.ImageConversionFlags flags=Qt.AutoColor) -> QImage\n"
    "QImage.convertToFormat(QImage.Format, list-of-int, Qt.ImageConversionFlags flags=Qt.AutoColor) -> QImage");

extern "C" {static PyObject *meth_QImage_convertToFormat(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_convertToFormat(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QImage::Format a0;
        Qt::ImageConversionFlags a1def = Qt::AutoColor;
        Qt::ImageConversionFlags* a1 = &a1def;
        int a1State = 0;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage_Format, &a0, sipType_Qt_ImageConversionFlags, &a1, &a1State))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->convertToFormat(a0,*a1));
            sipReleaseType(a1,sipType_Qt_ImageConversionFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    {
        QImage::Format a0;
        const QVector<uint>* a1;
        int a1State = 0;
        Qt::ImageConversionFlags a2def = Qt::AutoColor;
        Qt::ImageConversionFlags* a2 = &a2def;
        int a2State = 0;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BEJ1|J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage_Format, &a0, sipType_QVector_1900,&a1, &a1State, sipType_Qt_ImageConversionFlags, &a2, &a2State))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->convertToFormat(a0,*a1,*a2));
            sipReleaseType(const_cast<QVector<uint> *>(a1),sipType_QVector_1900,a1State);
            sipReleaseType(a2,sipType_Qt_ImageConversionFlags,a2State);

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_convertToFormat, doc_QImage_convertToFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_width, "QImage.width() -> int");

extern "C" {static PyObject *meth_QImage_width(PyObject *, PyObject *);}
static PyObject *meth_QImage_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->width();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_width, doc_QImage_width);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_height, "QImage.height() -> int");

extern "C" {static PyObject *meth_QImage_height(PyObject *, PyObject *);}
static PyObject *meth_QImage_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->height();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_height, doc_QImage_height);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_size, "QImage.size() -> QSize");

extern "C" {static PyObject *meth_QImage_size(PyObject *, PyObject *);}
static PyObject *meth_QImage_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_size, doc_QImage_size);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_rect, "QImage.rect() -> QRect");

extern "C" {static PyObject *meth_QImage_rect(PyObject *, PyObject *);}
static PyObject *meth_QImage_rect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->rect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_rect, doc_QImage_rect);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_depth, "QImage.depth() -> int");

extern "C" {static PyObject *meth_QImage_depth(PyObject *, PyObject *);}
static PyObject *meth_QImage_depth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->depth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_depth, doc_QImage_depth);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_color, "QImage.color(int) -> int");

extern "C" {static PyObject *meth_QImage_color(PyObject *, PyObject *);}
static PyObject *meth_QImage_color(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            QRgb sipRes;

            sipRes = sipCpp->color(a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_color, doc_QImage_color);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setColor, "QImage.setColor(int, int)");

extern "C" {static PyObject *meth_QImage_setColor(PyObject *, PyObject *);}
static PyObject *meth_QImage_setColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QRgb a1;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biu", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
            sipCpp->setColor(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_setColor, doc_QImage_setColor);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_allGray, "QImage.allGray() -> bool");

extern "C" {static PyObject *meth_QImage_allGray(PyObject *, PyObject *);}
static PyObject *meth_QImage_allGray(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->allGray();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_allGray, doc_QImage_allGray);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_isGrayscale, "QImage.isGrayscale() -> bool");

extern "C" {static PyObject *meth_QImage_isGrayscale(PyObject *, PyObject *);}
static PyObject *meth_QImage_isGrayscale(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isGrayscale();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_isGrayscale, doc_QImage_isGrayscale);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_bits, "QImage.bits() -> sip.voidptr");

extern "C" {static PyObject *meth_QImage_bits(PyObject *, PyObject *);}
static PyObject *meth_QImage_bits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            void*sipRes;

            sipRes = sipCpp->bits();

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_bits, doc_QImage_bits);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_constBits, "QImage.constBits() -> sip.voidptr");

extern "C" {static PyObject *meth_QImage_constBits(PyObject *, PyObject *);}
static PyObject *meth_QImage_constBits(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            const void*sipRes;

            sipRes = sipCpp->constBits();

            return sipConvertFromConstVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_constBits, doc_QImage_constBits);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_scanLine, "QImage.scanLine(int) -> sip.voidptr");

extern "C" {static PyObject *meth_QImage_scanLine(PyObject *, PyObject *);}
static PyObject *meth_QImage_scanLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            void*sipRes;

            sipRes = sipCpp->scanLine(a0);

            return sipConvertFromVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_scanLine, doc_QImage_scanLine);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_constScanLine, "QImage.constScanLine(int) -> sip.voidptr");

extern "C" {static PyObject *meth_QImage_constScanLine(PyObject *, PyObject *);}
static PyObject *meth_QImage_constScanLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            const void*sipRes;

            sipRes = sipCpp->constScanLine(a0);

            return sipConvertFromConstVoidPtr(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_constScanLine, doc_QImage_constScanLine);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_bytesPerLine, "QImage.bytesPerLine() -> int");

extern "C" {static PyObject *meth_QImage_bytesPerLine(PyObject *, PyObject *);}
static PyObject *meth_QImage_bytesPerLine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->bytesPerLine();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_bytesPerLine, doc_QImage_bytesPerLine);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_valid, "QImage.valid(QPoint) -> bool\n"
    "QImage.valid(int, int) -> bool");

extern "C" {static PyObject *meth_QImage_valid(PyObject *, PyObject *);}
static PyObject *meth_QImage_valid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->valid(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->valid(a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_valid, doc_QImage_valid);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_pixelIndex, "QImage.pixelIndex(QPoint) -> int\n"
    "QImage.pixelIndex(int, int) -> int");

extern "C" {static PyObject *meth_QImage_pixelIndex(PyObject *, PyObject *);}
static PyObject *meth_QImage_pixelIndex(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
            int sipRes;

            sipRes = sipCpp->pixelIndex(*a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
            int sipRes;

            sipRes = sipCpp->pixelIndex(a0,a1);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_pixelIndex, doc_QImage_pixelIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_pixel, "QImage.pixel(QPoint) -> int\n"
    "QImage.pixel(int, int) -> int");

extern "C" {static PyObject *meth_QImage_pixel(PyObject *, PyObject *);}
static PyObject *meth_QImage_pixel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
            QRgb sipRes;

            sipRes = sipCpp->pixel(*a0);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    {
        int a0;
        int a1;
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bii", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
            QRgb sipRes;

            sipRes = sipCpp->pixel(a0,a1);

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_pixel, doc_QImage_pixel);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setPixel, "QImage.setPixel(QPoint, int)\n"
    "QImage.setPixel(int, int, int)");

extern "C" {static PyObject *meth_QImage_setPixel(PyObject *, PyObject *);}
static PyObject *meth_QImage_setPixel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        uint a1;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9u", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0, &a1))
        {
            sipCpp->setPixel(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int a0;
        int a1;
        uint a2;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Biiu", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, &a2))
        {
            sipCpp->setPixel(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_setPixel, doc_QImage_setPixel);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_colorTable, "QImage.colorTable() -> list-of-int");

extern "C" {static PyObject *meth_QImage_colorTable(PyObject *, PyObject *);}
static PyObject *meth_QImage_colorTable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            QVector<uint>*sipRes;

            sipRes = new QVector<uint>(sipCpp->colorTable());

            return sipConvertFromNewType(sipRes,sipType_QVector_1900,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_colorTable, doc_QImage_colorTable);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setColorTable, "QImage.setColorTable(list-of-int)");

extern "C" {static PyObject *meth_QImage_setColorTable(PyObject *, PyObject *);}
static PyObject *meth_QImage_setColorTable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector<uint>* a0;
        int a0State = 0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImage, &sipCpp, sipType_QVector_1900,&a0, &a0State))
        {
            sipCpp->setColorTable(*a0);
            sipReleaseType(const_cast<QVector<uint> *>(a0),sipType_QVector_1900,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_setColorTable, doc_QImage_setColorTable);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_fill, "QImage.fill(Qt.GlobalColor)\n"
    "QImage.fill(QColor)\n"
    "QImage.fill(int)");

extern "C" {static PyObject *meth_QImage_fill(PyObject *, PyObject *);}
static PyObject *meth_QImage_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::GlobalColor a0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BXE", &sipSelf, sipType_QImage, &sipCpp, sipType_Qt_GlobalColor, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QColor* a0;
        int a0State = 0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QImage, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->fill(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        uint a0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_fill, doc_QImage_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_hasAlphaChannel, "QImage.hasAlphaChannel() -> bool");

extern "C" {static PyObject *meth_QImage_hasAlphaChannel(PyObject *, PyObject *);}
static PyObject *meth_QImage_hasAlphaChannel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasAlphaChannel();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_hasAlphaChannel, doc_QImage_hasAlphaChannel);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_createAlphaMask, "QImage.createAlphaMask(Qt.ImageConversionFlags flags=Qt.AutoColor) -> QImage");

extern "C" {static PyObject *meth_QImage_createAlphaMask(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_createAlphaMask(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::ImageConversionFlags a0def = Qt::AutoColor;
        Qt::ImageConversionFlags* a0 = &a0def;
        int a0State = 0;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QImage, &sipCpp, sipType_Qt_ImageConversionFlags, &a0, &a0State))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->createAlphaMask(*a0));
            sipReleaseType(a0,sipType_Qt_ImageConversionFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_createAlphaMask, doc_QImage_createAlphaMask);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_createHeuristicMask, "QImage.createHeuristicMask(bool clipTight=True) -> QImage");

extern "C" {static PyObject *meth_QImage_createHeuristicMask(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_createHeuristicMask(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_clipTight,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|b", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->createHeuristicMask(a0));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_createHeuristicMask, doc_QImage_createHeuristicMask);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_scaled, "QImage.scaled(int, int, Qt.AspectRatioMode aspectRatioMode=Qt.IgnoreAspectRatio, Qt.TransformationMode transformMode=Qt.FastTransformation) -> QImage\n"
    "QImage.scaled(QSize, Qt.AspectRatioMode aspectRatioMode=Qt.IgnoreAspectRatio, Qt.TransformationMode transformMode=Qt.FastTransformation) -> QImage");

extern "C" {static PyObject *meth_QImage_scaled(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_scaled(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        Qt::AspectRatioMode a2 = Qt::IgnoreAspectRatio;
        Qt::TransformationMode a3 = Qt::FastTransformation;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_aspectRatioMode,
            sipName_transformMode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|EE", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, sipType_Qt_AspectRatioMode, &a2, sipType_Qt_TransformationMode, &a3))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->scaled(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    {
        const QSize* a0;
        Qt::AspectRatioMode a1 = Qt::IgnoreAspectRatio;
        Qt::TransformationMode a2 = Qt::FastTransformation;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_aspectRatioMode,
            sipName_transformMode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|EE", &sipSelf, sipType_QImage, &sipCpp, sipType_QSize, &a0, sipType_Qt_AspectRatioMode, &a1, sipType_Qt_TransformationMode, &a2))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->scaled(*a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_scaled, doc_QImage_scaled);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_scaledToWidth, "QImage.scaledToWidth(int, Qt.TransformationMode mode=Qt.FastTransformation) -> QImage");

extern "C" {static PyObject *meth_QImage_scaledToWidth(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_scaledToWidth(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        Qt::TransformationMode a1 = Qt::FastTransformation;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QImage, &sipCpp, &a0, sipType_Qt_TransformationMode, &a1))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->scaledToWidth(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_scaledToWidth, doc_QImage_scaledToWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_scaledToHeight, "QImage.scaledToHeight(int, Qt.TransformationMode mode=Qt.FastTransformation) -> QImage");

extern "C" {static PyObject *meth_QImage_scaledToHeight(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_scaledToHeight(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        Qt::TransformationMode a1 = Qt::FastTransformation;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QImage, &sipCpp, &a0, sipType_Qt_TransformationMode, &a1))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->scaledToHeight(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_scaledToHeight, doc_QImage_scaledToHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_mirrored, "QImage.mirrored(bool horizontal=False, bool vertical=True) -> QImage");

extern "C" {static PyObject *meth_QImage_mirrored(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_mirrored(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 0;
        bool a1 = 1;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_horizontal,
            sipName_vertical,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|bb", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->mirrored(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_mirrored, doc_QImage_mirrored);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_rgbSwapped, "QImage.rgbSwapped() -> QImage");

extern "C" {static PyObject *meth_QImage_rgbSwapped(PyObject *, PyObject *);}
static PyObject *meth_QImage_rgbSwapped(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->rgbSwapped());

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_rgbSwapped, doc_QImage_rgbSwapped);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_invertPixels, "QImage.invertPixels(QImage.InvertMode mode=QImage.InvertRgb)");

extern "C" {static PyObject *meth_QImage_invertPixels(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_invertPixels(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QImage::InvertMode a0 = QImage::InvertRgb;
        QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage_InvertMode, &a0))
        {
            sipCpp->invertPixels(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_invertPixels, doc_QImage_invertPixels);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_load, "QImage.load(QIODevice, str) -> bool\n"
    "QImage.load(str, str format=None) -> bool");

extern "C" {static PyObject *meth_QImage_load(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_load(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QIODevice* a0;
        const char* a1;
        PyObject *a1Keep;
        QImage *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8AA", &sipSelf, sipType_QImage, &sipCpp, sipType_QIODevice, &a0, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(a0,a1);
            Py_END_ALLOW_THREADS
            Py_DECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|AA", &sipSelf, sipType_QImage, &sipCpp, sipType_QString,&a0, &a0State, &a1Keep, &a1))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->load(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_load, doc_QImage_load);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_loadFromData, "QImage.loadFromData(str, str format=None) -> bool\n"
    "QImage.loadFromData(QByteArray, str format=None) -> bool");

extern "C" {static PyObject *meth_QImage_loadFromData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_loadFromData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const uchar* a0;
        SIP_SSIZE_T a1;
        const char* a2 = 0;
        PyObject *a2Keep = 0;
        QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bk|AA", &sipSelf, sipType_QImage, &sipCpp, &a0, &a1, &a2Keep, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(a0,(int)a1,a2);
            Py_XDECREF(a2Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QByteArray* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|AA", &sipSelf, sipType_QImage, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1Keep, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(*a0,a1);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_loadFromData, doc_QImage_loadFromData);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_save, "QImage.save(str, str format=None, int quality=-1) -> bool\n"
    "QImage.save(QIODevice, str format=None, int quality=-1) -> bool");

extern "C" {static PyObject *meth_QImage_save(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_save(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        int a2 = -1;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
            sipName_quality,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|AAi", &sipSelf, sipType_QImage, &sipCpp, sipType_QString,&a0, &a0State, &a1Keep, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->save(*a0,a1,a2);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QIODevice* a0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        int a2 = -1;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
            sipName_quality,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|AAi", &sipSelf, sipType_QImage, &sipCpp, sipType_QIODevice, &a0, &a1Keep, &a1, &a2))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->save(a0,a1,a2);
            Py_END_ALLOW_THREADS
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_save, doc_QImage_save);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_fromData, "QImage.fromData(str, str format=None) -> QImage\n"
    "QImage.fromData(QByteArray, str format=None) -> QImage");

extern "C" {static PyObject *meth_QImage_fromData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_fromData(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const uchar* a0;
        SIP_SSIZE_T a1;
        const char* a2 = 0;
        PyObject *a2Keep = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "k|AA", &a0, &a1, &a2Keep, &a2))
        {
            QImage*sipRes;

            sipRes = new QImage(QImage::fromData(a0,(int)a1,a2));
            Py_XDECREF(a2Keep);

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    {
        const QByteArray* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|AA", sipType_QByteArray, &a0, &a0State, &a1Keep, &a1))
        {
            QImage*sipRes;

            sipRes = new QImage(QImage::fromData(*a0,a1));
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            Py_XDECREF(a1Keep);

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_fromData, doc_QImage_fromData);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_paintEngine, "QImage.paintEngine() -> QPaintEngine");

extern "C" {static PyObject *meth_QImage_paintEngine(PyObject *, PyObject *);}
static PyObject *meth_QImage_paintEngine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            QPaintEngine*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QImage::paintEngine() : sipCpp->paintEngine());

            return sipConvertFromType(sipRes,sipType_QPaintEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_paintEngine, doc_QImage_paintEngine);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_dotsPerMeterX, "QImage.dotsPerMeterX() -> int");

extern "C" {static PyObject *meth_QImage_dotsPerMeterX(PyObject *, PyObject *);}
static PyObject *meth_QImage_dotsPerMeterX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->dotsPerMeterX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_dotsPerMeterX, doc_QImage_dotsPerMeterX);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_dotsPerMeterY, "QImage.dotsPerMeterY() -> int");

extern "C" {static PyObject *meth_QImage_dotsPerMeterY(PyObject *, PyObject *);}
static PyObject *meth_QImage_dotsPerMeterY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->dotsPerMeterY();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_dotsPerMeterY, doc_QImage_dotsPerMeterY);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setDotsPerMeterX, "QImage.setDotsPerMeterX(int)");

extern "C" {static PyObject *meth_QImage_setDotsPerMeterX(PyObject *, PyObject *);}
static PyObject *meth_QImage_setDotsPerMeterX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->setDotsPerMeterX(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_setDotsPerMeterX, doc_QImage_setDotsPerMeterX);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setDotsPerMeterY, "QImage.setDotsPerMeterY(int)");

extern "C" {static PyObject *meth_QImage_setDotsPerMeterY(PyObject *, PyObject *);}
static PyObject *meth_QImage_setDotsPerMeterY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->setDotsPerMeterY(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_setDotsPerMeterY, doc_QImage_setDotsPerMeterY);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_offset, "QImage.offset() -> QPoint");

extern "C" {static PyObject *meth_QImage_offset(PyObject *, PyObject *);}
static PyObject *meth_QImage_offset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->offset());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_offset, doc_QImage_offset);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setOffset, "QImage.setOffset(QPoint)");

extern "C" {static PyObject *meth_QImage_setOffset(PyObject *, PyObject *);}
static PyObject *meth_QImage_setOffset(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->setOffset(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_setOffset, doc_QImage_setOffset);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_textKeys, "QImage.textKeys() -> list-of-str");

extern "C" {static PyObject *meth_QImage_textKeys(PyObject *, PyObject *);}
static PyObject *meth_QImage_textKeys(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            QStringList*sipRes;

            sipRes = new QStringList(sipCpp->textKeys());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_textKeys, doc_QImage_textKeys);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_text, "QImage.text(str key='') -> str");

extern "C" {static PyObject *meth_QImage_text(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_text(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString& a0def = QString();
        const QString* a0 = &a0def;
        int a0State = 0;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            sipName_key,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_text, doc_QImage_text);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setText, "QImage.setText(str, str)");

extern "C" {static PyObject *meth_QImage_setText(PyObject *, PyObject *);}
static PyObject *meth_QImage_setText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QImage, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            sipCpp->setText(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_setText, doc_QImage_setText);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_metric, "QImage.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QImage_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQImage *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QImage, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_metric, doc_QImage_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_createMaskFromColor, "QImage.createMaskFromColor(int, Qt.MaskMode mode=Qt.MaskInColor) -> QImage");

extern "C" {static PyObject *meth_QImage_createMaskFromColor(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_createMaskFromColor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;
        Qt::MaskMode a1 = Qt::MaskInColor;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bu|E", &sipSelf, sipType_QImage, &sipCpp, &a0, sipType_Qt_MaskMode, &a1))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->createMaskFromColor(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_createMaskFromColor, doc_QImage_createMaskFromColor);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_transformed, "QImage.transformed(QTransform, Qt.TransformationMode mode=Qt.FastTransformation) -> QImage");

extern "C" {static PyObject *meth_QImage_transformed(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QImage_transformed(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        Qt::TransformationMode a1 = Qt::FastTransformation;
        const QImage *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QImage, &sipCpp, sipType_QTransform, &a0, sipType_Qt_TransformationMode, &a1))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->transformed(*a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_transformed, doc_QImage_transformed);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_trueMatrix, "QImage.trueMatrix(QTransform, int, int) -> QTransform");

extern "C" {static PyObject *meth_QImage_trueMatrix(PyObject *, PyObject *);}
static PyObject *meth_QImage_trueMatrix(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        int a1;
        int a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9ii", sipType_QTransform, &a0, &a1, &a2))
        {
            QTransform*sipRes;

            sipRes = new QTransform(QImage::trueMatrix(*a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_trueMatrix, doc_QImage_trueMatrix);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_cacheKey, "QImage.cacheKey() -> int");

extern "C" {static PyObject *meth_QImage_cacheKey(PyObject *, PyObject *);}
static PyObject *meth_QImage_cacheKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            qint64 sipRes;

            sipRes = sipCpp->cacheKey();

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_cacheKey, doc_QImage_cacheKey);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_colorCount, "QImage.colorCount() -> int");

extern "C" {static PyObject *meth_QImage_colorCount(PyObject *, PyObject *);}
static PyObject *meth_QImage_colorCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->colorCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_colorCount, doc_QImage_colorCount);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setColorCount, "QImage.setColorCount(int)");

extern "C" {static PyObject *meth_QImage_setColorCount(PyObject *, PyObject *);}
static PyObject *meth_QImage_setColorCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->setColorCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_setColorCount, doc_QImage_setColorCount);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_byteCount, "QImage.byteCount() -> int");

extern "C" {static PyObject *meth_QImage_byteCount(PyObject *, PyObject *);}
static PyObject *meth_QImage_byteCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->byteCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_byteCount, doc_QImage_byteCount);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_bitPlaneCount, "QImage.bitPlaneCount() -> int");

extern "C" {static PyObject *meth_QImage_bitPlaneCount(PyObject *, PyObject *);}
static PyObject *meth_QImage_bitPlaneCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->bitPlaneCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_bitPlaneCount, doc_QImage_bitPlaneCount);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_swap, "QImage.swap(QImage)");

extern "C" {static PyObject *meth_QImage_swap(PyObject *, PyObject *);}
static PyObject *meth_QImage_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QImage* a0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QImage, &sipCpp, sipType_QImage, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_swap, doc_QImage_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_devicePixelRatio, "QImage.devicePixelRatio() -> float");

extern "C" {static PyObject *meth_QImage_devicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QImage_devicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->devicePixelRatio();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_devicePixelRatio, doc_QImage_devicePixelRatio);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_setDevicePixelRatio, "QImage.setDevicePixelRatio(float)");

extern "C" {static PyObject *meth_QImage_setDevicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QImage_setDevicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QImage, &sipCpp, &a0))
        {
            sipCpp->setDevicePixelRatio(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_setDevicePixelRatio, doc_QImage_setDevicePixelRatio);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_pixelFormat, "QImage.pixelFormat() -> QPixelFormat");

extern "C" {static PyObject *meth_QImage_pixelFormat(PyObject *, PyObject *);}
static PyObject *meth_QImage_pixelFormat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QImage, &sipCpp))
        {
            QPixelFormat*sipRes;

            sipRes = new QPixelFormat(sipCpp->pixelFormat());

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_pixelFormat, doc_QImage_pixelFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_toPixelFormat, "QImage.toPixelFormat(QImage.Format) -> QPixelFormat");

extern "C" {static PyObject *meth_QImage_toPixelFormat(PyObject *, PyObject *);}
static PyObject *meth_QImage_toPixelFormat(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QImage::Format a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QImage_Format, &a0))
        {
            QPixelFormat*sipRes;

            sipRes = new QPixelFormat(QImage::toPixelFormat(a0));

            return sipConvertFromNewType(sipRes,sipType_QPixelFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_toPixelFormat, doc_QImage_toPixelFormat);

    return NULL;
}


PyDoc_STRVAR(doc_QImage_toImageFormat, "QImage.toImageFormat(QPixelFormat) -> QImage.Format");

extern "C" {static PyObject *meth_QImage_toImageFormat(PyObject *, PyObject *);}
static PyObject *meth_QImage_toImageFormat(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPixelFormat* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QPixelFormat, &a0))
        {
            QImage::Format sipRes;

            sipRes = QImage::toImageFormat(*a0);

            return sipConvertFromEnum(sipRes,sipType_QImage_Format);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QImage, sipName_toImageFormat, doc_QImage_toImageFormat);

    return NULL;
}


extern "C" {static PyObject *slot_QImage___ne__(PyObject *,PyObject *);}
static PyObject *slot_QImage___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QImage *sipCpp = reinterpret_cast<QImage *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImage));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QImage* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QImage, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QImage::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QImage,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QImage___eq__(PyObject *,PyObject *);}
static PyObject *slot_QImage___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QImage *sipCpp = reinterpret_cast<QImage *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QImage));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QImage* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QImage, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QImage::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QImage,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QImage(void *, const sipTypeDef *);}
static void *cast_QImage(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QImage)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPaintDevice)->ctd_cast((QPaintDevice *)(QImage *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QImage(void *, int);}
static void release_QImage(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQImage *>(sipCppV);
    else
        delete reinterpret_cast<QImage *>(sipCppV);
}


extern "C" {static void assign_QImage(void *, SIP_SSIZE_T, const void *);}
static void assign_QImage(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QImage *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QImage *>(sipSrc);
}


extern "C" {static void *array_QImage(SIP_SSIZE_T);}
static void *array_QImage(SIP_SSIZE_T sipNrElem)
{
    return new QImage[sipNrElem];
}


extern "C" {static void *copy_QImage(const void *, SIP_SSIZE_T);}
static void *copy_QImage(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QImage(reinterpret_cast<const QImage *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QImage(sipSimpleWrapper *);}
static void dealloc_QImage(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQImage *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QImage(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QImage(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QImage(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQImage *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQImage();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QSize* a0;
        QImage::Format a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9E", sipType_QSize, &a0, sipType_QImage_Format, &a1))
        {
            sipCpp = new sipQImage(*a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        QImage::Format a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "iiE", &a0, &a1, sipType_QImage_Format, &a2))
        {
            sipCpp = new sipQImage(a0,a1,a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const uchar* a0;
        PyObject *a0Keep;
        int a1;
        int a2;
        QImage::Format a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@siiE", &a0Keep, &a0, &a1, &a2, sipType_QImage_Format, &a3))
        {
            sipCpp = new sipQImage(a0,a1,a2,a3);

            sipKeepReference((PyObject *)sipSelf, -1, a0Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        void* a0;
        int a1;
        int a2;
        QImage::Format a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "viiE", &a0, &a1, &a2, sipType_QImage_Format, &a3))
        {
            sipCpp = new sipQImage(reinterpret_cast<uchar *>(a0),a1,a2,a3);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const uchar* a0;
        PyObject *a0Keep;
        int a1;
        int a2;
        int a3;
        QImage::Format a4;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@siiiE", &a0Keep, &a0, &a1, &a2, &a3, sipType_QImage_Format, &a4))
        {
            sipCpp = new sipQImage(a0,a1,a2,a3,a4);

            sipKeepReference((PyObject *)sipSelf, -2, a0Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        void* a0;
        int a1;
        int a2;
        int a3;
        QImage::Format a4;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "viiiE", &a0, &a1, &a2, &a3, sipType_QImage_Format, &a4))
        {
            sipCpp = new sipQImage(reinterpret_cast<uchar *>(a0),a1,a2,a3,a4);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "T", &PyList_Type, &a0))
        {
            int sipIsErr = 0;

#line 90 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
        // The Python interface is a list of strings that make up the image.
        
        const char **str = QtGui_ListToArray(a0);
        
        if (str)
        {
            sipCpp = new sipQImage(str);
            QtGui_DeleteArray(str);
        }
        else
            sipIsErr = 1;
#line 142405 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
            {
                if (sipUnused)
                {
                    Py_XDECREF(*sipUnused);
                }

                sipAddException(sipErrorFail, sipParseErr);
                return NULL;
            }

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|AA", sipType_QString,&a0, &a0State, &a1Keep, &a1))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQImage(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QImage* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QImage, &a0))
        {
            sipCpp = new sipQImage(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 107 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
        if (a0->canConvert<QImage>())
            sipCpp = new sipQImage(a0->value<QImage>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 142476 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
            {
                sipCpp->sipPySelf = sipSelf;

                return sipCpp;
            }

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QImage[] = {{183, 255, 1}};


/* Define this type's Python slots. */
static sipPySlotDef slots_QImage[] = {
    {(void *)slot_QImage___ne__, ne_slot},
    {(void *)slot_QImage___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QImage[] = {
    {SIP_MLNAME_CAST(sipName_allGray), meth_QImage_allGray, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_allGray)},
    {SIP_MLNAME_CAST(sipName_bitPlaneCount), meth_QImage_bitPlaneCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_bitPlaneCount)},
    {SIP_MLNAME_CAST(sipName_bits), meth_QImage_bits, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_bits)},
    {SIP_MLNAME_CAST(sipName_byteCount), meth_QImage_byteCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_byteCount)},
    {SIP_MLNAME_CAST(sipName_bytesPerLine), meth_QImage_bytesPerLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_bytesPerLine)},
    {SIP_MLNAME_CAST(sipName_cacheKey), meth_QImage_cacheKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_cacheKey)},
    {SIP_MLNAME_CAST(sipName_color), meth_QImage_color, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_color)},
    {SIP_MLNAME_CAST(sipName_colorCount), meth_QImage_colorCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_colorCount)},
    {SIP_MLNAME_CAST(sipName_colorTable), meth_QImage_colorTable, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_colorTable)},
    {SIP_MLNAME_CAST(sipName_constBits), meth_QImage_constBits, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_constBits)},
    {SIP_MLNAME_CAST(sipName_constScanLine), meth_QImage_constScanLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_constScanLine)},
    {SIP_MLNAME_CAST(sipName_convertToFormat), (PyCFunction)meth_QImage_convertToFormat, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_convertToFormat)},
    {SIP_MLNAME_CAST(sipName_copy), (PyCFunction)meth_QImage_copy, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_copy)},
    {SIP_MLNAME_CAST(sipName_createAlphaMask), (PyCFunction)meth_QImage_createAlphaMask, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_createAlphaMask)},
    {SIP_MLNAME_CAST(sipName_createHeuristicMask), (PyCFunction)meth_QImage_createHeuristicMask, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_createHeuristicMask)},
    {SIP_MLNAME_CAST(sipName_createMaskFromColor), (PyCFunction)meth_QImage_createMaskFromColor, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_createMaskFromColor)},
    {SIP_MLNAME_CAST(sipName_depth), meth_QImage_depth, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_depth)},
    {SIP_MLNAME_CAST(sipName_detach), meth_QImage_detach, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_detach)},
    {SIP_MLNAME_CAST(sipName_devType), meth_QImage_devType, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_devType)},
    {SIP_MLNAME_CAST(sipName_devicePixelRatio), meth_QImage_devicePixelRatio, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_devicePixelRatio)},
    {SIP_MLNAME_CAST(sipName_dotsPerMeterX), meth_QImage_dotsPerMeterX, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_dotsPerMeterX)},
    {SIP_MLNAME_CAST(sipName_dotsPerMeterY), meth_QImage_dotsPerMeterY, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_dotsPerMeterY)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QImage_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_fill)},
    {SIP_MLNAME_CAST(sipName_format), meth_QImage_format, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_format)},
    {SIP_MLNAME_CAST(sipName_fromData), (PyCFunction)meth_QImage_fromData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_fromData)},
    {SIP_MLNAME_CAST(sipName_hasAlphaChannel), meth_QImage_hasAlphaChannel, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_hasAlphaChannel)},
    {SIP_MLNAME_CAST(sipName_height), meth_QImage_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_height)},
    {SIP_MLNAME_CAST(sipName_invertPixels), (PyCFunction)meth_QImage_invertPixels, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_invertPixels)},
    {SIP_MLNAME_CAST(sipName_isDetached), meth_QImage_isDetached, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_isDetached)},
    {SIP_MLNAME_CAST(sipName_isGrayscale), meth_QImage_isGrayscale, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_isGrayscale)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QImage_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_isNull)},
    {SIP_MLNAME_CAST(sipName_load), (PyCFunction)meth_QImage_load, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_load)},
    {SIP_MLNAME_CAST(sipName_loadFromData), (PyCFunction)meth_QImage_loadFromData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_loadFromData)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QImage_metric, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_metric)},
    {SIP_MLNAME_CAST(sipName_mirrored), (PyCFunction)meth_QImage_mirrored, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_mirrored)},
    {SIP_MLNAME_CAST(sipName_offset), meth_QImage_offset, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_offset)},
    {SIP_MLNAME_CAST(sipName_paintEngine), meth_QImage_paintEngine, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_paintEngine)},
    {SIP_MLNAME_CAST(sipName_pixel), meth_QImage_pixel, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_pixel)},
    {SIP_MLNAME_CAST(sipName_pixelFormat), meth_QImage_pixelFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_pixelFormat)},
    {SIP_MLNAME_CAST(sipName_pixelIndex), meth_QImage_pixelIndex, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_pixelIndex)},
    {SIP_MLNAME_CAST(sipName_rect), meth_QImage_rect, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_rect)},
    {SIP_MLNAME_CAST(sipName_rgbSwapped), meth_QImage_rgbSwapped, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_rgbSwapped)},
    {SIP_MLNAME_CAST(sipName_save), (PyCFunction)meth_QImage_save, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_save)},
    {SIP_MLNAME_CAST(sipName_scaled), (PyCFunction)meth_QImage_scaled, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_scaled)},
    {SIP_MLNAME_CAST(sipName_scaledToHeight), (PyCFunction)meth_QImage_scaledToHeight, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_scaledToHeight)},
    {SIP_MLNAME_CAST(sipName_scaledToWidth), (PyCFunction)meth_QImage_scaledToWidth, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_scaledToWidth)},
    {SIP_MLNAME_CAST(sipName_scanLine), meth_QImage_scanLine, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_scanLine)},
    {SIP_MLNAME_CAST(sipName_setColor), meth_QImage_setColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setColor)},
    {SIP_MLNAME_CAST(sipName_setColorCount), meth_QImage_setColorCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setColorCount)},
    {SIP_MLNAME_CAST(sipName_setColorTable), meth_QImage_setColorTable, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setColorTable)},
    {SIP_MLNAME_CAST(sipName_setDevicePixelRatio), meth_QImage_setDevicePixelRatio, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setDevicePixelRatio)},
    {SIP_MLNAME_CAST(sipName_setDotsPerMeterX), meth_QImage_setDotsPerMeterX, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setDotsPerMeterX)},
    {SIP_MLNAME_CAST(sipName_setDotsPerMeterY), meth_QImage_setDotsPerMeterY, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setDotsPerMeterY)},
    {SIP_MLNAME_CAST(sipName_setOffset), meth_QImage_setOffset, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setOffset)},
    {SIP_MLNAME_CAST(sipName_setPixel), meth_QImage_setPixel, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setPixel)},
    {SIP_MLNAME_CAST(sipName_setText), meth_QImage_setText, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_setText)},
    {SIP_MLNAME_CAST(sipName_size), meth_QImage_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_size)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QImage_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_swap)},
    {SIP_MLNAME_CAST(sipName_text), (PyCFunction)meth_QImage_text, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_text)},
    {SIP_MLNAME_CAST(sipName_textKeys), meth_QImage_textKeys, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_textKeys)},
    {SIP_MLNAME_CAST(sipName_toImageFormat), meth_QImage_toImageFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_toImageFormat)},
    {SIP_MLNAME_CAST(sipName_toPixelFormat), meth_QImage_toPixelFormat, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_toPixelFormat)},
    {SIP_MLNAME_CAST(sipName_transformed), (PyCFunction)meth_QImage_transformed, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QImage_transformed)},
    {SIP_MLNAME_CAST(sipName_trueMatrix), meth_QImage_trueMatrix, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_trueMatrix)},
    {SIP_MLNAME_CAST(sipName_valid), meth_QImage_valid, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_valid)},
    {SIP_MLNAME_CAST(sipName_width), meth_QImage_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QImage_width)}
};

static sipEnumMemberDef enummembers_QImage[] = {
    {sipName_Format_A2BGR30_Premultiplied, static_cast<int>(QImage::Format_A2BGR30_Premultiplied), 65},
    {sipName_Format_A2RGB30_Premultiplied, static_cast<int>(QImage::Format_A2RGB30_Premultiplied), 65},
    {sipName_Format_ARGB32, static_cast<int>(QImage::Format_ARGB32), 65},
    {sipName_Format_ARGB32_Premultiplied, static_cast<int>(QImage::Format_ARGB32_Premultiplied), 65},
    {sipName_Format_ARGB4444_Premultiplied, static_cast<int>(QImage::Format_ARGB4444_Premultiplied), 65},
    {sipName_Format_ARGB6666_Premultiplied, static_cast<int>(QImage::Format_ARGB6666_Premultiplied), 65},
    {sipName_Format_ARGB8555_Premultiplied, static_cast<int>(QImage::Format_ARGB8555_Premultiplied), 65},
    {sipName_Format_ARGB8565_Premultiplied, static_cast<int>(QImage::Format_ARGB8565_Premultiplied), 65},
    {sipName_Format_BGR30, static_cast<int>(QImage::Format_BGR30), 65},
    {sipName_Format_Indexed8, static_cast<int>(QImage::Format_Indexed8), 65},
    {sipName_Format_Invalid, static_cast<int>(QImage::Format_Invalid), 65},
    {sipName_Format_Mono, static_cast<int>(QImage::Format_Mono), 65},
    {sipName_Format_MonoLSB, static_cast<int>(QImage::Format_MonoLSB), 65},
    {sipName_Format_RGB16, static_cast<int>(QImage::Format_RGB16), 65},
    {sipName_Format_RGB30, static_cast<int>(QImage::Format_RGB30), 65},
    {sipName_Format_RGB32, static_cast<int>(QImage::Format_RGB32), 65},
    {sipName_Format_RGB444, static_cast<int>(QImage::Format_RGB444), 65},
    {sipName_Format_RGB555, static_cast<int>(QImage::Format_RGB555), 65},
    {sipName_Format_RGB666, static_cast<int>(QImage::Format_RGB666), 65},
    {sipName_Format_RGB888, static_cast<int>(QImage::Format_RGB888), 65},
    {sipName_Format_RGBA8888, static_cast<int>(QImage::Format_RGBA8888), 65},
    {sipName_Format_RGBA8888_Premultiplied, static_cast<int>(QImage::Format_RGBA8888_Premultiplied), 65},
    {sipName_Format_RGBX8888, static_cast<int>(QImage::Format_RGBX8888), 65},
    {sipName_InvertRgb, static_cast<int>(QImage::InvertRgb), 66},
    {sipName_InvertRgba, static_cast<int>(QImage::InvertRgba), 66},
};

PyDoc_STRVAR(doc_QImage, "\1QImage()\n"
    "QImage(QSize, QImage.Format)\n"
    "QImage(int, int, QImage.Format)\n"
    "QImage(str, int, int, QImage.Format)\n"
    "QImage(sip.voidptr, int, int, QImage.Format)\n"
    "QImage(str, int, int, int, QImage.Format)\n"
    "QImage(sip.voidptr, int, int, int, QImage.Format)\n"
    "QImage(list-of-str)\n"
    "QImage(str, str format=None)\n"
    "QImage(QImage)\n"
    "QImage(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QImage = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QImage,
        {0}
    },
    {
        sipNameNr_QImage,
        {0, 0, 1},
        66, methods_QImage,
        25, enummembers_QImage,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QImage,
    -1,
    -1,
    supers_QImage,
    slots_QImage,
    init_type_QImage,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QImage,
    assign_QImage,
    array_QImage,
    copy_QImage,
    release_QImage,
    cast_QImage,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 142681 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 142685 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQPaintDevice : public QPaintDevice
{
public:
    sipQPaintDevice();
    virtual ~sipQPaintDevice();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int metric(QPaintDevice::PaintDeviceMetric) const;
    QPaintEngine* paintEngine() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPaintDevice(const sipQPaintDevice &);
    sipQPaintDevice &operator = (const sipQPaintDevice &);

    char sipPyMethods[2];
};

sipQPaintDevice::sipQPaintDevice(): QPaintDevice(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPaintDevice::~sipQPaintDevice()
{
    sipCommonDtor(sipPySelf);
}

int sipQPaintDevice::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPaintDevice::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPaintDevice::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_QPaintDevice,sipName_paintEngine);

    if (!sipMeth)
        return 0;

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPaintDevice::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QPaintDevice::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QPaintDevice_paintEngine, "QPaintDevice.paintEngine() -> QPaintEngine");

extern "C" {static PyObject *meth_QPaintDevice_paintEngine(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_paintEngine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            QPaintEngine*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QPaintDevice, sipName_paintEngine);
                return NULL;
            }

            sipRes = sipCpp->paintEngine();

            return sipConvertFromType(sipRes,sipType_QPaintEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_paintEngine, doc_QPaintDevice_paintEngine);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_width, "QPaintDevice.width() -> int");

extern "C" {static PyObject *meth_QPaintDevice_width(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->width();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_width, doc_QPaintDevice_width);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_height, "QPaintDevice.height() -> int");

extern "C" {static PyObject *meth_QPaintDevice_height(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->height();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_height, doc_QPaintDevice_height);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_widthMM, "QPaintDevice.widthMM() -> int");

extern "C" {static PyObject *meth_QPaintDevice_widthMM(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_widthMM(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->widthMM();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_widthMM, doc_QPaintDevice_widthMM);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_heightMM, "QPaintDevice.heightMM() -> int");

extern "C" {static PyObject *meth_QPaintDevice_heightMM(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_heightMM(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->heightMM();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_heightMM, doc_QPaintDevice_heightMM);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_logicalDpiX, "QPaintDevice.logicalDpiX() -> int");

extern "C" {static PyObject *meth_QPaintDevice_logicalDpiX(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_logicalDpiX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->logicalDpiX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_logicalDpiX, doc_QPaintDevice_logicalDpiX);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_logicalDpiY, "QPaintDevice.logicalDpiY() -> int");

extern "C" {static PyObject *meth_QPaintDevice_logicalDpiY(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_logicalDpiY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->logicalDpiY();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_logicalDpiY, doc_QPaintDevice_logicalDpiY);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_physicalDpiX, "QPaintDevice.physicalDpiX() -> int");

extern "C" {static PyObject *meth_QPaintDevice_physicalDpiX(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_physicalDpiX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->physicalDpiX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_physicalDpiX, doc_QPaintDevice_physicalDpiX);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_physicalDpiY, "QPaintDevice.physicalDpiY() -> int");

extern "C" {static PyObject *meth_QPaintDevice_physicalDpiY(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_physicalDpiY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->physicalDpiY();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_physicalDpiY, doc_QPaintDevice_physicalDpiY);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_depth, "QPaintDevice.depth() -> int");

extern "C" {static PyObject *meth_QPaintDevice_depth(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_depth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->depth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_depth, doc_QPaintDevice_depth);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_paintingActive, "QPaintDevice.paintingActive() -> bool");

extern "C" {static PyObject *meth_QPaintDevice_paintingActive(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_paintingActive(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->paintingActive();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_paintingActive, doc_QPaintDevice_paintingActive);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_colorCount, "QPaintDevice.colorCount() -> int");

extern "C" {static PyObject *meth_QPaintDevice_colorCount(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_colorCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->colorCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_colorCount, doc_QPaintDevice_colorCount);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_devicePixelRatio, "QPaintDevice.devicePixelRatio() -> int");

extern "C" {static PyObject *meth_QPaintDevice_devicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_devicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintDevice *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintDevice, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->devicePixelRatio();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_devicePixelRatio, doc_QPaintDevice_devicePixelRatio);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintDevice_metric, "QPaintDevice.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPaintDevice_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPaintDevice_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPaintDevice *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPaintDevice, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintDevice, sipName_metric, doc_QPaintDevice_metric);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPaintDevice(void *, const sipTypeDef *);}
static void *cast_QPaintDevice(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QPaintDevice)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPaintDevice(void *, int);}
static void release_QPaintDevice(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQPaintDevice *>(sipCppV);
    else
        delete reinterpret_cast<QPaintDevice *>(sipCppV);
}


extern "C" {static void dealloc_QPaintDevice(sipSimpleWrapper *);}
static void dealloc_QPaintDevice(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPaintDevice *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPaintDevice(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPaintDevice(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPaintDevice(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQPaintDevice *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQPaintDevice();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QPaintDevice[] = {
    {SIP_MLNAME_CAST(sipName_colorCount), meth_QPaintDevice_colorCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_colorCount)},
    {SIP_MLNAME_CAST(sipName_depth), meth_QPaintDevice_depth, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_depth)},
    {SIP_MLNAME_CAST(sipName_devicePixelRatio), meth_QPaintDevice_devicePixelRatio, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_devicePixelRatio)},
    {SIP_MLNAME_CAST(sipName_height), meth_QPaintDevice_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_height)},
    {SIP_MLNAME_CAST(sipName_heightMM), meth_QPaintDevice_heightMM, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_heightMM)},
    {SIP_MLNAME_CAST(sipName_logicalDpiX), meth_QPaintDevice_logicalDpiX, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_logicalDpiX)},
    {SIP_MLNAME_CAST(sipName_logicalDpiY), meth_QPaintDevice_logicalDpiY, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_logicalDpiY)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPaintDevice_metric, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPaintDevice_metric)},
    {SIP_MLNAME_CAST(sipName_paintEngine), meth_QPaintDevice_paintEngine, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_paintEngine)},
    {SIP_MLNAME_CAST(sipName_paintingActive), meth_QPaintDevice_paintingActive, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_paintingActive)},
    {SIP_MLNAME_CAST(sipName_physicalDpiX), meth_QPaintDevice_physicalDpiX, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_physicalDpiX)},
    {SIP_MLNAME_CAST(sipName_physicalDpiY), meth_QPaintDevice_physicalDpiY, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_physicalDpiY)},
    {SIP_MLNAME_CAST(sipName_width), meth_QPaintDevice_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_width)},
    {SIP_MLNAME_CAST(sipName_widthMM), meth_QPaintDevice_widthMM, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintDevice_widthMM)}
};

static sipEnumMemberDef enummembers_QPaintDevice[] = {
    {sipName_PdmDepth, static_cast<int>(QPaintDevice::PdmDepth), 184},
    {sipName_PdmDevicePixelRatio, static_cast<int>(QPaintDevice::PdmDevicePixelRatio), 184},
    {sipName_PdmDpiX, static_cast<int>(QPaintDevice::PdmDpiX), 184},
    {sipName_PdmDpiY, static_cast<int>(QPaintDevice::PdmDpiY), 184},
    {sipName_PdmHeight, static_cast<int>(QPaintDevice::PdmHeight), 184},
    {sipName_PdmHeightMM, static_cast<int>(QPaintDevice::PdmHeightMM), 184},
    {sipName_PdmNumColors, static_cast<int>(QPaintDevice::PdmNumColors), 184},
    {sipName_PdmPhysicalDpiX, static_cast<int>(QPaintDevice::PdmPhysicalDpiX), 184},
    {sipName_PdmPhysicalDpiY, static_cast<int>(QPaintDevice::PdmPhysicalDpiY), 184},
    {sipName_PdmWidth, static_cast<int>(QPaintDevice::PdmWidth), 184},
    {sipName_PdmWidthMM, static_cast<int>(QPaintDevice::PdmWidthMM), 184},
};

PyDoc_STRVAR(doc_QPaintDevice, "\1QPaintDevice()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPaintDevice = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPaintDevice,
        {0}
    },
    {
        sipNameNr_QPaintDevice,
        {0, 0, 1},
        14, methods_QPaintDevice,
        11, enummembers_QPaintDevice,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintDevice,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QPaintDevice,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPaintDevice,
    0,
    0,
    0,
    release_QPaintDevice,
    cast_QPaintDevice,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 50 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 143299 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 143303 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 143306 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 143309 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QIconEngine_AvailableSizesArgument(void *, const sipTypeDef *);}
static void *cast_QIconEngine_AvailableSizesArgument(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QIconEngine_AvailableSizesArgument)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QIconEngine_AvailableSizesArgument(void *, int);}
static void release_QIconEngine_AvailableSizesArgument(void *sipCppV,int)
{
    delete reinterpret_cast<QIconEngine::AvailableSizesArgument *>(sipCppV);
}


extern "C" {static void assign_QIconEngine_AvailableSizesArgument(void *, SIP_SSIZE_T, const void *);}
static void assign_QIconEngine_AvailableSizesArgument(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QIconEngine::AvailableSizesArgument *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QIconEngine::AvailableSizesArgument *>(sipSrc);
}


extern "C" {static void *array_QIconEngine_AvailableSizesArgument(SIP_SSIZE_T);}
static void *array_QIconEngine_AvailableSizesArgument(SIP_SSIZE_T sipNrElem)
{
    return new QIconEngine::AvailableSizesArgument[sipNrElem];
}


extern "C" {static void *copy_QIconEngine_AvailableSizesArgument(const void *, SIP_SSIZE_T);}
static void *copy_QIconEngine_AvailableSizesArgument(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QIconEngine::AvailableSizesArgument(reinterpret_cast<const QIconEngine::AvailableSizesArgument *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QIconEngine_AvailableSizesArgument(sipSimpleWrapper *);}
static void dealloc_QIconEngine_AvailableSizesArgument(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QIconEngine_AvailableSizesArgument(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QIconEngine_AvailableSizesArgument(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QIconEngine_AvailableSizesArgument(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QIconEngine::AvailableSizesArgument *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QIconEngine::AvailableSizesArgument();

            return sipCpp;
        }
    }

    {
        const QIconEngine::AvailableSizesArgument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QIconEngine_AvailableSizesArgument, &a0))
        {
            sipCpp = new QIconEngine::AvailableSizesArgument(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_QIconEngine_AvailableSizesArgument_mode(void *, PyObject *, PyObject *);}
static PyObject *varget_QIconEngine_AvailableSizesArgument_mode(void *sipSelf, PyObject *, PyObject *)
{
    QIcon::Mode sipVal;
    QIconEngine::AvailableSizesArgument *sipCpp = reinterpret_cast<QIconEngine::AvailableSizesArgument *>(sipSelf);

    sipVal = sipCpp->mode;

    return sipConvertFromEnum(sipVal, sipType_QIcon_Mode);
}


extern "C" {static int varset_QIconEngine_AvailableSizesArgument_mode(void *, PyObject *, PyObject *);}
static int varset_QIconEngine_AvailableSizesArgument_mode(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QIcon::Mode sipVal;
    QIconEngine::AvailableSizesArgument *sipCpp = reinterpret_cast<QIconEngine::AvailableSizesArgument *>(sipSelf);

    sipVal = (QIcon::Mode)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->mode = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QIconEngine_AvailableSizesArgument_sizes(void *, PyObject *, PyObject *);}
static PyObject *varget_QIconEngine_AvailableSizesArgument_sizes(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QList<QSize>*sipVal;
    QIconEngine::AvailableSizesArgument *sipCpp = reinterpret_cast<QIconEngine::AvailableSizesArgument *>(sipSelf);

    sipVal = &sipCpp->sizes;

    sipPy = sipGetReference(sipPySelf, -7);
    if (sipPy)
        return sipPy;

    sipPy = sipConvertFromType(sipVal, sipType_QList_0100QSize, NULL);
    sipKeepReference(sipPySelf, -7, sipPy);

    return sipPy;
}


extern "C" {static int varset_QIconEngine_AvailableSizesArgument_sizes(void *, PyObject *, PyObject *);}
static int varset_QIconEngine_AvailableSizesArgument_sizes(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QList<QSize>*sipVal;
    QIconEngine::AvailableSizesArgument *sipCpp = reinterpret_cast<QIconEngine::AvailableSizesArgument *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QList<QSize> *>(sipForceConvertToType(sipPy,sipType_QList_0100QSize,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->sizes = *sipVal;

    sipReleaseType(sipVal, sipType_QList_0100QSize, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_QIconEngine_AvailableSizesArgument_state(void *, PyObject *, PyObject *);}
static PyObject *varget_QIconEngine_AvailableSizesArgument_state(void *sipSelf, PyObject *, PyObject *)
{
    QIcon::State sipVal;
    QIconEngine::AvailableSizesArgument *sipCpp = reinterpret_cast<QIconEngine::AvailableSizesArgument *>(sipSelf);

    sipVal = sipCpp->state;

    return sipConvertFromEnum(sipVal, sipType_QIcon_State);
}


extern "C" {static int varset_QIconEngine_AvailableSizesArgument_state(void *, PyObject *, PyObject *);}
static int varset_QIconEngine_AvailableSizesArgument_state(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QIcon::State sipVal;
    QIconEngine::AvailableSizesArgument *sipCpp = reinterpret_cast<QIconEngine::AvailableSizesArgument *>(sipSelf);

    sipVal = (QIcon::State)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->state = sipVal;

    return 0;
}

sipVariableDef variables_QIconEngine_AvailableSizesArgument[] = {
    {InstanceVariable, sipName_mode, (PyMethodDef *)varget_QIconEngine_AvailableSizesArgument_mode, (PyMethodDef *)varset_QIconEngine_AvailableSizesArgument_mode, NULL, NULL},
    {InstanceVariable, sipName_sizes, (PyMethodDef *)varget_QIconEngine_AvailableSizesArgument_sizes, (PyMethodDef *)varset_QIconEngine_AvailableSizesArgument_sizes, NULL, NULL},
    {InstanceVariable, sipName_state, (PyMethodDef *)varget_QIconEngine_AvailableSizesArgument_state, (PyMethodDef *)varset_QIconEngine_AvailableSizesArgument_state, NULL, NULL},
};

PyDoc_STRVAR(doc_QIconEngine_AvailableSizesArgument, "\1QIconEngine.AvailableSizesArgument()\n"
    "QIconEngine.AvailableSizesArgument(QIconEngine.AvailableSizesArgument)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QIconEngine_AvailableSizesArgument = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QIconEngine__AvailableSizesArgument,
        {0}
    },
    {
        sipNameNr_AvailableSizesArgument,
        {61, 255, 0},
        0, 0,
        0, 0,
        3, variables_QIconEngine_AvailableSizesArgument,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QIconEngine_AvailableSizesArgument,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QIconEngine_AvailableSizesArgument,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QIconEngine_AvailableSizesArgument,
    assign_QIconEngine_AvailableSizesArgument,
    array_QIconEngine_AvailableSizesArgument,
    copy_QIconEngine_AvailableSizesArgument,
    release_QIconEngine_AvailableSizesArgument,
    cast_QIconEngine_AvailableSizesArgument,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 143557 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 143561 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 143564 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 143567 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 143570 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 143573 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 143576 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 143579 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 143582 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQIconEngine : public QIconEngine
{
public:
    sipQIconEngine();
    sipQIconEngine(const QIconEngine&);
    virtual ~sipQIconEngine();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    QString iconName() const;
    QList<QSize> availableSizes(QIcon::Mode,QIcon::State) const;
    bool write(QDataStream&) const;
    bool read(QDataStream&);
    QIconEngine* clone() const;
    QString key() const;
    void addFile(const QString&,const QSize&,QIcon::Mode,QIcon::State);
    void addPixmap(const QPixmap&,QIcon::Mode,QIcon::State);
    QPixmap pixmap(const QSize&,QIcon::Mode,QIcon::State);
    QSize actualSize(const QSize&,QIcon::Mode,QIcon::State);
    void paint(QPainter*,const QRect&,QIcon::Mode,QIcon::State);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQIconEngine(const sipQIconEngine &);
    sipQIconEngine &operator = (const sipQIconEngine &);

    char sipPyMethods[11];
};

sipQIconEngine::sipQIconEngine(): QIconEngine(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQIconEngine::sipQIconEngine(const QIconEngine& a0): QIconEngine(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQIconEngine::~sipQIconEngine()
{
    sipCommonDtor(sipPySelf);
}

QString sipQIconEngine::iconName() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_iconName);

    if (!sipMeth)
        return QIconEngine::iconName();

    typedef QString (*sipVH_QtCore_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_16)(sipModuleAPI_QtGui_QtCore->em_virthandlers[16]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QList<QSize> sipQIconEngine::availableSizes(QIcon::Mode a0,QIcon::State a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_availableSizes);

    if (!sipMeth)
        return QIconEngine::availableSizes(a0,a1);

    extern QList<QSize> sipVH_QtGui_59(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QIcon::Mode,QIcon::State);

    return sipVH_QtGui_59(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQIconEngine::write(QDataStream& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_write);

    if (!sipMeth)
        return QIconEngine::write(a0);

    extern bool sipVH_QtGui_60(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDataStream&);

    return sipVH_QtGui_60(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQIconEngine::read(QDataStream& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_read);

    if (!sipMeth)
        return QIconEngine::read(a0);

    extern bool sipVH_QtGui_60(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QDataStream&);

    return sipVH_QtGui_60(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QIconEngine* sipQIconEngine::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,sipName_QIconEngine,sipName_clone);

    if (!sipMeth)
        return 0;

    extern QIconEngine* sipVH_QtGui_61(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_61(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

QString sipQIconEngine::key() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,NULL,sipName_key);

    if (!sipMeth)
        return QIconEngine::key();

    typedef QString (*sipVH_QtCore_16)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_16)(sipModuleAPI_QtGui_QtCore->em_virthandlers[16]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

void sipQIconEngine::addFile(const QString& a0,const QSize& a1,QIcon::Mode a2,QIcon::State a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_addFile);

    if (!sipMeth)
    {
        QIconEngine::addFile(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_QtGui_62(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QString&,const QSize&,QIcon::Mode,QIcon::State);

    sipVH_QtGui_62(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3);
}

void sipQIconEngine::addPixmap(const QPixmap& a0,QIcon::Mode a1,QIcon::State a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_addPixmap);

    if (!sipMeth)
    {
        QIconEngine::addPixmap(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_63(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPixmap&,QIcon::Mode,QIcon::State);

    sipVH_QtGui_63(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

QPixmap sipQIconEngine::pixmap(const QSize& a0,QIcon::Mode a1,QIcon::State a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_pixmap);

    if (!sipMeth)
        return QIconEngine::pixmap(a0,a1,a2);

    extern QPixmap sipVH_QtGui_64(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QSize&,QIcon::Mode,QIcon::State);

    return sipVH_QtGui_64(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

QSize sipQIconEngine::actualSize(const QSize& a0,QIcon::Mode a1,QIcon::State a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_actualSize);

    if (!sipMeth)
        return QIconEngine::actualSize(a0,a1,a2);

    extern QSize sipVH_QtGui_65(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QSize&,QIcon::Mode,QIcon::State);

    return sipVH_QtGui_65(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

void sipQIconEngine::paint(QPainter*a0,const QRect& a1,QIcon::Mode a2,QIcon::State a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_QIconEngine,sipName_paint);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_66(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QRect&,QIcon::Mode,QIcon::State);

    sipVH_QtGui_66(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3);
}


PyDoc_STRVAR(doc_QIconEngine_paint, "QIconEngine.paint(QPainter, QRect, QIcon.Mode, QIcon.State)");

extern "C" {static PyObject *meth_QIconEngine_paint(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_paint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPainter* a0;
        const QRect* a1;
        QIcon::Mode a2;
        QIcon::State a3;
        QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9EE", &sipSelf, sipType_QIconEngine, &sipCpp, sipType_QPainter, &a0, sipType_QRect, &a1, sipType_QIcon_Mode, &a2, sipType_QIcon_State, &a3))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QIconEngine, sipName_paint);
                return NULL;
            }

            sipCpp->paint(a0,*a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_paint, doc_QIconEngine_paint);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_actualSize, "QIconEngine.actualSize(QSize, QIcon.Mode, QIcon.State) -> QSize");

extern "C" {static PyObject *meth_QIconEngine_actualSize(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_actualSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QSize* a0;
        QIcon::Mode a1;
        QIcon::State a2;
        QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9EE", &sipSelf, sipType_QIconEngine, &sipCpp, sipType_QSize, &a0, sipType_QIcon_Mode, &a1, sipType_QIcon_State, &a2))
        {
            QSize*sipRes;

            sipRes = new QSize((sipSelfWasArg ? sipCpp->QIconEngine::actualSize(*a0,a1,a2) : sipCpp->actualSize(*a0,a1,a2)));

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_actualSize, doc_QIconEngine_actualSize);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_pixmap, "QIconEngine.pixmap(QSize, QIcon.Mode, QIcon.State) -> QPixmap");

extern "C" {static PyObject *meth_QIconEngine_pixmap(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_pixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QSize* a0;
        QIcon::Mode a1;
        QIcon::State a2;
        QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9EE", &sipSelf, sipType_QIconEngine, &sipCpp, sipType_QSize, &a0, sipType_QIcon_Mode, &a1, sipType_QIcon_State, &a2))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap((sipSelfWasArg ? sipCpp->QIconEngine::pixmap(*a0,a1,a2) : sipCpp->pixmap(*a0,a1,a2)));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_pixmap, doc_QIconEngine_pixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_addPixmap, "QIconEngine.addPixmap(QPixmap, QIcon.Mode, QIcon.State)");

extern "C" {static PyObject *meth_QIconEngine_addPixmap(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_addPixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPixmap* a0;
        QIcon::Mode a1;
        QIcon::State a2;
        QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9EE", &sipSelf, sipType_QIconEngine, &sipCpp, sipType_QPixmap, &a0, sipType_QIcon_Mode, &a1, sipType_QIcon_State, &a2))
        {
            (sipSelfWasArg ? sipCpp->QIconEngine::addPixmap(*a0,a1,a2) : sipCpp->addPixmap(*a0,a1,a2));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_addPixmap, doc_QIconEngine_addPixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_addFile, "QIconEngine.addFile(str, QSize, QIcon.Mode, QIcon.State)");

extern "C" {static PyObject *meth_QIconEngine_addFile(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_addFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QString* a0;
        int a0State = 0;
        const QSize* a1;
        QIcon::Mode a2;
        QIcon::State a3;
        QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J9EE", &sipSelf, sipType_QIconEngine, &sipCpp, sipType_QString,&a0, &a0State, sipType_QSize, &a1, sipType_QIcon_Mode, &a2, sipType_QIcon_State, &a3))
        {
            (sipSelfWasArg ? sipCpp->QIconEngine::addFile(*a0,*a1,a2,a3) : sipCpp->addFile(*a0,*a1,a2,a3));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_addFile, doc_QIconEngine_addFile);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_key, "QIconEngine.key() -> str");

extern "C" {static PyObject *meth_QIconEngine_key(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_key(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIconEngine, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString((sipSelfWasArg ? sipCpp->QIconEngine::key() : sipCpp->key()));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_key, doc_QIconEngine_key);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_clone, "QIconEngine.clone() -> QIconEngine");

extern "C" {static PyObject *meth_QIconEngine_clone(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIconEngine, &sipCpp))
        {
            QIconEngine*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QIconEngine, sipName_clone);
                return NULL;
            }

            sipRes = sipCpp->clone();

            return sipConvertFromNewType(sipRes,sipType_QIconEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_clone, doc_QIconEngine_clone);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_read, "QIconEngine.read(QDataStream) -> bool");

extern "C" {static PyObject *meth_QIconEngine_read(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_read(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDataStream* a0;
        QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QIconEngine, &sipCpp, sipType_QDataStream, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QIconEngine::read(*a0) : sipCpp->read(*a0));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_read, doc_QIconEngine_read);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_write, "QIconEngine.write(QDataStream) -> bool");

extern "C" {static PyObject *meth_QIconEngine_write(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_write(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QDataStream* a0;
        const QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QIconEngine, &sipCpp, sipType_QDataStream, &a0))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QIconEngine::write(*a0) : sipCpp->write(*a0));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_write, doc_QIconEngine_write);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_availableSizes, "QIconEngine.availableSizes(QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off) -> list-of-QSize");

extern "C" {static PyObject *meth_QIconEngine_availableSizes(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_availableSizes(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QIcon::Mode a0 = QIcon::Normal;
        QIcon::State a1 = QIcon::Off;
        const QIconEngine *sipCpp;

        static const char *sipKwdList[] = {
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|EE", &sipSelf, sipType_QIconEngine, &sipCpp, sipType_QIcon_Mode, &a0, sipType_QIcon_State, &a1))
        {
            QList<QSize>*sipRes;

            sipRes = new QList<QSize>((sipSelfWasArg ? sipCpp->QIconEngine::availableSizes(a0,a1) : sipCpp->availableSizes(a0,a1)));

            return sipConvertFromNewType(sipRes,sipType_QList_0100QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_availableSizes, doc_QIconEngine_availableSizes);

    return NULL;
}


PyDoc_STRVAR(doc_QIconEngine_iconName, "QIconEngine.iconName() -> str");

extern "C" {static PyObject *meth_QIconEngine_iconName(PyObject *, PyObject *);}
static PyObject *meth_QIconEngine_iconName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QIconEngine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIconEngine, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString((sipSelfWasArg ? sipCpp->QIconEngine::iconName() : sipCpp->iconName()));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIconEngine, sipName_iconName, doc_QIconEngine_iconName);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QIconEngine(void *, const sipTypeDef *);}
static void *cast_QIconEngine(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QIconEngine)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QIconEngine(void *, int);}
static void release_QIconEngine(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQIconEngine *>(sipCppV);
    else
        delete reinterpret_cast<QIconEngine *>(sipCppV);
}


extern "C" {static void dealloc_QIconEngine(sipSimpleWrapper *);}
static void dealloc_QIconEngine(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQIconEngine *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QIconEngine(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QIconEngine(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QIconEngine(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQIconEngine *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQIconEngine();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QIconEngine* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QIconEngine, &a0))
        {
            sipCpp = new sipQIconEngine(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QIconEngine[] = {
    {SIP_MLNAME_CAST(sipName_actualSize), meth_QIconEngine_actualSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_actualSize)},
    {SIP_MLNAME_CAST(sipName_addFile), meth_QIconEngine_addFile, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_addFile)},
    {SIP_MLNAME_CAST(sipName_addPixmap), meth_QIconEngine_addPixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_addPixmap)},
    {SIP_MLNAME_CAST(sipName_availableSizes), (PyCFunction)meth_QIconEngine_availableSizes, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QIconEngine_availableSizes)},
    {SIP_MLNAME_CAST(sipName_clone), meth_QIconEngine_clone, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_clone)},
    {SIP_MLNAME_CAST(sipName_iconName), meth_QIconEngine_iconName, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_iconName)},
    {SIP_MLNAME_CAST(sipName_key), meth_QIconEngine_key, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_key)},
    {SIP_MLNAME_CAST(sipName_paint), meth_QIconEngine_paint, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_paint)},
    {SIP_MLNAME_CAST(sipName_pixmap), meth_QIconEngine_pixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_pixmap)},
    {SIP_MLNAME_CAST(sipName_read), meth_QIconEngine_read, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_read)},
    {SIP_MLNAME_CAST(sipName_write), meth_QIconEngine_write, METH_VARARGS, SIP_MLDOC_CAST(doc_QIconEngine_write)}
};

static sipEnumMemberDef enummembers_QIconEngine[] = {
    {sipName_AvailableSizesHook, static_cast<int>(QIconEngine::AvailableSizesHook), 63},
    {sipName_IconNameHook, static_cast<int>(QIconEngine::IconNameHook), 63},
};

PyDoc_STRVAR(doc_QIconEngine, "\1QIconEngine()\n"
    "QIconEngine(QIconEngine)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QIconEngine = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QIconEngine,
        {0}
    },
    {
        sipNameNr_QIconEngine,
        {0, 0, 1},
        11, methods_QIconEngine,
        2, enummembers_QIconEngine,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QIconEngine,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_QIconEngine,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QIconEngine,
    0,
    0,
    0,
    release_QIconEngine,
    cast_QIconEngine,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 144299 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 144303 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 144306 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qiconengine.sip"
#include <qiconengine.h>
#line 144309 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 144312 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 144315 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 144318 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 144321 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 144324 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 144327 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 144330 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 144333 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QIcon_pixmap, "QIcon.pixmap(QSize, QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off) -> QPixmap\n"
    "QIcon.pixmap(int, int, QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off) -> QPixmap\n"
    "QIcon.pixmap(int, QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off) -> QPixmap\n"
    "QIcon.pixmap(QWindow, QSize, QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off) -> QPixmap");

extern "C" {static PyObject *meth_QIcon_pixmap(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIcon_pixmap(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QIcon::Mode a1 = QIcon::Normal;
        QIcon::State a2 = QIcon::Off;
        const QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|EE", &sipSelf, sipType_QIcon, &sipCpp, sipType_QSize, &a0, sipType_QIcon_Mode, &a1, sipType_QIcon_State, &a2))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->pixmap(*a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    {
        int a0;
        int a1;
        QIcon::Mode a2 = QIcon::Normal;
        QIcon::State a3 = QIcon::Off;
        const QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|EE", &sipSelf, sipType_QIcon, &sipCpp, &a0, &a1, sipType_QIcon_Mode, &a2, sipType_QIcon_State, &a3))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->pixmap(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    {
        int a0;
        QIcon::Mode a1 = QIcon::Normal;
        QIcon::State a2 = QIcon::Off;
        const QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|EE", &sipSelf, sipType_QIcon, &sipCpp, &a0, sipType_QIcon_Mode, &a1, sipType_QIcon_State, &a2))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->pixmap(a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    {
        QWindow* a0;
        const QSize* a1;
        QIcon::Mode a2 = QIcon::Normal;
        QIcon::State a3 = QIcon::Off;
        const QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8J9|EE", &sipSelf, sipType_QIcon, &sipCpp, sipType_QWindow, &a0, sipType_QSize, &a1, sipType_QIcon_Mode, &a2, sipType_QIcon_State, &a3))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->pixmap(a0,*a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_pixmap, doc_QIcon_pixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_actualSize, "QIcon.actualSize(QSize, QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off) -> QSize\n"
    "QIcon.actualSize(QWindow, QSize, QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off) -> QSize");

extern "C" {static PyObject *meth_QIcon_actualSize(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIcon_actualSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QIcon::Mode a1 = QIcon::Normal;
        QIcon::State a2 = QIcon::Off;
        const QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|EE", &sipSelf, sipType_QIcon, &sipCpp, sipType_QSize, &a0, sipType_QIcon_Mode, &a1, sipType_QIcon_State, &a2))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->actualSize(*a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    {
        QWindow* a0;
        const QSize* a1;
        QIcon::Mode a2 = QIcon::Normal;
        QIcon::State a3 = QIcon::Off;
        const QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8J9|EE", &sipSelf, sipType_QIcon, &sipCpp, sipType_QWindow, &a0, sipType_QSize, &a1, sipType_QIcon_Mode, &a2, sipType_QIcon_State, &a3))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->actualSize(a0,*a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_actualSize, doc_QIcon_actualSize);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_availableSizes, "QIcon.availableSizes(QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off) -> list-of-QSize");

extern "C" {static PyObject *meth_QIcon_availableSizes(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIcon_availableSizes(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QIcon::Mode a0 = QIcon::Normal;
        QIcon::State a1 = QIcon::Off;
        const QIcon *sipCpp;

        static const char *sipKwdList[] = {
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|EE", &sipSelf, sipType_QIcon, &sipCpp, sipType_QIcon_Mode, &a0, sipType_QIcon_State, &a1))
        {
            QList<QSize>*sipRes;

            sipRes = new QList<QSize>(sipCpp->availableSizes(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QList_0100QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_availableSizes, doc_QIcon_availableSizes);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_paint, "QIcon.paint(QPainter, QRect, Qt.Alignment alignment=Qt.AlignCenter, QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off)\n"
    "QIcon.paint(QPainter, int, int, int, int, Qt.Alignment alignment=Qt.AlignCenter, QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off)");

extern "C" {static PyObject *meth_QIcon_paint(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIcon_paint(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QPainter* a0;
        const QRect* a1;
        Qt::Alignment a2def = Qt::AlignCenter;
        Qt::Alignment* a2 = &a2def;
        int a2State = 0;
        QIcon::Mode a3 = QIcon::Normal;
        QIcon::State a4 = QIcon::Off;
        const QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_alignment,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8J9|J1EE", &sipSelf, sipType_QIcon, &sipCpp, sipType_QPainter, &a0, sipType_QRect, &a1, sipType_Qt_Alignment, &a2, &a2State, sipType_QIcon_Mode, &a3, sipType_QIcon_State, &a4))
        {
            sipCpp->paint(a0,*a1,*a2,a3,a4);
            sipReleaseType(a2,sipType_Qt_Alignment,a2State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QPainter* a0;
        int a1;
        int a2;
        int a3;
        int a4;
        Qt::Alignment a5def = Qt::AlignCenter;
        Qt::Alignment* a5 = &a5def;
        int a5State = 0;
        QIcon::Mode a6 = QIcon::Normal;
        QIcon::State a7 = QIcon::Off;
        const QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_alignment,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8iiii|J1EE", &sipSelf, sipType_QIcon, &sipCpp, sipType_QPainter, &a0, &a1, &a2, &a3, &a4, sipType_Qt_Alignment, &a5, &a5State, sipType_QIcon_Mode, &a6, sipType_QIcon_State, &a7))
        {
            sipCpp->paint(a0,a1,a2,a3,a4,*a5,a6,a7);
            sipReleaseType(a5,sipType_Qt_Alignment,a5State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_paint, doc_QIcon_paint);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_isNull, "QIcon.isNull() -> bool");

extern "C" {static PyObject *meth_QIcon_isNull(PyObject *, PyObject *);}
static PyObject *meth_QIcon_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QIcon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIcon, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_isNull, doc_QIcon_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_isDetached, "QIcon.isDetached() -> bool");

extern "C" {static PyObject *meth_QIcon_isDetached(PyObject *, PyObject *);}
static PyObject *meth_QIcon_isDetached(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QIcon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIcon, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isDetached();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_isDetached, doc_QIcon_isDetached);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_addPixmap, "QIcon.addPixmap(QPixmap, QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off)");

extern "C" {static PyObject *meth_QIcon_addPixmap(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIcon_addPixmap(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap* a0;
        QIcon::Mode a1 = QIcon::Normal;
        QIcon::State a2 = QIcon::Off;
        QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|EE", &sipSelf, sipType_QIcon, &sipCpp, sipType_QPixmap, &a0, sipType_QIcon_Mode, &a1, sipType_QIcon_State, &a2))
        {
            sipCpp->addPixmap(*a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_addPixmap, doc_QIcon_addPixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_addFile, "QIcon.addFile(str, QSize size=QSize(), QIcon.Mode mode=QIcon.Normal, QIcon.State state=QIcon.Off)");

extern "C" {static PyObject *meth_QIcon_addFile(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIcon_addFile(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QSize& a1def = QSize();
        const QSize* a1 = &a1def;
        QIcon::Mode a2 = QIcon::Normal;
        QIcon::State a3 = QIcon::Off;
        QIcon *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_size,
            sipName_mode,
            sipName_state,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J9EE", &sipSelf, sipType_QIcon, &sipCpp, sipType_QString,&a0, &a0State, sipType_QSize, &a1, sipType_QIcon_Mode, &a2, sipType_QIcon_State, &a3))
        {
            sipCpp->addFile(*a0,*a1,a2,a3);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_addFile, doc_QIcon_addFile);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_cacheKey, "QIcon.cacheKey() -> int");

extern "C" {static PyObject *meth_QIcon_cacheKey(PyObject *, PyObject *);}
static PyObject *meth_QIcon_cacheKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QIcon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIcon, &sipCpp))
        {
            qint64 sipRes;

            sipRes = sipCpp->cacheKey();

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_cacheKey, doc_QIcon_cacheKey);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_fromTheme, "QIcon.fromTheme(str, QIcon fallback=QIcon()) -> QIcon");

extern "C" {static PyObject *meth_QIcon_fromTheme(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QIcon_fromTheme(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QIcon& a1def = QIcon();
        const QIcon* a1 = &a1def;

        static const char *sipKwdList[] = {
            NULL,
            sipName_fallback,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J1|J9", sipType_QString,&a0, &a0State, sipType_QIcon, &a1))
        {
            QIcon*sipRes;

            sipRes = new QIcon(QIcon::fromTheme(*a0,*a1));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_fromTheme, doc_QIcon_fromTheme);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_hasThemeIcon, "QIcon.hasThemeIcon(str) -> bool");

extern "C" {static PyObject *meth_QIcon_hasThemeIcon(PyObject *, PyObject *);}
static PyObject *meth_QIcon_hasThemeIcon(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            sipRes = QIcon::hasThemeIcon(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_hasThemeIcon, doc_QIcon_hasThemeIcon);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_themeSearchPaths, "QIcon.themeSearchPaths() -> list-of-str");

extern "C" {static PyObject *meth_QIcon_themeSearchPaths(PyObject *, PyObject *);}
static PyObject *meth_QIcon_themeSearchPaths(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QStringList*sipRes;

            sipRes = new QStringList(QIcon::themeSearchPaths());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_themeSearchPaths, doc_QIcon_themeSearchPaths);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_setThemeSearchPaths, "QIcon.setThemeSearchPaths(list-of-str)");

extern "C" {static PyObject *meth_QIcon_setThemeSearchPaths(PyObject *, PyObject *);}
static PyObject *meth_QIcon_setThemeSearchPaths(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStringList* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QStringList,&a0, &a0State))
        {
            QIcon::setThemeSearchPaths(*a0);
            sipReleaseType(const_cast<QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_setThemeSearchPaths, doc_QIcon_setThemeSearchPaths);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_themeName, "QIcon.themeName() -> str");

extern "C" {static PyObject *meth_QIcon_themeName(PyObject *, PyObject *);}
static PyObject *meth_QIcon_themeName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString*sipRes;

            sipRes = new QString(QIcon::themeName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_themeName, doc_QIcon_themeName);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_setThemeName, "QIcon.setThemeName(str)");

extern "C" {static PyObject *meth_QIcon_setThemeName(PyObject *, PyObject *);}
static PyObject *meth_QIcon_setThemeName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QIcon::setThemeName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_setThemeName, doc_QIcon_setThemeName);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_name, "QIcon.name() -> str");

extern "C" {static PyObject *meth_QIcon_name(PyObject *, PyObject *);}
static PyObject *meth_QIcon_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QIcon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QIcon, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->name());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_name, doc_QIcon_name);

    return NULL;
}


PyDoc_STRVAR(doc_QIcon_swap, "QIcon.swap(QIcon)");

extern "C" {static PyObject *meth_QIcon_swap(PyObject *, PyObject *);}
static PyObject *meth_QIcon_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QIcon* a0;
        QIcon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QIcon, &sipCpp, sipType_QIcon, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QIcon, sipName_swap, doc_QIcon_swap);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QIcon(void *, const sipTypeDef *);}
static void *cast_QIcon(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QIcon)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QIcon(void *, int);}
static void release_QIcon(void *sipCppV,int)
{
    delete reinterpret_cast<QIcon *>(sipCppV);
}


extern "C" {static void assign_QIcon(void *, SIP_SSIZE_T, const void *);}
static void assign_QIcon(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QIcon *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QIcon *>(sipSrc);
}


extern "C" {static void *array_QIcon(SIP_SSIZE_T);}
static void *array_QIcon(SIP_SSIZE_T sipNrElem)
{
    return new QIcon[sipNrElem];
}


extern "C" {static void *copy_QIcon(const void *, SIP_SSIZE_T);}
static void *copy_QIcon(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QIcon(reinterpret_cast<const QIcon *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QIcon(sipSimpleWrapper *);}
static void dealloc_QIcon(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QIcon(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QIcon(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QIcon(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QIcon *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QIcon();

            return sipCpp;
        }
    }

    {
        const QPixmap* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPixmap, &a0))
        {
            sipCpp = new QIcon(*a0);

            return sipCpp;
        }
    }

    {
        const QIcon* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QIcon, &a0))
        {
            sipCpp = new QIcon(*a0);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            sipCpp = new QIcon(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        QIconEngine* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J:", sipType_QIconEngine, &a0))
        {
            sipCpp = new QIcon(a0);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 55 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
        if (a0->canConvert<QIcon>())
            sipCpp = new QIcon(a0->value<QIcon>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 145122 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


static PyMethodDef methods_QIcon[] = {
    {SIP_MLNAME_CAST(sipName_actualSize), (PyCFunction)meth_QIcon_actualSize, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QIcon_actualSize)},
    {SIP_MLNAME_CAST(sipName_addFile), (PyCFunction)meth_QIcon_addFile, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QIcon_addFile)},
    {SIP_MLNAME_CAST(sipName_addPixmap), (PyCFunction)meth_QIcon_addPixmap, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QIcon_addPixmap)},
    {SIP_MLNAME_CAST(sipName_availableSizes), (PyCFunction)meth_QIcon_availableSizes, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QIcon_availableSizes)},
    {SIP_MLNAME_CAST(sipName_cacheKey), meth_QIcon_cacheKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_cacheKey)},
    {SIP_MLNAME_CAST(sipName_fromTheme), (PyCFunction)meth_QIcon_fromTheme, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QIcon_fromTheme)},
    {SIP_MLNAME_CAST(sipName_hasThemeIcon), meth_QIcon_hasThemeIcon, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_hasThemeIcon)},
    {SIP_MLNAME_CAST(sipName_isDetached), meth_QIcon_isDetached, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_isDetached)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QIcon_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_isNull)},
    {SIP_MLNAME_CAST(sipName_name), meth_QIcon_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_name)},
    {SIP_MLNAME_CAST(sipName_paint), (PyCFunction)meth_QIcon_paint, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QIcon_paint)},
    {SIP_MLNAME_CAST(sipName_pixmap), (PyCFunction)meth_QIcon_pixmap, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QIcon_pixmap)},
    {SIP_MLNAME_CAST(sipName_setThemeName), meth_QIcon_setThemeName, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_setThemeName)},
    {SIP_MLNAME_CAST(sipName_setThemeSearchPaths), meth_QIcon_setThemeSearchPaths, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_setThemeSearchPaths)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QIcon_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_swap)},
    {SIP_MLNAME_CAST(sipName_themeName), meth_QIcon_themeName, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_themeName)},
    {SIP_MLNAME_CAST(sipName_themeSearchPaths), meth_QIcon_themeSearchPaths, METH_VARARGS, SIP_MLDOC_CAST(doc_QIcon_themeSearchPaths)}
};

static sipEnumMemberDef enummembers_QIcon[] = {
    {sipName_Active, static_cast<int>(QIcon::Active), 58},
    {sipName_Disabled, static_cast<int>(QIcon::Disabled), 58},
    {sipName_Normal, static_cast<int>(QIcon::Normal), 58},
    {sipName_Off, static_cast<int>(QIcon::Off), 59},
    {sipName_On, static_cast<int>(QIcon::On), 59},
    {sipName_Selected, static_cast<int>(QIcon::Selected), 58},
};

PyDoc_STRVAR(doc_QIcon, "\1QIcon()\n"
    "QIcon(QPixmap)\n"
    "QIcon(QIcon)\n"
    "QIcon(str)\n"
    "QIcon(QIconEngine)\n"
    "QIcon(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QIcon = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QIcon,
        {0}
    },
    {
        sipNameNr_QIcon,
        {0, 0, 1},
        17, methods_QIcon,
        6, enummembers_QIcon,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QIcon,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    -1,
    0,
    0,
    init_type_QIcon,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QIcon,
    assign_QIcon,
    array_QIcon,
    copy_QIcon,
    release_QIcon,
    cast_QIcon,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qguiapplication.sip"
#include <qguiapplication.h>
#line 145238 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 145242 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 145245 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qscreen.sip"
#include <qscreen.h>
#line 145248 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 145251 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 145254 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 145257 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 145260 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qsessionmanager.sip"
#include <qsessionmanager.h>
#line 145263 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 145266 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 145269 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 145272 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qclipboard.sip"
#include <qclipboard.h>
#line 145275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 145278 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 145281 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 145284 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 145287 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 145290 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qabstractnativeeventfilter.sip"
#include <qabstractnativeeventfilter.h>
#line 145293 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qabstracteventdispatcher.sip"
#include <qabstracteventdispatcher.h>
#line 145296 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qtranslator.sip"
#include <qtranslator.h>
#line 145299 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 145302 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qeventloop.sip"
#include <qeventloop.h>
#line 145305 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qcoreapplication.sip"
#include <qcoreapplication.h>
#line 145308 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 145311 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 145314 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 145317 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 145320 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 145323 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 145326 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 145329 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 145332 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 145335 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 145338 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 145341 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 145344 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQGuiApplication : public QGuiApplication
{
public:
    sipQGuiApplication(int&,char**,int);
    virtual ~sipQGuiApplication();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    bool sipProtectVirt_event(bool,QEvent*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    bool notify(QObject*,QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQGuiApplication(const sipQGuiApplication &);
    sipQGuiApplication &operator = (const sipQGuiApplication &);

    char sipPyMethods[8];
};

sipQGuiApplication::sipQGuiApplication(int& a0,char**a1,int a2): QGuiApplication(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQGuiApplication::~sipQGuiApplication()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQGuiApplication::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QGuiApplication);
}

int sipQGuiApplication::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QGuiApplication::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QGuiApplication,_c,_id,_a);

    return _id;
}

void *sipQGuiApplication::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QGuiApplication, _clname, &sipCpp) ? sipCpp : QGuiApplication::qt_metacast(_clname));
}

void sipQGuiApplication::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QGuiApplication::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQGuiApplication::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QGuiApplication::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQGuiApplication::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QGuiApplication::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQGuiApplication::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QGuiApplication::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQGuiApplication::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QGuiApplication::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQGuiApplication::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QGuiApplication::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQGuiApplication::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QGuiApplication::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQGuiApplication::notify(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_notify);

    if (!sipMeth)
        return QGuiApplication::notify(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QObject* sipQGuiApplication::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQGuiApplication::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQGuiApplication::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQGuiApplication::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQGuiApplication::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQGuiApplication::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQGuiApplication::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQGuiApplication::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQGuiApplication::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

bool sipQGuiApplication::sipProtectVirt_event(bool sipSelfWasArg,QEvent*a0)
{
    return (sipSelfWasArg ? QGuiApplication::event(a0) : event(a0));
}


PyDoc_STRVAR(doc_QGuiApplication_sender, "QGuiApplication.sender() -> QObject");

extern "C" {static PyObject *meth_QGuiApplication_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QGuiApplication, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 145654 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_sender, doc_QGuiApplication_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_receivers, "QGuiApplication.receivers(signal) -> int");

extern "C" {static PyObject *meth_QGuiApplication_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QGuiApplication, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 145713 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_receivers, doc_QGuiApplication_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_timerEvent, "QGuiApplication.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QGuiApplication_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QGuiApplication, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_timerEvent, doc_QGuiApplication_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_childEvent, "QGuiApplication.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QGuiApplication_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QGuiApplication, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_childEvent, doc_QGuiApplication_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_customEvent, "QGuiApplication.customEvent(QEvent)");

extern "C" {static PyObject *meth_QGuiApplication_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QGuiApplication, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_customEvent, doc_QGuiApplication_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_connectNotify, "QGuiApplication.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QGuiApplication_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QGuiApplication, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_connectNotify, doc_QGuiApplication_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_disconnectNotify, "QGuiApplication.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QGuiApplication_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QGuiApplication, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_disconnectNotify, doc_QGuiApplication_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_senderSignalIndex, "QGuiApplication.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QGuiApplication_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QGuiApplication, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_senderSignalIndex, doc_QGuiApplication_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_isSignalConnected, "QGuiApplication.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QGuiApplication_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QGuiApplication, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_isSignalConnected, doc_QGuiApplication_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_allWindows, "QGuiApplication.allWindows() -> list-of-QWindow");

extern "C" {static PyObject *meth_QGuiApplication_allWindows(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_allWindows(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QWindowList*sipRes;

            sipRes = new QWindowList(QGuiApplication::allWindows());

            return sipConvertFromNewType(sipRes,sipType_QList_0101QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_allWindows, doc_QGuiApplication_allWindows);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_topLevelWindows, "QGuiApplication.topLevelWindows() -> list-of-QWindow");

extern "C" {static PyObject *meth_QGuiApplication_topLevelWindows(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_topLevelWindows(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QWindowList*sipRes;

            sipRes = new QWindowList(QGuiApplication::topLevelWindows());

            return sipConvertFromNewType(sipRes,sipType_QList_0101QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_topLevelWindows, doc_QGuiApplication_topLevelWindows);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_topLevelAt, "QGuiApplication.topLevelAt(QPoint) -> QWindow");

extern "C" {static PyObject *meth_QGuiApplication_topLevelAt(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_topLevelAt(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QPoint, &a0))
        {
            QWindow*sipRes;

            sipRes = QGuiApplication::topLevelAt(*a0);

            return sipConvertFromType(sipRes,sipType_QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_topLevelAt, doc_QGuiApplication_topLevelAt);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_platformName, "QGuiApplication.platformName() -> str");

extern "C" {static PyObject *meth_QGuiApplication_platformName(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_platformName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString*sipRes;

            sipRes = new QString(QGuiApplication::platformName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_platformName, doc_QGuiApplication_platformName);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_focusWindow, "QGuiApplication.focusWindow() -> QWindow");

extern "C" {static PyObject *meth_QGuiApplication_focusWindow(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_focusWindow(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QWindow*sipRes;

            sipRes = QGuiApplication::focusWindow();

            return sipConvertFromType(sipRes,sipType_QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_focusWindow, doc_QGuiApplication_focusWindow);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_focusObject, "QGuiApplication.focusObject() -> QObject");

extern "C" {static PyObject *meth_QGuiApplication_focusObject(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_focusObject(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QObject*sipRes;

            sipRes = QGuiApplication::focusObject();

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_focusObject, doc_QGuiApplication_focusObject);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_primaryScreen, "QGuiApplication.primaryScreen() -> QScreen");

extern "C" {static PyObject *meth_QGuiApplication_primaryScreen(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_primaryScreen(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QScreen*sipRes;

            sipRes = QGuiApplication::primaryScreen();

            return sipConvertFromType(sipRes,sipType_QScreen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_primaryScreen, doc_QGuiApplication_primaryScreen);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_screens, "QGuiApplication.screens() -> list-of-QScreen");

extern "C" {static PyObject *meth_QGuiApplication_screens(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_screens(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<QScreen*>*sipRes;

            sipRes = new QList<QScreen*>(QGuiApplication::screens());

            return sipConvertFromNewType(sipRes,sipType_QList_0101QScreen,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_screens, doc_QGuiApplication_screens);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_overrideCursor, "QGuiApplication.overrideCursor() -> QCursor");

extern "C" {static PyObject *meth_QGuiApplication_overrideCursor(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_overrideCursor(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QCursor*sipRes;

            sipRes = QGuiApplication::overrideCursor();

            return sipConvertFromType(sipRes,sipType_QCursor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_overrideCursor, doc_QGuiApplication_overrideCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setOverrideCursor, "QGuiApplication.setOverrideCursor(QCursor)");

extern "C" {static PyObject *meth_QGuiApplication_setOverrideCursor(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_setOverrideCursor(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QCursor* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QCursor, &a0, &a0State))
        {
            QGuiApplication::setOverrideCursor(*a0);
            sipReleaseType(const_cast<QCursor *>(a0),sipType_QCursor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_setOverrideCursor, doc_QGuiApplication_setOverrideCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_changeOverrideCursor, "QGuiApplication.changeOverrideCursor(QCursor)");

extern "C" {static PyObject *meth_QGuiApplication_changeOverrideCursor(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_changeOverrideCursor(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QCursor* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QCursor, &a0, &a0State))
        {
            QGuiApplication::changeOverrideCursor(*a0);
            sipReleaseType(const_cast<QCursor *>(a0),sipType_QCursor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_changeOverrideCursor, doc_QGuiApplication_changeOverrideCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_restoreOverrideCursor, "QGuiApplication.restoreOverrideCursor()");

extern "C" {static PyObject *meth_QGuiApplication_restoreOverrideCursor(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_restoreOverrideCursor(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QGuiApplication::restoreOverrideCursor();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_restoreOverrideCursor, doc_QGuiApplication_restoreOverrideCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_font, "QGuiApplication.font() -> QFont");

extern "C" {static PyObject *meth_QGuiApplication_font(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_font(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QFont*sipRes;

            sipRes = new QFont(QGuiApplication::font());

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_font, doc_QGuiApplication_font);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setFont, "QGuiApplication.setFont(QFont)");

extern "C" {static PyObject *meth_QGuiApplication_setFont(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_setFont(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QFont, &a0))
        {
            QGuiApplication::setFont(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_setFont, doc_QGuiApplication_setFont);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_clipboard, "QGuiApplication.clipboard() -> QClipboard");

extern "C" {static PyObject *meth_QGuiApplication_clipboard(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_clipboard(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QClipboard*sipRes;

            sipRes = QGuiApplication::clipboard();

            return sipConvertFromType(sipRes,sipType_QClipboard,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_clipboard, doc_QGuiApplication_clipboard);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_palette, "QGuiApplication.palette() -> QPalette");

extern "C" {static PyObject *meth_QGuiApplication_palette(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_palette(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QPalette*sipRes;

            sipRes = new QPalette(QGuiApplication::palette());

            return sipConvertFromNewType(sipRes,sipType_QPalette,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_palette, doc_QGuiApplication_palette);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setPalette, "QGuiApplication.setPalette(QPalette)");

extern "C" {static PyObject *meth_QGuiApplication_setPalette(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_setPalette(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPalette* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QPalette, &a0))
        {
            QGuiApplication::setPalette(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_setPalette, doc_QGuiApplication_setPalette);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_keyboardModifiers, "QGuiApplication.keyboardModifiers() -> Qt.KeyboardModifiers");

extern "C" {static PyObject *meth_QGuiApplication_keyboardModifiers(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_keyboardModifiers(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Qt::KeyboardModifiers*sipRes;

            sipRes = new Qt::KeyboardModifiers(QGuiApplication::keyboardModifiers());

            return sipConvertFromNewType(sipRes,sipType_Qt_KeyboardModifiers,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_keyboardModifiers, doc_QGuiApplication_keyboardModifiers);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_queryKeyboardModifiers, "QGuiApplication.queryKeyboardModifiers() -> Qt.KeyboardModifiers");

extern "C" {static PyObject *meth_QGuiApplication_queryKeyboardModifiers(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_queryKeyboardModifiers(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Qt::KeyboardModifiers*sipRes;

            sipRes = new Qt::KeyboardModifiers(QGuiApplication::queryKeyboardModifiers());

            return sipConvertFromNewType(sipRes,sipType_Qt_KeyboardModifiers,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_queryKeyboardModifiers, doc_QGuiApplication_queryKeyboardModifiers);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_mouseButtons, "QGuiApplication.mouseButtons() -> Qt.MouseButtons");

extern "C" {static PyObject *meth_QGuiApplication_mouseButtons(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_mouseButtons(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Qt::MouseButtons*sipRes;

            sipRes = new Qt::MouseButtons(QGuiApplication::mouseButtons());

            return sipConvertFromNewType(sipRes,sipType_Qt_MouseButtons,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_mouseButtons, doc_QGuiApplication_mouseButtons);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setLayoutDirection, "QGuiApplication.setLayoutDirection(Qt.LayoutDirection)");

extern "C" {static PyObject *meth_QGuiApplication_setLayoutDirection(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_setLayoutDirection(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::LayoutDirection a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_Qt_LayoutDirection, &a0))
        {
            QGuiApplication::setLayoutDirection(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_setLayoutDirection, doc_QGuiApplication_setLayoutDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_layoutDirection, "QGuiApplication.layoutDirection() -> Qt.LayoutDirection");

extern "C" {static PyObject *meth_QGuiApplication_layoutDirection(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_layoutDirection(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Qt::LayoutDirection sipRes;

            sipRes = QGuiApplication::layoutDirection();

            return sipConvertFromEnum(sipRes,sipType_Qt_LayoutDirection);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_layoutDirection, doc_QGuiApplication_layoutDirection);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_isRightToLeft, "QGuiApplication.isRightToLeft() -> bool");

extern "C" {static PyObject *meth_QGuiApplication_isRightToLeft(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_isRightToLeft(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            sipRes = QGuiApplication::isRightToLeft();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_isRightToLeft, doc_QGuiApplication_isRightToLeft);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_isLeftToRight, "QGuiApplication.isLeftToRight() -> bool");

extern "C" {static PyObject *meth_QGuiApplication_isLeftToRight(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_isLeftToRight(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            sipRes = QGuiApplication::isLeftToRight();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_isLeftToRight, doc_QGuiApplication_isLeftToRight);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setDesktopSettingsAware, "QGuiApplication.setDesktopSettingsAware(bool)");

extern "C" {static PyObject *meth_QGuiApplication_setDesktopSettingsAware(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_setDesktopSettingsAware(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "b", &a0))
        {
            QGuiApplication::setDesktopSettingsAware(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_setDesktopSettingsAware, doc_QGuiApplication_setDesktopSettingsAware);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_desktopSettingsAware, "QGuiApplication.desktopSettingsAware() -> bool");

extern "C" {static PyObject *meth_QGuiApplication_desktopSettingsAware(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_desktopSettingsAware(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            sipRes = QGuiApplication::desktopSettingsAware();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_desktopSettingsAware, doc_QGuiApplication_desktopSettingsAware);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setQuitOnLastWindowClosed, "QGuiApplication.setQuitOnLastWindowClosed(bool)");

extern "C" {static PyObject *meth_QGuiApplication_setQuitOnLastWindowClosed(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_setQuitOnLastWindowClosed(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "b", &a0))
        {
            QGuiApplication::setQuitOnLastWindowClosed(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_setQuitOnLastWindowClosed, doc_QGuiApplication_setQuitOnLastWindowClosed);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_quitOnLastWindowClosed, "QGuiApplication.quitOnLastWindowClosed() -> bool");

extern "C" {static PyObject *meth_QGuiApplication_quitOnLastWindowClosed(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_quitOnLastWindowClosed(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            sipRes = QGuiApplication::quitOnLastWindowClosed();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_quitOnLastWindowClosed, doc_QGuiApplication_quitOnLastWindowClosed);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_exec_, "QGuiApplication.exec_() -> int");

extern "C" {static PyObject *meth_QGuiApplication_exec_(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_exec_(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            int sipRes;

            sipCallHook("__pyQtPreEventLoopHook__");

            Py_BEGIN_ALLOW_THREADS
            sipRes = QGuiApplication::exec();
            Py_END_ALLOW_THREADS


            sipCallHook("__pyQtPostEventLoopHook__");
            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_exec_, doc_QGuiApplication_exec_);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_exec, "QGuiApplication.exec() -> int");

extern "C" {static PyObject *meth_QGuiApplication_exec(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_exec(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            int sipRes;

            sipCallHook("__pyQtPreEventLoopHook__");

            Py_BEGIN_ALLOW_THREADS
            sipRes = QGuiApplication::exec();
            Py_END_ALLOW_THREADS


            sipCallHook("__pyQtPostEventLoopHook__");
            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_exec, doc_QGuiApplication_exec);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_notify, "QGuiApplication.notify(QObject, QEvent) -> bool");

extern "C" {static PyObject *meth_QGuiApplication_notify(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_notify(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QObject* a0;
        QEvent* a1;
        QGuiApplication *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8", &sipSelf, sipType_QGuiApplication, &sipCpp, sipType_QObject, &a0, sipType_QEvent, &a1))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QGuiApplication::notify(a0,a1) : sipCpp->notify(a0,a1));

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_notify, doc_QGuiApplication_notify);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setApplicationDisplayName, "QGuiApplication.setApplicationDisplayName(str)");

extern "C" {static PyObject *meth_QGuiApplication_setApplicationDisplayName(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_setApplicationDisplayName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QGuiApplication::setApplicationDisplayName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_setApplicationDisplayName, doc_QGuiApplication_setApplicationDisplayName);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_applicationDisplayName, "QGuiApplication.applicationDisplayName() -> str");

extern "C" {static PyObject *meth_QGuiApplication_applicationDisplayName(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_applicationDisplayName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QString*sipRes;

            sipRes = new QString(QGuiApplication::applicationDisplayName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_applicationDisplayName, doc_QGuiApplication_applicationDisplayName);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_modalWindow, "QGuiApplication.modalWindow() -> QWindow");

extern "C" {static PyObject *meth_QGuiApplication_modalWindow(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_modalWindow(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QWindow*sipRes;

            sipRes = QGuiApplication::modalWindow();

            return sipConvertFromType(sipRes,sipType_QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_modalWindow, doc_QGuiApplication_modalWindow);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_devicePixelRatio, "QGuiApplication.devicePixelRatio() -> float");

extern "C" {static PyObject *meth_QGuiApplication_devicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_devicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGuiApplication *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGuiApplication, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->devicePixelRatio();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_devicePixelRatio, doc_QGuiApplication_devicePixelRatio);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_isSessionRestored, "QGuiApplication.isSessionRestored() -> bool");

extern "C" {static PyObject *meth_QGuiApplication_isSessionRestored(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_isSessionRestored(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGuiApplication *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGuiApplication, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isSessionRestored();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_isSessionRestored, doc_QGuiApplication_isSessionRestored);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_sessionId, "QGuiApplication.sessionId() -> str");

extern "C" {static PyObject *meth_QGuiApplication_sessionId(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_sessionId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGuiApplication *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGuiApplication, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->sessionId());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_sessionId, doc_QGuiApplication_sessionId);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_sessionKey, "QGuiApplication.sessionKey() -> str");

extern "C" {static PyObject *meth_QGuiApplication_sessionKey(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_sessionKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGuiApplication *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGuiApplication, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->sessionKey());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_sessionKey, doc_QGuiApplication_sessionKey);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_isSavingSession, "QGuiApplication.isSavingSession() -> bool");

extern "C" {static PyObject *meth_QGuiApplication_isSavingSession(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_isSavingSession(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGuiApplication *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGuiApplication, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isSavingSession();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_isSavingSession, doc_QGuiApplication_isSavingSession);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_applicationState, "QGuiApplication.applicationState() -> Qt.ApplicationState");

extern "C" {static PyObject *meth_QGuiApplication_applicationState(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_applicationState(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            Qt::ApplicationState sipRes;

            sipRes = QGuiApplication::applicationState();

            return sipConvertFromEnum(sipRes,sipType_Qt_ApplicationState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_applicationState, doc_QGuiApplication_applicationState);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_sync, "QGuiApplication.sync()");

extern "C" {static PyObject *meth_QGuiApplication_sync(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_sync(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QGuiApplication::sync();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_sync, doc_QGuiApplication_sync);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_setWindowIcon, "QGuiApplication.setWindowIcon(QIcon)");

extern "C" {static PyObject *meth_QGuiApplication_setWindowIcon(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_setWindowIcon(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QIcon* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QIcon, &a0))
        {
            QGuiApplication::setWindowIcon(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_setWindowIcon, doc_QGuiApplication_setWindowIcon);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_windowIcon, "QGuiApplication.windowIcon() -> QIcon");

extern "C" {static PyObject *meth_QGuiApplication_windowIcon(PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_windowIcon(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QIcon*sipRes;

            sipRes = new QIcon(QGuiApplication::windowIcon());

            return sipConvertFromNewType(sipRes,sipType_QIcon,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_windowIcon, doc_QGuiApplication_windowIcon);

    return NULL;
}


PyDoc_STRVAR(doc_QGuiApplication_event, "QGuiApplication.event(QEvent) -> bool");

extern "C" {static PyObject *meth_QGuiApplication_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGuiApplication_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQGuiApplication *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QGuiApplication, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGuiApplication, sipName_event, doc_QGuiApplication_event);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QGuiApplication(void *, const sipTypeDef *);}
static void *cast_QGuiApplication(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QGuiApplication)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QCoreApplication)->ctd_cast((QCoreApplication *)(QGuiApplication *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QGuiApplication(void *, int);}
static void release_QGuiApplication(void *sipCppV,int)
{
    QGuiApplication *sipCpp = reinterpret_cast<QGuiApplication *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QGuiApplication(sipSimpleWrapper *);}
static void dealloc_QGuiApplication(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQGuiApplication *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QGuiApplication(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QGuiApplication(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QGuiApplication(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQGuiApplication *sipCpp = 0;

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "T", &PyList_Type, &a0))
        {
            int sipIsErr = 0;

#line 151 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qguiapplication.sip"
        // The Python interface is a list of argument strings that is modified.
        
        int argc;
        char **argv;
        
        // Convert the list.
        if ((argv = pyqt5_qtgui_from_argv_list(a0, argc)) == NULL)
            sipIsErr = 1;
        else
        {
            // Create it now the arguments are right.
            static int nargc;
            nargc = argc;
        
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipQGuiApplication(nargc, argv, QCoreApplication::ApplicationFlags);
            Py_END_ALLOW_THREADS
        
            // Now modify the original list.
            pyqt5_qtgui_update_argv_list(a0, argc, argv);
        }
#line 147151 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
            {
                if (sipUnused)
                {
                    Py_XDECREF(*sipUnused);
                }

                sipAddException(sipErrorFail, sipParseErr);
                return NULL;
            }

            sipCpp->sipPySelf = sipSelf;

            sipCallHook("__pyQtQAppHook__");

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QGuiApplication[] = {{29, 0, 1}};


static PyMethodDef methods_QGuiApplication[] = {
    {SIP_MLNAME_CAST(sipName_allWindows), meth_QGuiApplication_allWindows, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_allWindows)},
    {SIP_MLNAME_CAST(sipName_applicationDisplayName), meth_QGuiApplication_applicationDisplayName, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_applicationDisplayName)},
    {SIP_MLNAME_CAST(sipName_applicationState), meth_QGuiApplication_applicationState, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_applicationState)},
    {SIP_MLNAME_CAST(sipName_changeOverrideCursor), meth_QGuiApplication_changeOverrideCursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_changeOverrideCursor)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QGuiApplication_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_clipboard), meth_QGuiApplication_clipboard, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_clipboard)},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QGuiApplication_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QGuiApplication_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_desktopSettingsAware), meth_QGuiApplication_desktopSettingsAware, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_desktopSettingsAware)},
    {SIP_MLNAME_CAST(sipName_devicePixelRatio), meth_QGuiApplication_devicePixelRatio, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_devicePixelRatio)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QGuiApplication_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_QGuiApplication_event, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QGuiApplication_event)},
    {SIP_MLNAME_CAST(sipName_exec), meth_QGuiApplication_exec, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_exec)},
    {SIP_MLNAME_CAST(sipName_exec_), meth_QGuiApplication_exec_, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_exec_)},
    {SIP_MLNAME_CAST(sipName_focusObject), meth_QGuiApplication_focusObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_focusObject)},
    {SIP_MLNAME_CAST(sipName_focusWindow), meth_QGuiApplication_focusWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_focusWindow)},
    {SIP_MLNAME_CAST(sipName_font), meth_QGuiApplication_font, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_font)},
    {SIP_MLNAME_CAST(sipName_isLeftToRight), meth_QGuiApplication_isLeftToRight, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_isLeftToRight)},
    {SIP_MLNAME_CAST(sipName_isRightToLeft), meth_QGuiApplication_isRightToLeft, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_isRightToLeft)},
    {SIP_MLNAME_CAST(sipName_isSavingSession), meth_QGuiApplication_isSavingSession, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_isSavingSession)},
    {SIP_MLNAME_CAST(sipName_isSessionRestored), meth_QGuiApplication_isSessionRestored, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_isSessionRestored)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QGuiApplication_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_keyboardModifiers), meth_QGuiApplication_keyboardModifiers, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_keyboardModifiers)},
    {SIP_MLNAME_CAST(sipName_layoutDirection), meth_QGuiApplication_layoutDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_layoutDirection)},
    {SIP_MLNAME_CAST(sipName_modalWindow), meth_QGuiApplication_modalWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_modalWindow)},
    {SIP_MLNAME_CAST(sipName_mouseButtons), meth_QGuiApplication_mouseButtons, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_mouseButtons)},
    {SIP_MLNAME_CAST(sipName_notify), meth_QGuiApplication_notify, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_notify)},
    {SIP_MLNAME_CAST(sipName_overrideCursor), meth_QGuiApplication_overrideCursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_overrideCursor)},
    {SIP_MLNAME_CAST(sipName_palette), meth_QGuiApplication_palette, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_palette)},
    {SIP_MLNAME_CAST(sipName_platformName), meth_QGuiApplication_platformName, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_platformName)},
    {SIP_MLNAME_CAST(sipName_primaryScreen), meth_QGuiApplication_primaryScreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_primaryScreen)},
    {SIP_MLNAME_CAST(sipName_queryKeyboardModifiers), meth_QGuiApplication_queryKeyboardModifiers, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_queryKeyboardModifiers)},
    {SIP_MLNAME_CAST(sipName_quitOnLastWindowClosed), meth_QGuiApplication_quitOnLastWindowClosed, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_quitOnLastWindowClosed)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QGuiApplication_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_restoreOverrideCursor), meth_QGuiApplication_restoreOverrideCursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_restoreOverrideCursor)},
    {SIP_MLNAME_CAST(sipName_screens), meth_QGuiApplication_screens, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_screens)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QGuiApplication_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QGuiApplication_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sessionId), meth_QGuiApplication_sessionId, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_sessionId)},
    {SIP_MLNAME_CAST(sipName_sessionKey), meth_QGuiApplication_sessionKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_sessionKey)},
    {SIP_MLNAME_CAST(sipName_setApplicationDisplayName), meth_QGuiApplication_setApplicationDisplayName, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setApplicationDisplayName)},
    {SIP_MLNAME_CAST(sipName_setDesktopSettingsAware), meth_QGuiApplication_setDesktopSettingsAware, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setDesktopSettingsAware)},
    {SIP_MLNAME_CAST(sipName_setFont), meth_QGuiApplication_setFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setFont)},
    {SIP_MLNAME_CAST(sipName_setLayoutDirection), meth_QGuiApplication_setLayoutDirection, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setLayoutDirection)},
    {SIP_MLNAME_CAST(sipName_setOverrideCursor), meth_QGuiApplication_setOverrideCursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setOverrideCursor)},
    {SIP_MLNAME_CAST(sipName_setPalette), meth_QGuiApplication_setPalette, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setPalette)},
    {SIP_MLNAME_CAST(sipName_setQuitOnLastWindowClosed), meth_QGuiApplication_setQuitOnLastWindowClosed, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setQuitOnLastWindowClosed)},
    {SIP_MLNAME_CAST(sipName_setWindowIcon), meth_QGuiApplication_setWindowIcon, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_setWindowIcon)},
    {SIP_MLNAME_CAST(sipName_sync), meth_QGuiApplication_sync, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_sync)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QGuiApplication_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_topLevelAt), meth_QGuiApplication_topLevelAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_topLevelAt)},
    {SIP_MLNAME_CAST(sipName_topLevelWindows), meth_QGuiApplication_topLevelWindows, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_topLevelWindows)},
    {SIP_MLNAME_CAST(sipName_windowIcon), meth_QGuiApplication_windowIcon, METH_VARARGS, SIP_MLDOC_CAST(doc_QGuiApplication_windowIcon)}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QGuiApplication[] = {
    {"paletteChanged(QPalette)", "\1QGuiApplication.paletteChanged[QPalette]", 0, 0},
    {"layoutDirectionChanged(Qt::LayoutDirection)", "\1QGuiApplication.layoutDirectionChanged[Qt.LayoutDirection]", 0, 0},
    {"screenRemoved(QScreen*)", "\1QGuiApplication.screenRemoved[QScreen]", 0, 0},
    {"applicationStateChanged(Qt::ApplicationState)", "\1QGuiApplication.applicationStateChanged[Qt.ApplicationState]", 0, 0},
    {"focusWindowChanged(QWindow*)", "\1QGuiApplication.focusWindowChanged[QWindow]", 0, 0},
    {"saveStateRequest(QSessionManager&)", "\1QGuiApplication.saveStateRequest[QSessionManager]", 0, 0},
    {"commitDataRequest(QSessionManager&)", "\1QGuiApplication.commitDataRequest[QSessionManager]", 0, 0},
    {"focusObjectChanged(QObject*)", "\1QGuiApplication.focusObjectChanged[QObject]", 0, 0},
    {"lastWindowClosed()", "\1QGuiApplication.lastWindowClosed", 0, 0},
    {"screenAdded(QScreen*)", "\1QGuiApplication.screenAdded[QScreen]", 0, 0},
    {"fontDatabaseChanged()", "\1QGuiApplication.fontDatabaseChanged", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QGuiApplication, "\1QGuiApplication(list-of-str)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QGuiApplication = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QGuiApplication,
        {0}
    },
    {
        sipNameNr_QGuiApplication,
        {0, 0, 1},
        53, methods_QGuiApplication,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QGuiApplication,
    -1,
    -1,
    supers_QGuiApplication,
    0,
    init_type_QGuiApplication,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QGuiApplication,
    0,
    0,
    0,
    release_QGuiApplication,
    cast_QGuiApplication,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QGuiApplication::staticMetaObject,
    0,
    signals_QGuiApplication,
    0
};

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 147313 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 147317 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QGlyphRun_GlyphRunFlags___bool__(PyObject *);}
static int slot_QGlyphRun_GlyphRunFlags___bool__(PyObject *sipSelf)
{
    QGlyphRun::GlyphRunFlags *sipCpp = reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun_GlyphRunFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QGlyphRun::GlyphRunFlags::Int() != 0);
#line 147335 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QGlyphRun::GlyphRunFlags *sipCpp = reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun_GlyphRunFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QGlyphRun::GlyphRunFlags::Int() != a0->operator QGlyphRun::GlyphRunFlags::Int());
#line 147365 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QGlyphRun::GlyphRunFlags *>(a0),sipType_QGlyphRun_GlyphRunFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QGlyphRun_GlyphRunFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QGlyphRun::GlyphRunFlags *sipCpp = reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun_GlyphRunFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QGlyphRun::GlyphRunFlags::Int() == a0->operator QGlyphRun::GlyphRunFlags::Int());
#line 147401 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QGlyphRun::GlyphRunFlags *>(a0),sipType_QGlyphRun_GlyphRunFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QGlyphRun_GlyphRunFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___invert__(PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___invert__(PyObject *sipSelf)
{
    QGlyphRun::GlyphRunFlags *sipCpp = reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun_GlyphRunFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QGlyphRun::GlyphRunFlags*sipRes;

            sipRes = new QGlyphRun::GlyphRunFlags(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QGlyphRun_GlyphRunFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State, &a1))
        {
            QGlyphRun::GlyphRunFlags*sipRes;

            sipRes = new QGlyphRun::GlyphRunFlags((*a0 & a1));
            sipReleaseType(a0,sipType_QGlyphRun_GlyphRunFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QGlyphRun_GlyphRunFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;
        QGlyphRun::GlyphRunFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State, sipType_QGlyphRun_GlyphRunFlags, &a1, &a1State))
        {
            QGlyphRun::GlyphRunFlags*sipRes;

            sipRes = new QGlyphRun::GlyphRunFlags((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QGlyphRun_GlyphRunFlags,a0State);
            sipReleaseType(a1,sipType_QGlyphRun_GlyphRunFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QGlyphRun_GlyphRunFlags,NULL);
        }
    }

    {
        QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State, &a1))
        {
            QGlyphRun::GlyphRunFlags*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QGlyphRun::GlyphRunFlags(*a0 ^ a1);
#line 147504 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QGlyphRun_GlyphRunFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QGlyphRun_GlyphRunFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;
        QGlyphRun::GlyphRunFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State, sipType_QGlyphRun_GlyphRunFlags, &a1, &a1State))
        {
            QGlyphRun::GlyphRunFlags*sipRes;

            sipRes = new QGlyphRun::GlyphRunFlags((*a0 | *a1));
            sipReleaseType(a0,sipType_QGlyphRun_GlyphRunFlags,a0State);
            sipReleaseType(a1,sipType_QGlyphRun_GlyphRunFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QGlyphRun_GlyphRunFlags,NULL);
        }
    }

    {
        QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State, &a1))
        {
            QGlyphRun::GlyphRunFlags*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QGlyphRun::GlyphRunFlags(*a0 | a1);
#line 147554 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QGlyphRun_GlyphRunFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QGlyphRun_GlyphRunFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___int__(PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___int__(PyObject *sipSelf)
{
    QGlyphRun::GlyphRunFlags *sipCpp = reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun_GlyphRunFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QGlyphRun_GlyphRunFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QGlyphRun::GlyphRunFlags *sipCpp = reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun_GlyphRunFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State))
        {
            sipCpp->QGlyphRun::GlyphRunFlags::operator^=(*a0);
            sipReleaseType(a0,sipType_QGlyphRun_GlyphRunFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QGlyphRun_GlyphRunFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QGlyphRun::GlyphRunFlags *sipCpp = reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun_GlyphRunFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State))
        {
            sipCpp->QGlyphRun::GlyphRunFlags::operator|=(*a0);
            sipReleaseType(a0,sipType_QGlyphRun_GlyphRunFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QGlyphRun_GlyphRunFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun_GlyphRunFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QGlyphRun_GlyphRunFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QGlyphRun::GlyphRunFlags *sipCpp = reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun_GlyphRunFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QGlyphRun::GlyphRunFlags::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QGlyphRun_GlyphRunFlags(void *, const sipTypeDef *);}
static void *cast_QGlyphRun_GlyphRunFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QGlyphRun_GlyphRunFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QGlyphRun_GlyphRunFlags(void *, int);}
static void release_QGlyphRun_GlyphRunFlags(void *sipCppV,int)
{
    delete reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipCppV);
}


extern "C" {static void assign_QGlyphRun_GlyphRunFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QGlyphRun_GlyphRunFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QGlyphRun::GlyphRunFlags *>(sipSrc);
}


extern "C" {static void *array_QGlyphRun_GlyphRunFlags(SIP_SSIZE_T);}
static void *array_QGlyphRun_GlyphRunFlags(SIP_SSIZE_T sipNrElem)
{
    return new QGlyphRun::GlyphRunFlags[sipNrElem];
}


extern "C" {static void *copy_QGlyphRun_GlyphRunFlags(const void *, SIP_SSIZE_T);}
static void *copy_QGlyphRun_GlyphRunFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QGlyphRun::GlyphRunFlags(reinterpret_cast<const QGlyphRun::GlyphRunFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QGlyphRun_GlyphRunFlags(sipSimpleWrapper *);}
static void dealloc_QGlyphRun_GlyphRunFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QGlyphRun_GlyphRunFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QGlyphRun_GlyphRunFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QGlyphRun_GlyphRunFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QGlyphRun::GlyphRunFlags *sipCpp = 0;

    {
        const QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State))
        {
            sipCpp = new QGlyphRun::GlyphRunFlags(*a0);
            sipReleaseType(const_cast<QGlyphRun::GlyphRunFlags *>(a0),sipType_QGlyphRun_GlyphRunFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QGlyphRun::GlyphRunFlags(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QGlyphRun::GlyphRunFlags();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QGlyphRun_GlyphRunFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QGlyphRun_GlyphRunFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QGlyphRun::GlyphRunFlags **sipCppPtr = reinterpret_cast<QGlyphRun::GlyphRunFlags **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QGlyphRun::GlyphRunFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QGlyphRun_GlyphRunFlag)) ||
            sipCanConvertToType(sipPy, sipType_QGlyphRun_GlyphRunFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QGlyphRun_GlyphRunFlag)))
{
    *sipCppPtr = new QGlyphRun::GlyphRunFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QGlyphRun::GlyphRunFlags *>(sipConvertToType(sipPy, sipType_QGlyphRun_GlyphRunFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 147831 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QGlyphRun_GlyphRunFlags[] = {
    {(void *)slot_QGlyphRun_GlyphRunFlags___bool__, bool_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___ne__, ne_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___eq__, eq_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___invert__, invert_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___and__, and_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___xor__, xor_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___or__, or_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___int__, int_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___ixor__, ixor_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___ior__, ior_slot},
    {(void *)slot_QGlyphRun_GlyphRunFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QGlyphRun_GlyphRunFlags, "\1QGlyphRun.GlyphRunFlags(QGlyphRun.GlyphRunFlags)\n"
    "QGlyphRun.GlyphRunFlags(int)\n"
    "QGlyphRun.GlyphRunFlags()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QGlyphRun_GlyphRunFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QGlyphRun__GlyphRunFlags,
        {0}
    },
    {
        sipNameNr_GlyphRunFlags,
        {46, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QGlyphRun_GlyphRunFlags,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QGlyphRun_GlyphRunFlags,
    init_type_QGlyphRun_GlyphRunFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QGlyphRun_GlyphRunFlags,
    assign_QGlyphRun_GlyphRunFlags,
    array_QGlyphRun_GlyphRunFlags,
    copy_QGlyphRun_GlyphRunFlags,
    release_QGlyphRun_GlyphRunFlags,
    cast_QGlyphRun_GlyphRunFlags,
    convertTo_QGlyphRun_GlyphRunFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 147913 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 147917 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qglyphrun.sip"
#include <qglyphrun.h>
#line 147920 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 147923 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 147926 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 25 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qvector.sip"
#include <qvector.h>
#line 147929 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qrawfont.sip"
#include <qrawfont.h>
#line 147932 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QGlyphRun_rawFont, "QGlyphRun.rawFont() -> QRawFont");

extern "C" {static PyObject *meth_QGlyphRun_rawFont(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_rawFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            QRawFont*sipRes;

            sipRes = new QRawFont(sipCpp->rawFont());

            return sipConvertFromNewType(sipRes,sipType_QRawFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_rawFont, doc_QGlyphRun_rawFont);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setRawFont, "QGlyphRun.setRawFont(QRawFont)");

extern "C" {static PyObject *meth_QGlyphRun_setRawFont(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setRawFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRawFont* a0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QGlyphRun, &sipCpp, sipType_QRawFont, &a0))
        {
            sipCpp->setRawFont(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setRawFont, doc_QGlyphRun_setRawFont);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_glyphIndexes, "QGlyphRun.glyphIndexes() -> list-of-int");

extern "C" {static PyObject *meth_QGlyphRun_glyphIndexes(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_glyphIndexes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            QVector<uint>*sipRes;

            sipRes = new QVector<uint>(sipCpp->glyphIndexes());

            return sipConvertFromNewType(sipRes,sipType_QVector_1900,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_glyphIndexes, doc_QGlyphRun_glyphIndexes);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setGlyphIndexes, "QGlyphRun.setGlyphIndexes(list-of-int)");

extern "C" {static PyObject *meth_QGlyphRun_setGlyphIndexes(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setGlyphIndexes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector<uint>* a0;
        int a0State = 0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QGlyphRun, &sipCpp, sipType_QVector_1900,&a0, &a0State))
        {
            sipCpp->setGlyphIndexes(*a0);
            sipReleaseType(const_cast<QVector<uint> *>(a0),sipType_QVector_1900,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setGlyphIndexes, doc_QGlyphRun_setGlyphIndexes);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_positions, "QGlyphRun.positions() -> list-of-QPointF");

extern "C" {static PyObject *meth_QGlyphRun_positions(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_positions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            QVector<QPointF>*sipRes;

            sipRes = new QVector<QPointF>(sipCpp->positions());

            return sipConvertFromNewType(sipRes,sipType_QVector_0100QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_positions, doc_QGlyphRun_positions);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setPositions, "QGlyphRun.setPositions(list-of-QPointF)");

extern "C" {static PyObject *meth_QGlyphRun_setPositions(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setPositions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QVector<QPointF>* a0;
        int a0State = 0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QGlyphRun, &sipCpp, sipType_QVector_0100QPointF,&a0, &a0State))
        {
            sipCpp->setPositions(*a0);
            sipReleaseType(const_cast<QVector<QPointF> *>(a0),sipType_QVector_0100QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setPositions, doc_QGlyphRun_setPositions);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_clear, "QGlyphRun.clear()");

extern "C" {static PyObject *meth_QGlyphRun_clear(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            sipCpp->clear();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_clear, doc_QGlyphRun_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setOverline, "QGlyphRun.setOverline(bool)");

extern "C" {static PyObject *meth_QGlyphRun_setOverline(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setOverline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QGlyphRun, &sipCpp, &a0))
        {
            sipCpp->setOverline(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setOverline, doc_QGlyphRun_setOverline);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_overline, "QGlyphRun.overline() -> bool");

extern "C" {static PyObject *meth_QGlyphRun_overline(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_overline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->overline();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_overline, doc_QGlyphRun_overline);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setUnderline, "QGlyphRun.setUnderline(bool)");

extern "C" {static PyObject *meth_QGlyphRun_setUnderline(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setUnderline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QGlyphRun, &sipCpp, &a0))
        {
            sipCpp->setUnderline(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setUnderline, doc_QGlyphRun_setUnderline);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_underline, "QGlyphRun.underline() -> bool");

extern "C" {static PyObject *meth_QGlyphRun_underline(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_underline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->underline();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_underline, doc_QGlyphRun_underline);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setStrikeOut, "QGlyphRun.setStrikeOut(bool)");

extern "C" {static PyObject *meth_QGlyphRun_setStrikeOut(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setStrikeOut(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QGlyphRun, &sipCpp, &a0))
        {
            sipCpp->setStrikeOut(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setStrikeOut, doc_QGlyphRun_setStrikeOut);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_strikeOut, "QGlyphRun.strikeOut() -> bool");

extern "C" {static PyObject *meth_QGlyphRun_strikeOut(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_strikeOut(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->strikeOut();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_strikeOut, doc_QGlyphRun_strikeOut);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setRightToLeft, "QGlyphRun.setRightToLeft(bool)");

extern "C" {static PyObject *meth_QGlyphRun_setRightToLeft(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setRightToLeft(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QGlyphRun, &sipCpp, &a0))
        {
            sipCpp->setRightToLeft(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setRightToLeft, doc_QGlyphRun_setRightToLeft);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_isRightToLeft, "QGlyphRun.isRightToLeft() -> bool");

extern "C" {static PyObject *meth_QGlyphRun_isRightToLeft(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_isRightToLeft(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isRightToLeft();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_isRightToLeft, doc_QGlyphRun_isRightToLeft);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setFlag, "QGlyphRun.setFlag(QGlyphRun.GlyphRunFlag, bool enabled=True)");

extern "C" {static PyObject *meth_QGlyphRun_setFlag(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setFlag(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QGlyphRun::GlyphRunFlag a0;
        bool a1 = 1;
        QGlyphRun *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_enabled,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|b", &sipSelf, sipType_QGlyphRun, &sipCpp, sipType_QGlyphRun_GlyphRunFlag, &a0, &a1))
        {
            sipCpp->setFlag(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setFlag, doc_QGlyphRun_setFlag);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setFlags, "QGlyphRun.setFlags(QGlyphRun.GlyphRunFlags)");

extern "C" {static PyObject *meth_QGlyphRun_setFlags(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setFlags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QGlyphRun::GlyphRunFlags* a0;
        int a0State = 0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QGlyphRun, &sipCpp, sipType_QGlyphRun_GlyphRunFlags, &a0, &a0State))
        {
            sipCpp->setFlags(*a0);
            sipReleaseType(a0,sipType_QGlyphRun_GlyphRunFlags,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setFlags, doc_QGlyphRun_setFlags);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_flags, "QGlyphRun.flags() -> QGlyphRun.GlyphRunFlags");

extern "C" {static PyObject *meth_QGlyphRun_flags(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            QGlyphRun::GlyphRunFlags*sipRes;

            sipRes = new QGlyphRun::GlyphRunFlags(sipCpp->flags());

            return sipConvertFromNewType(sipRes,sipType_QGlyphRun_GlyphRunFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_flags, doc_QGlyphRun_flags);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_setBoundingRect, "QGlyphRun.setBoundingRect(QRectF)");

extern "C" {static PyObject *meth_QGlyphRun_setBoundingRect(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_setBoundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QGlyphRun, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->setBoundingRect(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_setBoundingRect, doc_QGlyphRun_setBoundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_boundingRect, "QGlyphRun.boundingRect() -> QRectF");

extern "C" {static PyObject *meth_QGlyphRun_boundingRect(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_boundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->boundingRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_boundingRect, doc_QGlyphRun_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_isEmpty, "QGlyphRun.isEmpty() -> bool");

extern "C" {static PyObject *meth_QGlyphRun_isEmpty(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_isEmpty(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGlyphRun, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEmpty();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_isEmpty, doc_QGlyphRun_isEmpty);

    return NULL;
}


PyDoc_STRVAR(doc_QGlyphRun_swap, "QGlyphRun.swap(QGlyphRun)");

extern "C" {static PyObject *meth_QGlyphRun_swap(PyObject *, PyObject *);}
static PyObject *meth_QGlyphRun_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QGlyphRun* a0;
        QGlyphRun *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QGlyphRun, &sipCpp, sipType_QGlyphRun, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGlyphRun, sipName_swap, doc_QGlyphRun_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QGlyphRun___ne__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QGlyphRun *sipCpp = reinterpret_cast<QGlyphRun *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QGlyphRun, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QGlyphRun::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QGlyphRun,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QGlyphRun___eq__(PyObject *,PyObject *);}
static PyObject *slot_QGlyphRun___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QGlyphRun *sipCpp = reinterpret_cast<QGlyphRun *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGlyphRun));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QGlyphRun* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QGlyphRun, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QGlyphRun::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QGlyphRun,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QGlyphRun(void *, const sipTypeDef *);}
static void *cast_QGlyphRun(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QGlyphRun)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QGlyphRun(void *, int);}
static void release_QGlyphRun(void *sipCppV,int)
{
    delete reinterpret_cast<QGlyphRun *>(sipCppV);
}


extern "C" {static void assign_QGlyphRun(void *, SIP_SSIZE_T, const void *);}
static void assign_QGlyphRun(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QGlyphRun *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QGlyphRun *>(sipSrc);
}


extern "C" {static void *array_QGlyphRun(SIP_SSIZE_T);}
static void *array_QGlyphRun(SIP_SSIZE_T sipNrElem)
{
    return new QGlyphRun[sipNrElem];
}


extern "C" {static void *copy_QGlyphRun(const void *, SIP_SSIZE_T);}
static void *copy_QGlyphRun(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QGlyphRun(reinterpret_cast<const QGlyphRun *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QGlyphRun(sipSimpleWrapper *);}
static void dealloc_QGlyphRun(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QGlyphRun(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QGlyphRun(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QGlyphRun(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QGlyphRun *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QGlyphRun();

            return sipCpp;
        }
    }

    {
        const QGlyphRun* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QGlyphRun, &a0))
        {
            sipCpp = new QGlyphRun(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QGlyphRun[] = {
    {(void *)slot_QGlyphRun___ne__, ne_slot},
    {(void *)slot_QGlyphRun___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QGlyphRun[] = {
    {SIP_MLNAME_CAST(sipName_boundingRect), meth_QGlyphRun_boundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_boundingRect)},
    {SIP_MLNAME_CAST(sipName_clear), meth_QGlyphRun_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_clear)},
    {SIP_MLNAME_CAST(sipName_flags), meth_QGlyphRun_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_flags)},
    {SIP_MLNAME_CAST(sipName_glyphIndexes), meth_QGlyphRun_glyphIndexes, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_glyphIndexes)},
    {SIP_MLNAME_CAST(sipName_isEmpty), meth_QGlyphRun_isEmpty, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_isEmpty)},
    {SIP_MLNAME_CAST(sipName_isRightToLeft), meth_QGlyphRun_isRightToLeft, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_isRightToLeft)},
    {SIP_MLNAME_CAST(sipName_overline), meth_QGlyphRun_overline, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_overline)},
    {SIP_MLNAME_CAST(sipName_positions), meth_QGlyphRun_positions, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_positions)},
    {SIP_MLNAME_CAST(sipName_rawFont), meth_QGlyphRun_rawFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_rawFont)},
    {SIP_MLNAME_CAST(sipName_setBoundingRect), meth_QGlyphRun_setBoundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_setBoundingRect)},
    {SIP_MLNAME_CAST(sipName_setFlag), (PyCFunction)meth_QGlyphRun_setFlag, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QGlyphRun_setFlag)},
    {SIP_MLNAME_CAST(sipName_setFlags), meth_QGlyphRun_setFlags, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_setFlags)},
    {SIP_MLNAME_CAST(sipName_setGlyphIndexes), meth_QGlyphRun_setGlyphIndexes, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_setGlyphIndexes)},
    {SIP_MLNAME_CAST(sipName_setOverline), meth_QGlyphRun_setOverline, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_setOverline)},
    {SIP_MLNAME_CAST(sipName_setPositions), meth_QGlyphRun_setPositions, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_setPositions)},
    {SIP_MLNAME_CAST(sipName_setRawFont), meth_QGlyphRun_setRawFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_setRawFont)},
    {SIP_MLNAME_CAST(sipName_setRightToLeft), meth_QGlyphRun_setRightToLeft, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_setRightToLeft)},
    {SIP_MLNAME_CAST(sipName_setStrikeOut), meth_QGlyphRun_setStrikeOut, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_setStrikeOut)},
    {SIP_MLNAME_CAST(sipName_setUnderline), meth_QGlyphRun_setUnderline, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_setUnderline)},
    {SIP_MLNAME_CAST(sipName_strikeOut), meth_QGlyphRun_strikeOut, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_strikeOut)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QGlyphRun_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_swap)},
    {SIP_MLNAME_CAST(sipName_underline), meth_QGlyphRun_underline, METH_VARARGS, SIP_MLDOC_CAST(doc_QGlyphRun_underline)}
};

static sipEnumMemberDef enummembers_QGlyphRun[] = {
    {sipName_Overline, static_cast<int>(QGlyphRun::Overline), 47},
    {sipName_RightToLeft, static_cast<int>(QGlyphRun::RightToLeft), 47},
    {sipName_SplitLigature, static_cast<int>(QGlyphRun::SplitLigature), 47},
    {sipName_StrikeOut, static_cast<int>(QGlyphRun::StrikeOut), 47},
    {sipName_Underline, static_cast<int>(QGlyphRun::Underline), 47},
};

PyDoc_STRVAR(doc_QGlyphRun, "\1QGlyphRun()\n"
    "QGlyphRun(QGlyphRun)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QGlyphRun = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QGlyphRun,
        {0}
    },
    {
        sipNameNr_QGlyphRun,
        {0, 0, 1},
        22, methods_QGlyphRun,
        5, enummembers_QGlyphRun,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QGlyphRun,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QGlyphRun,
    init_type_QGlyphRun,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QGlyphRun,
    assign_QGlyphRun,
    array_QGlyphRun,
    copy_QGlyphRun,
    release_QGlyphRun,
    cast_QGlyphRun,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 1073 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 148785 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QMatrix2x2_data, "QMatrix2x2.data() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix2x2_data(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x2_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix2x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x2, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 1145 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(4, sipCpp->constData(), &sipRes);
#line 148806 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x2, sipName_data, doc_QMatrix2x2_data);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x2_copyDataTo, "QMatrix2x2.copyDataTo() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix2x2_copyDataTo(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x2_copyDataTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x2, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 1150 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[4];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(4, values, &sipRes);
#line 148847 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x2, sipName_copyDataTo, doc_QMatrix2x2_copyDataTo);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x2_isIdentity, "QMatrix2x2.isIdentity() -> bool");

extern "C" {static PyObject *meth_QMatrix2x2_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x2_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x2, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x2, sipName_isIdentity, doc_QMatrix2x2_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x2_setToIdentity, "QMatrix2x2.setToIdentity()");

extern "C" {static PyObject *meth_QMatrix2x2_setToIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x2_setToIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix2x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x2, &sipCpp))
        {
            sipCpp->setToIdentity();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x2, sipName_setToIdentity, doc_QMatrix2x2_setToIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x2_fill, "QMatrix2x2.fill(float)");

extern "C" {static PyObject *meth_QMatrix2x2_fill(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x2_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QMatrix2x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix2x2, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x2, sipName_fill, doc_QMatrix2x2_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x2_transposed, "QMatrix2x2.transposed() -> QMatrix2x2");

extern "C" {static PyObject *meth_QMatrix2x2_transposed(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x2_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x2, &sipCpp))
        {
            QMatrix2x2*sipRes;

            sipRes = new QMatrix2x2(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QMatrix2x2,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x2, sipName_transposed, doc_QMatrix2x2_transposed);

    return NULL;
}


extern "C" {static PyObject *slot_QMatrix2x2___ne__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x2___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x2, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix2x2::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QMatrix2x2,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix2x2___eq__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x2___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x2, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix2x2::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QMatrix2x2,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix2x2___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x2___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix2x2::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix2x2___imul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x2___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix2x2::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix2x2___isub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x2___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x2, &a0))
        {
            sipCpp->QMatrix2x2::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix2x2___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x2___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x2, &a0))
        {
            sipCpp->QMatrix2x2::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static int slot_QMatrix2x2___setitem__(PyObject *,PyObject *);}
static int slot_QMatrix2x2___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x2));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        float a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "P0f", &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 1172 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 2, 2, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 149222 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return -1;

            if (sipError == sipErrorNone)
            {
            return 0;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x2, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QMatrix2x2___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x2___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 1158 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 2, 2, &row, &column)) == sipErrorNone)
        {
            sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column));

            if (!sipRes)
                sipError = sipErrorFail;
        }
#line 149271 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x2, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QMatrix2x2___repr__(PyObject *);}
static PyObject *slot_QMatrix2x2___repr__(PyObject *sipSelf)
{
    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x2));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 1100 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        bool bad = false;
        int i;
        PyObject *m[4];
        PYQT_FLOAT data[4];

        // The raw data is in column-major order but we want row-major order.
        sipCpp->copyDataTo(data);

        for (i = 0; i < 4; ++i)
        {
            m[i] = PyFloat_FromDouble(data[i]);

            if (!m[i])
                bad = true;
        }

        if (!bad)
        {
#if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix2x2("
                    "%R, %R, "
                    "%R, %R)",
                    m[0], m[1],
                    m[2], m[3]);
#else
            sipRes = PyString_FromString("PyQt5.QtGui.QMatrix2x2(");

            for (i = 0; i < 4; ++i)
            {
                if (i != 0)
                    PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));

                PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i]));
            }

            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
#endif
        }

        for (i = 0; i < 4; ++i)
            Py_XDECREF(m[i]);
#line 149347 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMatrix2x2(void *, const sipTypeDef *);}
static void *cast_QMatrix2x2(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QMatrix2x2)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMatrix2x2(void *, int);}
static void release_QMatrix2x2(void *sipCppV,int)
{
    delete reinterpret_cast<QMatrix2x2 *>(sipCppV);
}


extern "C" {static PyObject *pickle_QMatrix2x2(void *);}
static PyObject *pickle_QMatrix2x2(void *sipCppV)
{
    QMatrix2x2 *sipCpp = reinterpret_cast<QMatrix2x2 *>(sipCppV);
    PyObject *sipRes;

#line 1077 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT data[4];

        // We want the data in row-major order.
        sipCpp->copyDataTo(data);

        sipRes = Py_BuildValue((char *)"dddd",
                (double)data[0], (double)data[1],
                (double)data[2], (double)data[3]);
#line 149391 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QMatrix2x2(void *, SIP_SSIZE_T, const void *);}
static void assign_QMatrix2x2(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMatrix2x2 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMatrix2x2 *>(sipSrc);
}


extern "C" {static void *array_QMatrix2x2(SIP_SSIZE_T);}
static void *array_QMatrix2x2(SIP_SSIZE_T sipNrElem)
{
    return new QMatrix2x2[sipNrElem];
}


extern "C" {static void *copy_QMatrix2x2(const void *, SIP_SSIZE_T);}
static void *copy_QMatrix2x2(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMatrix2x2(reinterpret_cast<const QMatrix2x2 *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QMatrix2x2(sipSimpleWrapper *);}
static void dealloc_QMatrix2x2(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QMatrix2x2(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QMatrix2x2(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMatrix2x2(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QMatrix2x2 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QMatrix2x2();

            return sipCpp;
        }
    }

    {
        const QMatrix2x2* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMatrix2x2, &a0))
        {
            sipCpp = new QMatrix2x2(*a0);

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "P0", &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 1092 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[4];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 4, values)) == sipErrorNone)
            sipCpp = new QMatrix2x2(values);
#line 149465 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QMatrix2x2[] = {
    {(void *)slot_QMatrix2x2___ne__, ne_slot},
    {(void *)slot_QMatrix2x2___eq__, eq_slot},
    {(void *)slot_QMatrix2x2___idiv__, idiv_slot},
    {(void *)slot_QMatrix2x2___imul__, imul_slot},
    {(void *)slot_QMatrix2x2___isub__, isub_slot},
    {(void *)slot_QMatrix2x2___iadd__, iadd_slot},
    {(void *)slot_QMatrix2x2___setitem__, setitem_slot},
    {(void *)slot_QMatrix2x2___getitem__, getitem_slot},
    {(void *)slot_QMatrix2x2___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QMatrix2x2[] = {
    {SIP_MLNAME_CAST(sipName_copyDataTo), meth_QMatrix2x2_copyDataTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x2_copyDataTo)},
    {SIP_MLNAME_CAST(sipName_data), meth_QMatrix2x2_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x2_data)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QMatrix2x2_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x2_fill)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QMatrix2x2_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x2_isIdentity)},
    {SIP_MLNAME_CAST(sipName_setToIdentity), meth_QMatrix2x2_setToIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x2_setToIdentity)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QMatrix2x2_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x2_transposed)}
};

PyDoc_STRVAR(doc_QMatrix2x2, "\1QMatrix2x2()\n"
    "QMatrix2x2(QMatrix2x2)\n"
    "QMatrix2x2(sequence-of-float)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMatrix2x2 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMatrix2x2,
        {0}
    },
    {
        sipNameNr_QMatrix2x2,
        {0, 0, 1},
        6, methods_QMatrix2x2,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix2x2,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QMatrix2x2,
    init_type_QMatrix2x2,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMatrix2x2,
    assign_QMatrix2x2,
    array_QMatrix2x2,
    copy_QMatrix2x2,
    release_QMatrix2x2,
    cast_QMatrix2x2,
    0,
    0,
    0,
    pickle_QMatrix2x2,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 927 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 149572 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 632 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 149576 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix2x3_data, "QMatrix2x3.data() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix2x3_data(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x3_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix2x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x3, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 999 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(6, sipCpp->constData(), &sipRes);
#line 149596 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x3, sipName_data, doc_QMatrix2x3_data);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x3_copyDataTo, "QMatrix2x3.copyDataTo() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix2x3_copyDataTo(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x3_copyDataTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x3, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 1004 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[6];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(6, values, &sipRes);
#line 149637 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x3, sipName_copyDataTo, doc_QMatrix2x3_copyDataTo);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x3_isIdentity, "QMatrix2x3.isIdentity() -> bool");

extern "C" {static PyObject *meth_QMatrix2x3_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x3_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x3, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x3, sipName_isIdentity, doc_QMatrix2x3_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x3_setToIdentity, "QMatrix2x3.setToIdentity()");

extern "C" {static PyObject *meth_QMatrix2x3_setToIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x3_setToIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix2x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x3, &sipCpp))
        {
            sipCpp->setToIdentity();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x3, sipName_setToIdentity, doc_QMatrix2x3_setToIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x3_fill, "QMatrix2x3.fill(float)");

extern "C" {static PyObject *meth_QMatrix2x3_fill(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x3_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QMatrix2x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix2x3, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x3, sipName_fill, doc_QMatrix2x3_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x3_transposed, "QMatrix2x3.transposed() -> QMatrix3x2");

extern "C" {static PyObject *meth_QMatrix2x3_transposed(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x3_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x3, &sipCpp))
        {
            QMatrix3x2*sipRes;

            sipRes = new QMatrix3x2(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QMatrix3x2,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x3, sipName_transposed, doc_QMatrix2x3_transposed);

    return NULL;
}


extern "C" {static PyObject *slot_QMatrix2x3___ne__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x3___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x3, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix2x3::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QMatrix2x3,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix2x3___eq__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x3___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x3, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix2x3::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QMatrix2x3,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix2x3___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x3___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix2x3::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix2x3___imul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x3___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix2x3::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix2x3___isub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x3___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x3, &a0))
        {
            sipCpp->QMatrix2x3::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix2x3___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x3___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x3, &a0))
        {
            sipCpp->QMatrix2x3::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static int slot_QMatrix2x3___setitem__(PyObject *,PyObject *);}
static int slot_QMatrix2x3___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x3));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        float a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "P0f", &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 1026 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 2, 3, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 150012 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return -1;

            if (sipError == sipErrorNone)
            {
            return 0;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x3, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QMatrix2x3___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x3___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 1012 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 2, 3, &row, &column)) == sipErrorNone)
        {
            sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column));

            if (!sipRes)
                sipError = sipErrorFail;
        }
#line 150061 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x3, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QMatrix2x3___repr__(PyObject *);}
static PyObject *slot_QMatrix2x3___repr__(PyObject *sipSelf)
{
    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x3));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 954 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        bool bad = false;
        int i;
        PyObject *m[6];
        PYQT_FLOAT data[6];

        // The raw data is in column-major order but we want row-major order.
        sipCpp->copyDataTo(data);

        for (i = 0; i < 6; ++i)
        {
            m[i] = PyFloat_FromDouble(data[i]);

            if (!m[i])
                bad = true;
        }

        if (!bad)
        {
#if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix2x3("
                    "%R, %R, %R, "
                    "%R, %R, %R)",
                    m[0], m[1], m[2],
                    m[3], m[4], m[5]);
#else
            sipRes = PyString_FromString("PyQt5.QtGui.QMatrix2x3(");

            for (i = 0; i < 6; ++i)
            {
                if (i != 0)
                    PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));

                PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i]));
            }

            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
#endif
        }

        for (i = 0; i < 6; ++i)
            Py_XDECREF(m[i]);
#line 150137 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMatrix2x3(void *, const sipTypeDef *);}
static void *cast_QMatrix2x3(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QMatrix2x3)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMatrix2x3(void *, int);}
static void release_QMatrix2x3(void *sipCppV,int)
{
    delete reinterpret_cast<QMatrix2x3 *>(sipCppV);
}


extern "C" {static PyObject *pickle_QMatrix2x3(void *);}
static PyObject *pickle_QMatrix2x3(void *sipCppV)
{
    QMatrix2x3 *sipCpp = reinterpret_cast<QMatrix2x3 *>(sipCppV);
    PyObject *sipRes;

#line 931 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT data[6];

        // We want the data in row-major order.
        sipCpp->copyDataTo(data);

        sipRes = Py_BuildValue((char *)"dddddd",
                (double)data[0], (double)data[1], (double)data[2],
                (double)data[3], (double)data[4], (double)data[5]);
#line 150181 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QMatrix2x3(void *, SIP_SSIZE_T, const void *);}
static void assign_QMatrix2x3(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMatrix2x3 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMatrix2x3 *>(sipSrc);
}


extern "C" {static void *array_QMatrix2x3(SIP_SSIZE_T);}
static void *array_QMatrix2x3(SIP_SSIZE_T sipNrElem)
{
    return new QMatrix2x3[sipNrElem];
}


extern "C" {static void *copy_QMatrix2x3(const void *, SIP_SSIZE_T);}
static void *copy_QMatrix2x3(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMatrix2x3(reinterpret_cast<const QMatrix2x3 *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QMatrix2x3(sipSimpleWrapper *);}
static void dealloc_QMatrix2x3(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QMatrix2x3(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QMatrix2x3(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMatrix2x3(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QMatrix2x3 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QMatrix2x3();

            return sipCpp;
        }
    }

    {
        const QMatrix2x3* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMatrix2x3, &a0))
        {
            sipCpp = new QMatrix2x3(*a0);

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "P0", &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 946 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[6];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 6, values)) == sipErrorNone)
            sipCpp = new QMatrix2x3(values);
#line 150255 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QMatrix2x3[] = {
    {(void *)slot_QMatrix2x3___ne__, ne_slot},
    {(void *)slot_QMatrix2x3___eq__, eq_slot},
    {(void *)slot_QMatrix2x3___idiv__, idiv_slot},
    {(void *)slot_QMatrix2x3___imul__, imul_slot},
    {(void *)slot_QMatrix2x3___isub__, isub_slot},
    {(void *)slot_QMatrix2x3___iadd__, iadd_slot},
    {(void *)slot_QMatrix2x3___setitem__, setitem_slot},
    {(void *)slot_QMatrix2x3___getitem__, getitem_slot},
    {(void *)slot_QMatrix2x3___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QMatrix2x3[] = {
    {SIP_MLNAME_CAST(sipName_copyDataTo), meth_QMatrix2x3_copyDataTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x3_copyDataTo)},
    {SIP_MLNAME_CAST(sipName_data), meth_QMatrix2x3_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x3_data)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QMatrix2x3_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x3_fill)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QMatrix2x3_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x3_isIdentity)},
    {SIP_MLNAME_CAST(sipName_setToIdentity), meth_QMatrix2x3_setToIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x3_setToIdentity)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QMatrix2x3_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x3_transposed)}
};

PyDoc_STRVAR(doc_QMatrix2x3, "\1QMatrix2x3()\n"
    "QMatrix2x3(QMatrix2x3)\n"
    "QMatrix2x3(sequence-of-float)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMatrix2x3 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMatrix2x3,
        {0}
    },
    {
        sipNameNr_QMatrix2x3,
        {0, 0, 1},
        6, methods_QMatrix2x3,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix2x3,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QMatrix2x3,
    init_type_QMatrix2x3,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMatrix2x3,
    assign_QMatrix2x3,
    array_QMatrix2x3,
    copy_QMatrix2x3,
    release_QMatrix2x3,
    cast_QMatrix2x3,
    0,
    0,
    0,
    pickle_QMatrix2x3,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 781 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 150362 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 179 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 150366 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix2x4_data, "QMatrix2x4.data() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix2x4_data(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x4_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix2x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x4, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 853 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(8, sipCpp->constData(), &sipRes);
#line 150386 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x4, sipName_data, doc_QMatrix2x4_data);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x4_copyDataTo, "QMatrix2x4.copyDataTo() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix2x4_copyDataTo(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x4_copyDataTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x4, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 858 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[8];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(8, values, &sipRes);
#line 150427 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x4, sipName_copyDataTo, doc_QMatrix2x4_copyDataTo);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x4_isIdentity, "QMatrix2x4.isIdentity() -> bool");

extern "C" {static PyObject *meth_QMatrix2x4_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x4_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x4, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x4, sipName_isIdentity, doc_QMatrix2x4_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x4_setToIdentity, "QMatrix2x4.setToIdentity()");

extern "C" {static PyObject *meth_QMatrix2x4_setToIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x4_setToIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix2x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x4, &sipCpp))
        {
            sipCpp->setToIdentity();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x4, sipName_setToIdentity, doc_QMatrix2x4_setToIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x4_fill, "QMatrix2x4.fill(float)");

extern "C" {static PyObject *meth_QMatrix2x4_fill(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x4_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QMatrix2x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix2x4, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x4, sipName_fill, doc_QMatrix2x4_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix2x4_transposed, "QMatrix2x4.transposed() -> QMatrix4x2");

extern "C" {static PyObject *meth_QMatrix2x4_transposed(PyObject *, PyObject *);}
static PyObject *meth_QMatrix2x4_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix2x4, &sipCpp))
        {
            QMatrix4x2*sipRes;

            sipRes = new QMatrix4x2(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x2,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x4, sipName_transposed, doc_QMatrix2x4_transposed);

    return NULL;
}


extern "C" {static PyObject *slot_QMatrix2x4___ne__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x4___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x4, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix2x4::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QMatrix2x4,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix2x4___eq__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x4___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x4, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix2x4::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QMatrix2x4,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix2x4___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x4___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix2x4::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix2x4___imul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x4___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix2x4::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix2x4___isub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x4___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x4, &a0))
        {
            sipCpp->QMatrix2x4::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix2x4___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x4___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix2x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix2x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix2x4, &a0))
        {
            sipCpp->QMatrix2x4::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static int slot_QMatrix2x4___setitem__(PyObject *,PyObject *);}
static int slot_QMatrix2x4___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x4));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        float a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "P0f", &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 880 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 2, 4, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 150802 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return -1;

            if (sipError == sipErrorNone)
            {
            return 0;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x4, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QMatrix2x4___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix2x4___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 866 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 2, 4, &row, &column)) == sipErrorNone)
        {
            sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column));

            if (!sipRes)
                sipError = sipErrorFail;
        }
#line 150851 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix2x4, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QMatrix2x4___repr__(PyObject *);}
static PyObject *slot_QMatrix2x4___repr__(PyObject *sipSelf)
{
    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix2x4));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 808 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        bool bad = false;
        int i;
        PyObject *m[8];
        PYQT_FLOAT data[8];

        // The raw data is in column-major order but we want row-major order.
        sipCpp->copyDataTo(data);

        for (i = 0; i < 8; ++i)
        {
            m[i] = PyFloat_FromDouble(data[i]);

            if (!m[i])
                bad = true;
        }

        if (!bad)
        {
#if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix2x4("
                    "%R, %R, %R, %R, "
                    "%R, %R, %R, %R)",
                    m[0], m[1], m[2], m[3],
                    m[4], m[5], m[6], m[7]);
#else
            sipRes = PyString_FromString("PyQt5.QtGui.QMatrix2x4(");

            for (i = 0; i < 8; ++i)
            {
                if (i != 0)
                    PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));

                PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i]));
            }

            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
#endif
        }

        for (i = 0; i < 8; ++i)
            Py_XDECREF(m[i]);
#line 150927 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMatrix2x4(void *, const sipTypeDef *);}
static void *cast_QMatrix2x4(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QMatrix2x4)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMatrix2x4(void *, int);}
static void release_QMatrix2x4(void *sipCppV,int)
{
    delete reinterpret_cast<QMatrix2x4 *>(sipCppV);
}


extern "C" {static PyObject *pickle_QMatrix2x4(void *);}
static PyObject *pickle_QMatrix2x4(void *sipCppV)
{
    QMatrix2x4 *sipCpp = reinterpret_cast<QMatrix2x4 *>(sipCppV);
    PyObject *sipRes;

#line 785 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT data[8];

        // We want the data in row-major order.
        sipCpp->copyDataTo(data);

        sipRes = Py_BuildValue((char *)"dddddddd",
                (double)data[0], (double)data[1], (double)data[2], (double)data[3],
                (double)data[4], (double)data[5], (double)data[6], (double)data[7]);
#line 150971 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QMatrix2x4(void *, SIP_SSIZE_T, const void *);}
static void assign_QMatrix2x4(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMatrix2x4 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMatrix2x4 *>(sipSrc);
}


extern "C" {static void *array_QMatrix2x4(SIP_SSIZE_T);}
static void *array_QMatrix2x4(SIP_SSIZE_T sipNrElem)
{
    return new QMatrix2x4[sipNrElem];
}


extern "C" {static void *copy_QMatrix2x4(const void *, SIP_SSIZE_T);}
static void *copy_QMatrix2x4(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMatrix2x4(reinterpret_cast<const QMatrix2x4 *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QMatrix2x4(sipSimpleWrapper *);}
static void dealloc_QMatrix2x4(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QMatrix2x4(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QMatrix2x4(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMatrix2x4(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QMatrix2x4 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QMatrix2x4();

            return sipCpp;
        }
    }

    {
        const QMatrix2x4* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMatrix2x4, &a0))
        {
            sipCpp = new QMatrix2x4(*a0);

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "P0", &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 800 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[8];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 8, values)) == sipErrorNone)
            sipCpp = new QMatrix2x4(values);
#line 151045 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QMatrix2x4[] = {
    {(void *)slot_QMatrix2x4___ne__, ne_slot},
    {(void *)slot_QMatrix2x4___eq__, eq_slot},
    {(void *)slot_QMatrix2x4___idiv__, idiv_slot},
    {(void *)slot_QMatrix2x4___imul__, imul_slot},
    {(void *)slot_QMatrix2x4___isub__, isub_slot},
    {(void *)slot_QMatrix2x4___iadd__, iadd_slot},
    {(void *)slot_QMatrix2x4___setitem__, setitem_slot},
    {(void *)slot_QMatrix2x4___getitem__, getitem_slot},
    {(void *)slot_QMatrix2x4___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QMatrix2x4[] = {
    {SIP_MLNAME_CAST(sipName_copyDataTo), meth_QMatrix2x4_copyDataTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x4_copyDataTo)},
    {SIP_MLNAME_CAST(sipName_data), meth_QMatrix2x4_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x4_data)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QMatrix2x4_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x4_fill)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QMatrix2x4_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x4_isIdentity)},
    {SIP_MLNAME_CAST(sipName_setToIdentity), meth_QMatrix2x4_setToIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x4_setToIdentity)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QMatrix2x4_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix2x4_transposed)}
};

PyDoc_STRVAR(doc_QMatrix2x4, "\1QMatrix2x4()\n"
    "QMatrix2x4(QMatrix2x4)\n"
    "QMatrix2x4(sequence-of-float)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMatrix2x4 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMatrix2x4,
        {0}
    },
    {
        sipNameNr_QMatrix2x4,
        {0, 0, 1},
        6, methods_QMatrix2x4,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix2x4,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QMatrix2x4,
    init_type_QMatrix2x4,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMatrix2x4,
    assign_QMatrix2x4,
    array_QMatrix2x4,
    copy_QMatrix2x4,
    release_QMatrix2x4,
    cast_QMatrix2x4,
    0,
    0,
    0,
    pickle_QMatrix2x4,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 632 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 151152 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 927 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 151156 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix3x2_data, "QMatrix3x2.data() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix3x2_data(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x2_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix3x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x2, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 707 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(6, sipCpp->constData(), &sipRes);
#line 151176 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x2, sipName_data, doc_QMatrix3x2_data);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x2_copyDataTo, "QMatrix3x2.copyDataTo() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix3x2_copyDataTo(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x2_copyDataTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x2, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 712 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[6];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(6, values, &sipRes);
#line 151217 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x2, sipName_copyDataTo, doc_QMatrix3x2_copyDataTo);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x2_isIdentity, "QMatrix3x2.isIdentity() -> bool");

extern "C" {static PyObject *meth_QMatrix3x2_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x2_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x2, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x2, sipName_isIdentity, doc_QMatrix3x2_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x2_setToIdentity, "QMatrix3x2.setToIdentity()");

extern "C" {static PyObject *meth_QMatrix3x2_setToIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x2_setToIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix3x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x2, &sipCpp))
        {
            sipCpp->setToIdentity();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x2, sipName_setToIdentity, doc_QMatrix3x2_setToIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x2_fill, "QMatrix3x2.fill(float)");

extern "C" {static PyObject *meth_QMatrix3x2_fill(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x2_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QMatrix3x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix3x2, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x2, sipName_fill, doc_QMatrix3x2_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x2_transposed, "QMatrix3x2.transposed() -> QMatrix2x3");

extern "C" {static PyObject *meth_QMatrix3x2_transposed(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x2_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x2, &sipCpp))
        {
            QMatrix2x3*sipRes;

            sipRes = new QMatrix2x3(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QMatrix2x3,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x2, sipName_transposed, doc_QMatrix3x2_transposed);

    return NULL;
}


extern "C" {static PyObject *slot_QMatrix3x2___ne__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x2___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x2, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix3x2::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QMatrix3x2,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix3x2___eq__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x2___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x2, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix3x2::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QMatrix3x2,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix3x2___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x2___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix3x2::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix3x2___imul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x2___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix3x2::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix3x2___isub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x2___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x2, &a0))
        {
            sipCpp->QMatrix3x2::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix3x2___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x2___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x2, &a0))
        {
            sipCpp->QMatrix3x2::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static int slot_QMatrix3x2___setitem__(PyObject *,PyObject *);}
static int slot_QMatrix3x2___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x2));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        float a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "P0f", &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 734 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 3, 2, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 151592 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return -1;

            if (sipError == sipErrorNone)
            {
            return 0;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x2, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QMatrix3x2___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x2___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 720 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 3, 2, &row, &column)) == sipErrorNone)
        {
            sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column));

            if (!sipRes)
                sipError = sipErrorFail;
        }
#line 151641 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x2, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QMatrix3x2___repr__(PyObject *);}
static PyObject *slot_QMatrix3x2___repr__(PyObject *sipSelf)
{
    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x2));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 660 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        bool bad = false;
        int i;
        PyObject *m[6];
        PYQT_FLOAT data[6];

        // The raw data is in column-major order but we want row-major order.
        sipCpp->copyDataTo(data);

        for (i = 0; i < 6; ++i)
        {
            m[i] = PyFloat_FromDouble(data[i]);

            if (!m[i])
                bad = true;
        }

        if (!bad)
        {
#if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix3x2("
                    "%R, %R, "
                    "%R, %R, "
                    "%R, %R)",
                    m[0], m[1],
                    m[2], m[3],
                    m[4], m[5]);
#else
            sipRes = PyString_FromString("PyQt5.QtGui.QMatrix3x2(");

            for (i = 0; i < 6; ++i)
            {
                if (i != 0)
                    PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));

                PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i]));
            }

            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
#endif
        }

        for (i = 0; i < 6; ++i)
            Py_XDECREF(m[i]);
#line 151719 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMatrix3x2(void *, const sipTypeDef *);}
static void *cast_QMatrix3x2(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QMatrix3x2)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMatrix3x2(void *, int);}
static void release_QMatrix3x2(void *sipCppV,int)
{
    delete reinterpret_cast<QMatrix3x2 *>(sipCppV);
}


extern "C" {static PyObject *pickle_QMatrix3x2(void *);}
static PyObject *pickle_QMatrix3x2(void *sipCppV)
{
    QMatrix3x2 *sipCpp = reinterpret_cast<QMatrix3x2 *>(sipCppV);
    PyObject *sipRes;

#line 636 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT data[6];

        // We want the data in row-major order.
        sipCpp->copyDataTo(data);

        sipRes = Py_BuildValue((char *)"dddddd",
                (double)data[0], (double)data[1],
                (double)data[2], (double)data[3],
                (double)data[4], (double)data[5]);
#line 151764 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QMatrix3x2(void *, SIP_SSIZE_T, const void *);}
static void assign_QMatrix3x2(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMatrix3x2 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMatrix3x2 *>(sipSrc);
}


extern "C" {static void *array_QMatrix3x2(SIP_SSIZE_T);}
static void *array_QMatrix3x2(SIP_SSIZE_T sipNrElem)
{
    return new QMatrix3x2[sipNrElem];
}


extern "C" {static void *copy_QMatrix3x2(const void *, SIP_SSIZE_T);}
static void *copy_QMatrix3x2(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMatrix3x2(reinterpret_cast<const QMatrix3x2 *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QMatrix3x2(sipSimpleWrapper *);}
static void dealloc_QMatrix3x2(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QMatrix3x2(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QMatrix3x2(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMatrix3x2(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QMatrix3x2 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QMatrix3x2();

            return sipCpp;
        }
    }

    {
        const QMatrix3x2* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMatrix3x2, &a0))
        {
            sipCpp = new QMatrix3x2(*a0);

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "P0", &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 652 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[6];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 6, values)) == sipErrorNone)
            sipCpp = new QMatrix3x2(values);
#line 151838 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QMatrix3x2[] = {
    {(void *)slot_QMatrix3x2___ne__, ne_slot},
    {(void *)slot_QMatrix3x2___eq__, eq_slot},
    {(void *)slot_QMatrix3x2___idiv__, idiv_slot},
    {(void *)slot_QMatrix3x2___imul__, imul_slot},
    {(void *)slot_QMatrix3x2___isub__, isub_slot},
    {(void *)slot_QMatrix3x2___iadd__, iadd_slot},
    {(void *)slot_QMatrix3x2___setitem__, setitem_slot},
    {(void *)slot_QMatrix3x2___getitem__, getitem_slot},
    {(void *)slot_QMatrix3x2___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QMatrix3x2[] = {
    {SIP_MLNAME_CAST(sipName_copyDataTo), meth_QMatrix3x2_copyDataTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x2_copyDataTo)},
    {SIP_MLNAME_CAST(sipName_data), meth_QMatrix3x2_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x2_data)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QMatrix3x2_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x2_fill)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QMatrix3x2_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x2_isIdentity)},
    {SIP_MLNAME_CAST(sipName_setToIdentity), meth_QMatrix3x2_setToIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x2_setToIdentity)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QMatrix3x2_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x2_transposed)}
};

PyDoc_STRVAR(doc_QMatrix3x2, "\1QMatrix3x2()\n"
    "QMatrix3x2(QMatrix3x2)\n"
    "QMatrix3x2(sequence-of-float)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMatrix3x2 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMatrix3x2,
        {0}
    },
    {
        sipNameNr_QMatrix3x2,
        {0, 0, 1},
        6, methods_QMatrix3x2,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix3x2,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QMatrix3x2,
    init_type_QMatrix3x2,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMatrix3x2,
    assign_QMatrix3x2,
    array_QMatrix3x2,
    copy_QMatrix3x2,
    release_QMatrix3x2,
    cast_QMatrix3x2,
    0,
    0,
    0,
    pickle_QMatrix3x2,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 483 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 151945 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"



PyDoc_STRVAR(doc_QMatrix3x3_data, "QMatrix3x3.data() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix3x3_data(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x3_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix3x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x3, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 558 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(9, sipCpp->constData(), &sipRes);
#line 151966 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x3, sipName_data, doc_QMatrix3x3_data);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x3_copyDataTo, "QMatrix3x3.copyDataTo() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix3x3_copyDataTo(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x3_copyDataTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x3, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 563 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[9];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(9, values, &sipRes);
#line 152007 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x3, sipName_copyDataTo, doc_QMatrix3x3_copyDataTo);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x3_isIdentity, "QMatrix3x3.isIdentity() -> bool");

extern "C" {static PyObject *meth_QMatrix3x3_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x3_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x3, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x3, sipName_isIdentity, doc_QMatrix3x3_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x3_setToIdentity, "QMatrix3x3.setToIdentity()");

extern "C" {static PyObject *meth_QMatrix3x3_setToIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x3_setToIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix3x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x3, &sipCpp))
        {
            sipCpp->setToIdentity();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x3, sipName_setToIdentity, doc_QMatrix3x3_setToIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x3_fill, "QMatrix3x3.fill(float)");

extern "C" {static PyObject *meth_QMatrix3x3_fill(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x3_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QMatrix3x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix3x3, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x3, sipName_fill, doc_QMatrix3x3_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x3_transposed, "QMatrix3x3.transposed() -> QMatrix3x3");

extern "C" {static PyObject *meth_QMatrix3x3_transposed(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x3_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x3, &sipCpp))
        {
            QMatrix3x3*sipRes;

            sipRes = new QMatrix3x3(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QMatrix3x3,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x3, sipName_transposed, doc_QMatrix3x3_transposed);

    return NULL;
}


extern "C" {static PyObject *slot_QMatrix3x3___ne__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x3___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x3, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix3x3::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QMatrix3x3,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix3x3___eq__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x3___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x3, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix3x3::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QMatrix3x3,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix3x3___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x3___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix3x3::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix3x3___imul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x3___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix3x3::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix3x3___isub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x3___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x3, &a0))
        {
            sipCpp->QMatrix3x3::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix3x3___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x3___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x3, &a0))
        {
            sipCpp->QMatrix3x3::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static int slot_QMatrix3x3___setitem__(PyObject *,PyObject *);}
static int slot_QMatrix3x3___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x3));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        float a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "P0f", &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 585 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 3, 3, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 152382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return -1;

            if (sipError == sipErrorNone)
            {
            return 0;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x3, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QMatrix3x3___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x3___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 571 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 3, 3, &row, &column)) == sipErrorNone)
        {
            sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column));

            if (!sipRes)
                sipError = sipErrorFail;
        }
#line 152431 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x3, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QMatrix3x3___repr__(PyObject *);}
static PyObject *slot_QMatrix3x3___repr__(PyObject *sipSelf)
{
    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x3));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 511 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        bool bad = false;
        int i;
        PyObject *m[9];
        PYQT_FLOAT data[9];

        // The raw data is in column-major order but we want row-major order.
        sipCpp->copyDataTo(data);

        for (i = 0; i < 9; ++i)
        {
            m[i] = PyFloat_FromDouble(data[i]);

            if (!m[i])
                bad = true;
        }

        if (!bad)
        {
#if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix3x3("
                    "%R, %R, %R, "
                    "%R, %R, %R, "
                    "%R, %R, %R)",
                    m[0], m[1], m[2],
                    m[3], m[4], m[5],
                    m[6], m[7], m[8]);
#else
            sipRes = PyString_FromString("PyQt5.QtGui.QMatrix3x3(");

            for (i = 0; i < 9; ++i)
            {
                if (i != 0)
                    PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));

                PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i]));
            }

            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
#endif
        }

        for (i = 0; i < 9; ++i)
            Py_XDECREF(m[i]);
#line 152509 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMatrix3x3(void *, const sipTypeDef *);}
static void *cast_QMatrix3x3(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QMatrix3x3)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMatrix3x3(void *, int);}
static void release_QMatrix3x3(void *sipCppV,int)
{
    delete reinterpret_cast<QMatrix3x3 *>(sipCppV);
}


extern "C" {static PyObject *pickle_QMatrix3x3(void *);}
static PyObject *pickle_QMatrix3x3(void *sipCppV)
{
    QMatrix3x3 *sipCpp = reinterpret_cast<QMatrix3x3 *>(sipCppV);
    PyObject *sipRes;

#line 487 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT data[9];

        // We want the data in row-major order.
        sipCpp->copyDataTo(data);

        sipRes = Py_BuildValue((char *)"ddddddddd",
                (double)data[0], (double)data[1], (double)data[2],
                (double)data[3], (double)data[4], (double)data[5],
                (double)data[6], (double)data[7], (double)data[8]);
#line 152554 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QMatrix3x3(void *, SIP_SSIZE_T, const void *);}
static void assign_QMatrix3x3(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMatrix3x3 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMatrix3x3 *>(sipSrc);
}


extern "C" {static void *array_QMatrix3x3(SIP_SSIZE_T);}
static void *array_QMatrix3x3(SIP_SSIZE_T sipNrElem)
{
    return new QMatrix3x3[sipNrElem];
}


extern "C" {static void *copy_QMatrix3x3(const void *, SIP_SSIZE_T);}
static void *copy_QMatrix3x3(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMatrix3x3(reinterpret_cast<const QMatrix3x3 *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QMatrix3x3(sipSimpleWrapper *);}
static void dealloc_QMatrix3x3(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QMatrix3x3(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QMatrix3x3(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMatrix3x3(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QMatrix3x3 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QMatrix3x3();

            return sipCpp;
        }
    }

    {
        const QMatrix3x3* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMatrix3x3, &a0))
        {
            sipCpp = new QMatrix3x3(*a0);

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "P0", &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 503 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[9];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 9, values)) == sipErrorNone)
            sipCpp = new QMatrix3x3(values);
#line 152628 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QMatrix3x3[] = {
    {(void *)slot_QMatrix3x3___ne__, ne_slot},
    {(void *)slot_QMatrix3x3___eq__, eq_slot},
    {(void *)slot_QMatrix3x3___idiv__, idiv_slot},
    {(void *)slot_QMatrix3x3___imul__, imul_slot},
    {(void *)slot_QMatrix3x3___isub__, isub_slot},
    {(void *)slot_QMatrix3x3___iadd__, iadd_slot},
    {(void *)slot_QMatrix3x3___setitem__, setitem_slot},
    {(void *)slot_QMatrix3x3___getitem__, getitem_slot},
    {(void *)slot_QMatrix3x3___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QMatrix3x3[] = {
    {SIP_MLNAME_CAST(sipName_copyDataTo), meth_QMatrix3x3_copyDataTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x3_copyDataTo)},
    {SIP_MLNAME_CAST(sipName_data), meth_QMatrix3x3_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x3_data)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QMatrix3x3_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x3_fill)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QMatrix3x3_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x3_isIdentity)},
    {SIP_MLNAME_CAST(sipName_setToIdentity), meth_QMatrix3x3_setToIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x3_setToIdentity)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QMatrix3x3_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x3_transposed)}
};

PyDoc_STRVAR(doc_QMatrix3x3, "\1QMatrix3x3()\n"
    "QMatrix3x3(QMatrix3x3)\n"
    "QMatrix3x3(sequence-of-float)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMatrix3x3 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMatrix3x3,
        {0}
    },
    {
        sipNameNr_QMatrix3x3,
        {0, 0, 1},
        6, methods_QMatrix3x3,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix3x3,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QMatrix3x3,
    init_type_QMatrix3x3,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMatrix3x3,
    assign_QMatrix3x3,
    array_QMatrix3x3,
    copy_QMatrix3x3,
    release_QMatrix3x3,
    cast_QMatrix3x3,
    0,
    0,
    0,
    pickle_QMatrix3x3,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 331 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 152735 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 152739 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix3x4_data, "QMatrix3x4.data() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix3x4_data(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x4_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix3x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x4, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 409 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(12, sipCpp->constData(), &sipRes);
#line 152759 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_data, doc_QMatrix3x4_data);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x4_copyDataTo, "QMatrix3x4.copyDataTo() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix3x4_copyDataTo(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x4_copyDataTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x4, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 414 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[12];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(12, values, &sipRes);
#line 152800 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_copyDataTo, doc_QMatrix3x4_copyDataTo);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x4_isIdentity, "QMatrix3x4.isIdentity() -> bool");

extern "C" {static PyObject *meth_QMatrix3x4_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x4_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x4, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_isIdentity, doc_QMatrix3x4_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x4_setToIdentity, "QMatrix3x4.setToIdentity()");

extern "C" {static PyObject *meth_QMatrix3x4_setToIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x4_setToIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix3x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x4, &sipCpp))
        {
            sipCpp->setToIdentity();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_setToIdentity, doc_QMatrix3x4_setToIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x4_fill, "QMatrix3x4.fill(float)");

extern "C" {static PyObject *meth_QMatrix3x4_fill(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x4_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QMatrix3x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QMatrix3x4, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_fill, doc_QMatrix3x4_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix3x4_transposed, "QMatrix3x4.transposed() -> QMatrix4x3");

extern "C" {static PyObject *meth_QMatrix3x4_transposed(PyObject *, PyObject *);}
static PyObject *meth_QMatrix3x4_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x4 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix3x4, &sipCpp))
        {
            QMatrix4x3*sipRes;

            sipRes = new QMatrix4x3(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QMatrix4x3,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName_transposed, doc_QMatrix3x4_transposed);

    return NULL;
}


extern "C" {static PyObject *slot_QMatrix3x4___ne__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x4___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x4, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix3x4::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QMatrix3x4,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix3x4___eq__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x4___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x4, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix3x4::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QMatrix3x4,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix3x4___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x4___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix3x4::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix3x4___imul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x4___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix3x4::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix3x4___isub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x4___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x4, &a0))
        {
            sipCpp->QMatrix3x4::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix3x4___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x4___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix3x4)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix3x4* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix3x4, &a0))
        {
            sipCpp->QMatrix3x4::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static int slot_QMatrix3x4___setitem__(PyObject *,PyObject *);}
static int slot_QMatrix3x4___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        float a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "P0f", &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 436 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 3, 4, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 153175 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return -1;

            if (sipError == sipErrorNone)
            {
            return 0;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QMatrix3x4___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix3x4___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 422 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 3, 4, &row, &column)) == sipErrorNone)
        {
            sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column));

            if (!sipRes)
                sipError = sipErrorFail;
        }
#line 153224 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix3x4, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QMatrix3x4___repr__(PyObject *);}
static PyObject *slot_QMatrix3x4___repr__(PyObject *sipSelf)
{
    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix3x4));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 360 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        bool bad = false;
        int i;
        PyObject *m[12];
        PYQT_FLOAT data[12];

        // The raw data is in column-major order but we want row-major order.
        sipCpp->copyDataTo(data);

        for (i = 0; i < 12; ++i)
        {
            m[i] = PyFloat_FromDouble(data[i]);

            if (!m[i])
                bad = true;
        }

        if (!bad)
        {
#if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix3x4("
                    "%R, %R, %R, "
                    "%R, %R, %R, "
                    "%R, %R, %R, "
                    "%R, %R, %R)",
                    m[0], m[1], m[2],
                    m[3], m[4], m[5],
                    m[6], m[7], m[8],
                    m[9], m[10], m[11]);
#else
            sipRes = PyString_FromString("PyQt5.QtGui.QMatrix3x4(");

            for (i = 0; i < 12; ++i)
            {
                if (i != 0)
                    PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));

                PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i]));
            }

            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
#endif
        }

        for (i = 0; i < 12; ++i)
            Py_XDECREF(m[i]);
#line 153304 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMatrix3x4(void *, const sipTypeDef *);}
static void *cast_QMatrix3x4(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QMatrix3x4)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMatrix3x4(void *, int);}
static void release_QMatrix3x4(void *sipCppV,int)
{
    delete reinterpret_cast<QMatrix3x4 *>(sipCppV);
}


extern "C" {static PyObject *pickle_QMatrix3x4(void *);}
static PyObject *pickle_QMatrix3x4(void *sipCppV)
{
    QMatrix3x4 *sipCpp = reinterpret_cast<QMatrix3x4 *>(sipCppV);
    PyObject *sipRes;

#line 335 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT data[12];

        // We want the data in row-major order.
        sipCpp->copyDataTo(data);

        sipRes = Py_BuildValue((char *)"dddddddddddd",
                (double)data[0], (double)data[1], (double)data[2],
                (double)data[3], (double)data[4], (double)data[5],
                (double)data[6], (double)data[7], (double)data[8],
                (double)data[9], (double)data[10], (double)data[11]);
#line 153350 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QMatrix3x4(void *, SIP_SSIZE_T, const void *);}
static void assign_QMatrix3x4(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMatrix3x4 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMatrix3x4 *>(sipSrc);
}


extern "C" {static void *array_QMatrix3x4(SIP_SSIZE_T);}
static void *array_QMatrix3x4(SIP_SSIZE_T sipNrElem)
{
    return new QMatrix3x4[sipNrElem];
}


extern "C" {static void *copy_QMatrix3x4(const void *, SIP_SSIZE_T);}
static void *copy_QMatrix3x4(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMatrix3x4(reinterpret_cast<const QMatrix3x4 *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QMatrix3x4(sipSimpleWrapper *);}
static void dealloc_QMatrix3x4(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QMatrix3x4(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QMatrix3x4(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMatrix3x4(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QMatrix3x4 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QMatrix3x4();

            return sipCpp;
        }
    }

    {
        const QMatrix3x4* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMatrix3x4, &a0))
        {
            sipCpp = new QMatrix3x4(*a0);

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "P0", &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 352 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[12];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 12, values)) == sipErrorNone)
            sipCpp = new QMatrix3x4(values);
#line 153424 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QMatrix3x4[] = {
    {(void *)slot_QMatrix3x4___ne__, ne_slot},
    {(void *)slot_QMatrix3x4___eq__, eq_slot},
    {(void *)slot_QMatrix3x4___idiv__, idiv_slot},
    {(void *)slot_QMatrix3x4___imul__, imul_slot},
    {(void *)slot_QMatrix3x4___isub__, isub_slot},
    {(void *)slot_QMatrix3x4___iadd__, iadd_slot},
    {(void *)slot_QMatrix3x4___setitem__, setitem_slot},
    {(void *)slot_QMatrix3x4___getitem__, getitem_slot},
    {(void *)slot_QMatrix3x4___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QMatrix3x4[] = {
    {SIP_MLNAME_CAST(sipName_copyDataTo), meth_QMatrix3x4_copyDataTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x4_copyDataTo)},
    {SIP_MLNAME_CAST(sipName_data), meth_QMatrix3x4_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x4_data)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QMatrix3x4_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x4_fill)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QMatrix3x4_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x4_isIdentity)},
    {SIP_MLNAME_CAST(sipName_setToIdentity), meth_QMatrix3x4_setToIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x4_setToIdentity)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QMatrix3x4_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix3x4_transposed)}
};

PyDoc_STRVAR(doc_QMatrix3x4, "\1QMatrix3x4()\n"
    "QMatrix3x4(QMatrix3x4)\n"
    "QMatrix3x4(sequence-of-float)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMatrix3x4 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMatrix3x4,
        {0}
    },
    {
        sipNameNr_QMatrix3x4,
        {0, 0, 1},
        6, methods_QMatrix3x4,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix3x4,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QMatrix3x4,
    init_type_QMatrix3x4,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMatrix3x4,
    assign_QMatrix3x4,
    array_QMatrix3x4,
    copy_QMatrix3x4,
    release_QMatrix3x4,
    cast_QMatrix3x4,
    0,
    0,
    0,
    pickle_QMatrix3x4,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 179 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 153531 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 781 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 153535 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix4x2_data, "QMatrix4x2.data() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix4x2_data(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x2_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix4x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x2, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 257 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(8, sipCpp->constData(), &sipRes);
#line 153555 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x2, sipName_data, doc_QMatrix4x2_data);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x2_copyDataTo, "QMatrix4x2.copyDataTo() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix4x2_copyDataTo(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x2_copyDataTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x2, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 262 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[8];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(8, values, &sipRes);
#line 153596 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x2, sipName_copyDataTo, doc_QMatrix4x2_copyDataTo);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x2_isIdentity, "QMatrix4x2.isIdentity() -> bool");

extern "C" {static PyObject *meth_QMatrix4x2_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x2_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x2, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x2, sipName_isIdentity, doc_QMatrix4x2_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x2_setToIdentity, "QMatrix4x2.setToIdentity()");

extern "C" {static PyObject *meth_QMatrix4x2_setToIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x2_setToIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix4x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x2, &sipCpp))
        {
            sipCpp->setToIdentity();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x2, sipName_setToIdentity, doc_QMatrix4x2_setToIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x2_fill, "QMatrix4x2.fill(float)");

extern "C" {static PyObject *meth_QMatrix4x2_fill(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x2_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QMatrix4x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix4x2, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x2, sipName_fill, doc_QMatrix4x2_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x2_transposed, "QMatrix4x2.transposed() -> QMatrix2x4");

extern "C" {static PyObject *meth_QMatrix4x2_transposed(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x2_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x2 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x2, &sipCpp))
        {
            QMatrix2x4*sipRes;

            sipRes = new QMatrix2x4(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QMatrix2x4,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x2, sipName_transposed, doc_QMatrix4x2_transposed);

    return NULL;
}


extern "C" {static PyObject *slot_QMatrix4x2___ne__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x2___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x2, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix4x2::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QMatrix4x2,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix4x2___eq__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x2___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x2, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix4x2::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QMatrix4x2,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix4x2___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x2___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix4x2::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix4x2___imul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x2___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix4x2::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix4x2___isub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x2___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x2, &a0))
        {
            sipCpp->QMatrix4x2::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix4x2___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x2___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x2)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x2* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x2, &a0))
        {
            sipCpp->QMatrix4x2::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static int slot_QMatrix4x2___setitem__(PyObject *,PyObject *);}
static int slot_QMatrix4x2___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x2));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        float a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "P0f", &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 284 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 4, 2, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 153971 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return -1;

            if (sipError == sipErrorNone)
            {
            return 0;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x2, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QMatrix4x2___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x2___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x2));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 270 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 4, 2, &row, &column)) == sipErrorNone)
        {
            sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column));

            if (!sipRes)
                sipError = sipErrorFail;
        }
#line 154020 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x2, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QMatrix4x2___repr__(PyObject *);}
static PyObject *slot_QMatrix4x2___repr__(PyObject *sipSelf)
{
    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x2));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 208 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        bool bad = false;
        int i;
        PyObject *m[8];
        PYQT_FLOAT data[8];

        // The raw data is in column-major order but we want row-major order.
        sipCpp->copyDataTo(data);

        for (i = 0; i < 8; ++i)
        {
            m[i] = PyFloat_FromDouble(data[i]);

            if (!m[i])
                bad = true;
        }

        if (!bad)
        {
#if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix4x2("
                    "%R, %R, "
                    "%R, %R, "
                    "%R, %R, "
                    "%R, %R)",
                    m[0], m[1],
                    m[2], m[3],
                    m[4], m[5],
                    m[6], m[7]);
#else
            sipRes = PyString_FromString("PyQt5.QtGui.QMatrix4x2(");

            for (i = 0; i < 8; ++i)
            {
                if (i != 0)
                    PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));

                PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i]));
            }

            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
#endif
        }

        for (i = 0; i < 8; ++i)
            Py_XDECREF(m[i]);
#line 154100 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMatrix4x2(void *, const sipTypeDef *);}
static void *cast_QMatrix4x2(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QMatrix4x2)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMatrix4x2(void *, int);}
static void release_QMatrix4x2(void *sipCppV,int)
{
    delete reinterpret_cast<QMatrix4x2 *>(sipCppV);
}


extern "C" {static PyObject *pickle_QMatrix4x2(void *);}
static PyObject *pickle_QMatrix4x2(void *sipCppV)
{
    QMatrix4x2 *sipCpp = reinterpret_cast<QMatrix4x2 *>(sipCppV);
    PyObject *sipRes;

#line 183 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT data[8];

        // We want the data in row-major order.
        sipCpp->copyDataTo(data);

        sipRes = Py_BuildValue((char *)"dddddddd",
                (double)data[0], (double)data[1],
                (double)data[2], (double)data[3],
                (double)data[4], (double)data[5],
                (double)data[6], (double)data[7]);
#line 154146 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QMatrix4x2(void *, SIP_SSIZE_T, const void *);}
static void assign_QMatrix4x2(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMatrix4x2 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMatrix4x2 *>(sipSrc);
}


extern "C" {static void *array_QMatrix4x2(SIP_SSIZE_T);}
static void *array_QMatrix4x2(SIP_SSIZE_T sipNrElem)
{
    return new QMatrix4x2[sipNrElem];
}


extern "C" {static void *copy_QMatrix4x2(const void *, SIP_SSIZE_T);}
static void *copy_QMatrix4x2(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMatrix4x2(reinterpret_cast<const QMatrix4x2 *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QMatrix4x2(sipSimpleWrapper *);}
static void dealloc_QMatrix4x2(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QMatrix4x2(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QMatrix4x2(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMatrix4x2(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QMatrix4x2 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QMatrix4x2();

            return sipCpp;
        }
    }

    {
        const QMatrix4x2* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMatrix4x2, &a0))
        {
            sipCpp = new QMatrix4x2(*a0);

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "P0", &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 200 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[8];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 8, values)) == sipErrorNone)
            sipCpp = new QMatrix4x2(values);
#line 154220 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QMatrix4x2[] = {
    {(void *)slot_QMatrix4x2___ne__, ne_slot},
    {(void *)slot_QMatrix4x2___eq__, eq_slot},
    {(void *)slot_QMatrix4x2___idiv__, idiv_slot},
    {(void *)slot_QMatrix4x2___imul__, imul_slot},
    {(void *)slot_QMatrix4x2___isub__, isub_slot},
    {(void *)slot_QMatrix4x2___iadd__, iadd_slot},
    {(void *)slot_QMatrix4x2___setitem__, setitem_slot},
    {(void *)slot_QMatrix4x2___getitem__, getitem_slot},
    {(void *)slot_QMatrix4x2___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QMatrix4x2[] = {
    {SIP_MLNAME_CAST(sipName_copyDataTo), meth_QMatrix4x2_copyDataTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x2_copyDataTo)},
    {SIP_MLNAME_CAST(sipName_data), meth_QMatrix4x2_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x2_data)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QMatrix4x2_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x2_fill)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QMatrix4x2_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x2_isIdentity)},
    {SIP_MLNAME_CAST(sipName_setToIdentity), meth_QMatrix4x2_setToIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x2_setToIdentity)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QMatrix4x2_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x2_transposed)}
};

PyDoc_STRVAR(doc_QMatrix4x2, "\1QMatrix4x2()\n"
    "QMatrix4x2(QMatrix4x2)\n"
    "QMatrix4x2(sequence-of-float)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMatrix4x2 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMatrix4x2,
        {0}
    },
    {
        sipNameNr_QMatrix4x2,
        {0, 0, 1},
        6, methods_QMatrix4x2,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix4x2,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QMatrix4x2,
    init_type_QMatrix4x2,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMatrix4x2,
    assign_QMatrix4x2,
    array_QMatrix4x2,
    copy_QMatrix4x2,
    release_QMatrix4x2,
    cast_QMatrix4x2,
    0,
    0,
    0,
    pickle_QMatrix4x2,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 27 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 154327 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 331 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
#include <qgenericmatrix.h>
#line 154331 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QMatrix4x3_data, "QMatrix4x3.data() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix4x3_data(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x3_data(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix4x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x3, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 105 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        sipError = qtgui_matrixDataAsList(12, sipCpp->constData(), &sipRes);
#line 154351 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x3, sipName_data, doc_QMatrix4x3_data);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x3_copyDataTo, "QMatrix4x3.copyDataTo() -> list-of-float");

extern "C" {static PyObject *meth_QMatrix4x3_copyDataTo(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x3_copyDataTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x3, &sipCpp))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 110 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[12];

        sipCpp->copyDataTo(values);
        sipError = qtgui_matrixDataAsList(12, values, &sipRes);
#line 154392 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x3, sipName_copyDataTo, doc_QMatrix4x3_copyDataTo);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x3_isIdentity, "QMatrix4x3.isIdentity() -> bool");

extern "C" {static PyObject *meth_QMatrix4x3_isIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x3_isIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x3, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isIdentity();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x3, sipName_isIdentity, doc_QMatrix4x3_isIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x3_setToIdentity, "QMatrix4x3.setToIdentity()");

extern "C" {static PyObject *meth_QMatrix4x3_setToIdentity(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x3_setToIdentity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMatrix4x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x3, &sipCpp))
        {
            sipCpp->setToIdentity();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x3, sipName_setToIdentity, doc_QMatrix4x3_setToIdentity);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x3_fill, "QMatrix4x3.fill(float)");

extern "C" {static PyObject *meth_QMatrix4x3_fill(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x3_fill(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        float a0;
        QMatrix4x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bf", &sipSelf, sipType_QMatrix4x3, &sipCpp, &a0))
        {
            sipCpp->fill(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x3, sipName_fill, doc_QMatrix4x3_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QMatrix4x3_transposed, "QMatrix4x3.transposed() -> QMatrix3x4");

extern "C" {static PyObject *meth_QMatrix4x3_transposed(PyObject *, PyObject *);}
static PyObject *meth_QMatrix4x3_transposed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x3 *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMatrix4x3, &sipCpp))
        {
            QMatrix3x4*sipRes;

            sipRes = new QMatrix3x4(sipCpp->transposed());

            return sipConvertFromNewType(sipRes,sipType_QMatrix3x4,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x3, sipName_transposed, doc_QMatrix4x3_transposed);

    return NULL;
}


extern "C" {static PyObject *slot_QMatrix4x3___ne__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x3___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x3, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix4x3::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QMatrix4x3,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix4x3___eq__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x3___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x3, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QMatrix4x3::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QMatrix4x3,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QMatrix4x3___idiv__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x3___idiv__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix4x3::operator/=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix4x3___imul__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x3___imul__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        float a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1f", &a0))
        {
            sipCpp->QMatrix4x3::operator*=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix4x3___isub__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x3___isub__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x3, &a0))
        {
            sipCpp->QMatrix4x3::operator-=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QMatrix4x3___iadd__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x3___iadd__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QMatrix4x3)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QMatrix4x3* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QMatrix4x3, &a0))
        {
            sipCpp->QMatrix4x3::operator+=(*a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static int slot_QMatrix4x3___setitem__(PyObject *,PyObject *);}
static int slot_QMatrix4x3___setitem__(PyObject *sipSelf,PyObject *sipArgs)
{
    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x3));

    if (!sipCpp)
        return -1;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        float a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "P0f", &a0, &a1))
        {
            sipErrorState sipError = sipErrorNone;

#line 132 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 4, 3, &row, &column)) == sipErrorNone)
            sipCpp->operator()(row, column) = a1;
#line 154767 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return -1;

            if (sipError == sipErrorNone)
            {
            return 0;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x3, sipName___setitem__, NULL);

    return -1;
}


extern "C" {static PyObject *slot_QMatrix4x3___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QMatrix4x3___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x3));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1P0", &a0))
        {
            PyObject * sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 118 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        int row, column;

        if ((sipError = qtgui_matrixParseIndex(a0, 4, 3, &row, &column)) == sipErrorNone)
        {
            sipRes = PyFloat_FromDouble(sipCpp->operator()(row, column));

            if (!sipRes)
                sipError = sipErrorFail;
        }
#line 154816 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return sipRes;
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMatrix4x3, sipName___getitem__, NULL);

    return 0;
}


extern "C" {static PyObject *slot_QMatrix4x3___repr__(PyObject *);}
static PyObject *slot_QMatrix4x3___repr__(PyObject *sipSelf)
{
    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QMatrix4x3));

    if (!sipCpp)
        return 0;


    {
        {
            PyObject * sipRes = 0;

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        bool bad = false;
        int i;
        PyObject *m[12];
        PYQT_FLOAT data[12];

        // The raw data is in column-major order but we want row-major order.
        sipCpp->copyDataTo(data);

        for (i = 0; i < 12; ++i)
        {
            m[i] = PyFloat_FromDouble(data[i]);

            if (!m[i])
                bad = true;
        }

        if (!bad)
        {
#if PY_MAJOR_VERSION >= 3
            sipRes = PyUnicode_FromFormat("PyQt5.QtGui.QMatrix4x3("
                    "%R, %R, %R, "
                    "%R, %R, %R, "
                    "%R, %R, %R, "
                    "%R, %R, %R)",
                    m[0], m[1], m[2],
                    m[3], m[4], m[5],
                    m[6], m[7], m[8],
                    m[9], m[10], m[11]);
#else
            sipRes = PyString_FromString("PyQt5.QtGui.QMatrix4x3(");

            for (i = 0; i < 12; ++i)
            {
                if (i != 0)
                    PyString_ConcatAndDel(&sipRes, PyString_FromString(", "));

                PyString_ConcatAndDel(&sipRes, PyObject_Repr(m[i]));
            }

            PyString_ConcatAndDel(&sipRes, PyString_FromString(")"));
#endif
        }

        for (i = 0; i < 12; ++i)
            Py_XDECREF(m[i]);
#line 154896 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMatrix4x3(void *, const sipTypeDef *);}
static void *cast_QMatrix4x3(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QMatrix4x3)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMatrix4x3(void *, int);}
static void release_QMatrix4x3(void *sipCppV,int)
{
    delete reinterpret_cast<QMatrix4x3 *>(sipCppV);
}


extern "C" {static PyObject *pickle_QMatrix4x3(void *);}
static PyObject *pickle_QMatrix4x3(void *sipCppV)
{
    QMatrix4x3 *sipCpp = reinterpret_cast<QMatrix4x3 *>(sipCppV);
    PyObject *sipRes;

#line 31 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT data[12];

        // We want the data in row-major order.
        sipCpp->copyDataTo(data);
    
        sipRes = Py_BuildValue((char *)"dddddddddddd",
                (double)data[0], (double)data[1], (double)data[2],
                (double)data[3], (double)data[4], (double)data[5],
                (double)data[6], (double)data[7], (double)data[8],
                (double)data[9], (double)data[10], (double)data[11]);
#line 154942 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QMatrix4x3(void *, SIP_SSIZE_T, const void *);}
static void assign_QMatrix4x3(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QMatrix4x3 *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QMatrix4x3 *>(sipSrc);
}


extern "C" {static void *array_QMatrix4x3(SIP_SSIZE_T);}
static void *array_QMatrix4x3(SIP_SSIZE_T sipNrElem)
{
    return new QMatrix4x3[sipNrElem];
}


extern "C" {static void *copy_QMatrix4x3(const void *, SIP_SSIZE_T);}
static void *copy_QMatrix4x3(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QMatrix4x3(reinterpret_cast<const QMatrix4x3 *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QMatrix4x3(sipSimpleWrapper *);}
static void dealloc_QMatrix4x3(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QMatrix4x3(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QMatrix4x3(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMatrix4x3(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QMatrix4x3 *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QMatrix4x3();

            return sipCpp;
        }
    }

    {
        const QMatrix4x3* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMatrix4x3, &a0))
        {
            sipCpp = new QMatrix4x3(*a0);

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "P0", &a0))
        {
            sipErrorState sipError = sipErrorNone;

#line 48 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qgenericmatrix.sip"
        PYQT_FLOAT values[12];

        if ((sipError = qtgui_matrixDataFromSequence(a0, 12, values)) == sipErrorNone)
            sipCpp = new QMatrix4x3(values);
#line 155016 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QMatrix4x3[] = {
    {(void *)slot_QMatrix4x3___ne__, ne_slot},
    {(void *)slot_QMatrix4x3___eq__, eq_slot},
    {(void *)slot_QMatrix4x3___idiv__, idiv_slot},
    {(void *)slot_QMatrix4x3___imul__, imul_slot},
    {(void *)slot_QMatrix4x3___isub__, isub_slot},
    {(void *)slot_QMatrix4x3___iadd__, iadd_slot},
    {(void *)slot_QMatrix4x3___setitem__, setitem_slot},
    {(void *)slot_QMatrix4x3___getitem__, getitem_slot},
    {(void *)slot_QMatrix4x3___repr__, repr_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QMatrix4x3[] = {
    {SIP_MLNAME_CAST(sipName_copyDataTo), meth_QMatrix4x3_copyDataTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x3_copyDataTo)},
    {SIP_MLNAME_CAST(sipName_data), meth_QMatrix4x3_data, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x3_data)},
    {SIP_MLNAME_CAST(sipName_fill), meth_QMatrix4x3_fill, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x3_fill)},
    {SIP_MLNAME_CAST(sipName_isIdentity), meth_QMatrix4x3_isIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x3_isIdentity)},
    {SIP_MLNAME_CAST(sipName_setToIdentity), meth_QMatrix4x3_setToIdentity, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x3_setToIdentity)},
    {SIP_MLNAME_CAST(sipName_transposed), meth_QMatrix4x3_transposed, METH_VARARGS, SIP_MLDOC_CAST(doc_QMatrix4x3_transposed)}
};

PyDoc_STRVAR(doc_QMatrix4x3, "\1QMatrix4x3()\n"
    "QMatrix4x3(QMatrix4x3)\n"
    "QMatrix4x3(sequence-of-float)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMatrix4x3 = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMatrix4x3,
        {0}
    },
    {
        sipNameNr_QMatrix4x3,
        {0, 0, 1},
        6, methods_QMatrix4x3,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMatrix4x3,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QMatrix4x3,
    init_type_QMatrix4x3,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMatrix4x3,
    assign_QMatrix4x3,
    array_QMatrix4x3,
    copy_QMatrix4x3,
    release_QMatrix4x3,
    cast_QMatrix4x3,
    0,
    0,
    0,
    pickle_QMatrix4x3,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 96 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 155123 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 155127 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 155130 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 155133 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 155136 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 155139 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 155142 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 155145 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 155148 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFontMetricsF_ascent, "QFontMetricsF.ascent() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_ascent(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_ascent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->ascent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_ascent, doc_QFontMetricsF_ascent);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_descent, "QFontMetricsF.descent() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_descent(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_descent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->descent();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_descent, doc_QFontMetricsF_descent);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_height, "QFontMetricsF.height() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_height(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->height();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_height, doc_QFontMetricsF_height);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_leading, "QFontMetricsF.leading() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_leading(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_leading(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->leading();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_leading, doc_QFontMetricsF_leading);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_lineSpacing, "QFontMetricsF.lineSpacing() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_lineSpacing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_lineSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->lineSpacing();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_lineSpacing, doc_QFontMetricsF_lineSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_minLeftBearing, "QFontMetricsF.minLeftBearing() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_minLeftBearing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_minLeftBearing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->minLeftBearing();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_minLeftBearing, doc_QFontMetricsF_minLeftBearing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_minRightBearing, "QFontMetricsF.minRightBearing() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_minRightBearing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_minRightBearing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->minRightBearing();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_minRightBearing, doc_QFontMetricsF_minRightBearing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_maxWidth, "QFontMetricsF.maxWidth() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_maxWidth(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_maxWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->maxWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_maxWidth, doc_QFontMetricsF_maxWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_xHeight, "QFontMetricsF.xHeight() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_xHeight(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_xHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->xHeight();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_xHeight, doc_QFontMetricsF_xHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_inFont, "QFontMetricsF.inFont(str) -> bool");

extern "C" {static PyObject *meth_QFontMetricsF_inFont(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_inFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->inFont(*a0);
            sipReleaseType(a0,sipType_QChar,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_inFont, doc_QFontMetricsF_inFont);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_leftBearing, "QFontMetricsF.leftBearing(str) -> float");

extern "C" {static PyObject *meth_QFontMetricsF_leftBearing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_leftBearing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            qreal sipRes;

            sipRes = sipCpp->leftBearing(*a0);
            sipReleaseType(a0,sipType_QChar,a0State);

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_leftBearing, doc_QFontMetricsF_leftBearing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_rightBearing, "QFontMetricsF.rightBearing(str) -> float");

extern "C" {static PyObject *meth_QFontMetricsF_rightBearing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_rightBearing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            qreal sipRes;

            sipRes = sipCpp->rightBearing(*a0);
            sipReleaseType(a0,sipType_QChar,a0State);

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_rightBearing, doc_QFontMetricsF_rightBearing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_widthChar, "QFontMetricsF.widthChar(str) -> float");

extern "C" {static PyObject *meth_QFontMetricsF_widthChar(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_widthChar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            qreal sipRes;

            sipRes = sipCpp->width(*a0);
            sipReleaseType(a0,sipType_QChar,a0State);

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_widthChar, doc_QFontMetricsF_widthChar);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_width, "QFontMetricsF.width(str) -> float");

extern "C" {static PyObject *meth_QFontMetricsF_width(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QString,&a0, &a0State))
        {
            qreal sipRes;

            sipRes = sipCpp->width(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_width, doc_QFontMetricsF_width);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_boundingRectChar, "QFontMetricsF.boundingRectChar(str) -> QRectF");

extern "C" {static PyObject *meth_QFontMetricsF_boundingRectChar(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_boundingRectChar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->boundingRect(*a0));
            sipReleaseType(a0,sipType_QChar,a0State);

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_boundingRectChar, doc_QFontMetricsF_boundingRectChar);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_boundingRect, "QFontMetricsF.boundingRect(str) -> QRectF\n"
    "QFontMetricsF.boundingRect(QRectF, int, str, int tabStops=0, list-of-int tabArray=0) -> QRectF");

extern "C" {static PyObject *meth_QFontMetricsF_boundingRect(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_boundingRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QFontMetricsF *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->boundingRect(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    {
        const QRectF* a0;
        int a1;
        const QString* a2;
        int a2State = 0;
        int a3 = 0;
        PyObject * a4 = 0;
        const QFontMetricsF *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_tabStops,
            sipName_tabArray,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9iJ1|iN", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QRectF, &a0, &a1, sipType_QString,&a2, &a2State, &a3, &PyList_Type, &a4))
        {
            QRectF*sipRes = 0;

#line 123 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
        int *tabarray = qtgui_tabarray(a4);
        
        sipRes = new QRectF(sipCpp->boundingRect(*a0, a1, *a2, a3, tabarray));
        
        if (!tabarray)
            delete[] tabarray;
#line 155626 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_boundingRect, doc_QFontMetricsF_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_size, "QFontMetricsF.size(int, str, int tabStops=0, list-of-int tabArray=0) -> QSizeF");

extern "C" {static PyObject *meth_QFontMetricsF_size(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_size(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QString* a1;
        int a1State = 0;
        int a2 = 0;
        PyObject * a3 = 0;
        const QFontMetricsF *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_tabStops,
            sipName_tabArray,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiJ1|iN", &sipSelf, sipType_QFontMetricsF, &sipCpp, &a0, sipType_QString,&a1, &a1State, &a2, &PyList_Type, &a3))
        {
            QSizeF*sipRes = 0;

#line 133 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
        int *tabarray = qtgui_tabarray(a3);
        
        sipRes = new QSizeF(sipCpp->size(a0, *a1, a2, tabarray));
        
        if (!tabarray)
            delete[] tabarray;
#line 155673 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_size, doc_QFontMetricsF_size);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_underlinePos, "QFontMetricsF.underlinePos() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_underlinePos(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_underlinePos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->underlinePos();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_underlinePos, doc_QFontMetricsF_underlinePos);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_overlinePos, "QFontMetricsF.overlinePos() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_overlinePos(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_overlinePos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->overlinePos();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_overlinePos, doc_QFontMetricsF_overlinePos);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_strikeOutPos, "QFontMetricsF.strikeOutPos() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_strikeOutPos(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_strikeOutPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->strikeOutPos();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_strikeOutPos, doc_QFontMetricsF_strikeOutPos);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_lineWidth, "QFontMetricsF.lineWidth() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_lineWidth(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_lineWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->lineWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_lineWidth, doc_QFontMetricsF_lineWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_averageCharWidth, "QFontMetricsF.averageCharWidth() -> float");

extern "C" {static PyObject *meth_QFontMetricsF_averageCharWidth(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_averageCharWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetricsF, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->averageCharWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_averageCharWidth, doc_QFontMetricsF_averageCharWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_elidedText, "QFontMetricsF.elidedText(str, Qt.TextElideMode, float, int flags=0) -> str");

extern "C" {static PyObject *meth_QFontMetricsF_elidedText(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_elidedText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Qt::TextElideMode a1;
        qreal a2;
        int a3 = 0;
        const QFontMetricsF *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1Ed|i", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QString,&a0, &a0State, sipType_Qt_TextElideMode, &a1, &a2, &a3))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->elidedText(*a0,a1,a2,a3));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_elidedText, doc_QFontMetricsF_elidedText);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_tightBoundingRect, "QFontMetricsF.tightBoundingRect(str) -> QRectF");

extern "C" {static PyObject *meth_QFontMetricsF_tightBoundingRect(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_tightBoundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->tightBoundingRect(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_tightBoundingRect, doc_QFontMetricsF_tightBoundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_inFontUcs4, "QFontMetricsF.inFontUcs4(int) -> bool");

extern "C" {static PyObject *meth_QFontMetricsF_inFontUcs4(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_inFontUcs4(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        uint a0;
        const QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QFontMetricsF, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->inFontUcs4(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_inFontUcs4, doc_QFontMetricsF_inFontUcs4);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetricsF_swap, "QFontMetricsF.swap(QFontMetricsF)");

extern "C" {static PyObject *meth_QFontMetricsF_swap(PyObject *, PyObject *);}
static PyObject *meth_QFontMetricsF_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFontMetricsF* a0;
        QFontMetricsF *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QFontMetricsF, &sipCpp, sipType_QFontMetricsF, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetricsF, sipName_swap, doc_QFontMetricsF_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QFontMetricsF___ne__(PyObject *,PyObject *);}
static PyObject *slot_QFontMetricsF___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QFontMetricsF *sipCpp = reinterpret_cast<QFontMetricsF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFontMetricsF));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QFontMetricsF, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QFontMetricsF::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QFontMetricsF,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QFontMetricsF___eq__(PyObject *,PyObject *);}
static PyObject *slot_QFontMetricsF___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QFontMetricsF *sipCpp = reinterpret_cast<QFontMetricsF *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFontMetricsF));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QFontMetricsF* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QFontMetricsF, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QFontMetricsF::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QFontMetricsF,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QFontMetricsF(void *, const sipTypeDef *);}
static void *cast_QFontMetricsF(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QFontMetricsF)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QFontMetricsF(void *, int);}
static void release_QFontMetricsF(void *sipCppV,int)
{
    delete reinterpret_cast<QFontMetricsF *>(sipCppV);
}


extern "C" {static void dealloc_QFontMetricsF(sipSimpleWrapper *);}
static void dealloc_QFontMetricsF(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QFontMetricsF(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QFontMetricsF(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QFontMetricsF(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QFontMetricsF *sipCpp = 0;

    {
        const QFont* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFont, &a0))
        {
            sipCpp = new QFontMetricsF(*a0);

            return sipCpp;
        }
    }

    {
        const QFont* a0;
        QPaintDevice* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J8", sipType_QFont, &a0, sipType_QPaintDevice, &a1))
        {
            sipCpp = new QFontMetricsF(*a0,a1);

            return sipCpp;
        }
    }

    {
        const QFontMetrics* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFontMetrics, &a0))
        {
            sipCpp = new QFontMetricsF(*a0);

            return sipCpp;
        }
    }

    {
        const QFontMetricsF* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFontMetricsF, &a0))
        {
            sipCpp = new QFontMetricsF(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QFontMetricsF[] = {
    {(void *)slot_QFontMetricsF___ne__, ne_slot},
    {(void *)slot_QFontMetricsF___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QFontMetricsF[] = {
    {SIP_MLNAME_CAST(sipName_ascent), meth_QFontMetricsF_ascent, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_ascent)},
    {SIP_MLNAME_CAST(sipName_averageCharWidth), meth_QFontMetricsF_averageCharWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_averageCharWidth)},
    {SIP_MLNAME_CAST(sipName_boundingRect), (PyCFunction)meth_QFontMetricsF_boundingRect, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontMetricsF_boundingRect)},
    {SIP_MLNAME_CAST(sipName_boundingRectChar), meth_QFontMetricsF_boundingRectChar, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_boundingRectChar)},
    {SIP_MLNAME_CAST(sipName_descent), meth_QFontMetricsF_descent, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_descent)},
    {SIP_MLNAME_CAST(sipName_elidedText), (PyCFunction)meth_QFontMetricsF_elidedText, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontMetricsF_elidedText)},
    {SIP_MLNAME_CAST(sipName_height), meth_QFontMetricsF_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_height)},
    {SIP_MLNAME_CAST(sipName_inFont), meth_QFontMetricsF_inFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_inFont)},
    {SIP_MLNAME_CAST(sipName_inFontUcs4), meth_QFontMetricsF_inFontUcs4, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_inFontUcs4)},
    {SIP_MLNAME_CAST(sipName_leading), meth_QFontMetricsF_leading, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_leading)},
    {SIP_MLNAME_CAST(sipName_leftBearing), meth_QFontMetricsF_leftBearing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_leftBearing)},
    {SIP_MLNAME_CAST(sipName_lineSpacing), meth_QFontMetricsF_lineSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_lineSpacing)},
    {SIP_MLNAME_CAST(sipName_lineWidth), meth_QFontMetricsF_lineWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_lineWidth)},
    {SIP_MLNAME_CAST(sipName_maxWidth), meth_QFontMetricsF_maxWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_maxWidth)},
    {SIP_MLNAME_CAST(sipName_minLeftBearing), meth_QFontMetricsF_minLeftBearing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_minLeftBearing)},
    {SIP_MLNAME_CAST(sipName_minRightBearing), meth_QFontMetricsF_minRightBearing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_minRightBearing)},
    {SIP_MLNAME_CAST(sipName_overlinePos), meth_QFontMetricsF_overlinePos, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_overlinePos)},
    {SIP_MLNAME_CAST(sipName_rightBearing), meth_QFontMetricsF_rightBearing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_rightBearing)},
    {SIP_MLNAME_CAST(sipName_size), (PyCFunction)meth_QFontMetricsF_size, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontMetricsF_size)},
    {SIP_MLNAME_CAST(sipName_strikeOutPos), meth_QFontMetricsF_strikeOutPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_strikeOutPos)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QFontMetricsF_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_swap)},
    {SIP_MLNAME_CAST(sipName_tightBoundingRect), meth_QFontMetricsF_tightBoundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_tightBoundingRect)},
    {SIP_MLNAME_CAST(sipName_underlinePos), meth_QFontMetricsF_underlinePos, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_underlinePos)},
    {SIP_MLNAME_CAST(sipName_width), meth_QFontMetricsF_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_width)},
    {SIP_MLNAME_CAST(sipName_widthChar), meth_QFontMetricsF_widthChar, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_widthChar)},
    {SIP_MLNAME_CAST(sipName_xHeight), meth_QFontMetricsF_xHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetricsF_xHeight)}
};

PyDoc_STRVAR(doc_QFontMetricsF, "\1QFontMetricsF(QFont)\n"
    "QFontMetricsF(QFont, QPaintDevice)\n"
    "QFontMetricsF(QFontMetrics)\n"
    "QFontMetricsF(QFontMetricsF)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QFontMetricsF = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QFontMetricsF,
        {0}
    },
    {
        sipNameNr_QFontMetricsF,
        {0, 0, 1},
        26, methods_QFontMetricsF,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFontMetricsF,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QFontMetricsF,
    init_type_QFontMetricsF,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QFontMetricsF,
    0,
    0,
    0,
    release_QFontMetricsF,
    cast_QFontMetricsF,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
#include <qfontmetrics.h>
#line 156194 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 156198 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 156201 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 156204 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 156207 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 156210 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 156213 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qchar.sip"
#include <qchar.h>
#line 156216 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFontMetrics_ascent, "QFontMetrics.ascent() -> int");

extern "C" {static PyObject *meth_QFontMetrics_ascent(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_ascent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->ascent();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_ascent, doc_QFontMetrics_ascent);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_descent, "QFontMetrics.descent() -> int");

extern "C" {static PyObject *meth_QFontMetrics_descent(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_descent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->descent();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_descent, doc_QFontMetrics_descent);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_height, "QFontMetrics.height() -> int");

extern "C" {static PyObject *meth_QFontMetrics_height(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->height();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_height, doc_QFontMetrics_height);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_leading, "QFontMetrics.leading() -> int");

extern "C" {static PyObject *meth_QFontMetrics_leading(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_leading(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->leading();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_leading, doc_QFontMetrics_leading);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_lineSpacing, "QFontMetrics.lineSpacing() -> int");

extern "C" {static PyObject *meth_QFontMetrics_lineSpacing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_lineSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->lineSpacing();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_lineSpacing, doc_QFontMetrics_lineSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_minLeftBearing, "QFontMetrics.minLeftBearing() -> int");

extern "C" {static PyObject *meth_QFontMetrics_minLeftBearing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_minLeftBearing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->minLeftBearing();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_minLeftBearing, doc_QFontMetrics_minLeftBearing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_minRightBearing, "QFontMetrics.minRightBearing() -> int");

extern "C" {static PyObject *meth_QFontMetrics_minRightBearing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_minRightBearing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->minRightBearing();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_minRightBearing, doc_QFontMetrics_minRightBearing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_maxWidth, "QFontMetrics.maxWidth() -> int");

extern "C" {static PyObject *meth_QFontMetrics_maxWidth(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_maxWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->maxWidth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_maxWidth, doc_QFontMetrics_maxWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_xHeight, "QFontMetrics.xHeight() -> int");

extern "C" {static PyObject *meth_QFontMetrics_xHeight(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_xHeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->xHeight();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_xHeight, doc_QFontMetrics_xHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_inFont, "QFontMetrics.inFont(str) -> bool");

extern "C" {static PyObject *meth_QFontMetrics_inFont(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_inFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->inFont(*a0);
            sipReleaseType(a0,sipType_QChar,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_inFont, doc_QFontMetrics_inFont);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_leftBearing, "QFontMetrics.leftBearing(str) -> int");

extern "C" {static PyObject *meth_QFontMetrics_leftBearing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_leftBearing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            int sipRes;

            sipRes = sipCpp->leftBearing(*a0);
            sipReleaseType(a0,sipType_QChar,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_leftBearing, doc_QFontMetrics_leftBearing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_rightBearing, "QFontMetrics.rightBearing(str) -> int");

extern "C" {static PyObject *meth_QFontMetrics_rightBearing(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_rightBearing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            int sipRes;

            sipRes = sipCpp->rightBearing(*a0);
            sipReleaseType(a0,sipType_QChar,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_rightBearing, doc_QFontMetrics_rightBearing);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_widthChar, "QFontMetrics.widthChar(str) -> int");

extern "C" {static PyObject *meth_QFontMetrics_widthChar(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_widthChar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            int sipRes;

            sipRes = sipCpp->width(*a0);
            sipReleaseType(a0,sipType_QChar,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_widthChar, doc_QFontMetrics_widthChar);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_width, "QFontMetrics.width(str, int length=-1) -> int");

extern "C" {static PyObject *meth_QFontMetrics_width(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_width(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        int a1 = -1;
        const QFontMetrics *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|i", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QString,&a0, &a0State, &a1))
        {
            int sipRes;

            sipRes = sipCpp->width(*a0,a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_width, doc_QFontMetrics_width);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_boundingRectChar, "QFontMetrics.boundingRectChar(str) -> QRect");

extern "C" {static PyObject *meth_QFontMetrics_boundingRectChar(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_boundingRectChar(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QChar* a0;
        int a0State = 0;
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QChar,&a0, &a0State))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->boundingRect(*a0));
            sipReleaseType(a0,sipType_QChar,a0State);

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_boundingRectChar, doc_QFontMetrics_boundingRectChar);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_boundingRect, "QFontMetrics.boundingRect(str) -> QRect\n"
    "QFontMetrics.boundingRect(QRect, int, str, int tabStops=0, list-of-int tabArray=0) -> QRect\n"
    "QFontMetrics.boundingRect(int, int, int, int, int, str, int tabStops=0, list-of-int tabArray=0) -> QRect");

extern "C" {static PyObject *meth_QFontMetrics_boundingRect(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_boundingRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QFontMetrics *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->boundingRect(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    {
        const QRect* a0;
        int a1;
        const QString* a2;
        int a2State = 0;
        int a3 = 0;
        PyObject * a4 = 0;
        const QFontMetrics *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_tabStops,
            sipName_tabArray,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9iJ1|iN", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QRect, &a0, &a1, sipType_QString,&a2, &a2State, &a3, &PyList_Type, &a4))
        {
            QRect*sipRes = 0;

#line 52 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
        int *tabarray = qtgui_tabarray(a4);
        
        sipRes = new QRect(sipCpp->boundingRect(*a0, a1, *a2, a3, tabarray));
        
        if (!tabarray)
            delete[] tabarray;
#line 156701 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QString *>(a2),sipType_QString,a2State);

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4;
        const QString* a5;
        int a5State = 0;
        int a6 = 0;
        PyObject * a7 = 0;
        const QFontMetrics *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_tabStops,
            sipName_tabArray,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiiiiJ1|iN", &sipSelf, sipType_QFontMetrics, &sipCpp, &a0, &a1, &a2, &a3, &a4, sipType_QString,&a5, &a5State, &a6, &PyList_Type, &a7))
        {
            QRect*sipRes = 0;

#line 62 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
        int *tabarray = qtgui_tabarray(a7);
        
        sipRes = new QRect(sipCpp->boundingRect(a0, a1, a2, a3, a4, *a5, a6, tabarray));
        
        if (!tabarray)
            delete[] tabarray;
#line 156742 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QString *>(a5),sipType_QString,a5State);

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_boundingRect, doc_QFontMetrics_boundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_size, "QFontMetrics.size(int, str, int tabStops=0, list-of-int tabArray=0) -> QSize");

extern "C" {static PyObject *meth_QFontMetrics_size(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_size(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QString* a1;
        int a1State = 0;
        int a2 = 0;
        PyObject * a3 = 0;
        const QFontMetrics *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_tabStops,
            sipName_tabArray,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiJ1|iN", &sipSelf, sipType_QFontMetrics, &sipCpp, &a0, sipType_QString,&a1, &a1State, &a2, &PyList_Type, &a3))
        {
            QSize*sipRes = 0;

#line 72 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontmetrics.sip"
        int *tabarray = qtgui_tabarray(a3);
        
        sipRes = new QSize(sipCpp->size(a0, *a1, a2, tabarray));
        
        if (!tabarray)
            delete[] tabarray;
#line 156789 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_size, doc_QFontMetrics_size);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_underlinePos, "QFontMetrics.underlinePos() -> int");

extern "C" {static PyObject *meth_QFontMetrics_underlinePos(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_underlinePos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->underlinePos();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_underlinePos, doc_QFontMetrics_underlinePos);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_overlinePos, "QFontMetrics.overlinePos() -> int");

extern "C" {static PyObject *meth_QFontMetrics_overlinePos(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_overlinePos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->overlinePos();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_overlinePos, doc_QFontMetrics_overlinePos);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_strikeOutPos, "QFontMetrics.strikeOutPos() -> int");

extern "C" {static PyObject *meth_QFontMetrics_strikeOutPos(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_strikeOutPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->strikeOutPos();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_strikeOutPos, doc_QFontMetrics_strikeOutPos);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_lineWidth, "QFontMetrics.lineWidth() -> int");

extern "C" {static PyObject *meth_QFontMetrics_lineWidth(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_lineWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->lineWidth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_lineWidth, doc_QFontMetrics_lineWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_averageCharWidth, "QFontMetrics.averageCharWidth() -> int");

extern "C" {static PyObject *meth_QFontMetrics_averageCharWidth(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_averageCharWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontMetrics, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->averageCharWidth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_averageCharWidth, doc_QFontMetrics_averageCharWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_elidedText, "QFontMetrics.elidedText(str, Qt.TextElideMode, int, int flags=0) -> str");

extern "C" {static PyObject *meth_QFontMetrics_elidedText(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_elidedText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        Qt::TextElideMode a1;
        int a2;
        int a3 = 0;
        const QFontMetrics *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1Ei|i", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QString,&a0, &a0State, sipType_Qt_TextElideMode, &a1, &a2, &a3))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->elidedText(*a0,a1,a2,a3));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_elidedText, doc_QFontMetrics_elidedText);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_tightBoundingRect, "QFontMetrics.tightBoundingRect(str) -> QRect");

extern "C" {static PyObject *meth_QFontMetrics_tightBoundingRect(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_tightBoundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->tightBoundingRect(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_tightBoundingRect, doc_QFontMetrics_tightBoundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_inFontUcs4, "QFontMetrics.inFontUcs4(int) -> bool");

extern "C" {static PyObject *meth_QFontMetrics_inFontUcs4(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_inFontUcs4(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        uint a0;
        const QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QFontMetrics, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->inFontUcs4(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_inFontUcs4, doc_QFontMetrics_inFontUcs4);

    return NULL;
}


PyDoc_STRVAR(doc_QFontMetrics_swap, "QFontMetrics.swap(QFontMetrics)");

extern "C" {static PyObject *meth_QFontMetrics_swap(PyObject *, PyObject *);}
static PyObject *meth_QFontMetrics_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFontMetrics* a0;
        QFontMetrics *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QFontMetrics, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_swap, doc_QFontMetrics_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QFontMetrics___ne__(PyObject *,PyObject *);}
static PyObject *slot_QFontMetrics___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QFontMetrics *sipCpp = reinterpret_cast<QFontMetrics *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFontMetrics));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QFontMetrics, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QFontMetrics::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QFontMetrics,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QFontMetrics___eq__(PyObject *,PyObject *);}
static PyObject *slot_QFontMetrics___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QFontMetrics *sipCpp = reinterpret_cast<QFontMetrics *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFontMetrics));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QFontMetrics* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QFontMetrics, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QFontMetrics::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QFontMetrics,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QFontMetrics(void *, const sipTypeDef *);}
static void *cast_QFontMetrics(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QFontMetrics)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QFontMetrics(void *, int);}
static void release_QFontMetrics(void *sipCppV,int)
{
    delete reinterpret_cast<QFontMetrics *>(sipCppV);
}


extern "C" {static void dealloc_QFontMetrics(sipSimpleWrapper *);}
static void dealloc_QFontMetrics(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QFontMetrics(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QFontMetrics(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QFontMetrics(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QFontMetrics *sipCpp = 0;

    {
        const QFont* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFont, &a0))
        {
            sipCpp = new QFontMetrics(*a0);

            return sipCpp;
        }
    }

    {
        const QFont* a0;
        QPaintDevice* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J8", sipType_QFont, &a0, sipType_QPaintDevice, &a1))
        {
            sipCpp = new QFontMetrics(*a0,a1);

            return sipCpp;
        }
    }

    {
        const QFontMetrics* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFontMetrics, &a0))
        {
            sipCpp = new QFontMetrics(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QFontMetrics[] = {
    {(void *)slot_QFontMetrics___ne__, ne_slot},
    {(void *)slot_QFontMetrics___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QFontMetrics[] = {
    {SIP_MLNAME_CAST(sipName_ascent), meth_QFontMetrics_ascent, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_ascent)},
    {SIP_MLNAME_CAST(sipName_averageCharWidth), meth_QFontMetrics_averageCharWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_averageCharWidth)},
    {SIP_MLNAME_CAST(sipName_boundingRect), (PyCFunction)meth_QFontMetrics_boundingRect, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontMetrics_boundingRect)},
    {SIP_MLNAME_CAST(sipName_boundingRectChar), meth_QFontMetrics_boundingRectChar, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_boundingRectChar)},
    {SIP_MLNAME_CAST(sipName_descent), meth_QFontMetrics_descent, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_descent)},
    {SIP_MLNAME_CAST(sipName_elidedText), (PyCFunction)meth_QFontMetrics_elidedText, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontMetrics_elidedText)},
    {SIP_MLNAME_CAST(sipName_height), meth_QFontMetrics_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_height)},
    {SIP_MLNAME_CAST(sipName_inFont), meth_QFontMetrics_inFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_inFont)},
    {SIP_MLNAME_CAST(sipName_inFontUcs4), meth_QFontMetrics_inFontUcs4, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_inFontUcs4)},
    {SIP_MLNAME_CAST(sipName_leading), meth_QFontMetrics_leading, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_leading)},
    {SIP_MLNAME_CAST(sipName_leftBearing), meth_QFontMetrics_leftBearing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_leftBearing)},
    {SIP_MLNAME_CAST(sipName_lineSpacing), meth_QFontMetrics_lineSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_lineSpacing)},
    {SIP_MLNAME_CAST(sipName_lineWidth), meth_QFontMetrics_lineWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_lineWidth)},
    {SIP_MLNAME_CAST(sipName_maxWidth), meth_QFontMetrics_maxWidth, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_maxWidth)},
    {SIP_MLNAME_CAST(sipName_minLeftBearing), meth_QFontMetrics_minLeftBearing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_minLeftBearing)},
    {SIP_MLNAME_CAST(sipName_minRightBearing), meth_QFontMetrics_minRightBearing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_minRightBearing)},
    {SIP_MLNAME_CAST(sipName_overlinePos), meth_QFontMetrics_overlinePos, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_overlinePos)},
    {SIP_MLNAME_CAST(sipName_rightBearing), meth_QFontMetrics_rightBearing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_rightBearing)},
    {SIP_MLNAME_CAST(sipName_size), (PyCFunction)meth_QFontMetrics_size, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontMetrics_size)},
    {SIP_MLNAME_CAST(sipName_strikeOutPos), meth_QFontMetrics_strikeOutPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_strikeOutPos)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QFontMetrics_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_swap)},
    {SIP_MLNAME_CAST(sipName_tightBoundingRect), meth_QFontMetrics_tightBoundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_tightBoundingRect)},
    {SIP_MLNAME_CAST(sipName_underlinePos), meth_QFontMetrics_underlinePos, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_underlinePos)},
    {SIP_MLNAME_CAST(sipName_width), (PyCFunction)meth_QFontMetrics_width, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontMetrics_width)},
    {SIP_MLNAME_CAST(sipName_widthChar), meth_QFontMetrics_widthChar, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_widthChar)},
    {SIP_MLNAME_CAST(sipName_xHeight), meth_QFontMetrics_xHeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontMetrics_xHeight)}
};

PyDoc_STRVAR(doc_QFontMetrics, "\1QFontMetrics(QFont)\n"
    "QFontMetrics(QFont, QPaintDevice)\n"
    "QFontMetrics(QFontMetrics)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QFontMetrics = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QFontMetrics,
        {0}
    },
    {
        sipNameNr_QFontMetrics,
        {0, 0, 1},
        26, methods_QFontMetrics,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFontMetrics,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QFontMetrics,
    init_type_QFontMetrics,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QFontMetrics,
    0,
    0,
    0,
    release_QFontMetrics,
    cast_QFontMetrics,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 157298 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 157302 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 157305 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFontInfo_family, "QFontInfo.family() -> str");

extern "C" {static PyObject *meth_QFontInfo_family(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_family(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->family());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_family, doc_QFontInfo_family);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_pixelSize, "QFontInfo.pixelSize() -> int");

extern "C" {static PyObject *meth_QFontInfo_pixelSize(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_pixelSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->pixelSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_pixelSize, doc_QFontInfo_pixelSize);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_pointSize, "QFontInfo.pointSize() -> int");

extern "C" {static PyObject *meth_QFontInfo_pointSize(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_pointSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->pointSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_pointSize, doc_QFontInfo_pointSize);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_pointSizeF, "QFontInfo.pointSizeF() -> float");

extern "C" {static PyObject *meth_QFontInfo_pointSizeF(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_pointSizeF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->pointSizeF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_pointSizeF, doc_QFontInfo_pointSizeF);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_italic, "QFontInfo.italic() -> bool");

extern "C" {static PyObject *meth_QFontInfo_italic(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_italic(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->italic();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_italic, doc_QFontInfo_italic);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_style, "QFontInfo.style() -> QFont.Style");

extern "C" {static PyObject *meth_QFontInfo_style(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_style(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            QFont::Style sipRes;

            sipRes = sipCpp->style();

            return sipConvertFromEnum(sipRes,sipType_QFont_Style);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_style, doc_QFontInfo_style);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_weight, "QFontInfo.weight() -> int");

extern "C" {static PyObject *meth_QFontInfo_weight(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_weight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->weight();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_weight, doc_QFontInfo_weight);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_bold, "QFontInfo.bold() -> bool");

extern "C" {static PyObject *meth_QFontInfo_bold(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_bold(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->bold();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_bold, doc_QFontInfo_bold);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_fixedPitch, "QFontInfo.fixedPitch() -> bool");

extern "C" {static PyObject *meth_QFontInfo_fixedPitch(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_fixedPitch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fixedPitch();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_fixedPitch, doc_QFontInfo_fixedPitch);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_styleHint, "QFontInfo.styleHint() -> QFont.StyleHint");

extern "C" {static PyObject *meth_QFontInfo_styleHint(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_styleHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            QFont::StyleHint sipRes;

            sipRes = sipCpp->styleHint();

            return sipConvertFromEnum(sipRes,sipType_QFont_StyleHint);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_styleHint, doc_QFontInfo_styleHint);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_rawMode, "QFontInfo.rawMode() -> bool");

extern "C" {static PyObject *meth_QFontInfo_rawMode(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_rawMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->rawMode();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_rawMode, doc_QFontInfo_rawMode);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_exactMatch, "QFontInfo.exactMatch() -> bool");

extern "C" {static PyObject *meth_QFontInfo_exactMatch(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_exactMatch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->exactMatch();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_exactMatch, doc_QFontInfo_exactMatch);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_styleName, "QFontInfo.styleName() -> str");

extern "C" {static PyObject *meth_QFontInfo_styleName(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_styleName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontInfo, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->styleName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_styleName, doc_QFontInfo_styleName);

    return NULL;
}


PyDoc_STRVAR(doc_QFontInfo_swap, "QFontInfo.swap(QFontInfo)");

extern "C" {static PyObject *meth_QFontInfo_swap(PyObject *, PyObject *);}
static PyObject *meth_QFontInfo_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFontInfo* a0;
        QFontInfo *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QFontInfo, &sipCpp, sipType_QFontInfo, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontInfo, sipName_swap, doc_QFontInfo_swap);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QFontInfo(void *, const sipTypeDef *);}
static void *cast_QFontInfo(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QFontInfo)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QFontInfo(void *, int);}
static void release_QFontInfo(void *sipCppV,int)
{
    delete reinterpret_cast<QFontInfo *>(sipCppV);
}


extern "C" {static void dealloc_QFontInfo(sipSimpleWrapper *);}
static void dealloc_QFontInfo(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QFontInfo(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QFontInfo(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QFontInfo(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QFontInfo *sipCpp = 0;

    {
        const QFont* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFont, &a0))
        {
            sipCpp = new QFontInfo(*a0);

            return sipCpp;
        }
    }

    {
        const QFontInfo* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFontInfo, &a0))
        {
            sipCpp = new QFontInfo(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QFontInfo[] = {
    {SIP_MLNAME_CAST(sipName_bold), meth_QFontInfo_bold, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_bold)},
    {SIP_MLNAME_CAST(sipName_exactMatch), meth_QFontInfo_exactMatch, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_exactMatch)},
    {SIP_MLNAME_CAST(sipName_family), meth_QFontInfo_family, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_family)},
    {SIP_MLNAME_CAST(sipName_fixedPitch), meth_QFontInfo_fixedPitch, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_fixedPitch)},
    {SIP_MLNAME_CAST(sipName_italic), meth_QFontInfo_italic, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_italic)},
    {SIP_MLNAME_CAST(sipName_pixelSize), meth_QFontInfo_pixelSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_pixelSize)},
    {SIP_MLNAME_CAST(sipName_pointSize), meth_QFontInfo_pointSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_pointSize)},
    {SIP_MLNAME_CAST(sipName_pointSizeF), meth_QFontInfo_pointSizeF, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_pointSizeF)},
    {SIP_MLNAME_CAST(sipName_rawMode), meth_QFontInfo_rawMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_rawMode)},
    {SIP_MLNAME_CAST(sipName_style), meth_QFontInfo_style, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_style)},
    {SIP_MLNAME_CAST(sipName_styleHint), meth_QFontInfo_styleHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_styleHint)},
    {SIP_MLNAME_CAST(sipName_styleName), meth_QFontInfo_styleName, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_styleName)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QFontInfo_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_swap)},
    {SIP_MLNAME_CAST(sipName_weight), meth_QFontInfo_weight, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontInfo_weight)}
};

PyDoc_STRVAR(doc_QFontInfo, "\1QFontInfo(QFont)\n"
    "QFontInfo(QFontInfo)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QFontInfo = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QFontInfo,
        {0}
    },
    {
        sipNameNr_QFontInfo,
        {0, 0, 1},
        14, methods_QFontInfo,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFontInfo,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QFontInfo,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QFontInfo,
    0,
    0,
    0,
    release_QFontInfo,
    cast_QFontInfo,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontdatabase.sip"
#include <qfontdatabase.h>
#line 157824 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 157828 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 157831 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 157834 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 157837 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfontinfo.sip"
#include <qfontinfo.h>
#line 157840 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 629 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 157843 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpygui_qlist.sip"
#include <qfontdatabase.h>
#line 157846 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFontDatabase_standardSizes, "QFontDatabase.standardSizes() -> list-of-int");

extern "C" {static PyObject *meth_QFontDatabase_standardSizes(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_standardSizes(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QList<int>*sipRes;

            sipRes = new QList<int>(QFontDatabase::standardSizes());

            return sipConvertFromNewType(sipRes,sipType_QList_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_standardSizes, doc_QFontDatabase_standardSizes);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_writingSystems, "QFontDatabase.writingSystems() -> list-of-QFontDatabase.WritingSystem\n"
    "QFontDatabase.writingSystems(str) -> list-of-QFontDatabase.WritingSystem");

extern "C" {static PyObject *meth_QFontDatabase_writingSystems(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_writingSystems(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFontDatabase, &sipCpp))
        {
            QList<QFontDatabase::WritingSystem>*sipRes;

            sipRes = new QList<QFontDatabase::WritingSystem>(sipCpp->writingSystems());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QFontDatabase_WritingSystem,NULL);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QList<QFontDatabase::WritingSystem>*sipRes;

            sipRes = new QList<QFontDatabase::WritingSystem>(sipCpp->writingSystems(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QList_0100QFontDatabase_WritingSystem,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_writingSystems, doc_QFontDatabase_writingSystems);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_families, "QFontDatabase.families(QFontDatabase.WritingSystem writingSystem=QFontDatabase.Any) -> list-of-str");

extern "C" {static PyObject *meth_QFontDatabase_families(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_families(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QFontDatabase::WritingSystem a0 = QFontDatabase::Any;
        const QFontDatabase *sipCpp;

        static const char *sipKwdList[] = {
            sipName_writingSystem,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QFontDatabase_WritingSystem, &a0))
        {
            QStringList*sipRes;

            sipRes = new QStringList(sipCpp->families(a0));

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_families, doc_QFontDatabase_families);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_styles, "QFontDatabase.styles(str) -> list-of-str");

extern "C" {static PyObject *meth_QFontDatabase_styles(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_styles(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State))
        {
            QStringList*sipRes;

            sipRes = new QStringList(sipCpp->styles(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_styles, doc_QFontDatabase_styles);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_pointSizes, "QFontDatabase.pointSizes(str, str style='') -> list-of-int");

extern "C" {static PyObject *meth_QFontDatabase_pointSizes(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_pointSizes(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        QFontDatabase *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_style,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QList<int>*sipRes;

            sipRes = new QList<int>(sipCpp->pointSizes(*a0,*a1));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QList_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_pointSizes, doc_QFontDatabase_pointSizes);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_smoothSizes, "QFontDatabase.smoothSizes(str, str) -> list-of-int");

extern "C" {static PyObject *meth_QFontDatabase_smoothSizes(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_smoothSizes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QList<int>*sipRes;

            sipRes = new QList<int>(sipCpp->smoothSizes(*a0,*a1));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QList_1800,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_smoothSizes, doc_QFontDatabase_smoothSizes);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_styleString, "QFontDatabase.styleString(QFont) -> str\n"
    "QFontDatabase.styleString(QFontInfo) -> str");

extern "C" {static PyObject *meth_QFontDatabase_styleString(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_styleString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;
        QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QFont, &a0))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->styleString(*a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        const QFontInfo* a0;
        QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QFontInfo, &a0))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->styleString(*a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_styleString, doc_QFontDatabase_styleString);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_font, "QFontDatabase.font(str, str, int) -> QFont");

extern "C" {static PyObject *meth_QFontDatabase_font(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_font(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        int a2;
        const QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1i", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State, &a2))
        {
            QFont*sipRes;

            sipRes = new QFont(sipCpp->font(*a0,*a1,a2));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_font, doc_QFontDatabase_font);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_isBitmapScalable, "QFontDatabase.isBitmapScalable(str, str style='') -> bool");

extern "C" {static PyObject *meth_QFontDatabase_isBitmapScalable(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_isBitmapScalable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        const QFontDatabase *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_style,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->isBitmapScalable(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_isBitmapScalable, doc_QFontDatabase_isBitmapScalable);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_isSmoothlyScalable, "QFontDatabase.isSmoothlyScalable(str, str style='') -> bool");

extern "C" {static PyObject *meth_QFontDatabase_isSmoothlyScalable(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_isSmoothlyScalable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        const QFontDatabase *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_style,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->isSmoothlyScalable(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_isSmoothlyScalable, doc_QFontDatabase_isSmoothlyScalable);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_isScalable, "QFontDatabase.isScalable(str, str style='') -> bool");

extern "C" {static PyObject *meth_QFontDatabase_isScalable(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_isScalable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        const QFontDatabase *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_style,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->isScalable(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_isScalable, doc_QFontDatabase_isScalable);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_isFixedPitch, "QFontDatabase.isFixedPitch(str, str style='') -> bool");

extern "C" {static PyObject *meth_QFontDatabase_isFixedPitch(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_isFixedPitch(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString& a1def = QString();
        const QString* a1 = &a1def;
        int a1State = 0;
        const QFontDatabase *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_style,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|J1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->isFixedPitch(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_isFixedPitch, doc_QFontDatabase_isFixedPitch);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_italic, "QFontDatabase.italic(str, str) -> bool");

extern "C" {static PyObject *meth_QFontDatabase_italic(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_italic(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->italic(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_italic, doc_QFontDatabase_italic);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_bold, "QFontDatabase.bold(str, str) -> bool");

extern "C" {static PyObject *meth_QFontDatabase_bold(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_bold(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->bold(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_bold, doc_QFontDatabase_bold);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_weight, "QFontDatabase.weight(str, str) -> int");

extern "C" {static PyObject *meth_QFontDatabase_weight(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_weight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;
        const QFontDatabase *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QFontDatabase, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            int sipRes;

            sipRes = sipCpp->weight(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_weight, doc_QFontDatabase_weight);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_writingSystemName, "QFontDatabase.writingSystemName(QFontDatabase.WritingSystem) -> str");

extern "C" {static PyObject *meth_QFontDatabase_writingSystemName(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_writingSystemName(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFontDatabase::WritingSystem a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QFontDatabase_WritingSystem, &a0))
        {
            QString*sipRes;

            sipRes = new QString(QFontDatabase::writingSystemName(a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_writingSystemName, doc_QFontDatabase_writingSystemName);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_writingSystemSample, "QFontDatabase.writingSystemSample(QFontDatabase.WritingSystem) -> str");

extern "C" {static PyObject *meth_QFontDatabase_writingSystemSample(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_writingSystemSample(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFontDatabase::WritingSystem a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QFontDatabase_WritingSystem, &a0))
        {
            QString*sipRes;

            sipRes = new QString(QFontDatabase::writingSystemSample(a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_writingSystemSample, doc_QFontDatabase_writingSystemSample);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_addApplicationFont, "QFontDatabase.addApplicationFont(str) -> int");

extern "C" {static PyObject *meth_QFontDatabase_addApplicationFont(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_addApplicationFont(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            int sipRes;

            sipRes = QFontDatabase::addApplicationFont(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_addApplicationFont, doc_QFontDatabase_addApplicationFont);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_addApplicationFontFromData, "QFontDatabase.addApplicationFontFromData(QByteArray) -> int");

extern "C" {static PyObject *meth_QFontDatabase_addApplicationFontFromData(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_addApplicationFontFromData(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QByteArray* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QByteArray, &a0, &a0State))
        {
            int sipRes;

            sipRes = QFontDatabase::addApplicationFontFromData(*a0);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_addApplicationFontFromData, doc_QFontDatabase_addApplicationFontFromData);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_applicationFontFamilies, "QFontDatabase.applicationFontFamilies(int) -> list-of-str");

extern "C" {static PyObject *meth_QFontDatabase_applicationFontFamilies(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_applicationFontFamilies(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            QStringList*sipRes;

            sipRes = new QStringList(QFontDatabase::applicationFontFamilies(a0));

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_applicationFontFamilies, doc_QFontDatabase_applicationFontFamilies);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_removeApplicationFont, "QFontDatabase.removeApplicationFont(int) -> bool");

extern "C" {static PyObject *meth_QFontDatabase_removeApplicationFont(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_removeApplicationFont(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "i", &a0))
        {
            bool sipRes;

            sipRes = QFontDatabase::removeApplicationFont(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_removeApplicationFont, doc_QFontDatabase_removeApplicationFont);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_removeAllApplicationFonts, "QFontDatabase.removeAllApplicationFonts() -> bool");

extern "C" {static PyObject *meth_QFontDatabase_removeAllApplicationFonts(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_removeAllApplicationFonts(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            sipRes = QFontDatabase::removeAllApplicationFonts();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_removeAllApplicationFonts, doc_QFontDatabase_removeAllApplicationFonts);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_supportsThreadedFontRendering, "QFontDatabase.supportsThreadedFontRendering() -> bool");

extern "C" {static PyObject *meth_QFontDatabase_supportsThreadedFontRendering(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_supportsThreadedFontRendering(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            bool sipRes;

            sipRes = QFontDatabase::supportsThreadedFontRendering();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_supportsThreadedFontRendering, doc_QFontDatabase_supportsThreadedFontRendering);

    return NULL;
}


PyDoc_STRVAR(doc_QFontDatabase_systemFont, "QFontDatabase.systemFont(QFontDatabase.SystemFont) -> QFont");

extern "C" {static PyObject *meth_QFontDatabase_systemFont(PyObject *, PyObject *);}
static PyObject *meth_QFontDatabase_systemFont(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFontDatabase::SystemFont a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "E", sipType_QFontDatabase_SystemFont, &a0))
        {
            QFont*sipRes;

            sipRes = new QFont(QFontDatabase::systemFont(a0));

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFontDatabase, sipName_systemFont, doc_QFontDatabase_systemFont);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QFontDatabase(void *, const sipTypeDef *);}
static void *cast_QFontDatabase(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QFontDatabase)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QFontDatabase(void *, int);}
static void release_QFontDatabase(void *sipCppV,int)
{
    delete reinterpret_cast<QFontDatabase *>(sipCppV);
}


extern "C" {static void assign_QFontDatabase(void *, SIP_SSIZE_T, const void *);}
static void assign_QFontDatabase(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QFontDatabase *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QFontDatabase *>(sipSrc);
}


extern "C" {static void *array_QFontDatabase(SIP_SSIZE_T);}
static void *array_QFontDatabase(SIP_SSIZE_T sipNrElem)
{
    return new QFontDatabase[sipNrElem];
}


extern "C" {static void *copy_QFontDatabase(const void *, SIP_SSIZE_T);}
static void *copy_QFontDatabase(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QFontDatabase(reinterpret_cast<const QFontDatabase *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QFontDatabase(sipSimpleWrapper *);}
static void dealloc_QFontDatabase(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QFontDatabase(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QFontDatabase(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QFontDatabase(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QFontDatabase *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QFontDatabase();

            return sipCpp;
        }
    }

    {
        const QFontDatabase* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFontDatabase, &a0))
        {
            sipCpp = new QFontDatabase(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QFontDatabase[] = {
    {SIP_MLNAME_CAST(sipName_addApplicationFont), meth_QFontDatabase_addApplicationFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_addApplicationFont)},
    {SIP_MLNAME_CAST(sipName_addApplicationFontFromData), meth_QFontDatabase_addApplicationFontFromData, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_addApplicationFontFromData)},
    {SIP_MLNAME_CAST(sipName_applicationFontFamilies), meth_QFontDatabase_applicationFontFamilies, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_applicationFontFamilies)},
    {SIP_MLNAME_CAST(sipName_bold), meth_QFontDatabase_bold, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_bold)},
    {SIP_MLNAME_CAST(sipName_families), (PyCFunction)meth_QFontDatabase_families, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontDatabase_families)},
    {SIP_MLNAME_CAST(sipName_font), meth_QFontDatabase_font, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_font)},
    {SIP_MLNAME_CAST(sipName_isBitmapScalable), (PyCFunction)meth_QFontDatabase_isBitmapScalable, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontDatabase_isBitmapScalable)},
    {SIP_MLNAME_CAST(sipName_isFixedPitch), (PyCFunction)meth_QFontDatabase_isFixedPitch, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontDatabase_isFixedPitch)},
    {SIP_MLNAME_CAST(sipName_isScalable), (PyCFunction)meth_QFontDatabase_isScalable, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontDatabase_isScalable)},
    {SIP_MLNAME_CAST(sipName_isSmoothlyScalable), (PyCFunction)meth_QFontDatabase_isSmoothlyScalable, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontDatabase_isSmoothlyScalable)},
    {SIP_MLNAME_CAST(sipName_italic), meth_QFontDatabase_italic, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_italic)},
    {SIP_MLNAME_CAST(sipName_pointSizes), (PyCFunction)meth_QFontDatabase_pointSizes, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFontDatabase_pointSizes)},
    {SIP_MLNAME_CAST(sipName_removeAllApplicationFonts), meth_QFontDatabase_removeAllApplicationFonts, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_removeAllApplicationFonts)},
    {SIP_MLNAME_CAST(sipName_removeApplicationFont), meth_QFontDatabase_removeApplicationFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_removeApplicationFont)},
    {SIP_MLNAME_CAST(sipName_smoothSizes), meth_QFontDatabase_smoothSizes, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_smoothSizes)},
    {SIP_MLNAME_CAST(sipName_standardSizes), meth_QFontDatabase_standardSizes, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_standardSizes)},
    {SIP_MLNAME_CAST(sipName_styleString), meth_QFontDatabase_styleString, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_styleString)},
    {SIP_MLNAME_CAST(sipName_styles), meth_QFontDatabase_styles, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_styles)},
    {SIP_MLNAME_CAST(sipName_supportsThreadedFontRendering), meth_QFontDatabase_supportsThreadedFontRendering, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_supportsThreadedFontRendering)},
    {SIP_MLNAME_CAST(sipName_systemFont), meth_QFontDatabase_systemFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_systemFont)},
    {SIP_MLNAME_CAST(sipName_weight), meth_QFontDatabase_weight, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_weight)},
    {SIP_MLNAME_CAST(sipName_writingSystemName), meth_QFontDatabase_writingSystemName, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_writingSystemName)},
    {SIP_MLNAME_CAST(sipName_writingSystemSample), meth_QFontDatabase_writingSystemSample, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_writingSystemSample)},
    {SIP_MLNAME_CAST(sipName_writingSystems), meth_QFontDatabase_writingSystems, METH_VARARGS, SIP_MLDOC_CAST(doc_QFontDatabase_writingSystems)}
};

static sipEnumMemberDef enummembers_QFontDatabase[] = {
    {sipName_Any, static_cast<int>(QFontDatabase::Any), 42},
    {sipName_Arabic, static_cast<int>(QFontDatabase::Arabic), 42},
    {sipName_Armenian, static_cast<int>(QFontDatabase::Armenian), 42},
    {sipName_Bengali, static_cast<int>(QFontDatabase::Bengali), 42},
    {sipName_Cyrillic, static_cast<int>(QFontDatabase::Cyrillic), 42},
    {sipName_Devanagari, static_cast<int>(QFontDatabase::Devanagari), 42},
    {sipName_FixedFont, static_cast<int>(QFontDatabase::FixedFont), 41},
    {sipName_GeneralFont, static_cast<int>(QFontDatabase::GeneralFont), 41},
    {sipName_Georgian, static_cast<int>(QFontDatabase::Georgian), 42},
    {sipName_Greek, static_cast<int>(QFontDatabase::Greek), 42},
    {sipName_Gujarati, static_cast<int>(QFontDatabase::Gujarati), 42},
    {sipName_Gurmukhi, static_cast<int>(QFontDatabase::Gurmukhi), 42},
    {sipName_Hebrew, static_cast<int>(QFontDatabase::Hebrew), 42},
    {sipName_Japanese, static_cast<int>(QFontDatabase::Japanese), 42},
    {sipName_Kannada, static_cast<int>(QFontDatabase::Kannada), 42},
    {sipName_Khmer, static_cast<int>(QFontDatabase::Khmer), 42},
    {sipName_Korean, static_cast<int>(QFontDatabase::Korean), 42},
    {sipName_Lao, static_cast<int>(QFontDatabase::Lao), 42},
    {sipName_Latin, static_cast<int>(QFontDatabase::Latin), 42},
    {sipName_Malayalam, static_cast<int>(QFontDatabase::Malayalam), 42},
    {sipName_Myanmar, static_cast<int>(QFontDatabase::Myanmar), 42},
    {sipName_Nko, static_cast<int>(QFontDatabase::Nko), 42},
    {sipName_Ogham, static_cast<int>(QFontDatabase::Ogham), 42},
    {sipName_Oriya, static_cast<int>(QFontDatabase::Oriya), 42},
    {sipName_Other, static_cast<int>(QFontDatabase::Other), 42},
    {sipName_Runic, static_cast<int>(QFontDatabase::Runic), 42},
    {sipName_SimplifiedChinese, static_cast<int>(QFontDatabase::SimplifiedChinese), 42},
    {sipName_Sinhala, static_cast<int>(QFontDatabase::Sinhala), 42},
    {sipName_SmallestReadableFont, static_cast<int>(QFontDatabase::SmallestReadableFont), 41},
    {sipName_Symbol, static_cast<int>(QFontDatabase::Symbol), 42},
    {sipName_Syriac, static_cast<int>(QFontDatabase::Syriac), 42},
    {sipName_Tamil, static_cast<int>(QFontDatabase::Tamil), 42},
    {sipName_Telugu, static_cast<int>(QFontDatabase::Telugu), 42},
    {sipName_Thaana, static_cast<int>(QFontDatabase::Thaana), 42},
    {sipName_Thai, static_cast<int>(QFontDatabase::Thai), 42},
    {sipName_Tibetan, static_cast<int>(QFontDatabase::Tibetan), 42},
    {sipName_TitleFont, static_cast<int>(QFontDatabase::TitleFont), 41},
    {sipName_TraditionalChinese, static_cast<int>(QFontDatabase::TraditionalChinese), 42},
    {sipName_Vietnamese, static_cast<int>(QFontDatabase::Vietnamese), 42},
};

PyDoc_STRVAR(doc_QFontDatabase, "\1QFontDatabase()\n"
    "QFontDatabase(QFontDatabase)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QFontDatabase = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QFontDatabase,
        {0}
    },
    {
        sipNameNr_QFontDatabase,
        {0, 0, 1},
        24, methods_QFontDatabase,
        39, enummembers_QFontDatabase,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFontDatabase,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QFontDatabase,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QFontDatabase,
    assign_QFontDatabase,
    array_QFontDatabase,
    copy_QFontDatabase,
    release_QFontDatabase,
    cast_QFontDatabase,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 158836 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 158840 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 158843 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 158846 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 158849 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFont_family, "QFont.family() -> str");

extern "C" {static PyObject *meth_QFont_family(PyObject *, PyObject *);}
static PyObject *meth_QFont_family(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->family());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_family, doc_QFont_family);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setFamily, "QFont.setFamily(str)");

extern "C" {static PyObject *meth_QFont_setFamily(PyObject *, PyObject *);}
static PyObject *meth_QFont_setFamily(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFont, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setFamily(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setFamily, doc_QFont_setFamily);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_pointSize, "QFont.pointSize() -> int");

extern "C" {static PyObject *meth_QFont_pointSize(PyObject *, PyObject *);}
static PyObject *meth_QFont_pointSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->pointSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_pointSize, doc_QFont_pointSize);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setPointSize, "QFont.setPointSize(int)");

extern "C" {static PyObject *meth_QFont_setPointSize(PyObject *, PyObject *);}
static PyObject *meth_QFont_setPointSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setPointSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setPointSize, doc_QFont_setPointSize);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_pointSizeF, "QFont.pointSizeF() -> float");

extern "C" {static PyObject *meth_QFont_pointSizeF(PyObject *, PyObject *);}
static PyObject *meth_QFont_pointSizeF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->pointSizeF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_pointSizeF, doc_QFont_pointSizeF);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setPointSizeF, "QFont.setPointSizeF(float)");

extern "C" {static PyObject *meth_QFont_setPointSizeF(PyObject *, PyObject *);}
static PyObject *meth_QFont_setPointSizeF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setPointSizeF(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setPointSizeF, doc_QFont_setPointSizeF);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_pixelSize, "QFont.pixelSize() -> int");

extern "C" {static PyObject *meth_QFont_pixelSize(PyObject *, PyObject *);}
static PyObject *meth_QFont_pixelSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->pixelSize();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_pixelSize, doc_QFont_pixelSize);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setPixelSize, "QFont.setPixelSize(int)");

extern "C" {static PyObject *meth_QFont_setPixelSize(PyObject *, PyObject *);}
static PyObject *meth_QFont_setPixelSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setPixelSize(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setPixelSize, doc_QFont_setPixelSize);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_weight, "QFont.weight() -> int");

extern "C" {static PyObject *meth_QFont_weight(PyObject *, PyObject *);}
static PyObject *meth_QFont_weight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->weight();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_weight, doc_QFont_weight);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setWeight, "QFont.setWeight(int)");

extern "C" {static PyObject *meth_QFont_setWeight(PyObject *, PyObject *);}
static PyObject *meth_QFont_setWeight(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setWeight(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setWeight, doc_QFont_setWeight);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setStyle, "QFont.setStyle(QFont.Style)");

extern "C" {static PyObject *meth_QFont_setStyle(PyObject *, PyObject *);}
static PyObject *meth_QFont_setStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::Style a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QFont, &sipCpp, sipType_QFont_Style, &a0))
        {
            sipCpp->setStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setStyle, doc_QFont_setStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_style, "QFont.style() -> QFont.Style");

extern "C" {static PyObject *meth_QFont_style(PyObject *, PyObject *);}
static PyObject *meth_QFont_style(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QFont::Style sipRes;

            sipRes = sipCpp->style();

            return sipConvertFromEnum(sipRes,sipType_QFont_Style);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_style, doc_QFont_style);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_underline, "QFont.underline() -> bool");

extern "C" {static PyObject *meth_QFont_underline(PyObject *, PyObject *);}
static PyObject *meth_QFont_underline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->underline();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_underline, doc_QFont_underline);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setUnderline, "QFont.setUnderline(bool)");

extern "C" {static PyObject *meth_QFont_setUnderline(PyObject *, PyObject *);}
static PyObject *meth_QFont_setUnderline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setUnderline(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setUnderline, doc_QFont_setUnderline);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_overline, "QFont.overline() -> bool");

extern "C" {static PyObject *meth_QFont_overline(PyObject *, PyObject *);}
static PyObject *meth_QFont_overline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->overline();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_overline, doc_QFont_overline);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setOverline, "QFont.setOverline(bool)");

extern "C" {static PyObject *meth_QFont_setOverline(PyObject *, PyObject *);}
static PyObject *meth_QFont_setOverline(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setOverline(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setOverline, doc_QFont_setOverline);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_strikeOut, "QFont.strikeOut() -> bool");

extern "C" {static PyObject *meth_QFont_strikeOut(PyObject *, PyObject *);}
static PyObject *meth_QFont_strikeOut(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->strikeOut();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_strikeOut, doc_QFont_strikeOut);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setStrikeOut, "QFont.setStrikeOut(bool)");

extern "C" {static PyObject *meth_QFont_setStrikeOut(PyObject *, PyObject *);}
static PyObject *meth_QFont_setStrikeOut(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setStrikeOut(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setStrikeOut, doc_QFont_setStrikeOut);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_fixedPitch, "QFont.fixedPitch() -> bool");

extern "C" {static PyObject *meth_QFont_fixedPitch(PyObject *, PyObject *);}
static PyObject *meth_QFont_fixedPitch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->fixedPitch();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_fixedPitch, doc_QFont_fixedPitch);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setFixedPitch, "QFont.setFixedPitch(bool)");

extern "C" {static PyObject *meth_QFont_setFixedPitch(PyObject *, PyObject *);}
static PyObject *meth_QFont_setFixedPitch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setFixedPitch(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setFixedPitch, doc_QFont_setFixedPitch);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_kerning, "QFont.kerning() -> bool");

extern "C" {static PyObject *meth_QFont_kerning(PyObject *, PyObject *);}
static PyObject *meth_QFont_kerning(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->kerning();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_kerning, doc_QFont_kerning);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setKerning, "QFont.setKerning(bool)");

extern "C" {static PyObject *meth_QFont_setKerning(PyObject *, PyObject *);}
static PyObject *meth_QFont_setKerning(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setKerning(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setKerning, doc_QFont_setKerning);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_styleHint, "QFont.styleHint() -> QFont.StyleHint");

extern "C" {static PyObject *meth_QFont_styleHint(PyObject *, PyObject *);}
static PyObject *meth_QFont_styleHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QFont::StyleHint sipRes;

            sipRes = sipCpp->styleHint();

            return sipConvertFromEnum(sipRes,sipType_QFont_StyleHint);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_styleHint, doc_QFont_styleHint);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_styleStrategy, "QFont.styleStrategy() -> QFont.StyleStrategy");

extern "C" {static PyObject *meth_QFont_styleStrategy(PyObject *, PyObject *);}
static PyObject *meth_QFont_styleStrategy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QFont::StyleStrategy sipRes;

            sipRes = sipCpp->styleStrategy();

            return sipConvertFromEnum(sipRes,sipType_QFont_StyleStrategy);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_styleStrategy, doc_QFont_styleStrategy);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setStyleHint, "QFont.setStyleHint(QFont.StyleHint, QFont.StyleStrategy strategy=QFont.PreferDefault)");

extern "C" {static PyObject *meth_QFont_setStyleHint(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QFont_setStyleHint(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::StyleHint a0;
        QFont::StyleStrategy a1 = QFont::PreferDefault;
        QFont *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_strategy,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BE|E", &sipSelf, sipType_QFont, &sipCpp, sipType_QFont_StyleHint, &a0, sipType_QFont_StyleStrategy, &a1))
        {
            sipCpp->setStyleHint(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setStyleHint, doc_QFont_setStyleHint);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setStyleStrategy, "QFont.setStyleStrategy(QFont.StyleStrategy)");

extern "C" {static PyObject *meth_QFont_setStyleStrategy(PyObject *, PyObject *);}
static PyObject *meth_QFont_setStyleStrategy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::StyleStrategy a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QFont, &sipCpp, sipType_QFont_StyleStrategy, &a0))
        {
            sipCpp->setStyleStrategy(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setStyleStrategy, doc_QFont_setStyleStrategy);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_stretch, "QFont.stretch() -> int");

extern "C" {static PyObject *meth_QFont_stretch(PyObject *, PyObject *);}
static PyObject *meth_QFont_stretch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->stretch();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_stretch, doc_QFont_stretch);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setStretch, "QFont.setStretch(int)");

extern "C" {static PyObject *meth_QFont_setStretch(PyObject *, PyObject *);}
static PyObject *meth_QFont_setStretch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setStretch(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setStretch, doc_QFont_setStretch);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_rawMode, "QFont.rawMode() -> bool");

extern "C" {static PyObject *meth_QFont_rawMode(PyObject *, PyObject *);}
static PyObject *meth_QFont_rawMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->rawMode();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_rawMode, doc_QFont_rawMode);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setRawMode, "QFont.setRawMode(bool)");

extern "C" {static PyObject *meth_QFont_setRawMode(PyObject *, PyObject *);}
static PyObject *meth_QFont_setRawMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setRawMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setRawMode, doc_QFont_setRawMode);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_exactMatch, "QFont.exactMatch() -> bool");

extern "C" {static PyObject *meth_QFont_exactMatch(PyObject *, PyObject *);}
static PyObject *meth_QFont_exactMatch(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->exactMatch();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_exactMatch, doc_QFont_exactMatch);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_isCopyOf, "QFont.isCopyOf(QFont) -> bool");

extern "C" {static PyObject *meth_QFont_isCopyOf(PyObject *, PyObject *);}
static PyObject *meth_QFont_isCopyOf(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QFont, &sipCpp, sipType_QFont, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isCopyOf(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_isCopyOf, doc_QFont_isCopyOf);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setRawName, "QFont.setRawName(str)");

extern "C" {static PyObject *meth_QFont_setRawName(PyObject *, PyObject *);}
static PyObject *meth_QFont_setRawName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFont, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setRawName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setRawName, doc_QFont_setRawName);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_rawName, "QFont.rawName() -> str");

extern "C" {static PyObject *meth_QFont_rawName(PyObject *, PyObject *);}
static PyObject *meth_QFont_rawName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->rawName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_rawName, doc_QFont_rawName);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_key, "QFont.key() -> str");

extern "C" {static PyObject *meth_QFont_key(PyObject *, PyObject *);}
static PyObject *meth_QFont_key(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->key());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_key, doc_QFont_key);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_toString, "QFont.toString() -> str");

extern "C" {static PyObject *meth_QFont_toString(PyObject *, PyObject *);}
static PyObject *meth_QFont_toString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->toString());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_toString, doc_QFont_toString);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_fromString, "QFont.fromString(str) -> bool");

extern "C" {static PyObject *meth_QFont_fromString(PyObject *, PyObject *);}
static PyObject *meth_QFont_fromString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFont, &sipCpp, sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->fromString(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_fromString, doc_QFont_fromString);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_substitute, "QFont.substitute(str) -> str");

extern "C" {static PyObject *meth_QFont_substitute(PyObject *, PyObject *);}
static PyObject *meth_QFont_substitute(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QString*sipRes;

            sipRes = new QString(QFont::substitute(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_substitute, doc_QFont_substitute);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_substitutes, "QFont.substitutes(str) -> list-of-str");

extern "C" {static PyObject *meth_QFont_substitutes(PyObject *, PyObject *);}
static PyObject *meth_QFont_substitutes(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QStringList*sipRes;

            sipRes = new QStringList(QFont::substitutes(*a0));
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_substitutes, doc_QFont_substitutes);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_substitutions, "QFont.substitutions() -> list-of-str");

extern "C" {static PyObject *meth_QFont_substitutions(PyObject *, PyObject *);}
static PyObject *meth_QFont_substitutions(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QStringList*sipRes;

            sipRes = new QStringList(QFont::substitutions());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_substitutions, doc_QFont_substitutions);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_insertSubstitution, "QFont.insertSubstitution(str, str)");

extern "C" {static PyObject *meth_QFont_insertSubstitution(PyObject *, PyObject *);}
static PyObject *meth_QFont_insertSubstitution(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QString* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State))
        {
            QFont::insertSubstitution(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_insertSubstitution, doc_QFont_insertSubstitution);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_insertSubstitutions, "QFont.insertSubstitutions(str, list-of-str)");

extern "C" {static PyObject *meth_QFont_insertSubstitutions(PyObject *, PyObject *);}
static PyObject *meth_QFont_insertSubstitutions(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const QStringList* a1;
        int a1State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J1", sipType_QString,&a0, &a0State, sipType_QStringList,&a1, &a1State))
        {
            QFont::insertSubstitutions(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QStringList *>(a1),sipType_QStringList,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_insertSubstitutions, doc_QFont_insertSubstitutions);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_removeSubstitutions, "QFont.removeSubstitutions(str)");

extern "C" {static PyObject *meth_QFont_removeSubstitutions(PyObject *, PyObject *);}
static PyObject *meth_QFont_removeSubstitutions(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QFont::removeSubstitutions(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_removeSubstitutions, doc_QFont_removeSubstitutions);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_initialize, "QFont.initialize()");

extern "C" {static PyObject *meth_QFont_initialize(PyObject *, PyObject *);}
static PyObject *meth_QFont_initialize(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QFont::initialize();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_initialize, doc_QFont_initialize);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_cleanup, "QFont.cleanup()");

extern "C" {static PyObject *meth_QFont_cleanup(PyObject *, PyObject *);}
static PyObject *meth_QFont_cleanup(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QFont::cleanup();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_cleanup, doc_QFont_cleanup);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_cacheStatistics, "QFont.cacheStatistics()");

extern "C" {static PyObject *meth_QFont_cacheStatistics(PyObject *, PyObject *);}
static PyObject *meth_QFont_cacheStatistics(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QFont::cacheStatistics();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_cacheStatistics, doc_QFont_cacheStatistics);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_defaultFamily, "QFont.defaultFamily() -> str");

extern "C" {static PyObject *meth_QFont_defaultFamily(PyObject *, PyObject *);}
static PyObject *meth_QFont_defaultFamily(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->defaultFamily());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_defaultFamily, doc_QFont_defaultFamily);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_lastResortFamily, "QFont.lastResortFamily() -> str");

extern "C" {static PyObject *meth_QFont_lastResortFamily(PyObject *, PyObject *);}
static PyObject *meth_QFont_lastResortFamily(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->lastResortFamily());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_lastResortFamily, doc_QFont_lastResortFamily);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_lastResortFont, "QFont.lastResortFont() -> str");

extern "C" {static PyObject *meth_QFont_lastResortFont(PyObject *, PyObject *);}
static PyObject *meth_QFont_lastResortFont(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->lastResortFont());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_lastResortFont, doc_QFont_lastResortFont);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_resolve, "QFont.resolve(QFont) -> QFont");

extern "C" {static PyObject *meth_QFont_resolve(PyObject *, PyObject *);}
static PyObject *meth_QFont_resolve(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QFont, &sipCpp, sipType_QFont, &a0))
        {
            QFont*sipRes;

            sipRes = new QFont(sipCpp->resolve(*a0));

            return sipConvertFromNewType(sipRes,sipType_QFont,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_resolve, doc_QFont_resolve);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_bold, "QFont.bold() -> bool");

extern "C" {static PyObject *meth_QFont_bold(PyObject *, PyObject *);}
static PyObject *meth_QFont_bold(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->bold();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_bold, doc_QFont_bold);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setBold, "QFont.setBold(bool)");

extern "C" {static PyObject *meth_QFont_setBold(PyObject *, PyObject *);}
static PyObject *meth_QFont_setBold(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setBold(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setBold, doc_QFont_setBold);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_italic, "QFont.italic() -> bool");

extern "C" {static PyObject *meth_QFont_italic(PyObject *, PyObject *);}
static PyObject *meth_QFont_italic(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->italic();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_italic, doc_QFont_italic);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setItalic, "QFont.setItalic(bool)");

extern "C" {static PyObject *meth_QFont_setItalic(PyObject *, PyObject *);}
static PyObject *meth_QFont_setItalic(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setItalic(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setItalic, doc_QFont_setItalic);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_letterSpacing, "QFont.letterSpacing() -> float");

extern "C" {static PyObject *meth_QFont_letterSpacing(PyObject *, PyObject *);}
static PyObject *meth_QFont_letterSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->letterSpacing();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_letterSpacing, doc_QFont_letterSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_letterSpacingType, "QFont.letterSpacingType() -> QFont.SpacingType");

extern "C" {static PyObject *meth_QFont_letterSpacingType(PyObject *, PyObject *);}
static PyObject *meth_QFont_letterSpacingType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QFont::SpacingType sipRes;

            sipRes = sipCpp->letterSpacingType();

            return sipConvertFromEnum(sipRes,sipType_QFont_SpacingType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_letterSpacingType, doc_QFont_letterSpacingType);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setLetterSpacing, "QFont.setLetterSpacing(QFont.SpacingType, float)");

extern "C" {static PyObject *meth_QFont_setLetterSpacing(PyObject *, PyObject *);}
static PyObject *meth_QFont_setLetterSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::SpacingType a0;
        qreal a1;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEd", &sipSelf, sipType_QFont, &sipCpp, sipType_QFont_SpacingType, &a0, &a1))
        {
            sipCpp->setLetterSpacing(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setLetterSpacing, doc_QFont_setLetterSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_wordSpacing, "QFont.wordSpacing() -> float");

extern "C" {static PyObject *meth_QFont_wordSpacing(PyObject *, PyObject *);}
static PyObject *meth_QFont_wordSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->wordSpacing();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_wordSpacing, doc_QFont_wordSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setWordSpacing, "QFont.setWordSpacing(float)");

extern "C" {static PyObject *meth_QFont_setWordSpacing(PyObject *, PyObject *);}
static PyObject *meth_QFont_setWordSpacing(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QFont, &sipCpp, &a0))
        {
            sipCpp->setWordSpacing(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setWordSpacing, doc_QFont_setWordSpacing);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setCapitalization, "QFont.setCapitalization(QFont.Capitalization)");

extern "C" {static PyObject *meth_QFont_setCapitalization(PyObject *, PyObject *);}
static PyObject *meth_QFont_setCapitalization(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::Capitalization a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QFont, &sipCpp, sipType_QFont_Capitalization, &a0))
        {
            sipCpp->setCapitalization(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setCapitalization, doc_QFont_setCapitalization);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_capitalization, "QFont.capitalization() -> QFont.Capitalization");

extern "C" {static PyObject *meth_QFont_capitalization(PyObject *, PyObject *);}
static PyObject *meth_QFont_capitalization(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QFont::Capitalization sipRes;

            sipRes = sipCpp->capitalization();

            return sipConvertFromEnum(sipRes,sipType_QFont_Capitalization);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_capitalization, doc_QFont_capitalization);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_styleName, "QFont.styleName() -> str");

extern "C" {static PyObject *meth_QFont_styleName(PyObject *, PyObject *);}
static PyObject *meth_QFont_styleName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->styleName());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_styleName, doc_QFont_styleName);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setStyleName, "QFont.setStyleName(str)");

extern "C" {static PyObject *meth_QFont_setStyleName(PyObject *, PyObject *);}
static PyObject *meth_QFont_setStyleName(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFont, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setStyleName(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setStyleName, doc_QFont_setStyleName);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_setHintingPreference, "QFont.setHintingPreference(QFont.HintingPreference)");

extern "C" {static PyObject *meth_QFont_setHintingPreference(PyObject *, PyObject *);}
static PyObject *meth_QFont_setHintingPreference(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont::HintingPreference a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QFont, &sipCpp, sipType_QFont_HintingPreference, &a0))
        {
            sipCpp->setHintingPreference(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_setHintingPreference, doc_QFont_setHintingPreference);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_hintingPreference, "QFont.hintingPreference() -> QFont.HintingPreference");

extern "C" {static PyObject *meth_QFont_hintingPreference(PyObject *, PyObject *);}
static PyObject *meth_QFont_hintingPreference(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFont, &sipCpp))
        {
            QFont::HintingPreference sipRes;

            sipRes = sipCpp->hintingPreference();

            return sipConvertFromEnum(sipRes,sipType_QFont_HintingPreference);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_hintingPreference, doc_QFont_hintingPreference);

    return NULL;
}


PyDoc_STRVAR(doc_QFont_swap, "QFont.swap(QFont)");

extern "C" {static PyObject *meth_QFont_swap(PyObject *, PyObject *);}
static PyObject *meth_QFont_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFont* a0;
        QFont *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QFont, &sipCpp, sipType_QFont, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFont, sipName_swap, doc_QFont_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QFont___ge__(PyObject *,PyObject *);}
static PyObject *slot_QFont___ge__(PyObject *sipSelf,PyObject *sipArg)
{
    QFont *sipCpp = reinterpret_cast<QFont *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFont));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QFont, &a0))
        {
            bool sipRes;

            sipRes = !sipCpp->QFont::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ge_slot,sipType_QFont,sipSelf,sipArg);
}


extern "C" {static long slot_QFont___hash__(PyObject *);}
static long slot_QFont___hash__(PyObject *sipSelf)
{
    QFont *sipCpp = reinterpret_cast<QFont *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFont));

    if (!sipCpp)
        return 0;


    {
        {
            long sipRes = 0;

#line 209 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
        sipRes = qHash(*sipCpp);
#line 160701 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QFont___lt__(PyObject *,PyObject *);}
static PyObject *slot_QFont___lt__(PyObject *sipSelf,PyObject *sipArg)
{
    QFont *sipCpp = reinterpret_cast<QFont *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFont));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QFont, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QFont::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,lt_slot,sipType_QFont,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QFont___ne__(PyObject *,PyObject *);}
static PyObject *slot_QFont___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QFont *sipCpp = reinterpret_cast<QFont *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFont));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QFont, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QFont::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QFont,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QFont___eq__(PyObject *,PyObject *);}
static PyObject *slot_QFont___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QFont *sipCpp = reinterpret_cast<QFont *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QFont));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QFont* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QFont, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QFont::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QFont,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QFont(void *, const sipTypeDef *);}
static void *cast_QFont(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QFont)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QFont(void *, int);}
static void release_QFont(void *sipCppV,int)
{
    delete reinterpret_cast<QFont *>(sipCppV);
}


extern "C" {static void assign_QFont(void *, SIP_SSIZE_T, const void *);}
static void assign_QFont(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QFont *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QFont *>(sipSrc);
}


extern "C" {static void *array_QFont(SIP_SSIZE_T);}
static void *array_QFont(SIP_SSIZE_T sipNrElem)
{
    return new QFont[sipNrElem];
}


extern "C" {static void *copy_QFont(const void *, SIP_SSIZE_T);}
static void *copy_QFont(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QFont(reinterpret_cast<const QFont *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QFont(sipSimpleWrapper *);}
static void dealloc_QFont(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QFont(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QFont(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QFont(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QFont *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QFont();

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        int a1 = -1;
        int a2 = -1;
        bool a3 = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_pointSize,
            sipName_weight,
            sipName_italic,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|iib", sipType_QString,&a0, &a0State, &a1, &a2, &a3))
        {
            sipCpp = new QFont(*a0,a1,a2,a3);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QFont* a0;
        QPaintDevice* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J8", sipType_QFont, &a0, sipType_QPaintDevice, &a1))
        {
            sipCpp = new QFont(*a0,a1);

            return sipCpp;
        }
    }

    {
        const QFont* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFont, &a0))
        {
            sipCpp = new QFont(*a0);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 105 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qfont.sip"
        if (a0->canConvert<QFont>())
            sipCpp = new QFont(a0->value<QFont>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 160931 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QFont[] = {
    {(void *)slot_QFont___ge__, ge_slot},
    {(void *)slot_QFont___hash__, hash_slot},
    {(void *)slot_QFont___lt__, lt_slot},
    {(void *)slot_QFont___ne__, ne_slot},
    {(void *)slot_QFont___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QFont[] = {
    {SIP_MLNAME_CAST(sipName_bold), meth_QFont_bold, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_bold)},
    {SIP_MLNAME_CAST(sipName_cacheStatistics), meth_QFont_cacheStatistics, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_cacheStatistics)},
    {SIP_MLNAME_CAST(sipName_capitalization), meth_QFont_capitalization, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_capitalization)},
    {SIP_MLNAME_CAST(sipName_cleanup), meth_QFont_cleanup, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_cleanup)},
    {SIP_MLNAME_CAST(sipName_defaultFamily), meth_QFont_defaultFamily, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_defaultFamily)},
    {SIP_MLNAME_CAST(sipName_exactMatch), meth_QFont_exactMatch, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_exactMatch)},
    {SIP_MLNAME_CAST(sipName_family), meth_QFont_family, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_family)},
    {SIP_MLNAME_CAST(sipName_fixedPitch), meth_QFont_fixedPitch, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_fixedPitch)},
    {SIP_MLNAME_CAST(sipName_fromString), meth_QFont_fromString, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_fromString)},
    {SIP_MLNAME_CAST(sipName_hintingPreference), meth_QFont_hintingPreference, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_hintingPreference)},
    {SIP_MLNAME_CAST(sipName_initialize), meth_QFont_initialize, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_initialize)},
    {SIP_MLNAME_CAST(sipName_insertSubstitution), meth_QFont_insertSubstitution, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_insertSubstitution)},
    {SIP_MLNAME_CAST(sipName_insertSubstitutions), meth_QFont_insertSubstitutions, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_insertSubstitutions)},
    {SIP_MLNAME_CAST(sipName_isCopyOf), meth_QFont_isCopyOf, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_isCopyOf)},
    {SIP_MLNAME_CAST(sipName_italic), meth_QFont_italic, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_italic)},
    {SIP_MLNAME_CAST(sipName_kerning), meth_QFont_kerning, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_kerning)},
    {SIP_MLNAME_CAST(sipName_key), meth_QFont_key, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_key)},
    {SIP_MLNAME_CAST(sipName_lastResortFamily), meth_QFont_lastResortFamily, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_lastResortFamily)},
    {SIP_MLNAME_CAST(sipName_lastResortFont), meth_QFont_lastResortFont, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_lastResortFont)},
    {SIP_MLNAME_CAST(sipName_letterSpacing), meth_QFont_letterSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_letterSpacing)},
    {SIP_MLNAME_CAST(sipName_letterSpacingType), meth_QFont_letterSpacingType, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_letterSpacingType)},
    {SIP_MLNAME_CAST(sipName_overline), meth_QFont_overline, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_overline)},
    {SIP_MLNAME_CAST(sipName_pixelSize), meth_QFont_pixelSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_pixelSize)},
    {SIP_MLNAME_CAST(sipName_pointSize), meth_QFont_pointSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_pointSize)},
    {SIP_MLNAME_CAST(sipName_pointSizeF), meth_QFont_pointSizeF, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_pointSizeF)},
    {SIP_MLNAME_CAST(sipName_rawMode), meth_QFont_rawMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_rawMode)},
    {SIP_MLNAME_CAST(sipName_rawName), meth_QFont_rawName, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_rawName)},
    {SIP_MLNAME_CAST(sipName_removeSubstitutions), meth_QFont_removeSubstitutions, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_removeSubstitutions)},
    {SIP_MLNAME_CAST(sipName_resolve), meth_QFont_resolve, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_resolve)},
    {SIP_MLNAME_CAST(sipName_setBold), meth_QFont_setBold, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setBold)},
    {SIP_MLNAME_CAST(sipName_setCapitalization), meth_QFont_setCapitalization, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setCapitalization)},
    {SIP_MLNAME_CAST(sipName_setFamily), meth_QFont_setFamily, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setFamily)},
    {SIP_MLNAME_CAST(sipName_setFixedPitch), meth_QFont_setFixedPitch, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setFixedPitch)},
    {SIP_MLNAME_CAST(sipName_setHintingPreference), meth_QFont_setHintingPreference, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setHintingPreference)},
    {SIP_MLNAME_CAST(sipName_setItalic), meth_QFont_setItalic, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setItalic)},
    {SIP_MLNAME_CAST(sipName_setKerning), meth_QFont_setKerning, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setKerning)},
    {SIP_MLNAME_CAST(sipName_setLetterSpacing), meth_QFont_setLetterSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setLetterSpacing)},
    {SIP_MLNAME_CAST(sipName_setOverline), meth_QFont_setOverline, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setOverline)},
    {SIP_MLNAME_CAST(sipName_setPixelSize), meth_QFont_setPixelSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setPixelSize)},
    {SIP_MLNAME_CAST(sipName_setPointSize), meth_QFont_setPointSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setPointSize)},
    {SIP_MLNAME_CAST(sipName_setPointSizeF), meth_QFont_setPointSizeF, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setPointSizeF)},
    {SIP_MLNAME_CAST(sipName_setRawMode), meth_QFont_setRawMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setRawMode)},
    {SIP_MLNAME_CAST(sipName_setRawName), meth_QFont_setRawName, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setRawName)},
    {SIP_MLNAME_CAST(sipName_setStretch), meth_QFont_setStretch, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setStretch)},
    {SIP_MLNAME_CAST(sipName_setStrikeOut), meth_QFont_setStrikeOut, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setStrikeOut)},
    {SIP_MLNAME_CAST(sipName_setStyle), meth_QFont_setStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setStyle)},
    {SIP_MLNAME_CAST(sipName_setStyleHint), (PyCFunction)meth_QFont_setStyleHint, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QFont_setStyleHint)},
    {SIP_MLNAME_CAST(sipName_setStyleName), meth_QFont_setStyleName, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setStyleName)},
    {SIP_MLNAME_CAST(sipName_setStyleStrategy), meth_QFont_setStyleStrategy, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setStyleStrategy)},
    {SIP_MLNAME_CAST(sipName_setUnderline), meth_QFont_setUnderline, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setUnderline)},
    {SIP_MLNAME_CAST(sipName_setWeight), meth_QFont_setWeight, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setWeight)},
    {SIP_MLNAME_CAST(sipName_setWordSpacing), meth_QFont_setWordSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_setWordSpacing)},
    {SIP_MLNAME_CAST(sipName_stretch), meth_QFont_stretch, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_stretch)},
    {SIP_MLNAME_CAST(sipName_strikeOut), meth_QFont_strikeOut, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_strikeOut)},
    {SIP_MLNAME_CAST(sipName_style), meth_QFont_style, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_style)},
    {SIP_MLNAME_CAST(sipName_styleHint), meth_QFont_styleHint, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_styleHint)},
    {SIP_MLNAME_CAST(sipName_styleName), meth_QFont_styleName, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_styleName)},
    {SIP_MLNAME_CAST(sipName_styleStrategy), meth_QFont_styleStrategy, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_styleStrategy)},
    {SIP_MLNAME_CAST(sipName_substitute), meth_QFont_substitute, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_substitute)},
    {SIP_MLNAME_CAST(sipName_substitutes), meth_QFont_substitutes, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_substitutes)},
    {SIP_MLNAME_CAST(sipName_substitutions), meth_QFont_substitutions, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_substitutions)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QFont_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_swap)},
    {SIP_MLNAME_CAST(sipName_toString), meth_QFont_toString, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_toString)},
    {SIP_MLNAME_CAST(sipName_underline), meth_QFont_underline, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_underline)},
    {SIP_MLNAME_CAST(sipName_weight), meth_QFont_weight, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_weight)},
    {SIP_MLNAME_CAST(sipName_wordSpacing), meth_QFont_wordSpacing, METH_VARARGS, SIP_MLDOC_CAST(doc_QFont_wordSpacing)}
};

static sipEnumMemberDef enummembers_QFont[] = {
    {sipName_AbsoluteSpacing, static_cast<int>(QFont::AbsoluteSpacing), 34},
    {sipName_AllLowercase, static_cast<int>(QFont::AllLowercase), 32},
    {sipName_AllUppercase, static_cast<int>(QFont::AllUppercase), 32},
    {sipName_AnyStyle, static_cast<int>(QFont::AnyStyle), 37},
    {sipName_Black, static_cast<int>(QFont::Black), 39},
    {sipName_Bold, static_cast<int>(QFont::Bold), 39},
    {sipName_Capitalize, static_cast<int>(QFont::Capitalize), 32},
    {sipName_Condensed, static_cast<int>(QFont::Condensed), 35},
    {sipName_Courier, static_cast<int>(QFont::Courier), 37},
    {sipName_Cursive, static_cast<int>(QFont::Cursive), 37},
    {sipName_Decorative, static_cast<int>(QFont::Decorative), 37},
    {sipName_DemiBold, static_cast<int>(QFont::DemiBold), 39},
    {sipName_Expanded, static_cast<int>(QFont::Expanded), 35},
    {sipName_ExtraCondensed, static_cast<int>(QFont::ExtraCondensed), 35},
    {sipName_ExtraExpanded, static_cast<int>(QFont::ExtraExpanded), 35},
    {sipName_Fantasy, static_cast<int>(QFont::Fantasy), 37},
    {sipName_ForceIntegerMetrics, static_cast<int>(QFont::ForceIntegerMetrics), 38},
    {sipName_ForceOutline, static_cast<int>(QFont::ForceOutline), 38},
    {sipName_Helvetica, static_cast<int>(QFont::Helvetica), 37},
    {sipName_Light, static_cast<int>(QFont::Light), 39},
    {sipName_MixedCase, static_cast<int>(QFont::MixedCase), 32},
    {sipName_Monospace, static_cast<int>(QFont::Monospace), 37},
    {sipName_NoAntialias, static_cast<int>(QFont::NoAntialias), 38},
    {sipName_NoFontMerging, static_cast<int>(QFont::NoFontMerging), 38},
    {sipName_NoSubpixelAntialias, static_cast<int>(QFont::NoSubpixelAntialias), 38},
    {sipName_Normal, static_cast<int>(QFont::Normal), 39},
    {sipName_OldEnglish, static_cast<int>(QFont::OldEnglish), 37},
    {sipName_OpenGLCompatible, static_cast<int>(QFont::OpenGLCompatible), 38},
    {sipName_PercentageSpacing, static_cast<int>(QFont::PercentageSpacing), 34},
    {sipName_PreferAntialias, static_cast<int>(QFont::PreferAntialias), 38},
    {sipName_PreferBitmap, static_cast<int>(QFont::PreferBitmap), 38},
    {sipName_PreferDefault, static_cast<int>(QFont::PreferDefault), 38},
    {sipName_PreferDefaultHinting, static_cast<int>(QFont::PreferDefaultHinting), 33},
    {sipName_PreferDevice, static_cast<int>(QFont::PreferDevice), 38},
    {sipName_PreferFullHinting, static_cast<int>(QFont::PreferFullHinting), 33},
    {sipName_PreferMatch, static_cast<int>(QFont::PreferMatch), 38},
    {sipName_PreferNoHinting, static_cast<int>(QFont::PreferNoHinting), 33},
    {sipName_PreferOutline, static_cast<int>(QFont::PreferOutline), 38},
    {sipName_PreferQuality, static_cast<int>(QFont::PreferQuality), 38},
    {sipName_PreferVerticalHinting, static_cast<int>(QFont::PreferVerticalHinting), 33},
    {sipName_SansSerif, static_cast<int>(QFont::SansSerif), 37},
    {sipName_SemiCondensed, static_cast<int>(QFont::SemiCondensed), 35},
    {sipName_SemiExpanded, static_cast<int>(QFont::SemiExpanded), 35},
    {sipName_Serif, static_cast<int>(QFont::Serif), 37},
    {sipName_SmallCaps, static_cast<int>(QFont::SmallCaps), 32},
    {sipName_StyleItalic, static_cast<int>(QFont::StyleItalic), 36},
    {sipName_StyleNormal, static_cast<int>(QFont::StyleNormal), 36},
    {sipName_StyleOblique, static_cast<int>(QFont::StyleOblique), 36},
    {sipName_System, static_cast<int>(QFont::System), 37},
    {sipName_Times, static_cast<int>(QFont::Times), 37},
    {sipName_TypeWriter, static_cast<int>(QFont::TypeWriter), 37},
    {sipName_UltraCondensed, static_cast<int>(QFont::UltraCondensed), 35},
    {sipName_UltraExpanded, static_cast<int>(QFont::UltraExpanded), 35},
    {sipName_Unstretched, static_cast<int>(QFont::Unstretched), 35},
};

PyDoc_STRVAR(doc_QFont, "\1QFont()\n"
    "QFont(str, int pointSize=-1, int weight=-1, bool italic=False)\n"
    "QFont(QFont, QPaintDevice)\n"
    "QFont(QFont)\n"
    "QFont(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QFont = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QFont,
        {0}
    },
    {
        sipNameNr_QFont,
        {0, 0, 1},
        66, methods_QFont,
        54, enummembers_QFont,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFont,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QFont,
    init_type_QFont,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QFont,
    assign_QFont,
    array_QFont,
    copy_QFont,
    release_QFont,
    cast_QFont,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 820 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 161154 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 161158 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 161161 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 161164 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 161167 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 161170 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQNativeGestureEvent : public QNativeGestureEvent
{
public:
    sipQNativeGestureEvent(Qt::NativeGestureType,const QPointF&,const QPointF&,const QPointF&,qreal,ulong,quint64);
    sipQNativeGestureEvent(const QNativeGestureEvent&);
    ~sipQNativeGestureEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQNativeGestureEvent(const sipQNativeGestureEvent &);
    sipQNativeGestureEvent &operator = (const sipQNativeGestureEvent &);
};

sipQNativeGestureEvent::sipQNativeGestureEvent(Qt::NativeGestureType a0,const QPointF& a1,const QPointF& a2,const QPointF& a3,qreal a4,ulong a5,quint64 a6): QNativeGestureEvent(a0,a1,a2,a3,a4,a5,a6), sipPySelf(0)
{
}

sipQNativeGestureEvent::sipQNativeGestureEvent(const QNativeGestureEvent& a0): QNativeGestureEvent(a0), sipPySelf(0)
{
}

sipQNativeGestureEvent::~sipQNativeGestureEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QNativeGestureEvent_gestureType, "QNativeGestureEvent.gestureType() -> Qt.NativeGestureType");

extern "C" {static PyObject *meth_QNativeGestureEvent_gestureType(PyObject *, PyObject *);}
static PyObject *meth_QNativeGestureEvent_gestureType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNativeGestureEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNativeGestureEvent, &sipCpp))
        {
            Qt::NativeGestureType sipRes;

            sipRes = sipCpp->gestureType();

            return sipConvertFromEnum(sipRes,sipType_Qt_NativeGestureType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNativeGestureEvent, sipName_gestureType, doc_QNativeGestureEvent_gestureType);

    return NULL;
}


PyDoc_STRVAR(doc_QNativeGestureEvent_value, "QNativeGestureEvent.value() -> float");

extern "C" {static PyObject *meth_QNativeGestureEvent_value(PyObject *, PyObject *);}
static PyObject *meth_QNativeGestureEvent_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNativeGestureEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNativeGestureEvent, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->value();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNativeGestureEvent, sipName_value, doc_QNativeGestureEvent_value);

    return NULL;
}


PyDoc_STRVAR(doc_QNativeGestureEvent_pos, "QNativeGestureEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QNativeGestureEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QNativeGestureEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNativeGestureEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNativeGestureEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNativeGestureEvent, sipName_pos, doc_QNativeGestureEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QNativeGestureEvent_globalPos, "QNativeGestureEvent.globalPos() -> QPoint");

extern "C" {static PyObject *meth_QNativeGestureEvent_globalPos(PyObject *, PyObject *);}
static PyObject *meth_QNativeGestureEvent_globalPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNativeGestureEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNativeGestureEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->globalPos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNativeGestureEvent, sipName_globalPos, doc_QNativeGestureEvent_globalPos);

    return NULL;
}


PyDoc_STRVAR(doc_QNativeGestureEvent_localPos, "QNativeGestureEvent.localPos() -> QPointF");

extern "C" {static PyObject *meth_QNativeGestureEvent_localPos(PyObject *, PyObject *);}
static PyObject *meth_QNativeGestureEvent_localPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNativeGestureEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNativeGestureEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->localPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNativeGestureEvent, sipName_localPos, doc_QNativeGestureEvent_localPos);

    return NULL;
}


PyDoc_STRVAR(doc_QNativeGestureEvent_windowPos, "QNativeGestureEvent.windowPos() -> QPointF");

extern "C" {static PyObject *meth_QNativeGestureEvent_windowPos(PyObject *, PyObject *);}
static PyObject *meth_QNativeGestureEvent_windowPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNativeGestureEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNativeGestureEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->windowPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNativeGestureEvent, sipName_windowPos, doc_QNativeGestureEvent_windowPos);

    return NULL;
}


PyDoc_STRVAR(doc_QNativeGestureEvent_screenPos, "QNativeGestureEvent.screenPos() -> QPointF");

extern "C" {static PyObject *meth_QNativeGestureEvent_screenPos(PyObject *, PyObject *);}
static PyObject *meth_QNativeGestureEvent_screenPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QNativeGestureEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QNativeGestureEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->screenPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QNativeGestureEvent, sipName_screenPos, doc_QNativeGestureEvent_screenPos);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QNativeGestureEvent(void *, const sipTypeDef *);}
static void *cast_QNativeGestureEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QNativeGestureEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QInputEvent)->ctd_cast((QInputEvent *)(QNativeGestureEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QNativeGestureEvent(void *, int);}
static void release_QNativeGestureEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQNativeGestureEvent *>(sipCppV);
    else
        delete reinterpret_cast<QNativeGestureEvent *>(sipCppV);
}


extern "C" {static void dealloc_QNativeGestureEvent(sipSimpleWrapper *);}
static void dealloc_QNativeGestureEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQNativeGestureEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QNativeGestureEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QNativeGestureEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QNativeGestureEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQNativeGestureEvent *sipCpp = 0;

    {
        Qt::NativeGestureType a0;
        const QPointF* a1;
        int a1State = 0;
        const QPointF* a2;
        int a2State = 0;
        const QPointF* a3;
        int a3State = 0;
        qreal a4;
        ulong a5;
        quint64 a6;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ1J1J1dmo", sipType_Qt_NativeGestureType, &a0, sipType_QPointF, &a1, &a1State, sipType_QPointF, &a2, &a2State, sipType_QPointF, &a3, &a3State, &a4, &a5, &a6))
        {
            sipCpp = new sipQNativeGestureEvent(a0,*a1,*a2,*a3,a4,a5,a6);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);
            sipReleaseType(const_cast<QPointF *>(a3),sipType_QPointF,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QNativeGestureEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QNativeGestureEvent, &a0))
        {
            sipCpp = new sipQNativeGestureEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QNativeGestureEvent[] = {{73, 255, 1}};


static PyMethodDef methods_QNativeGestureEvent[] = {
    {SIP_MLNAME_CAST(sipName_gestureType), meth_QNativeGestureEvent_gestureType, METH_VARARGS, SIP_MLDOC_CAST(doc_QNativeGestureEvent_gestureType)},
    {SIP_MLNAME_CAST(sipName_globalPos), meth_QNativeGestureEvent_globalPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QNativeGestureEvent_globalPos)},
    {SIP_MLNAME_CAST(sipName_localPos), meth_QNativeGestureEvent_localPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QNativeGestureEvent_localPos)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QNativeGestureEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QNativeGestureEvent_pos)},
    {SIP_MLNAME_CAST(sipName_screenPos), meth_QNativeGestureEvent_screenPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QNativeGestureEvent_screenPos)},
    {SIP_MLNAME_CAST(sipName_value), meth_QNativeGestureEvent_value, METH_VARARGS, SIP_MLDOC_CAST(doc_QNativeGestureEvent_value)},
    {SIP_MLNAME_CAST(sipName_windowPos), meth_QNativeGestureEvent_windowPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QNativeGestureEvent_windowPos)}
};

PyDoc_STRVAR(doc_QNativeGestureEvent, "\1QNativeGestureEvent(Qt.NativeGestureType, QPointF, QPointF, QPointF, float, int, int)\n"
    "QNativeGestureEvent(QNativeGestureEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QNativeGestureEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QNativeGestureEvent,
        {0}
    },
    {
        sipNameNr_QNativeGestureEvent,
        {0, 0, 1},
        7, methods_QNativeGestureEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QNativeGestureEvent,
    -1,
    -1,
    supers_QNativeGestureEvent,
    0,
    init_type_QNativeGestureEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QNativeGestureEvent,
    0,
    0,
    0,
    release_QNativeGestureEvent,
    cast_QNativeGestureEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 797 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 161553 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 161557 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 161560 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 161563 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQEnterEvent : public QEnterEvent
{
public:
    sipQEnterEvent(const QPointF&,const QPointF&,const QPointF&);
    sipQEnterEvent(const QEnterEvent&);
    ~sipQEnterEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQEnterEvent(const sipQEnterEvent &);
    sipQEnterEvent &operator = (const sipQEnterEvent &);
};

sipQEnterEvent::sipQEnterEvent(const QPointF& a0,const QPointF& a1,const QPointF& a2): QEnterEvent(a0,a1,a2), sipPySelf(0)
{
}

sipQEnterEvent::sipQEnterEvent(const QEnterEvent& a0): QEnterEvent(a0), sipPySelf(0)
{
}

sipQEnterEvent::~sipQEnterEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QEnterEvent_pos, "QEnterEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QEnterEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QEnterEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QEnterEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QEnterEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QEnterEvent, sipName_pos, doc_QEnterEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QEnterEvent_globalPos, "QEnterEvent.globalPos() -> QPoint");

extern "C" {static PyObject *meth_QEnterEvent_globalPos(PyObject *, PyObject *);}
static PyObject *meth_QEnterEvent_globalPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QEnterEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QEnterEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->globalPos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QEnterEvent, sipName_globalPos, doc_QEnterEvent_globalPos);

    return NULL;
}


PyDoc_STRVAR(doc_QEnterEvent_x, "QEnterEvent.x() -> int");

extern "C" {static PyObject *meth_QEnterEvent_x(PyObject *, PyObject *);}
static PyObject *meth_QEnterEvent_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QEnterEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QEnterEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->x();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QEnterEvent, sipName_x, doc_QEnterEvent_x);

    return NULL;
}


PyDoc_STRVAR(doc_QEnterEvent_y, "QEnterEvent.y() -> int");

extern "C" {static PyObject *meth_QEnterEvent_y(PyObject *, PyObject *);}
static PyObject *meth_QEnterEvent_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QEnterEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QEnterEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->y();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QEnterEvent, sipName_y, doc_QEnterEvent_y);

    return NULL;
}


PyDoc_STRVAR(doc_QEnterEvent_globalX, "QEnterEvent.globalX() -> int");

extern "C" {static PyObject *meth_QEnterEvent_globalX(PyObject *, PyObject *);}
static PyObject *meth_QEnterEvent_globalX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QEnterEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QEnterEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QEnterEvent, sipName_globalX, doc_QEnterEvent_globalX);

    return NULL;
}


PyDoc_STRVAR(doc_QEnterEvent_globalY, "QEnterEvent.globalY() -> int");

extern "C" {static PyObject *meth_QEnterEvent_globalY(PyObject *, PyObject *);}
static PyObject *meth_QEnterEvent_globalY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QEnterEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QEnterEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalY();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QEnterEvent, sipName_globalY, doc_QEnterEvent_globalY);

    return NULL;
}


PyDoc_STRVAR(doc_QEnterEvent_localPos, "QEnterEvent.localPos() -> QPointF");

extern "C" {static PyObject *meth_QEnterEvent_localPos(PyObject *, PyObject *);}
static PyObject *meth_QEnterEvent_localPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QEnterEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QEnterEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->localPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QEnterEvent, sipName_localPos, doc_QEnterEvent_localPos);

    return NULL;
}


PyDoc_STRVAR(doc_QEnterEvent_windowPos, "QEnterEvent.windowPos() -> QPointF");

extern "C" {static PyObject *meth_QEnterEvent_windowPos(PyObject *, PyObject *);}
static PyObject *meth_QEnterEvent_windowPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QEnterEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QEnterEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->windowPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QEnterEvent, sipName_windowPos, doc_QEnterEvent_windowPos);

    return NULL;
}


PyDoc_STRVAR(doc_QEnterEvent_screenPos, "QEnterEvent.screenPos() -> QPointF");

extern "C" {static PyObject *meth_QEnterEvent_screenPos(PyObject *, PyObject *);}
static PyObject *meth_QEnterEvent_screenPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QEnterEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QEnterEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->screenPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QEnterEvent, sipName_screenPos, doc_QEnterEvent_screenPos);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QEnterEvent(void *, const sipTypeDef *);}
static void *cast_QEnterEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QEnterEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QEnterEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QEnterEvent(void *, int);}
static void release_QEnterEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQEnterEvent *>(sipCppV);
    else
        delete reinterpret_cast<QEnterEvent *>(sipCppV);
}


extern "C" {static void dealloc_QEnterEvent(sipSimpleWrapper *);}
static void dealloc_QEnterEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQEnterEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QEnterEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QEnterEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QEnterEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQEnterEvent *sipCpp = 0;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPointF* a1;
        int a1State = 0;
        const QPointF* a2;
        int a2State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J1", sipType_QPointF, &a0, &a0State, sipType_QPointF, &a1, &a1State, sipType_QPointF, &a2, &a2State))
        {
            sipCpp = new sipQEnterEvent(*a0,*a1,*a2);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QEnterEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QEnterEvent, &a0))
        {
            sipCpp = new sipQEnterEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QEnterEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QEnterEvent[] = {
    {SIP_MLNAME_CAST(sipName_globalPos), meth_QEnterEvent_globalPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QEnterEvent_globalPos)},
    {SIP_MLNAME_CAST(sipName_globalX), meth_QEnterEvent_globalX, METH_VARARGS, SIP_MLDOC_CAST(doc_QEnterEvent_globalX)},
    {SIP_MLNAME_CAST(sipName_globalY), meth_QEnterEvent_globalY, METH_VARARGS, SIP_MLDOC_CAST(doc_QEnterEvent_globalY)},
    {SIP_MLNAME_CAST(sipName_localPos), meth_QEnterEvent_localPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QEnterEvent_localPos)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QEnterEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QEnterEvent_pos)},
    {SIP_MLNAME_CAST(sipName_screenPos), meth_QEnterEvent_screenPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QEnterEvent_screenPos)},
    {SIP_MLNAME_CAST(sipName_windowPos), meth_QEnterEvent_windowPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QEnterEvent_windowPos)},
    {SIP_MLNAME_CAST(sipName_x), meth_QEnterEvent_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QEnterEvent_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QEnterEvent_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QEnterEvent_y)}
};

PyDoc_STRVAR(doc_QEnterEvent, "\1QEnterEvent(QPointF, QPointF, QPointF)\n"
    "QEnterEvent(QEnterEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QEnterEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QEnterEvent,
        {0}
    },
    {
        sipNameNr_QEnterEvent,
        {0, 0, 1},
        9, methods_QEnterEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QEnterEvent,
    -1,
    -1,
    supers_QEnterEvent,
    0,
    init_type_QEnterEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QEnterEvent,
    0,
    0,
    0,
    release_QEnterEvent,
    cast_QEnterEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 773 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 161998 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 162002 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 162005 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQScrollEvent : public QScrollEvent
{
public:
    sipQScrollEvent(const QPointF&,const QPointF&,QScrollEvent::ScrollState);
    sipQScrollEvent(const QScrollEvent&);
    ~sipQScrollEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQScrollEvent(const sipQScrollEvent &);
    sipQScrollEvent &operator = (const sipQScrollEvent &);
};

sipQScrollEvent::sipQScrollEvent(const QPointF& a0,const QPointF& a1,QScrollEvent::ScrollState a2): QScrollEvent(a0,a1,a2), sipPySelf(0)
{
}

sipQScrollEvent::sipQScrollEvent(const QScrollEvent& a0): QScrollEvent(a0), sipPySelf(0)
{
}

sipQScrollEvent::~sipQScrollEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QScrollEvent_contentPos, "QScrollEvent.contentPos() -> QPointF");

extern "C" {static PyObject *meth_QScrollEvent_contentPos(PyObject *, PyObject *);}
static PyObject *meth_QScrollEvent_contentPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScrollEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScrollEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->contentPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollEvent, sipName_contentPos, doc_QScrollEvent_contentPos);

    return NULL;
}


PyDoc_STRVAR(doc_QScrollEvent_overshootDistance, "QScrollEvent.overshootDistance() -> QPointF");

extern "C" {static PyObject *meth_QScrollEvent_overshootDistance(PyObject *, PyObject *);}
static PyObject *meth_QScrollEvent_overshootDistance(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScrollEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScrollEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->overshootDistance());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollEvent, sipName_overshootDistance, doc_QScrollEvent_overshootDistance);

    return NULL;
}


PyDoc_STRVAR(doc_QScrollEvent_scrollState, "QScrollEvent.scrollState() -> QScrollEvent.ScrollState");

extern "C" {static PyObject *meth_QScrollEvent_scrollState(PyObject *, PyObject *);}
static PyObject *meth_QScrollEvent_scrollState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScrollEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScrollEvent, &sipCpp))
        {
            QScrollEvent::ScrollState sipRes;

            sipRes = sipCpp->scrollState();

            return sipConvertFromEnum(sipRes,sipType_QScrollEvent_ScrollState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollEvent, sipName_scrollState, doc_QScrollEvent_scrollState);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QScrollEvent(void *, const sipTypeDef *);}
static void *cast_QScrollEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QScrollEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QScrollEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScrollEvent(void *, int);}
static void release_QScrollEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQScrollEvent *>(sipCppV);
    else
        delete reinterpret_cast<QScrollEvent *>(sipCppV);
}


extern "C" {static void dealloc_QScrollEvent(sipSimpleWrapper *);}
static void dealloc_QScrollEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQScrollEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QScrollEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QScrollEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScrollEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQScrollEvent *sipCpp = 0;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPointF* a1;
        int a1State = 0;
        QScrollEvent::ScrollState a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1E", sipType_QPointF, &a0, &a0State, sipType_QPointF, &a1, &a1State, sipType_QScrollEvent_ScrollState, &a2))
        {
            sipCpp = new sipQScrollEvent(*a0,*a1,a2);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QScrollEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QScrollEvent, &a0))
        {
            sipCpp = new sipQScrollEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QScrollEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QScrollEvent[] = {
    {SIP_MLNAME_CAST(sipName_contentPos), meth_QScrollEvent_contentPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollEvent_contentPos)},
    {SIP_MLNAME_CAST(sipName_overshootDistance), meth_QScrollEvent_overshootDistance, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollEvent_overshootDistance)},
    {SIP_MLNAME_CAST(sipName_scrollState), meth_QScrollEvent_scrollState, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollEvent_scrollState)}
};

static sipEnumMemberDef enummembers_QScrollEvent[] = {
    {sipName_ScrollFinished, static_cast<int>(QScrollEvent::ScrollFinished), 242},
    {sipName_ScrollStarted, static_cast<int>(QScrollEvent::ScrollStarted), 242},
    {sipName_ScrollUpdated, static_cast<int>(QScrollEvent::ScrollUpdated), 242},
};

PyDoc_STRVAR(doc_QScrollEvent, "\1QScrollEvent(QPointF, QPointF, QScrollEvent.ScrollState)\n"
    "QScrollEvent(QScrollEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QScrollEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QScrollEvent,
        {0}
    },
    {
        sipNameNr_QScrollEvent,
        {0, 0, 1},
        3, methods_QScrollEvent,
        3, enummembers_QScrollEvent,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScrollEvent,
    -1,
    -1,
    supers_QScrollEvent,
    0,
    init_type_QScrollEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScrollEvent,
    0,
    0,
    0,
    release_QScrollEvent,
    cast_QScrollEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 755 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 162276 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 162280 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 162283 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 162286 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 162289 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQScrollPrepareEvent : public QScrollPrepareEvent
{
public:
    sipQScrollPrepareEvent(const QPointF&);
    sipQScrollPrepareEvent(const QScrollPrepareEvent&);
    ~sipQScrollPrepareEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQScrollPrepareEvent(const sipQScrollPrepareEvent &);
    sipQScrollPrepareEvent &operator = (const sipQScrollPrepareEvent &);
};

sipQScrollPrepareEvent::sipQScrollPrepareEvent(const QPointF& a0): QScrollPrepareEvent(a0), sipPySelf(0)
{
}

sipQScrollPrepareEvent::sipQScrollPrepareEvent(const QScrollPrepareEvent& a0): QScrollPrepareEvent(a0), sipPySelf(0)
{
}

sipQScrollPrepareEvent::~sipQScrollPrepareEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QScrollPrepareEvent_startPos, "QScrollPrepareEvent.startPos() -> QPointF");

extern "C" {static PyObject *meth_QScrollPrepareEvent_startPos(PyObject *, PyObject *);}
static PyObject *meth_QScrollPrepareEvent_startPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScrollPrepareEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScrollPrepareEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->startPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollPrepareEvent, sipName_startPos, doc_QScrollPrepareEvent_startPos);

    return NULL;
}


PyDoc_STRVAR(doc_QScrollPrepareEvent_viewportSize, "QScrollPrepareEvent.viewportSize() -> QSizeF");

extern "C" {static PyObject *meth_QScrollPrepareEvent_viewportSize(PyObject *, PyObject *);}
static PyObject *meth_QScrollPrepareEvent_viewportSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScrollPrepareEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScrollPrepareEvent, &sipCpp))
        {
            QSizeF*sipRes;

            sipRes = new QSizeF(sipCpp->viewportSize());

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollPrepareEvent, sipName_viewportSize, doc_QScrollPrepareEvent_viewportSize);

    return NULL;
}


PyDoc_STRVAR(doc_QScrollPrepareEvent_contentPosRange, "QScrollPrepareEvent.contentPosRange() -> QRectF");

extern "C" {static PyObject *meth_QScrollPrepareEvent_contentPosRange(PyObject *, PyObject *);}
static PyObject *meth_QScrollPrepareEvent_contentPosRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScrollPrepareEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScrollPrepareEvent, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->contentPosRange());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollPrepareEvent, sipName_contentPosRange, doc_QScrollPrepareEvent_contentPosRange);

    return NULL;
}


PyDoc_STRVAR(doc_QScrollPrepareEvent_contentPos, "QScrollPrepareEvent.contentPos() -> QPointF");

extern "C" {static PyObject *meth_QScrollPrepareEvent_contentPos(PyObject *, PyObject *);}
static PyObject *meth_QScrollPrepareEvent_contentPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QScrollPrepareEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QScrollPrepareEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->contentPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollPrepareEvent, sipName_contentPos, doc_QScrollPrepareEvent_contentPos);

    return NULL;
}


PyDoc_STRVAR(doc_QScrollPrepareEvent_setViewportSize, "QScrollPrepareEvent.setViewportSize(QSizeF)");

extern "C" {static PyObject *meth_QScrollPrepareEvent_setViewportSize(PyObject *, PyObject *);}
static PyObject *meth_QScrollPrepareEvent_setViewportSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSizeF* a0;
        QScrollPrepareEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScrollPrepareEvent, &sipCpp, sipType_QSizeF, &a0))
        {
            sipCpp->setViewportSize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollPrepareEvent, sipName_setViewportSize, doc_QScrollPrepareEvent_setViewportSize);

    return NULL;
}


PyDoc_STRVAR(doc_QScrollPrepareEvent_setContentPosRange, "QScrollPrepareEvent.setContentPosRange(QRectF)");

extern "C" {static PyObject *meth_QScrollPrepareEvent_setContentPosRange(PyObject *, PyObject *);}
static PyObject *meth_QScrollPrepareEvent_setContentPosRange(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRectF* a0;
        QScrollPrepareEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QScrollPrepareEvent, &sipCpp, sipType_QRectF, &a0))
        {
            sipCpp->setContentPosRange(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollPrepareEvent, sipName_setContentPosRange, doc_QScrollPrepareEvent_setContentPosRange);

    return NULL;
}


PyDoc_STRVAR(doc_QScrollPrepareEvent_setContentPos, "QScrollPrepareEvent.setContentPos(QPointF)");

extern "C" {static PyObject *meth_QScrollPrepareEvent_setContentPos(PyObject *, PyObject *);}
static PyObject *meth_QScrollPrepareEvent_setContentPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QScrollPrepareEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QScrollPrepareEvent, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->setContentPos(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QScrollPrepareEvent, sipName_setContentPos, doc_QScrollPrepareEvent_setContentPos);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QScrollPrepareEvent(void *, const sipTypeDef *);}
static void *cast_QScrollPrepareEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QScrollPrepareEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QScrollPrepareEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QScrollPrepareEvent(void *, int);}
static void release_QScrollPrepareEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQScrollPrepareEvent *>(sipCppV);
    else
        delete reinterpret_cast<QScrollPrepareEvent *>(sipCppV);
}


extern "C" {static void dealloc_QScrollPrepareEvent(sipSimpleWrapper *);}
static void dealloc_QScrollPrepareEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQScrollPrepareEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QScrollPrepareEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QScrollPrepareEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QScrollPrepareEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQScrollPrepareEvent *sipCpp = 0;

    {
        const QPointF* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QPointF, &a0, &a0State))
        {
            sipCpp = new sipQScrollPrepareEvent(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QScrollPrepareEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QScrollPrepareEvent, &a0))
        {
            sipCpp = new sipQScrollPrepareEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QScrollPrepareEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QScrollPrepareEvent[] = {
    {SIP_MLNAME_CAST(sipName_contentPos), meth_QScrollPrepareEvent_contentPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollPrepareEvent_contentPos)},
    {SIP_MLNAME_CAST(sipName_contentPosRange), meth_QScrollPrepareEvent_contentPosRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollPrepareEvent_contentPosRange)},
    {SIP_MLNAME_CAST(sipName_setContentPos), meth_QScrollPrepareEvent_setContentPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollPrepareEvent_setContentPos)},
    {SIP_MLNAME_CAST(sipName_setContentPosRange), meth_QScrollPrepareEvent_setContentPosRange, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollPrepareEvent_setContentPosRange)},
    {SIP_MLNAME_CAST(sipName_setViewportSize), meth_QScrollPrepareEvent_setViewportSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollPrepareEvent_setViewportSize)},
    {SIP_MLNAME_CAST(sipName_startPos), meth_QScrollPrepareEvent_startPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollPrepareEvent_startPos)},
    {SIP_MLNAME_CAST(sipName_viewportSize), meth_QScrollPrepareEvent_viewportSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QScrollPrepareEvent_viewportSize)}
};

PyDoc_STRVAR(doc_QScrollPrepareEvent, "\1QScrollPrepareEvent(QPointF)\n"
    "QScrollPrepareEvent(QScrollPrepareEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QScrollPrepareEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QScrollPrepareEvent,
        {0}
    },
    {
        sipNameNr_QScrollPrepareEvent,
        {0, 0, 1},
        7, methods_QScrollPrepareEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QScrollPrepareEvent,
    -1,
    -1,
    supers_QScrollPrepareEvent,
    0,
    init_type_QScrollPrepareEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QScrollPrepareEvent,
    0,
    0,
    0,
    release_QScrollPrepareEvent,
    cast_QScrollPrepareEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 743 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 162664 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 162668 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 162671 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQExposeEvent : public QExposeEvent
{
public:
    sipQExposeEvent(const QRegion&);
    sipQExposeEvent(const QExposeEvent&);
    ~sipQExposeEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQExposeEvent(const sipQExposeEvent &);
    sipQExposeEvent &operator = (const sipQExposeEvent &);
};

sipQExposeEvent::sipQExposeEvent(const QRegion& a0): QExposeEvent(a0), sipPySelf(0)
{
}

sipQExposeEvent::sipQExposeEvent(const QExposeEvent& a0): QExposeEvent(a0), sipPySelf(0)
{
}

sipQExposeEvent::~sipQExposeEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QExposeEvent_region, "QExposeEvent.region() -> QRegion");

extern "C" {static PyObject *meth_QExposeEvent_region(PyObject *, PyObject *);}
static PyObject *meth_QExposeEvent_region(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QExposeEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QExposeEvent, &sipCpp))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->region());

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QExposeEvent, sipName_region, doc_QExposeEvent_region);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QExposeEvent(void *, const sipTypeDef *);}
static void *cast_QExposeEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QExposeEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QExposeEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QExposeEvent(void *, int);}
static void release_QExposeEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQExposeEvent *>(sipCppV);
    else
        delete reinterpret_cast<QExposeEvent *>(sipCppV);
}


extern "C" {static void dealloc_QExposeEvent(sipSimpleWrapper *);}
static void dealloc_QExposeEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQExposeEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QExposeEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QExposeEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QExposeEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQExposeEvent *sipCpp = 0;

    {
        const QRegion* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QRegion, &a0))
        {
            sipCpp = new sipQExposeEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QExposeEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QExposeEvent, &a0))
        {
            sipCpp = new sipQExposeEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QExposeEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QExposeEvent[] = {
    {SIP_MLNAME_CAST(sipName_region), meth_QExposeEvent_region, METH_VARARGS, SIP_MLDOC_CAST(doc_QExposeEvent_region)}
};

PyDoc_STRVAR(doc_QExposeEvent, "\1QExposeEvent(QRegion)\n"
    "QExposeEvent(QExposeEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QExposeEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QExposeEvent,
        {0}
    },
    {
        sipNameNr_QExposeEvent,
        {0, 0, 1},
        1, methods_QExposeEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QExposeEvent,
    -1,
    -1,
    supers_QExposeEvent,
    0,
    init_type_QExposeEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QExposeEvent,
    0,
    0,
    0,
    release_QExposeEvent,
    cast_QExposeEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 693 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 162876 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 693 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 162882 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


extern "C" {static int slot_QTouchEvent_TouchPoint_InfoFlags___bool__(PyObject *);}
static int slot_QTouchEvent_TouchPoint_InfoFlags___bool__(PyObject *sipSelf)
{
    QTouchEvent::TouchPoint::InfoFlags *sipCpp = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchEvent_TouchPoint_InfoFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 119 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchEvent::TouchPoint::InfoFlags::Int() != 0);
#line 162900 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___ne__(PyObject *,PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QTouchEvent::TouchPoint::InfoFlags *sipCpp = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchEvent_TouchPoint_InfoFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 114 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchEvent::TouchPoint::InfoFlags::Int() != a0->operator QTouchEvent::TouchPoint::InfoFlags::Int());
#line 162930 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTouchEvent::TouchPoint::InfoFlags *>(a0),sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QTouchEvent_TouchPoint_InfoFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___eq__(PyObject *,PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTouchEvent::TouchPoint::InfoFlags *sipCpp = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchEvent_TouchPoint_InfoFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 109 "sip/QtCore/qglobal.sip"
        sipRes = (sipCpp->operator QTouchEvent::TouchPoint::InfoFlags::Int() == a0->operator QTouchEvent::TouchPoint::InfoFlags::Int());
#line 162966 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QTouchEvent::TouchPoint::InfoFlags *>(a0),sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QTouchEvent_TouchPoint_InfoFlags,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___invert__(PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___invert__(PyObject *sipSelf)
{
    QTouchEvent::TouchPoint::InfoFlags *sipCpp = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchEvent_TouchPoint_InfoFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QTouchEvent::TouchPoint::InfoFlags*sipRes;

            sipRes = new QTouchEvent::TouchPoint::InfoFlags(~(*sipCpp));

            return sipConvertFromNewType(sipRes,sipType_QTouchEvent_TouchPoint_InfoFlags,NULL);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___and__(PyObject *,PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___and__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State, &a1))
        {
            QTouchEvent::TouchPoint::InfoFlags*sipRes;

            sipRes = new QTouchEvent::TouchPoint::InfoFlags((*a0 & a1));
            sipReleaseType(a0,sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTouchEvent_TouchPoint_InfoFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,and_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___xor__(PyObject *,PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___xor__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;
        QTouchEvent::TouchPoint::InfoFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State, sipType_QTouchEvent_TouchPoint_InfoFlags, &a1, &a1State))
        {
            QTouchEvent::TouchPoint::InfoFlags*sipRes;

            sipRes = new QTouchEvent::TouchPoint::InfoFlags((*a0 ^ *a1));
            sipReleaseType(a0,sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);
            sipReleaseType(a1,sipType_QTouchEvent_TouchPoint_InfoFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTouchEvent_TouchPoint_InfoFlags,NULL);
        }
    }

    {
        QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State, &a1))
        {
            QTouchEvent::TouchPoint::InfoFlags*sipRes = 0;

#line 103 "sip/QtCore/qglobal.sip"
        sipRes = new QTouchEvent::TouchPoint::InfoFlags(*a0 ^ a1);
#line 163069 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTouchEvent_TouchPoint_InfoFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,xor_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___or__(PyObject *,PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___or__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;
        QTouchEvent::TouchPoint::InfoFlags* a1;
        int a1State = 0;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1J1", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State, sipType_QTouchEvent_TouchPoint_InfoFlags, &a1, &a1State))
        {
            QTouchEvent::TouchPoint::InfoFlags*sipRes;

            sipRes = new QTouchEvent::TouchPoint::InfoFlags((*a0 | *a1));
            sipReleaseType(a0,sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);
            sipReleaseType(a1,sipType_QTouchEvent_TouchPoint_InfoFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QTouchEvent_TouchPoint_InfoFlags,NULL);
        }
    }

    {
        QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;
        int a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J1i", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State, &a1))
        {
            QTouchEvent::TouchPoint::InfoFlags*sipRes = 0;

#line 98 "sip/QtCore/qglobal.sip"
        sipRes = new QTouchEvent::TouchPoint::InfoFlags(*a0 | a1);
#line 163119 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(a0,sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);

            return sipConvertFromNewType(sipRes,sipType_QTouchEvent_TouchPoint_InfoFlags,NULL);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,or_slot,NULL,sipArg0,sipArg1);
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___int__(PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___int__(PyObject *sipSelf)
{
    QTouchEvent::TouchPoint::InfoFlags *sipCpp = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchEvent_TouchPoint_InfoFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___ixor__(PyObject *,PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___ixor__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTouchEvent_TouchPoint_InfoFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTouchEvent::TouchPoint::InfoFlags *sipCpp = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchEvent_TouchPoint_InfoFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State))
        {
            sipCpp->QTouchEvent::TouchPoint::InfoFlags::operator^=(*a0);
            sipReleaseType(a0,sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___ior__(PyObject *,PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTouchEvent_TouchPoint_InfoFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTouchEvent::TouchPoint::InfoFlags *sipCpp = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchEvent_TouchPoint_InfoFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State))
        {
            sipCpp->QTouchEvent::TouchPoint::InfoFlags::operator|=(*a0);
            sipReleaseType(a0,sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


extern "C" {static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___iand__(PyObject *,PyObject *);}
static PyObject *slot_QTouchEvent_TouchPoint_InfoFlags___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QTouchEvent_TouchPoint_InfoFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QTouchEvent::TouchPoint::InfoFlags *sipCpp = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTouchEvent_TouchPoint_InfoFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QTouchEvent::TouchPoint::InfoFlags::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTouchEvent_TouchPoint_InfoFlags(void *, const sipTypeDef *);}
static void *cast_QTouchEvent_TouchPoint_InfoFlags(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTouchEvent_TouchPoint_InfoFlags)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTouchEvent_TouchPoint_InfoFlags(void *, int);}
static void release_QTouchEvent_TouchPoint_InfoFlags(void *sipCppV,int)
{
    delete reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipCppV);
}


extern "C" {static void assign_QTouchEvent_TouchPoint_InfoFlags(void *, SIP_SSIZE_T, const void *);}
static void assign_QTouchEvent_TouchPoint_InfoFlags(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QTouchEvent::TouchPoint::InfoFlags *>(sipSrc);
}


extern "C" {static void *array_QTouchEvent_TouchPoint_InfoFlags(SIP_SSIZE_T);}
static void *array_QTouchEvent_TouchPoint_InfoFlags(SIP_SSIZE_T sipNrElem)
{
    return new QTouchEvent::TouchPoint::InfoFlags[sipNrElem];
}


extern "C" {static void *copy_QTouchEvent_TouchPoint_InfoFlags(const void *, SIP_SSIZE_T);}
static void *copy_QTouchEvent_TouchPoint_InfoFlags(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QTouchEvent::TouchPoint::InfoFlags(reinterpret_cast<const QTouchEvent::TouchPoint::InfoFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QTouchEvent_TouchPoint_InfoFlags(sipSimpleWrapper *);}
static void dealloc_QTouchEvent_TouchPoint_InfoFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTouchEvent_TouchPoint_InfoFlags(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QTouchEvent_TouchPoint_InfoFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTouchEvent_TouchPoint_InfoFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QTouchEvent::TouchPoint::InfoFlags *sipCpp = 0;

    {
        const QTouchEvent::TouchPoint::InfoFlags* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QTouchEvent_TouchPoint_InfoFlags, &a0, &a0State))
        {
            sipCpp = new QTouchEvent::TouchPoint::InfoFlags(*a0);
            sipReleaseType(const_cast<QTouchEvent::TouchPoint::InfoFlags *>(a0),sipType_QTouchEvent_TouchPoint_InfoFlags,a0State);

            return sipCpp;
        }
    }

    {
        int a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "i", &a0))
        {
            sipCpp = new QTouchEvent::TouchPoint::InfoFlags(a0);

            return sipCpp;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QTouchEvent::TouchPoint::InfoFlags();

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QTouchEvent_TouchPoint_InfoFlags(PyObject *, void **, int *, PyObject *);}
static int convertTo_QTouchEvent_TouchPoint_InfoFlags(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QTouchEvent::TouchPoint::InfoFlags **sipCppPtr = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags **>(sipCppPtrV);

#line 124 "sip/QtCore/qglobal.sip"
// Allow an instance of the base enum whenever a QTouchEvent::TouchPoint::InfoFlags is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTouchEvent_TouchPoint_InfoFlag)) ||
            sipCanConvertToType(sipPy, sipType_QTouchEvent_TouchPoint_InfoFlags, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_QTouchEvent_TouchPoint_InfoFlag)))
{
    *sipCppPtr = new QTouchEvent::TouchPoint::InfoFlags(int(SIPLong_AsLong(sipPy)));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QTouchEvent::TouchPoint::InfoFlags *>(sipConvertToType(sipPy, sipType_QTouchEvent_TouchPoint_InfoFlags, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 163396 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QTouchEvent_TouchPoint_InfoFlags[] = {
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___bool__, bool_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___ne__, ne_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___eq__, eq_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___invert__, invert_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___and__, and_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___xor__, xor_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___or__, or_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___int__, int_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___ixor__, ixor_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___ior__, ior_slot},
    {(void *)slot_QTouchEvent_TouchPoint_InfoFlags___iand__, iand_slot},
    {0, (sipPySlotType)0}
};

PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_InfoFlags, "\1QTouchEvent.TouchPoint.InfoFlags(QTouchEvent.TouchPoint.InfoFlags)\n"
    "QTouchEvent.TouchPoint.InfoFlags(int)\n"
    "QTouchEvent.TouchPoint.InfoFlags()");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTouchEvent_TouchPoint_InfoFlags = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTouchEvent__TouchPoint__InfoFlags,
        {0}
    },
    {
        sipNameNr_InfoFlags,
        {336, 255, 0},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTouchEvent_TouchPoint_InfoFlags,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QTouchEvent_TouchPoint_InfoFlags,
    init_type_QTouchEvent_TouchPoint_InfoFlags,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTouchEvent_TouchPoint_InfoFlags,
    assign_QTouchEvent_TouchPoint_InfoFlags,
    array_QTouchEvent_TouchPoint_InfoFlags,
    copy_QTouchEvent_TouchPoint_InfoFlags,
    release_QTouchEvent_TouchPoint_InfoFlags,
    cast_QTouchEvent_TouchPoint_InfoFlags,
    convertTo_QTouchEvent_TouchPoint_InfoFlags,
    0,
    0,
    0,
    0,
    0
},
    0,
    1,
    0,
    0
};

#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 693 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 163480 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 163484 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 163487 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 693 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 163492 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qvector2d.sip"
#include <qvector2d.h>
#line 163495 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 163498 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 163501 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_id, "QTouchEvent.TouchPoint.id() -> int");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_id(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_id(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->id();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_id, doc_QTouchEvent_TouchPoint_id);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_state, "QTouchEvent.TouchPoint.state() -> Qt.TouchPointState");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_state(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_state(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            Qt::TouchPointState sipRes;

            sipRes = sipCpp->state();

            return sipConvertFromEnum(sipRes,sipType_Qt_TouchPointState);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_state, doc_QTouchEvent_TouchPoint_state);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_pos, "QTouchEvent.TouchPoint.pos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_pos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_pos, doc_QTouchEvent_TouchPoint_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_startPos, "QTouchEvent.TouchPoint.startPos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_startPos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_startPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->startPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_startPos, doc_QTouchEvent_TouchPoint_startPos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_lastPos, "QTouchEvent.TouchPoint.lastPos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_lastPos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_lastPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->lastPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_lastPos, doc_QTouchEvent_TouchPoint_lastPos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_scenePos, "QTouchEvent.TouchPoint.scenePos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_scenePos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_scenePos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->scenePos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_scenePos, doc_QTouchEvent_TouchPoint_scenePos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_startScenePos, "QTouchEvent.TouchPoint.startScenePos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_startScenePos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_startScenePos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->startScenePos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_startScenePos, doc_QTouchEvent_TouchPoint_startScenePos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_lastScenePos, "QTouchEvent.TouchPoint.lastScenePos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_lastScenePos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_lastScenePos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->lastScenePos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_lastScenePos, doc_QTouchEvent_TouchPoint_lastScenePos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_screenPos, "QTouchEvent.TouchPoint.screenPos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_screenPos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_screenPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->screenPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_screenPos, doc_QTouchEvent_TouchPoint_screenPos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_startScreenPos, "QTouchEvent.TouchPoint.startScreenPos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_startScreenPos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_startScreenPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->startScreenPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_startScreenPos, doc_QTouchEvent_TouchPoint_startScreenPos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_lastScreenPos, "QTouchEvent.TouchPoint.lastScreenPos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_lastScreenPos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_lastScreenPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->lastScreenPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_lastScreenPos, doc_QTouchEvent_TouchPoint_lastScreenPos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_normalizedPos, "QTouchEvent.TouchPoint.normalizedPos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_normalizedPos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_normalizedPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->normalizedPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_normalizedPos, doc_QTouchEvent_TouchPoint_normalizedPos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_startNormalizedPos, "QTouchEvent.TouchPoint.startNormalizedPos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_startNormalizedPos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_startNormalizedPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->startNormalizedPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_startNormalizedPos, doc_QTouchEvent_TouchPoint_startNormalizedPos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_lastNormalizedPos, "QTouchEvent.TouchPoint.lastNormalizedPos() -> QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_lastNormalizedPos(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_lastNormalizedPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->lastNormalizedPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_lastNormalizedPos, doc_QTouchEvent_TouchPoint_lastNormalizedPos);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_rect, "QTouchEvent.TouchPoint.rect() -> QRectF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_rect(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_rect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->rect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_rect, doc_QTouchEvent_TouchPoint_rect);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_sceneRect, "QTouchEvent.TouchPoint.sceneRect() -> QRectF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_sceneRect(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_sceneRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->sceneRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_sceneRect, doc_QTouchEvent_TouchPoint_sceneRect);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_screenRect, "QTouchEvent.TouchPoint.screenRect() -> QRectF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_screenRect(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_screenRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QRectF*sipRes;

            sipRes = new QRectF(sipCpp->screenRect());

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_screenRect, doc_QTouchEvent_TouchPoint_screenRect);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_pressure, "QTouchEvent.TouchPoint.pressure() -> float");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_pressure(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_pressure(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->pressure();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_pressure, doc_QTouchEvent_TouchPoint_pressure);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_velocity, "QTouchEvent.TouchPoint.velocity() -> QVector2D");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_velocity(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_velocity(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QVector2D*sipRes;

            sipRes = new QVector2D(sipCpp->velocity());

            return sipConvertFromNewType(sipRes,sipType_QVector2D,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_velocity, doc_QTouchEvent_TouchPoint_velocity);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_flags, "QTouchEvent.TouchPoint.flags() -> QTouchEvent.TouchPoint.InfoFlags");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_flags(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QTouchEvent::TouchPoint::InfoFlags*sipRes;

            sipRes = new QTouchEvent::TouchPoint::InfoFlags(sipCpp->flags());

            return sipConvertFromNewType(sipRes,sipType_QTouchEvent_TouchPoint_InfoFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_flags, doc_QTouchEvent_TouchPoint_flags);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_TouchPoint_rawScreenPositions, "QTouchEvent.TouchPoint.rawScreenPositions() -> list-of-QPointF");

extern "C" {static PyObject *meth_QTouchEvent_TouchPoint_rawScreenPositions(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_TouchPoint_rawScreenPositions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent::TouchPoint *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent_TouchPoint, &sipCpp))
        {
            QVector<QPointF>*sipRes;

            sipRes = new QVector<QPointF>(sipCpp->rawScreenPositions());

            return sipConvertFromNewType(sipRes,sipType_QVector_0100QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_TouchPoint, sipName_rawScreenPositions, doc_QTouchEvent_TouchPoint_rawScreenPositions);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTouchEvent_TouchPoint(void *, const sipTypeDef *);}
static void *cast_QTouchEvent_TouchPoint(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTouchEvent_TouchPoint)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTouchEvent_TouchPoint(void *, int);}
static void release_QTouchEvent_TouchPoint(void *sipCppV,int)
{
    delete reinterpret_cast<QTouchEvent::TouchPoint *>(sipCppV);
}


extern "C" {static void dealloc_QTouchEvent_TouchPoint(sipSimpleWrapper *);}
static void dealloc_QTouchEvent_TouchPoint(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QTouchEvent_TouchPoint(sipGetAddress(sipSelf),0);
    }
}


static PyMethodDef methods_QTouchEvent_TouchPoint[] = {
    {SIP_MLNAME_CAST(sipName_flags), meth_QTouchEvent_TouchPoint_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_flags)},
    {SIP_MLNAME_CAST(sipName_id), meth_QTouchEvent_TouchPoint_id, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_id)},
    {SIP_MLNAME_CAST(sipName_lastNormalizedPos), meth_QTouchEvent_TouchPoint_lastNormalizedPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_lastNormalizedPos)},
    {SIP_MLNAME_CAST(sipName_lastPos), meth_QTouchEvent_TouchPoint_lastPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_lastPos)},
    {SIP_MLNAME_CAST(sipName_lastScenePos), meth_QTouchEvent_TouchPoint_lastScenePos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_lastScenePos)},
    {SIP_MLNAME_CAST(sipName_lastScreenPos), meth_QTouchEvent_TouchPoint_lastScreenPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_lastScreenPos)},
    {SIP_MLNAME_CAST(sipName_normalizedPos), meth_QTouchEvent_TouchPoint_normalizedPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_normalizedPos)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QTouchEvent_TouchPoint_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_pos)},
    {SIP_MLNAME_CAST(sipName_pressure), meth_QTouchEvent_TouchPoint_pressure, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_pressure)},
    {SIP_MLNAME_CAST(sipName_rawScreenPositions), meth_QTouchEvent_TouchPoint_rawScreenPositions, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_rawScreenPositions)},
    {SIP_MLNAME_CAST(sipName_rect), meth_QTouchEvent_TouchPoint_rect, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_rect)},
    {SIP_MLNAME_CAST(sipName_scenePos), meth_QTouchEvent_TouchPoint_scenePos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_scenePos)},
    {SIP_MLNAME_CAST(sipName_sceneRect), meth_QTouchEvent_TouchPoint_sceneRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_sceneRect)},
    {SIP_MLNAME_CAST(sipName_screenPos), meth_QTouchEvent_TouchPoint_screenPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_screenPos)},
    {SIP_MLNAME_CAST(sipName_screenRect), meth_QTouchEvent_TouchPoint_screenRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_screenRect)},
    {SIP_MLNAME_CAST(sipName_startNormalizedPos), meth_QTouchEvent_TouchPoint_startNormalizedPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_startNormalizedPos)},
    {SIP_MLNAME_CAST(sipName_startPos), meth_QTouchEvent_TouchPoint_startPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_startPos)},
    {SIP_MLNAME_CAST(sipName_startScenePos), meth_QTouchEvent_TouchPoint_startScenePos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_startScenePos)},
    {SIP_MLNAME_CAST(sipName_startScreenPos), meth_QTouchEvent_TouchPoint_startScreenPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_startScreenPos)},
    {SIP_MLNAME_CAST(sipName_state), meth_QTouchEvent_TouchPoint_state, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_state)},
    {SIP_MLNAME_CAST(sipName_velocity), meth_QTouchEvent_TouchPoint_velocity, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_TouchPoint_velocity)}
};

static sipEnumMemberDef enummembers_QTouchEvent_TouchPoint[] = {
    {sipName_Pen, static_cast<int>(QTouchEvent::TouchPoint::Pen), 337},
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QTouchEvent_TouchPoint = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTouchEvent__TouchPoint,
        {0}
    },
    {
        sipNameNr_TouchPoint,
        {335, 255, 0},
        21, methods_QTouchEvent_TouchPoint,
        1, enummembers_QTouchEvent_TouchPoint,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTouchEvent_TouchPoint,
    0,
    0,
    0,
    release_QTouchEvent_TouchPoint,
    cast_QTouchEvent_TouchPoint,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 164185 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 164189 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtouchdevice.sip"
#include <qtouchdevice.h>
#line 164192 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 164195 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 164198 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 164201 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 686 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 693 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 164206 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 164209 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 164212 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQTouchEvent : public QTouchEvent
{
public:
    sipQTouchEvent(QEvent::Type,QTouchDevice*,Qt::KeyboardModifiers,Qt::TouchPointStates,const QList<QTouchEvent::TouchPoint>&);
    sipQTouchEvent(const QTouchEvent&);
    ~sipQTouchEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTouchEvent(const sipQTouchEvent &);
    sipQTouchEvent &operator = (const sipQTouchEvent &);
};

sipQTouchEvent::sipQTouchEvent(QEvent::Type a0,QTouchDevice*a1,Qt::KeyboardModifiers a2,Qt::TouchPointStates a3,const QList<QTouchEvent::TouchPoint>& a4): QTouchEvent(a0,a1,a2,a3,a4), sipPySelf(0)
{
}

sipQTouchEvent::sipQTouchEvent(const QTouchEvent& a0): QTouchEvent(a0), sipPySelf(0)
{
}

sipQTouchEvent::~sipQTouchEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QTouchEvent_target, "QTouchEvent.target() -> QObject");

extern "C" {static PyObject *meth_QTouchEvent_target(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_target(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent, &sipCpp))
        {
            QObject*sipRes;

            sipRes = sipCpp->target();

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchEvent, sipName_target, doc_QTouchEvent_target);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_touchPointStates, "QTouchEvent.touchPointStates() -> Qt.TouchPointStates");

extern "C" {static PyObject *meth_QTouchEvent_touchPointStates(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_touchPointStates(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent, &sipCpp))
        {
            Qt::TouchPointStates*sipRes;

            sipRes = new Qt::TouchPointStates(sipCpp->touchPointStates());

            return sipConvertFromNewType(sipRes,sipType_Qt_TouchPointStates,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchEvent, sipName_touchPointStates, doc_QTouchEvent_touchPointStates);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_touchPoints, "QTouchEvent.touchPoints() -> list-of-QTouchEvent.TouchPoint");

extern "C" {static PyObject *meth_QTouchEvent_touchPoints(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_touchPoints(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent, &sipCpp))
        {
            QList<QTouchEvent::TouchPoint>*sipRes;

            sipRes = new QList<QTouchEvent::TouchPoint>(sipCpp->touchPoints());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QTouchEvent_TouchPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchEvent, sipName_touchPoints, doc_QTouchEvent_touchPoints);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_window, "QTouchEvent.window() -> QWindow");

extern "C" {static PyObject *meth_QTouchEvent_window(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_window(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent, &sipCpp))
        {
            QWindow*sipRes;

            sipRes = sipCpp->window();

            return sipConvertFromType(sipRes,sipType_QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchEvent, sipName_window, doc_QTouchEvent_window);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_device, "QTouchEvent.device() -> QTouchDevice");

extern "C" {static PyObject *meth_QTouchEvent_device(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_device(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTouchEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTouchEvent, &sipCpp))
        {
            QTouchDevice*sipRes;

            sipRes = sipCpp->device();

            return sipConvertFromType(sipRes,sipType_QTouchDevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchEvent, sipName_device, doc_QTouchEvent_device);

    return NULL;
}


PyDoc_STRVAR(doc_QTouchEvent_setDevice, "QTouchEvent.setDevice(QTouchDevice)");

extern "C" {static PyObject *meth_QTouchEvent_setDevice(PyObject *, PyObject *);}
static PyObject *meth_QTouchEvent_setDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QTouchDevice* a0;
        QTouchEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QTouchEvent, &sipCpp, sipType_QTouchDevice, &a0))
        {
            sipCpp->setDevice(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTouchEvent, sipName_setDevice, doc_QTouchEvent_setDevice);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTouchEvent(void *, const sipTypeDef *);}
static void *cast_QTouchEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTouchEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QInputEvent)->ctd_cast((QInputEvent *)(QTouchEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTouchEvent(void *, int);}
static void release_QTouchEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQTouchEvent *>(sipCppV);
    else
        delete reinterpret_cast<QTouchEvent *>(sipCppV);
}


extern "C" {static void dealloc_QTouchEvent(sipSimpleWrapper *);}
static void dealloc_QTouchEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTouchEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTouchEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTouchEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTouchEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQTouchEvent *sipCpp = 0;

    {
        QEvent::Type a0;
        QTouchDevice* a1 = 0;
        Qt::KeyboardModifiers a2def = Qt::NoModifier;
        Qt::KeyboardModifiers* a2 = &a2def;
        int a2State = 0;
        Qt::TouchPointStates a3def = 0;
        Qt::TouchPointStates* a3 = &a3def;
        int a3State = 0;
        const QList<QTouchEvent::TouchPoint>& a4def = QList<QTouchEvent::TouchPoint>();
        const QList<QTouchEvent::TouchPoint>* a4 = &a4def;
        int a4State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_device,
            sipName_modifiers,
            sipName_touchPointStates,
            sipName_touchPoints,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "E|J8J1J1J1", sipType_QEvent_Type, &a0, sipType_QTouchDevice, &a1, sipType_Qt_KeyboardModifiers, &a2, &a2State, sipType_Qt_TouchPointStates, &a3, &a3State, sipType_QList_0100QTouchEvent_TouchPoint,&a4, &a4State))
        {
            sipCpp = new sipQTouchEvent(a0,a1,*a2,*a3,*a4);
            sipReleaseType(a2,sipType_Qt_KeyboardModifiers,a2State);
            sipReleaseType(a3,sipType_Qt_TouchPointStates,a3State);
            sipReleaseType(const_cast<QList<QTouchEvent::TouchPoint> *>(a4),sipType_QList_0100QTouchEvent_TouchPoint,a4State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QTouchEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTouchEvent, &a0))
        {
            sipCpp = new sipQTouchEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTouchEvent[] = {{73, 255, 1}};


static PyMethodDef methods_QTouchEvent[] = {
    {SIP_MLNAME_CAST(sipName_device), meth_QTouchEvent_device, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_device)},
    {SIP_MLNAME_CAST(sipName_setDevice), meth_QTouchEvent_setDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_setDevice)},
    {SIP_MLNAME_CAST(sipName_target), meth_QTouchEvent_target, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_target)},
    {SIP_MLNAME_CAST(sipName_touchPointStates), meth_QTouchEvent_touchPointStates, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_touchPointStates)},
    {SIP_MLNAME_CAST(sipName_touchPoints), meth_QTouchEvent_touchPoints, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_touchPoints)},
    {SIP_MLNAME_CAST(sipName_window), meth_QTouchEvent_window, METH_VARARGS, SIP_MLDOC_CAST(doc_QTouchEvent_window)}
};

PyDoc_STRVAR(doc_QTouchEvent, "\1QTouchEvent(QEvent.Type, QTouchDevice device=None, Qt.KeyboardModifiers modifiers=Qt.NoModifier, Qt.TouchPointStates touchPointStates=0, list-of-QTouchEvent.TouchPoint touchPoints=QList&lt;QTouchEvent.TouchPoint&gt;())\n"
    "QTouchEvent(QTouchEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTouchEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTouchEvent,
        {0}
    },
    {
        sipNameNr_QTouchEvent,
        {0, 0, 1},
        6, methods_QTouchEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTouchEvent,
    -1,
    -1,
    supers_QTouchEvent,
    0,
    init_type_QTouchEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTouchEvent,
    0,
    0,
    0,
    release_QTouchEvent,
    cast_QTouchEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 675 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 164576 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 164580 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 164583 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QWindowStateChangeEvent_oldState, "QWindowStateChangeEvent.oldState() -> Qt.WindowStates");

extern "C" {static PyObject *meth_QWindowStateChangeEvent_oldState(PyObject *, PyObject *);}
static PyObject *meth_QWindowStateChangeEvent_oldState(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWindowStateChangeEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWindowStateChangeEvent, &sipCpp))
        {
            Qt::WindowStates*sipRes;

            sipRes = new Qt::WindowStates(sipCpp->oldState());

            return sipConvertFromNewType(sipRes,sipType_Qt_WindowStates,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWindowStateChangeEvent, sipName_oldState, doc_QWindowStateChangeEvent_oldState);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QWindowStateChangeEvent(void *, const sipTypeDef *);}
static void *cast_QWindowStateChangeEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QWindowStateChangeEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QWindowStateChangeEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWindowStateChangeEvent(void *, int);}
static void release_QWindowStateChangeEvent(void *sipCppV,int)
{
    delete reinterpret_cast<QWindowStateChangeEvent *>(sipCppV);
}


extern "C" {static void dealloc_QWindowStateChangeEvent(sipSimpleWrapper *);}
static void dealloc_QWindowStateChangeEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QWindowStateChangeEvent(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QWindowStateChangeEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QWindowStateChangeEvent[] = {
    {SIP_MLNAME_CAST(sipName_oldState), meth_QWindowStateChangeEvent_oldState, METH_VARARGS, SIP_MLDOC_CAST(doc_QWindowStateChangeEvent_oldState)}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QWindowStateChangeEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QWindowStateChangeEvent,
        {0}
    },
    {
        sipNameNr_QWindowStateChangeEvent,
        {0, 0, 1},
        1, methods_QWindowStateChangeEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QWindowStateChangeEvent,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QWindowStateChangeEvent,
    0,
    0,
    0,
    release_QWindowStateChangeEvent,
    cast_QWindowStateChangeEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 661 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 164712 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 164716 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 164719 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQShortcutEvent : public QShortcutEvent
{
public:
    sipQShortcutEvent(const QKeySequence&,int,bool);
    sipQShortcutEvent(const QShortcutEvent&);
    ~sipQShortcutEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQShortcutEvent(const sipQShortcutEvent &);
    sipQShortcutEvent &operator = (const sipQShortcutEvent &);
};

sipQShortcutEvent::sipQShortcutEvent(const QKeySequence& a0,int a1,bool a2): QShortcutEvent(a0,a1,a2), sipPySelf(0)
{
}

sipQShortcutEvent::sipQShortcutEvent(const QShortcutEvent& a0): QShortcutEvent(a0), sipPySelf(0)
{
}

sipQShortcutEvent::~sipQShortcutEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QShortcutEvent_isAmbiguous, "QShortcutEvent.isAmbiguous() -> bool");

extern "C" {static PyObject *meth_QShortcutEvent_isAmbiguous(PyObject *, PyObject *);}
static PyObject *meth_QShortcutEvent_isAmbiguous(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QShortcutEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QShortcutEvent, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAmbiguous();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QShortcutEvent, sipName_isAmbiguous, doc_QShortcutEvent_isAmbiguous);

    return NULL;
}


PyDoc_STRVAR(doc_QShortcutEvent_key, "QShortcutEvent.key() -> QKeySequence");

extern "C" {static PyObject *meth_QShortcutEvent_key(PyObject *, PyObject *);}
static PyObject *meth_QShortcutEvent_key(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QShortcutEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QShortcutEvent, &sipCpp))
        {
            QKeySequence*sipRes;

            sipRes = new QKeySequence(sipCpp->key());

            return sipConvertFromNewType(sipRes,sipType_QKeySequence,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QShortcutEvent, sipName_key, doc_QShortcutEvent_key);

    return NULL;
}


PyDoc_STRVAR(doc_QShortcutEvent_shortcutId, "QShortcutEvent.shortcutId() -> int");

extern "C" {static PyObject *meth_QShortcutEvent_shortcutId(PyObject *, PyObject *);}
static PyObject *meth_QShortcutEvent_shortcutId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QShortcutEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QShortcutEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->shortcutId();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QShortcutEvent, sipName_shortcutId, doc_QShortcutEvent_shortcutId);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QShortcutEvent(void *, const sipTypeDef *);}
static void *cast_QShortcutEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QShortcutEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QShortcutEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QShortcutEvent(void *, int);}
static void release_QShortcutEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQShortcutEvent *>(sipCppV);
    else
        delete reinterpret_cast<QShortcutEvent *>(sipCppV);
}


extern "C" {static void dealloc_QShortcutEvent(sipSimpleWrapper *);}
static void dealloc_QShortcutEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQShortcutEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QShortcutEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QShortcutEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QShortcutEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQShortcutEvent *sipCpp = 0;

    {
        const QKeySequence* a0;
        int a0State = 0;
        int a1;
        bool a2 = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_ambiguous,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1i|b", sipType_QKeySequence, &a0, &a0State, &a1, &a2))
        {
            sipCpp = new sipQShortcutEvent(*a0,a1,a2);
            sipReleaseType(const_cast<QKeySequence *>(a0),sipType_QKeySequence,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QShortcutEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QShortcutEvent, &a0))
        {
            sipCpp = new sipQShortcutEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QShortcutEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QShortcutEvent[] = {
    {SIP_MLNAME_CAST(sipName_isAmbiguous), meth_QShortcutEvent_isAmbiguous, METH_VARARGS, SIP_MLDOC_CAST(doc_QShortcutEvent_isAmbiguous)},
    {SIP_MLNAME_CAST(sipName_key), meth_QShortcutEvent_key, METH_VARARGS, SIP_MLDOC_CAST(doc_QShortcutEvent_key)},
    {SIP_MLNAME_CAST(sipName_shortcutId), meth_QShortcutEvent_shortcutId, METH_VARARGS, SIP_MLDOC_CAST(doc_QShortcutEvent_shortcutId)}
};

PyDoc_STRVAR(doc_QShortcutEvent, "\1QShortcutEvent(QKeySequence, int, bool ambiguous=False)\n"
    "QShortcutEvent(QShortcutEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QShortcutEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QShortcutEvent,
        {0}
    },
    {
        sipNameNr_QShortcutEvent,
        {0, 0, 1},
        3, methods_QShortcutEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QShortcutEvent,
    -1,
    -1,
    supers_QShortcutEvent,
    0,
    init_type_QShortcutEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QShortcutEvent,
    0,
    0,
    0,
    release_QShortcutEvent,
    cast_QShortcutEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 648 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 164988 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qfile.sip"
#include <qfile.h>
#line 164992 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 164995 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 100 "sip/QtCore/qurl.sip"
#include <qurl.h>
#line 164998 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 165001 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 165004 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QFileOpenEvent_file, "QFileOpenEvent.file() -> str");

extern "C" {static PyObject *meth_QFileOpenEvent_file(PyObject *, PyObject *);}
static PyObject *meth_QFileOpenEvent_file(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFileOpenEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFileOpenEvent, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->file());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFileOpenEvent, sipName_file, doc_QFileOpenEvent_file);

    return NULL;
}


PyDoc_STRVAR(doc_QFileOpenEvent_url, "QFileOpenEvent.url() -> QUrl");

extern "C" {static PyObject *meth_QFileOpenEvent_url(PyObject *, PyObject *);}
static PyObject *meth_QFileOpenEvent_url(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFileOpenEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFileOpenEvent, &sipCpp))
        {
            QUrl*sipRes;

            sipRes = new QUrl(sipCpp->url());

            return sipConvertFromNewType(sipRes,sipType_QUrl,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFileOpenEvent, sipName_url, doc_QFileOpenEvent_url);

    return NULL;
}


PyDoc_STRVAR(doc_QFileOpenEvent_openFile, "QFileOpenEvent.openFile(QFile, QIODevice.OpenMode) -> bool");

extern "C" {static PyObject *meth_QFileOpenEvent_openFile(PyObject *, PyObject *);}
static PyObject *meth_QFileOpenEvent_openFile(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QFile* a0;
        QIODevice::OpenMode* a1;
        int a1State = 0;
        const QFileOpenEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_QFileOpenEvent, &sipCpp, sipType_QFile, &a0, sipType_QIODevice_OpenMode, &a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->openFile(*a0,*a1);
            sipReleaseType(a1,sipType_QIODevice_OpenMode,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFileOpenEvent, sipName_openFile, doc_QFileOpenEvent_openFile);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QFileOpenEvent(void *, const sipTypeDef *);}
static void *cast_QFileOpenEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QFileOpenEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QFileOpenEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QFileOpenEvent(void *, int);}
static void release_QFileOpenEvent(void *sipCppV,int)
{
    delete reinterpret_cast<QFileOpenEvent *>(sipCppV);
}


extern "C" {static void dealloc_QFileOpenEvent(sipSimpleWrapper *);}
static void dealloc_QFileOpenEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QFileOpenEvent(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QFileOpenEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QFileOpenEvent[] = {
    {SIP_MLNAME_CAST(sipName_file), meth_QFileOpenEvent_file, METH_VARARGS, SIP_MLDOC_CAST(doc_QFileOpenEvent_file)},
    {SIP_MLNAME_CAST(sipName_openFile), meth_QFileOpenEvent_openFile, METH_VARARGS, SIP_MLDOC_CAST(doc_QFileOpenEvent_openFile)},
    {SIP_MLNAME_CAST(sipName_url), meth_QFileOpenEvent_url, METH_VARARGS, SIP_MLDOC_CAST(doc_QFileOpenEvent_url)}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QFileOpenEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QFileOpenEvent,
        {0}
    },
    {
        sipNameNr_QFileOpenEvent,
        {0, 0, 1},
        3, methods_QFileOpenEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QFileOpenEvent,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QFileOpenEvent,
    0,
    0,
    0,
    release_QFileOpenEvent,
    cast_QFileOpenEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 635 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 165193 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 165197 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQActionEvent : public QActionEvent
{
public:
    sipQActionEvent(int,QAction*,QAction*);
    sipQActionEvent(const QActionEvent&);
    ~sipQActionEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQActionEvent(const sipQActionEvent &);
    sipQActionEvent &operator = (const sipQActionEvent &);
};

sipQActionEvent::sipQActionEvent(int a0,QAction*a1,QAction*a2): QActionEvent(a0,a1,a2), sipPySelf(0)
{
}

sipQActionEvent::sipQActionEvent(const QActionEvent& a0): QActionEvent(a0), sipPySelf(0)
{
}

sipQActionEvent::~sipQActionEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QActionEvent_action, "QActionEvent.action() -> QAction");

extern "C" {static PyObject *meth_QActionEvent_action(PyObject *, PyObject *);}
static PyObject *meth_QActionEvent_action(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QActionEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QActionEvent, &sipCpp))
        {
            QAction*sipRes;

            sipRes = sipCpp->action();

            return sipConvertFromType(sipRes,sipType_QAction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QActionEvent, sipName_action, doc_QActionEvent_action);

    return NULL;
}


PyDoc_STRVAR(doc_QActionEvent_before, "QActionEvent.before() -> QAction");

extern "C" {static PyObject *meth_QActionEvent_before(PyObject *, PyObject *);}
static PyObject *meth_QActionEvent_before(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QActionEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QActionEvent, &sipCpp))
        {
            QAction*sipRes;

            sipRes = sipCpp->before();

            return sipConvertFromType(sipRes,sipType_QAction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QActionEvent, sipName_before, doc_QActionEvent_before);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QActionEvent(void *, const sipTypeDef *);}
static void *cast_QActionEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QActionEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QActionEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QActionEvent(void *, int);}
static void release_QActionEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQActionEvent *>(sipCppV);
    else
        delete reinterpret_cast<QActionEvent *>(sipCppV);
}


extern "C" {static void dealloc_QActionEvent(sipSimpleWrapper *);}
static void dealloc_QActionEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQActionEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QActionEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QActionEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QActionEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQActionEvent *sipCpp = 0;

    {
        int a0;
        QAction* a1;
        QAction* a2 = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_before,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "iJ8|J8", &a0, sipType_QAction, &a1, sipType_QAction, &a2))
        {
            sipCpp = new sipQActionEvent(a0,a1,a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QActionEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QActionEvent, &a0))
        {
            sipCpp = new sipQActionEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QActionEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QActionEvent[] = {
    {SIP_MLNAME_CAST(sipName_action), meth_QActionEvent_action, METH_VARARGS, SIP_MLDOC_CAST(doc_QActionEvent_action)},
    {SIP_MLNAME_CAST(sipName_before), meth_QActionEvent_before, METH_VARARGS, SIP_MLDOC_CAST(doc_QActionEvent_before)}
};

PyDoc_STRVAR(doc_QActionEvent, "\1QActionEvent(int, QAction, QAction before=None)\n"
    "QActionEvent(QActionEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QActionEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QActionEvent,
        {0}
    },
    {
        sipNameNr_QActionEvent,
        {0, 0, 1},
        2, methods_QActionEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QActionEvent,
    -1,
    -1,
    supers_QActionEvent,
    0,
    init_type_QActionEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QActionEvent,
    0,
    0,
    0,
    release_QActionEvent,
    cast_QActionEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 623 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 165436 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 165440 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 165443 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQWhatsThisClickedEvent : public QWhatsThisClickedEvent
{
public:
    sipQWhatsThisClickedEvent(const QString&);
    sipQWhatsThisClickedEvent(const QWhatsThisClickedEvent&);
    ~sipQWhatsThisClickedEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQWhatsThisClickedEvent(const sipQWhatsThisClickedEvent &);
    sipQWhatsThisClickedEvent &operator = (const sipQWhatsThisClickedEvent &);
};

sipQWhatsThisClickedEvent::sipQWhatsThisClickedEvent(const QString& a0): QWhatsThisClickedEvent(a0), sipPySelf(0)
{
}

sipQWhatsThisClickedEvent::sipQWhatsThisClickedEvent(const QWhatsThisClickedEvent& a0): QWhatsThisClickedEvent(a0), sipPySelf(0)
{
}

sipQWhatsThisClickedEvent::~sipQWhatsThisClickedEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QWhatsThisClickedEvent_href, "QWhatsThisClickedEvent.href() -> str");

extern "C" {static PyObject *meth_QWhatsThisClickedEvent_href(PyObject *, PyObject *);}
static PyObject *meth_QWhatsThisClickedEvent_href(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWhatsThisClickedEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWhatsThisClickedEvent, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->href());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWhatsThisClickedEvent, sipName_href, doc_QWhatsThisClickedEvent_href);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QWhatsThisClickedEvent(void *, const sipTypeDef *);}
static void *cast_QWhatsThisClickedEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QWhatsThisClickedEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QWhatsThisClickedEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWhatsThisClickedEvent(void *, int);}
static void release_QWhatsThisClickedEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQWhatsThisClickedEvent *>(sipCppV);
    else
        delete reinterpret_cast<QWhatsThisClickedEvent *>(sipCppV);
}


extern "C" {static void dealloc_QWhatsThisClickedEvent(sipSimpleWrapper *);}
static void dealloc_QWhatsThisClickedEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQWhatsThisClickedEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QWhatsThisClickedEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QWhatsThisClickedEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QWhatsThisClickedEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQWhatsThisClickedEvent *sipCpp = 0;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            sipCpp = new sipQWhatsThisClickedEvent(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QWhatsThisClickedEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QWhatsThisClickedEvent, &a0))
        {
            sipCpp = new sipQWhatsThisClickedEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QWhatsThisClickedEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QWhatsThisClickedEvent[] = {
    {SIP_MLNAME_CAST(sipName_href), meth_QWhatsThisClickedEvent_href, METH_VARARGS, SIP_MLDOC_CAST(doc_QWhatsThisClickedEvent_href)}
};

PyDoc_STRVAR(doc_QWhatsThisClickedEvent, "\1QWhatsThisClickedEvent(str)\n"
    "QWhatsThisClickedEvent(QWhatsThisClickedEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QWhatsThisClickedEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QWhatsThisClickedEvent,
        {0}
    },
    {
        sipNameNr_QWhatsThisClickedEvent,
        {0, 0, 1},
        1, methods_QWhatsThisClickedEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QWhatsThisClickedEvent,
    -1,
    -1,
    supers_QWhatsThisClickedEvent,
    0,
    init_type_QWhatsThisClickedEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QWhatsThisClickedEvent,
    0,
    0,
    0,
    release_QWhatsThisClickedEvent,
    cast_QWhatsThisClickedEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 611 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 165648 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 165652 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 165655 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQStatusTipEvent : public QStatusTipEvent
{
public:
    sipQStatusTipEvent(const QString&);
    sipQStatusTipEvent(const QStatusTipEvent&);
    ~sipQStatusTipEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQStatusTipEvent(const sipQStatusTipEvent &);
    sipQStatusTipEvent &operator = (const sipQStatusTipEvent &);
};

sipQStatusTipEvent::sipQStatusTipEvent(const QString& a0): QStatusTipEvent(a0), sipPySelf(0)
{
}

sipQStatusTipEvent::sipQStatusTipEvent(const QStatusTipEvent& a0): QStatusTipEvent(a0), sipPySelf(0)
{
}

sipQStatusTipEvent::~sipQStatusTipEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QStatusTipEvent_tip, "QStatusTipEvent.tip() -> str");

extern "C" {static PyObject *meth_QStatusTipEvent_tip(PyObject *, PyObject *);}
static PyObject *meth_QStatusTipEvent_tip(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QStatusTipEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStatusTipEvent, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->tip());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QStatusTipEvent, sipName_tip, doc_QStatusTipEvent_tip);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QStatusTipEvent(void *, const sipTypeDef *);}
static void *cast_QStatusTipEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QStatusTipEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QStatusTipEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QStatusTipEvent(void *, int);}
static void release_QStatusTipEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQStatusTipEvent *>(sipCppV);
    else
        delete reinterpret_cast<QStatusTipEvent *>(sipCppV);
}


extern "C" {static void dealloc_QStatusTipEvent(sipSimpleWrapper *);}
static void dealloc_QStatusTipEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQStatusTipEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QStatusTipEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QStatusTipEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QStatusTipEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQStatusTipEvent *sipCpp = 0;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            sipCpp = new sipQStatusTipEvent(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QStatusTipEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QStatusTipEvent, &a0))
        {
            sipCpp = new sipQStatusTipEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QStatusTipEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QStatusTipEvent[] = {
    {SIP_MLNAME_CAST(sipName_tip), meth_QStatusTipEvent_tip, METH_VARARGS, SIP_MLDOC_CAST(doc_QStatusTipEvent_tip)}
};

PyDoc_STRVAR(doc_QStatusTipEvent, "\1QStatusTipEvent(str)\n"
    "QStatusTipEvent(QStatusTipEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QStatusTipEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QStatusTipEvent,
        {0}
    },
    {
        sipNameNr_QStatusTipEvent,
        {0, 0, 1},
        1, methods_QStatusTipEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QStatusTipEvent,
    -1,
    -1,
    supers_QStatusTipEvent,
    0,
    init_type_QStatusTipEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QStatusTipEvent,
    0,
    0,
    0,
    release_QStatusTipEvent,
    cast_QStatusTipEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 594 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 165860 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 165864 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 165867 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQHelpEvent : public QHelpEvent
{
public:
    sipQHelpEvent(QEvent::Type,const QPoint&,const QPoint&);
    sipQHelpEvent(const QHelpEvent&);
    ~sipQHelpEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQHelpEvent(const sipQHelpEvent &);
    sipQHelpEvent &operator = (const sipQHelpEvent &);
};

sipQHelpEvent::sipQHelpEvent(QEvent::Type a0,const QPoint& a1,const QPoint& a2): QHelpEvent(a0,a1,a2), sipPySelf(0)
{
}

sipQHelpEvent::sipQHelpEvent(const QHelpEvent& a0): QHelpEvent(a0), sipPySelf(0)
{
}

sipQHelpEvent::~sipQHelpEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QHelpEvent_x, "QHelpEvent.x() -> int");

extern "C" {static PyObject *meth_QHelpEvent_x(PyObject *, PyObject *);}
static PyObject *meth_QHelpEvent_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHelpEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHelpEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->x();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHelpEvent, sipName_x, doc_QHelpEvent_x);

    return NULL;
}


PyDoc_STRVAR(doc_QHelpEvent_y, "QHelpEvent.y() -> int");

extern "C" {static PyObject *meth_QHelpEvent_y(PyObject *, PyObject *);}
static PyObject *meth_QHelpEvent_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHelpEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHelpEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->y();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHelpEvent, sipName_y, doc_QHelpEvent_y);

    return NULL;
}


PyDoc_STRVAR(doc_QHelpEvent_globalX, "QHelpEvent.globalX() -> int");

extern "C" {static PyObject *meth_QHelpEvent_globalX(PyObject *, PyObject *);}
static PyObject *meth_QHelpEvent_globalX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHelpEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHelpEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHelpEvent, sipName_globalX, doc_QHelpEvent_globalX);

    return NULL;
}


PyDoc_STRVAR(doc_QHelpEvent_globalY, "QHelpEvent.globalY() -> int");

extern "C" {static PyObject *meth_QHelpEvent_globalY(PyObject *, PyObject *);}
static PyObject *meth_QHelpEvent_globalY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHelpEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHelpEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalY();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHelpEvent, sipName_globalY, doc_QHelpEvent_globalY);

    return NULL;
}


PyDoc_STRVAR(doc_QHelpEvent_pos, "QHelpEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QHelpEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QHelpEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHelpEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHelpEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHelpEvent, sipName_pos, doc_QHelpEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QHelpEvent_globalPos, "QHelpEvent.globalPos() -> QPoint");

extern "C" {static PyObject *meth_QHelpEvent_globalPos(PyObject *, PyObject *);}
static PyObject *meth_QHelpEvent_globalPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHelpEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHelpEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->globalPos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHelpEvent, sipName_globalPos, doc_QHelpEvent_globalPos);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHelpEvent(void *, const sipTypeDef *);}
static void *cast_QHelpEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QHelpEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QHelpEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHelpEvent(void *, int);}
static void release_QHelpEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQHelpEvent *>(sipCppV);
    else
        delete reinterpret_cast<QHelpEvent *>(sipCppV);
}


extern "C" {static void dealloc_QHelpEvent(sipSimpleWrapper *);}
static void dealloc_QHelpEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQHelpEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QHelpEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QHelpEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHelpEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQHelpEvent *sipCpp = 0;

    {
        QEvent::Type a0;
        const QPoint* a1;
        const QPoint* a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ9J9", sipType_QEvent_Type, &a0, sipType_QPoint, &a1, sipType_QPoint, &a2))
        {
            sipCpp = new sipQHelpEvent(a0,*a1,*a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QHelpEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QHelpEvent, &a0))
        {
            sipCpp = new sipQHelpEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QHelpEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QHelpEvent[] = {
    {SIP_MLNAME_CAST(sipName_globalPos), meth_QHelpEvent_globalPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QHelpEvent_globalPos)},
    {SIP_MLNAME_CAST(sipName_globalX), meth_QHelpEvent_globalX, METH_VARARGS, SIP_MLDOC_CAST(doc_QHelpEvent_globalX)},
    {SIP_MLNAME_CAST(sipName_globalY), meth_QHelpEvent_globalY, METH_VARARGS, SIP_MLDOC_CAST(doc_QHelpEvent_globalY)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QHelpEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QHelpEvent_pos)},
    {SIP_MLNAME_CAST(sipName_x), meth_QHelpEvent_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QHelpEvent_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QHelpEvent_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QHelpEvent_y)}
};

PyDoc_STRVAR(doc_QHelpEvent, "\1QHelpEvent(QEvent.Type, QPoint, QPoint)\n"
    "QHelpEvent(QHelpEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QHelpEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QHelpEvent,
        {0}
    },
    {
        sipNameNr_QHelpEvent,
        {0, 0, 1},
        6, methods_QHelpEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHelpEvent,
    -1,
    -1,
    supers_QHelpEvent,
    0,
    init_type_QHelpEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHelpEvent,
    0,
    0,
    0,
    release_QHelpEvent,
    cast_QHelpEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 583 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 166212 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 166216 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQDragLeaveEvent : public QDragLeaveEvent
{
public:
    sipQDragLeaveEvent();
    sipQDragLeaveEvent(const QDragLeaveEvent&);
    ~sipQDragLeaveEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQDragLeaveEvent(const sipQDragLeaveEvent &);
    sipQDragLeaveEvent &operator = (const sipQDragLeaveEvent &);
};

sipQDragLeaveEvent::sipQDragLeaveEvent(): QDragLeaveEvent(), sipPySelf(0)
{
}

sipQDragLeaveEvent::sipQDragLeaveEvent(const QDragLeaveEvent& a0): QDragLeaveEvent(a0), sipPySelf(0)
{
}

sipQDragLeaveEvent::~sipQDragLeaveEvent()
{
    sipCommonDtor(sipPySelf);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QDragLeaveEvent(void *, const sipTypeDef *);}
static void *cast_QDragLeaveEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QDragLeaveEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QDragLeaveEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDragLeaveEvent(void *, int);}
static void release_QDragLeaveEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQDragLeaveEvent *>(sipCppV);
    else
        delete reinterpret_cast<QDragLeaveEvent *>(sipCppV);
}


extern "C" {static void assign_QDragLeaveEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_QDragLeaveEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QDragLeaveEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QDragLeaveEvent *>(sipSrc);
}


extern "C" {static void *array_QDragLeaveEvent(SIP_SSIZE_T);}
static void *array_QDragLeaveEvent(SIP_SSIZE_T sipNrElem)
{
    return new QDragLeaveEvent[sipNrElem];
}


extern "C" {static void *copy_QDragLeaveEvent(const void *, SIP_SSIZE_T);}
static void *copy_QDragLeaveEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QDragLeaveEvent(reinterpret_cast<const QDragLeaveEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QDragLeaveEvent(sipSimpleWrapper *);}
static void dealloc_QDragLeaveEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQDragLeaveEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QDragLeaveEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QDragLeaveEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDragLeaveEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQDragLeaveEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQDragLeaveEvent();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QDragLeaveEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QDragLeaveEvent, &a0))
        {
            sipCpp = new sipQDragLeaveEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDragLeaveEvent[] = {{53, 0, 1}};

PyDoc_STRVAR(doc_QDragLeaveEvent, "\1QDragLeaveEvent()\n"
    "QDragLeaveEvent(QDragLeaveEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QDragLeaveEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QDragLeaveEvent,
        {0}
    },
    {
        sipNameNr_QDragLeaveEvent,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDragLeaveEvent,
    -1,
    -1,
    supers_QDragLeaveEvent,
    0,
    init_type_QDragLeaveEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDragLeaveEvent,
    assign_QDragLeaveEvent,
    array_QDragLeaveEvent,
    copy_QDragLeaveEvent,
    release_QDragLeaveEvent,
    cast_QDragLeaveEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 572 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 166406 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 166410 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166413 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 166416 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166419 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166422 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 166425 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 166428 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166431 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 166434 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 166437 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQDragEnterEvent : public QDragEnterEvent
{
public:
    sipQDragEnterEvent(const QPoint&,Qt::DropActions,const QMimeData*,Qt::MouseButtons,Qt::KeyboardModifiers);
    sipQDragEnterEvent(const QDragEnterEvent&);
    ~sipQDragEnterEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQDragEnterEvent(const sipQDragEnterEvent &);
    sipQDragEnterEvent &operator = (const sipQDragEnterEvent &);
};

sipQDragEnterEvent::sipQDragEnterEvent(const QPoint& a0,Qt::DropActions a1,const QMimeData*a2,Qt::MouseButtons a3,Qt::KeyboardModifiers a4): QDragEnterEvent(a0,a1,a2,a3,a4), sipPySelf(0)
{
}

sipQDragEnterEvent::sipQDragEnterEvent(const QDragEnterEvent& a0): QDragEnterEvent(a0), sipPySelf(0)
{
}

sipQDragEnterEvent::~sipQDragEnterEvent()
{
    sipCommonDtor(sipPySelf);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QDragEnterEvent(void *, const sipTypeDef *);}
static void *cast_QDragEnterEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QDragEnterEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QDragMoveEvent)->ctd_cast((QDragMoveEvent *)(QDragEnterEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDragEnterEvent(void *, int);}
static void release_QDragEnterEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQDragEnterEvent *>(sipCppV);
    else
        delete reinterpret_cast<QDragEnterEvent *>(sipCppV);
}


extern "C" {static void dealloc_QDragEnterEvent(sipSimpleWrapper *);}
static void dealloc_QDragEnterEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQDragEnterEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QDragEnterEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QDragEnterEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDragEnterEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQDragEnterEvent *sipCpp = 0;

    {
        const QPoint* a0;
        Qt::DropActions* a1;
        int a1State = 0;
        const QMimeData* a2;
        Qt::MouseButtons* a3;
        int a3State = 0;
        Qt::KeyboardModifiers* a4;
        int a4State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1J8J1J1", sipType_QPoint, &a0, sipType_Qt_DropActions, &a1, &a1State, sipType_QMimeData, &a2, sipType_Qt_MouseButtons, &a3, &a3State, sipType_Qt_KeyboardModifiers, &a4, &a4State))
        {
            sipCpp = new sipQDragEnterEvent(*a0,*a1,a2,*a3,*a4);
            sipReleaseType(a1,sipType_Qt_DropActions,a1State);
            sipReleaseType(a3,sipType_Qt_MouseButtons,a3State);
            sipReleaseType(a4,sipType_Qt_KeyboardModifiers,a4State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QDragEnterEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QDragEnterEvent, &a0))
        {
            sipCpp = new sipQDragEnterEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDragEnterEvent[] = {{25, 255, 1}};

PyDoc_STRVAR(doc_QDragEnterEvent, "\1QDragEnterEvent(QPoint, Qt.DropActions, QMimeData, Qt.MouseButtons, Qt.KeyboardModifiers)\n"
    "QDragEnterEvent(QDragEnterEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QDragEnterEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QDragEnterEvent,
        {0}
    },
    {
        sipNameNr_QDragEnterEvent,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDragEnterEvent,
    -1,
    -1,
    supers_QDragEnterEvent,
    0,
    init_type_QDragEnterEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDragEnterEvent,
    0,
    0,
    0,
    release_QDragEnterEvent,
    cast_QDragEnterEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 556 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 166618 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 166622 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166625 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 166628 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166631 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166634 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 166637 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 166640 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 166643 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166646 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 166649 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQDragMoveEvent : public QDragMoveEvent
{
public:
    sipQDragMoveEvent(const QPoint&,Qt::DropActions,const QMimeData*,Qt::MouseButtons,Qt::KeyboardModifiers,QEvent::Type);
    sipQDragMoveEvent(const QDragMoveEvent&);
    ~sipQDragMoveEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQDragMoveEvent(const sipQDragMoveEvent &);
    sipQDragMoveEvent &operator = (const sipQDragMoveEvent &);
};

sipQDragMoveEvent::sipQDragMoveEvent(const QPoint& a0,Qt::DropActions a1,const QMimeData*a2,Qt::MouseButtons a3,Qt::KeyboardModifiers a4,QEvent::Type a5): QDragMoveEvent(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
}

sipQDragMoveEvent::sipQDragMoveEvent(const QDragMoveEvent& a0): QDragMoveEvent(a0), sipPySelf(0)
{
}

sipQDragMoveEvent::~sipQDragMoveEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QDragMoveEvent_answerRect, "QDragMoveEvent.answerRect() -> QRect");

extern "C" {static PyObject *meth_QDragMoveEvent_answerRect(PyObject *, PyObject *);}
static PyObject *meth_QDragMoveEvent_answerRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDragMoveEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDragMoveEvent, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->answerRect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDragMoveEvent, sipName_answerRect, doc_QDragMoveEvent_answerRect);

    return NULL;
}


PyDoc_STRVAR(doc_QDragMoveEvent_accept, "QDragMoveEvent.accept()\n"
    "QDragMoveEvent.accept(QRect)");

extern "C" {static PyObject *meth_QDragMoveEvent_accept(PyObject *, PyObject *);}
static PyObject *meth_QDragMoveEvent_accept(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QDragMoveEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDragMoveEvent, &sipCpp))
        {
            sipCpp->accept();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        QDragMoveEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QDragMoveEvent, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->accept(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDragMoveEvent, sipName_accept, doc_QDragMoveEvent_accept);

    return NULL;
}


PyDoc_STRVAR(doc_QDragMoveEvent_ignore, "QDragMoveEvent.ignore()\n"
    "QDragMoveEvent.ignore(QRect)");

extern "C" {static PyObject *meth_QDragMoveEvent_ignore(PyObject *, PyObject *);}
static PyObject *meth_QDragMoveEvent_ignore(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QDragMoveEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDragMoveEvent, &sipCpp))
        {
            sipCpp->ignore();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QRect* a0;
        QDragMoveEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QDragMoveEvent, &sipCpp, sipType_QRect, &a0))
        {
            sipCpp->ignore(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDragMoveEvent, sipName_ignore, doc_QDragMoveEvent_ignore);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QDragMoveEvent(void *, const sipTypeDef *);}
static void *cast_QDragMoveEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QDragMoveEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QDropEvent)->ctd_cast((QDropEvent *)(QDragMoveEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDragMoveEvent(void *, int);}
static void release_QDragMoveEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQDragMoveEvent *>(sipCppV);
    else
        delete reinterpret_cast<QDragMoveEvent *>(sipCppV);
}


extern "C" {static void dealloc_QDragMoveEvent(sipSimpleWrapper *);}
static void dealloc_QDragMoveEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQDragMoveEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QDragMoveEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QDragMoveEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDragMoveEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQDragMoveEvent *sipCpp = 0;

    {
        const QPoint* a0;
        Qt::DropActions* a1;
        int a1State = 0;
        const QMimeData* a2;
        Qt::MouseButtons* a3;
        int a3State = 0;
        Qt::KeyboardModifiers* a4;
        int a4State = 0;
        QEvent::Type a5 = QEvent::DragMove;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_type,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9J1J8J1J1|E", sipType_QPoint, &a0, sipType_Qt_DropActions, &a1, &a1State, sipType_QMimeData, &a2, sipType_Qt_MouseButtons, &a3, &a3State, sipType_Qt_KeyboardModifiers, &a4, &a4State, sipType_QEvent_Type, &a5))
        {
            sipCpp = new sipQDragMoveEvent(*a0,*a1,a2,*a3,*a4,a5);
            sipReleaseType(a1,sipType_Qt_DropActions,a1State);
            sipReleaseType(a3,sipType_Qt_MouseButtons,a3State);
            sipReleaseType(a4,sipType_Qt_KeyboardModifiers,a4State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QDragMoveEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QDragMoveEvent, &a0))
        {
            sipCpp = new sipQDragMoveEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDragMoveEvent[] = {{26, 255, 1}};


static PyMethodDef methods_QDragMoveEvent[] = {
    {SIP_MLNAME_CAST(sipName_accept), meth_QDragMoveEvent_accept, METH_VARARGS, SIP_MLDOC_CAST(doc_QDragMoveEvent_accept)},
    {SIP_MLNAME_CAST(sipName_answerRect), meth_QDragMoveEvent_answerRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QDragMoveEvent_answerRect)},
    {SIP_MLNAME_CAST(sipName_ignore), meth_QDragMoveEvent_ignore, METH_VARARGS, SIP_MLDOC_CAST(doc_QDragMoveEvent_ignore)}
};

PyDoc_STRVAR(doc_QDragMoveEvent, "\1QDragMoveEvent(QPoint, Qt.DropActions, QMimeData, Qt.MouseButtons, Qt.KeyboardModifiers, QEvent.Type type=QEvent.DragMove)\n"
    "QDragMoveEvent(QDragMoveEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QDragMoveEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QDragMoveEvent,
        {0}
    },
    {
        sipNameNr_QDragMoveEvent,
        {0, 0, 1},
        3, methods_QDragMoveEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDragMoveEvent,
    -1,
    -1,
    supers_QDragMoveEvent,
    0,
    init_type_QDragMoveEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDragMoveEvent,
    0,
    0,
    0,
    release_QDragMoveEvent,
    cast_QDragMoveEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 534 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 166954 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 166958 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166961 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 166964 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166967 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166970 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 166973 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 166976 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 166979 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 166982 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQDropEvent : public QDropEvent
{
public:
    sipQDropEvent(const QPointF&,Qt::DropActions,const QMimeData*,Qt::MouseButtons,Qt::KeyboardModifiers,QEvent::Type);
    sipQDropEvent(const QDropEvent&);
    ~sipQDropEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQDropEvent(const sipQDropEvent &);
    sipQDropEvent &operator = (const sipQDropEvent &);
};

sipQDropEvent::sipQDropEvent(const QPointF& a0,Qt::DropActions a1,const QMimeData*a2,Qt::MouseButtons a3,Qt::KeyboardModifiers a4,QEvent::Type a5): QDropEvent(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
}

sipQDropEvent::sipQDropEvent(const QDropEvent& a0): QDropEvent(a0), sipPySelf(0)
{
}

sipQDropEvent::~sipQDropEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QDropEvent_pos, "QDropEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QDropEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_pos, doc_QDropEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_posF, "QDropEvent.posF() -> QPointF");

extern "C" {static PyObject *meth_QDropEvent_posF(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_posF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->posF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_posF, doc_QDropEvent_posF);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_mouseButtons, "QDropEvent.mouseButtons() -> Qt.MouseButtons");

extern "C" {static PyObject *meth_QDropEvent_mouseButtons(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_mouseButtons(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            Qt::MouseButtons*sipRes;

            sipRes = new Qt::MouseButtons(sipCpp->mouseButtons());

            return sipConvertFromNewType(sipRes,sipType_Qt_MouseButtons,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_mouseButtons, doc_QDropEvent_mouseButtons);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_keyboardModifiers, "QDropEvent.keyboardModifiers() -> Qt.KeyboardModifiers");

extern "C" {static PyObject *meth_QDropEvent_keyboardModifiers(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_keyboardModifiers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            Qt::KeyboardModifiers*sipRes;

            sipRes = new Qt::KeyboardModifiers(sipCpp->keyboardModifiers());

            return sipConvertFromNewType(sipRes,sipType_Qt_KeyboardModifiers,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_keyboardModifiers, doc_QDropEvent_keyboardModifiers);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_possibleActions, "QDropEvent.possibleActions() -> Qt.DropActions");

extern "C" {static PyObject *meth_QDropEvent_possibleActions(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_possibleActions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            Qt::DropActions*sipRes;

            sipRes = new Qt::DropActions(sipCpp->possibleActions());

            return sipConvertFromNewType(sipRes,sipType_Qt_DropActions,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_possibleActions, doc_QDropEvent_possibleActions);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_proposedAction, "QDropEvent.proposedAction() -> Qt.DropAction");

extern "C" {static PyObject *meth_QDropEvent_proposedAction(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_proposedAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            Qt::DropAction sipRes;

            sipRes = sipCpp->proposedAction();

            return sipConvertFromEnum(sipRes,sipType_Qt_DropAction);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_proposedAction, doc_QDropEvent_proposedAction);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_acceptProposedAction, "QDropEvent.acceptProposedAction()");

extern "C" {static PyObject *meth_QDropEvent_acceptProposedAction(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_acceptProposedAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            sipCpp->acceptProposedAction();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_acceptProposedAction, doc_QDropEvent_acceptProposedAction);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_dropAction, "QDropEvent.dropAction() -> Qt.DropAction");

extern "C" {static PyObject *meth_QDropEvent_dropAction(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_dropAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            Qt::DropAction sipRes;

            sipRes = sipCpp->dropAction();

            return sipConvertFromEnum(sipRes,sipType_Qt_DropAction);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_dropAction, doc_QDropEvent_dropAction);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_setDropAction, "QDropEvent.setDropAction(Qt.DropAction)");

extern "C" {static PyObject *meth_QDropEvent_setDropAction(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_setDropAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::DropAction a0;
        QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QDropEvent, &sipCpp, sipType_Qt_DropAction, &a0))
        {
            sipCpp->setDropAction(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_setDropAction, doc_QDropEvent_setDropAction);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_source, "QDropEvent.source() -> QObject");

extern "C" {static PyObject *meth_QDropEvent_source(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_source(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            QObject*sipRes;

            sipRes = sipCpp->source();

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_source, doc_QDropEvent_source);

    return NULL;
}


PyDoc_STRVAR(doc_QDropEvent_mimeData, "QDropEvent.mimeData() -> QMimeData");

extern "C" {static PyObject *meth_QDropEvent_mimeData(PyObject *, PyObject *);}
static PyObject *meth_QDropEvent_mimeData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDropEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDropEvent, &sipCpp))
        {
            const QMimeData*sipRes;

            sipRes = sipCpp->mimeData();

            return sipConvertFromType(const_cast<QMimeData *>(sipRes),sipType_QMimeData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDropEvent, sipName_mimeData, doc_QDropEvent_mimeData);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QDropEvent(void *, const sipTypeDef *);}
static void *cast_QDropEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QDropEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QDropEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDropEvent(void *, int);}
static void release_QDropEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQDropEvent *>(sipCppV);
    else
        delete reinterpret_cast<QDropEvent *>(sipCppV);
}


extern "C" {static void dealloc_QDropEvent(sipSimpleWrapper *);}
static void dealloc_QDropEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQDropEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QDropEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QDropEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDropEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQDropEvent *sipCpp = 0;

    {
        const QPointF* a0;
        int a0State = 0;
        Qt::DropActions* a1;
        int a1State = 0;
        const QMimeData* a2;
        Qt::MouseButtons* a3;
        int a3State = 0;
        Qt::KeyboardModifiers* a4;
        int a4State = 0;
        QEvent::Type a5 = QEvent::Drop;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_type,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1J1J8J1J1|E", sipType_QPointF, &a0, &a0State, sipType_Qt_DropActions, &a1, &a1State, sipType_QMimeData, &a2, sipType_Qt_MouseButtons, &a3, &a3State, sipType_Qt_KeyboardModifiers, &a4, &a4State, sipType_QEvent_Type, &a5))
        {
            sipCpp = new sipQDropEvent(*a0,*a1,a2,*a3,*a4,a5);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(a1,sipType_Qt_DropActions,a1State);
            sipReleaseType(a3,sipType_Qt_MouseButtons,a3State);
            sipReleaseType(a4,sipType_Qt_KeyboardModifiers,a4State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QDropEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QDropEvent, &a0))
        {
            sipCpp = new sipQDropEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDropEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QDropEvent[] = {
    {SIP_MLNAME_CAST(sipName_acceptProposedAction), meth_QDropEvent_acceptProposedAction, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_acceptProposedAction)},
    {SIP_MLNAME_CAST(sipName_dropAction), meth_QDropEvent_dropAction, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_dropAction)},
    {SIP_MLNAME_CAST(sipName_keyboardModifiers), meth_QDropEvent_keyboardModifiers, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_keyboardModifiers)},
    {SIP_MLNAME_CAST(sipName_mimeData), meth_QDropEvent_mimeData, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_mimeData)},
    {SIP_MLNAME_CAST(sipName_mouseButtons), meth_QDropEvent_mouseButtons, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_mouseButtons)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QDropEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_pos)},
    {SIP_MLNAME_CAST(sipName_posF), meth_QDropEvent_posF, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_posF)},
    {SIP_MLNAME_CAST(sipName_possibleActions), meth_QDropEvent_possibleActions, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_possibleActions)},
    {SIP_MLNAME_CAST(sipName_proposedAction), meth_QDropEvent_proposedAction, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_proposedAction)},
    {SIP_MLNAME_CAST(sipName_setDropAction), meth_QDropEvent_setDropAction, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_setDropAction)},
    {SIP_MLNAME_CAST(sipName_source), meth_QDropEvent_source, METH_VARARGS, SIP_MLDOC_CAST(doc_QDropEvent_source)}
};

PyDoc_STRVAR(doc_QDropEvent, "\1QDropEvent(QPointF, Qt.DropActions, QMimeData, Qt.MouseButtons, Qt.KeyboardModifiers, QEvent.Type type=QEvent.Drop)\n"
    "QDropEvent(QDropEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QDropEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QDropEvent,
        {0}
    },
    {
        sipNameNr_QDropEvent,
        {0, 0, 1},
        11, methods_QDropEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDropEvent,
    -1,
    -1,
    supers_QDropEvent,
    0,
    init_type_QDropEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDropEvent,
    0,
    0,
    0,
    release_QDropEvent,
    cast_QDropEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 520 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 167486 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 167490 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 167493 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 167496 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 167499 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQInputMethodQueryEvent : public QInputMethodQueryEvent
{
public:
    sipQInputMethodQueryEvent(Qt::InputMethodQueries);
    sipQInputMethodQueryEvent(const QInputMethodQueryEvent&);
    ~sipQInputMethodQueryEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQInputMethodQueryEvent(const sipQInputMethodQueryEvent &);
    sipQInputMethodQueryEvent &operator = (const sipQInputMethodQueryEvent &);
};

sipQInputMethodQueryEvent::sipQInputMethodQueryEvent(Qt::InputMethodQueries a0): QInputMethodQueryEvent(a0), sipPySelf(0)
{
}

sipQInputMethodQueryEvent::sipQInputMethodQueryEvent(const QInputMethodQueryEvent& a0): QInputMethodQueryEvent(a0), sipPySelf(0)
{
}

sipQInputMethodQueryEvent::~sipQInputMethodQueryEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QInputMethodQueryEvent_queries, "QInputMethodQueryEvent.queries() -> Qt.InputMethodQueries");

extern "C" {static PyObject *meth_QInputMethodQueryEvent_queries(PyObject *, PyObject *);}
static PyObject *meth_QInputMethodQueryEvent_queries(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethodQueryEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethodQueryEvent, &sipCpp))
        {
            Qt::InputMethodQueries*sipRes;

            sipRes = new Qt::InputMethodQueries(sipCpp->queries());

            return sipConvertFromNewType(sipRes,sipType_Qt_InputMethodQueries,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethodQueryEvent, sipName_queries, doc_QInputMethodQueryEvent_queries);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethodQueryEvent_setValue, "QInputMethodQueryEvent.setValue(Qt.InputMethodQuery, QVariant)");

extern "C" {static PyObject *meth_QInputMethodQueryEvent_setValue(PyObject *, PyObject *);}
static PyObject *meth_QInputMethodQueryEvent_setValue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::InputMethodQuery a0;
        const QVariant* a1;
        int a1State = 0;
        QInputMethodQueryEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BEJ1", &sipSelf, sipType_QInputMethodQueryEvent, &sipCpp, sipType_Qt_InputMethodQuery, &a0, sipType_QVariant, &a1, &a1State))
        {
            sipCpp->setValue(a0,*a1);
            sipReleaseType(const_cast<QVariant *>(a1),sipType_QVariant,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethodQueryEvent, sipName_setValue, doc_QInputMethodQueryEvent_setValue);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethodQueryEvent_value, "QInputMethodQueryEvent.value(Qt.InputMethodQuery) -> QVariant");

extern "C" {static PyObject *meth_QInputMethodQueryEvent_value(PyObject *, PyObject *);}
static PyObject *meth_QInputMethodQueryEvent_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::InputMethodQuery a0;
        const QInputMethodQueryEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QInputMethodQueryEvent, &sipCpp, sipType_Qt_InputMethodQuery, &a0))
        {
            QVariant*sipRes;

            sipRes = new QVariant(sipCpp->value(a0));

            return sipConvertFromNewType(sipRes,sipType_QVariant,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethodQueryEvent, sipName_value, doc_QInputMethodQueryEvent_value);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QInputMethodQueryEvent(void *, const sipTypeDef *);}
static void *cast_QInputMethodQueryEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QInputMethodQueryEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QInputMethodQueryEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QInputMethodQueryEvent(void *, int);}
static void release_QInputMethodQueryEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQInputMethodQueryEvent *>(sipCppV);
    else
        delete reinterpret_cast<QInputMethodQueryEvent *>(sipCppV);
}


extern "C" {static void dealloc_QInputMethodQueryEvent(sipSimpleWrapper *);}
static void dealloc_QInputMethodQueryEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQInputMethodQueryEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QInputMethodQueryEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QInputMethodQueryEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QInputMethodQueryEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQInputMethodQueryEvent *sipCpp = 0;

    {
        Qt::InputMethodQueries* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_Qt_InputMethodQueries, &a0, &a0State))
        {
            sipCpp = new sipQInputMethodQueryEvent(*a0);
            sipReleaseType(a0,sipType_Qt_InputMethodQueries,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QInputMethodQueryEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QInputMethodQueryEvent, &a0))
        {
            sipCpp = new sipQInputMethodQueryEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QInputMethodQueryEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QInputMethodQueryEvent[] = {
    {SIP_MLNAME_CAST(sipName_queries), meth_QInputMethodQueryEvent_queries, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethodQueryEvent_queries)},
    {SIP_MLNAME_CAST(sipName_setValue), meth_QInputMethodQueryEvent_setValue, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethodQueryEvent_setValue)},
    {SIP_MLNAME_CAST(sipName_value), meth_QInputMethodQueryEvent_value, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethodQueryEvent_value)}
};

PyDoc_STRVAR(doc_QInputMethodQueryEvent, "\1QInputMethodQueryEvent(Qt.InputMethodQueries)\n"
    "QInputMethodQueryEvent(QInputMethodQueryEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QInputMethodQueryEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QInputMethodQueryEvent,
        {0}
    },
    {
        sipNameNr_QInputMethodQueryEvent,
        {0, 0, 1},
        3, methods_QInputMethodQueryEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QInputMethodQueryEvent,
    -1,
    -1,
    supers_QInputMethodQueryEvent,
    0,
    init_type_QInputMethodQueryEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QInputMethodQueryEvent,
    0,
    0,
    0,
    release_QInputMethodQueryEvent,
    cast_QInputMethodQueryEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 479 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 495 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 167766 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 479 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 167770 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 167773 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QInputMethodEvent_Attribute(void *, const sipTypeDef *);}
static void *cast_QInputMethodEvent_Attribute(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QInputMethodEvent_Attribute)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QInputMethodEvent_Attribute(void *, int);}
static void release_QInputMethodEvent_Attribute(void *sipCppV,int)
{
    delete reinterpret_cast<QInputMethodEvent::Attribute *>(sipCppV);
}


extern "C" {static void dealloc_QInputMethodEvent_Attribute(sipSimpleWrapper *);}
static void dealloc_QInputMethodEvent_Attribute(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QInputMethodEvent_Attribute(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QInputMethodEvent_Attribute(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QInputMethodEvent_Attribute(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QInputMethodEvent::Attribute *sipCpp = 0;

    {
        QInputMethodEvent::AttributeType a0;
        int a1;
        int a2;
        QVariant* a3;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EiiJ1", sipType_QInputMethodEvent_AttributeType, &a0, &a1, &a2, sipType_QVariant, &a3, &a3State))
        {
            sipCpp = new QInputMethodEvent::Attribute(a0,a1,a2,*a3);
            sipReleaseType(a3,sipType_QVariant,a3State);

            return sipCpp;
        }
    }

    {
        const QInputMethodEvent::Attribute* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QInputMethodEvent_Attribute, &a0))
        {
            sipCpp = new QInputMethodEvent::Attribute(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_QInputMethodEvent_Attribute_length(void *, PyObject *, PyObject *);}
static PyObject *varget_QInputMethodEvent_Attribute_length(void *sipSelf, PyObject *, PyObject *)
{
    int sipVal;
    QInputMethodEvent::Attribute *sipCpp = reinterpret_cast<QInputMethodEvent::Attribute *>(sipSelf);

    sipVal = sipCpp->length;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static int varset_QInputMethodEvent_Attribute_length(void *, PyObject *, PyObject *);}
static int varset_QInputMethodEvent_Attribute_length(void *sipSelf, PyObject *sipPy, PyObject *)
{
    int sipVal;
    QInputMethodEvent::Attribute *sipCpp = reinterpret_cast<QInputMethodEvent::Attribute *>(sipSelf);

    sipVal = (int)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->length = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QInputMethodEvent_Attribute_start(void *, PyObject *, PyObject *);}
static PyObject *varget_QInputMethodEvent_Attribute_start(void *sipSelf, PyObject *, PyObject *)
{
    int sipVal;
    QInputMethodEvent::Attribute *sipCpp = reinterpret_cast<QInputMethodEvent::Attribute *>(sipSelf);

    sipVal = sipCpp->start;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static int varset_QInputMethodEvent_Attribute_start(void *, PyObject *, PyObject *);}
static int varset_QInputMethodEvent_Attribute_start(void *sipSelf, PyObject *sipPy, PyObject *)
{
    int sipVal;
    QInputMethodEvent::Attribute *sipCpp = reinterpret_cast<QInputMethodEvent::Attribute *>(sipSelf);

    sipVal = (int)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->start = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QInputMethodEvent_Attribute_type(void *, PyObject *, PyObject *);}
static PyObject *varget_QInputMethodEvent_Attribute_type(void *sipSelf, PyObject *, PyObject *)
{
    QInputMethodEvent::AttributeType sipVal;
    QInputMethodEvent::Attribute *sipCpp = reinterpret_cast<QInputMethodEvent::Attribute *>(sipSelf);

    sipVal = sipCpp->type;

    return sipConvertFromEnum(sipVal, sipType_QInputMethodEvent_AttributeType);
}


extern "C" {static int varset_QInputMethodEvent_Attribute_type(void *, PyObject *, PyObject *);}
static int varset_QInputMethodEvent_Attribute_type(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QInputMethodEvent::AttributeType sipVal;
    QInputMethodEvent::Attribute *sipCpp = reinterpret_cast<QInputMethodEvent::Attribute *>(sipSelf);

    sipVal = (QInputMethodEvent::AttributeType)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->type = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QInputMethodEvent_Attribute_value(void *, PyObject *, PyObject *);}
static PyObject *varget_QInputMethodEvent_Attribute_value(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QVariant*sipVal;
    QInputMethodEvent::Attribute *sipCpp = reinterpret_cast<QInputMethodEvent::Attribute *>(sipSelf);

    sipVal = &sipCpp->value;

    sipPy = sipGetReference(sipPySelf, -8);
    if (sipPy)
        return sipPy;

    sipPy = sipConvertFromType(sipVal, sipType_QVariant, NULL);
    sipKeepReference(sipPySelf, -8, sipPy);

    return sipPy;
}


extern "C" {static int varset_QInputMethodEvent_Attribute_value(void *, PyObject *, PyObject *);}
static int varset_QInputMethodEvent_Attribute_value(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QVariant*sipVal;
    QInputMethodEvent::Attribute *sipCpp = reinterpret_cast<QInputMethodEvent::Attribute *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QVariant *>(sipForceConvertToType(sipPy,sipType_QVariant,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->value = *sipVal;

    sipReleaseType(sipVal, sipType_QVariant, sipValState);

    return 0;
}

sipVariableDef variables_QInputMethodEvent_Attribute[] = {
    {InstanceVariable, sipName_length, (PyMethodDef *)varget_QInputMethodEvent_Attribute_length, (PyMethodDef *)varset_QInputMethodEvent_Attribute_length, NULL, NULL},
    {InstanceVariable, sipName_start, (PyMethodDef *)varget_QInputMethodEvent_Attribute_start, (PyMethodDef *)varset_QInputMethodEvent_Attribute_start, NULL, NULL},
    {InstanceVariable, sipName_type, (PyMethodDef *)varget_QInputMethodEvent_Attribute_type, (PyMethodDef *)varset_QInputMethodEvent_Attribute_type, NULL, NULL},
    {InstanceVariable, sipName_value, (PyMethodDef *)varget_QInputMethodEvent_Attribute_value, (PyMethodDef *)varset_QInputMethodEvent_Attribute_value, NULL, NULL},
};

PyDoc_STRVAR(doc_QInputMethodEvent_Attribute, "\1QInputMethodEvent.Attribute(QInputMethodEvent.AttributeType, int, int, QVariant)\n"
    "QInputMethodEvent.Attribute(QInputMethodEvent.Attribute)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QInputMethodEvent_Attribute = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QInputMethodEvent__Attribute,
        {0}
    },
    {
        sipNameNr_Attribute,
        {76, 255, 0},
        0, 0,
        0, 0,
        4, variables_QInputMethodEvent_Attribute,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QInputMethodEvent_Attribute,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QInputMethodEvent_Attribute,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QInputMethodEvent_Attribute,
    0,
    0,
    0,
    release_QInputMethodEvent_Attribute,
    cast_QInputMethodEvent_Attribute,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 479 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 168037 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 168041 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 168044 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 479 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 495 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 168049 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 168052 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQInputMethodEvent : public QInputMethodEvent
{
public:
    sipQInputMethodEvent();
    sipQInputMethodEvent(const QString&,const QList<QInputMethodEvent::Attribute>&);
    sipQInputMethodEvent(const QInputMethodEvent&);
    ~sipQInputMethodEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQInputMethodEvent(const sipQInputMethodEvent &);
    sipQInputMethodEvent &operator = (const sipQInputMethodEvent &);
};

sipQInputMethodEvent::sipQInputMethodEvent(): QInputMethodEvent(), sipPySelf(0)
{
}

sipQInputMethodEvent::sipQInputMethodEvent(const QString& a0,const QList<QInputMethodEvent::Attribute>& a1): QInputMethodEvent(a0,a1), sipPySelf(0)
{
}

sipQInputMethodEvent::sipQInputMethodEvent(const QInputMethodEvent& a0): QInputMethodEvent(a0), sipPySelf(0)
{
}

sipQInputMethodEvent::~sipQInputMethodEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QInputMethodEvent_setCommitString, "QInputMethodEvent.setCommitString(str, int from=0, int length=0)");

extern "C" {static PyObject *meth_QInputMethodEvent_setCommitString(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QInputMethodEvent_setCommitString(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        int a1 = 0;
        int a2 = 0;
        QInputMethodEvent *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_from,
            sipName_length,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|ii", &sipSelf, sipType_QInputMethodEvent, &sipCpp, sipType_QString,&a0, &a0State, &a1, &a2))
        {
            sipCpp->setCommitString(*a0,a1,a2);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethodEvent, sipName_setCommitString, doc_QInputMethodEvent_setCommitString);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethodEvent_attributes, "QInputMethodEvent.attributes() -> list-of-QInputMethodEvent.Attribute");

extern "C" {static PyObject *meth_QInputMethodEvent_attributes(PyObject *, PyObject *);}
static PyObject *meth_QInputMethodEvent_attributes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethodEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethodEvent, &sipCpp))
        {
            QList<QInputMethodEvent::Attribute>*sipRes;

            sipRes = new QList<QInputMethodEvent::Attribute>(sipCpp->attributes());

            return sipConvertFromNewType(sipRes,sipType_QList_0100QInputMethodEvent_Attribute,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethodEvent, sipName_attributes, doc_QInputMethodEvent_attributes);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethodEvent_preeditString, "QInputMethodEvent.preeditString() -> str");

extern "C" {static PyObject *meth_QInputMethodEvent_preeditString(PyObject *, PyObject *);}
static PyObject *meth_QInputMethodEvent_preeditString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethodEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethodEvent, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->preeditString());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethodEvent, sipName_preeditString, doc_QInputMethodEvent_preeditString);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethodEvent_commitString, "QInputMethodEvent.commitString() -> str");

extern "C" {static PyObject *meth_QInputMethodEvent_commitString(PyObject *, PyObject *);}
static PyObject *meth_QInputMethodEvent_commitString(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethodEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethodEvent, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->commitString());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethodEvent, sipName_commitString, doc_QInputMethodEvent_commitString);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethodEvent_replacementStart, "QInputMethodEvent.replacementStart() -> int");

extern "C" {static PyObject *meth_QInputMethodEvent_replacementStart(PyObject *, PyObject *);}
static PyObject *meth_QInputMethodEvent_replacementStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethodEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethodEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->replacementStart();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethodEvent, sipName_replacementStart, doc_QInputMethodEvent_replacementStart);

    return NULL;
}


PyDoc_STRVAR(doc_QInputMethodEvent_replacementLength, "QInputMethodEvent.replacementLength() -> int");

extern "C" {static PyObject *meth_QInputMethodEvent_replacementLength(PyObject *, PyObject *);}
static PyObject *meth_QInputMethodEvent_replacementLength(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputMethodEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputMethodEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->replacementLength();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputMethodEvent, sipName_replacementLength, doc_QInputMethodEvent_replacementLength);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QInputMethodEvent(void *, const sipTypeDef *);}
static void *cast_QInputMethodEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QInputMethodEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QInputMethodEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QInputMethodEvent(void *, int);}
static void release_QInputMethodEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQInputMethodEvent *>(sipCppV);
    else
        delete reinterpret_cast<QInputMethodEvent *>(sipCppV);
}


extern "C" {static void assign_QInputMethodEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_QInputMethodEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QInputMethodEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QInputMethodEvent *>(sipSrc);
}


extern "C" {static void *array_QInputMethodEvent(SIP_SSIZE_T);}
static void *array_QInputMethodEvent(SIP_SSIZE_T sipNrElem)
{
    return new QInputMethodEvent[sipNrElem];
}


extern "C" {static void *copy_QInputMethodEvent(const void *, SIP_SSIZE_T);}
static void *copy_QInputMethodEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QInputMethodEvent(reinterpret_cast<const QInputMethodEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QInputMethodEvent(sipSimpleWrapper *);}
static void dealloc_QInputMethodEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQInputMethodEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QInputMethodEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QInputMethodEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QInputMethodEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQInputMethodEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQInputMethodEvent();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const QList<QInputMethodEvent::Attribute>* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QString,&a0, &a0State, sipType_QList_0100QInputMethodEvent_Attribute,&a1, &a1State))
        {
            sipCpp = new sipQInputMethodEvent(*a0,*a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            sipReleaseType(const_cast<QList<QInputMethodEvent::Attribute> *>(a1),sipType_QList_0100QInputMethodEvent_Attribute,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QInputMethodEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QInputMethodEvent, &a0))
        {
            sipCpp = new sipQInputMethodEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QInputMethodEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QInputMethodEvent[] = {
    {SIP_MLNAME_CAST(sipName_attributes), meth_QInputMethodEvent_attributes, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethodEvent_attributes)},
    {SIP_MLNAME_CAST(sipName_commitString), meth_QInputMethodEvent_commitString, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethodEvent_commitString)},
    {SIP_MLNAME_CAST(sipName_preeditString), meth_QInputMethodEvent_preeditString, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethodEvent_preeditString)},
    {SIP_MLNAME_CAST(sipName_replacementLength), meth_QInputMethodEvent_replacementLength, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethodEvent_replacementLength)},
    {SIP_MLNAME_CAST(sipName_replacementStart), meth_QInputMethodEvent_replacementStart, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputMethodEvent_replacementStart)},
    {SIP_MLNAME_CAST(sipName_setCommitString), (PyCFunction)meth_QInputMethodEvent_setCommitString, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QInputMethodEvent_setCommitString)}
};

static sipEnumMemberDef enummembers_QInputMethodEvent[] = {
    {sipName_Cursor, static_cast<int>(QInputMethodEvent::Cursor), 78},
    {sipName_Language, static_cast<int>(QInputMethodEvent::Language), 78},
    {sipName_Ruby, static_cast<int>(QInputMethodEvent::Ruby), 78},
    {sipName_Selection, static_cast<int>(QInputMethodEvent::Selection), 78},
    {sipName_TextFormat, static_cast<int>(QInputMethodEvent::TextFormat), 78},
};

PyDoc_STRVAR(doc_QInputMethodEvent, "\1QInputMethodEvent()\n"
    "QInputMethodEvent(str, list-of-QInputMethodEvent.Attribute)\n"
    "QInputMethodEvent(QInputMethodEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QInputMethodEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QInputMethodEvent,
        {0}
    },
    {
        sipNameNr_QInputMethodEvent,
        {0, 0, 1},
        6, methods_QInputMethodEvent,
        5, enummembers_QInputMethodEvent,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QInputMethodEvent,
    -1,
    -1,
    supers_QInputMethodEvent,
    0,
    init_type_QInputMethodEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QInputMethodEvent,
    assign_QInputMethodEvent,
    array_QInputMethodEvent,
    copy_QInputMethodEvent,
    release_QInputMethodEvent,
    cast_QInputMethodEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 452 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 168456 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 168460 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 168463 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 168466 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQContextMenuEvent : public QContextMenuEvent
{
public:
    sipQContextMenuEvent(QContextMenuEvent::Reason,const QPoint&,const QPoint&,Qt::KeyboardModifiers);
    sipQContextMenuEvent(QContextMenuEvent::Reason,const QPoint&,const QPoint&);
    sipQContextMenuEvent(QContextMenuEvent::Reason,const QPoint&);
    sipQContextMenuEvent(const QContextMenuEvent&);
    ~sipQContextMenuEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQContextMenuEvent(const sipQContextMenuEvent &);
    sipQContextMenuEvent &operator = (const sipQContextMenuEvent &);
};

sipQContextMenuEvent::sipQContextMenuEvent(QContextMenuEvent::Reason a0,const QPoint& a1,const QPoint& a2,Qt::KeyboardModifiers a3): QContextMenuEvent(a0,a1,a2,a3), sipPySelf(0)
{
}

sipQContextMenuEvent::sipQContextMenuEvent(QContextMenuEvent::Reason a0,const QPoint& a1,const QPoint& a2): QContextMenuEvent(a0,a1,a2), sipPySelf(0)
{
}

sipQContextMenuEvent::sipQContextMenuEvent(QContextMenuEvent::Reason a0,const QPoint& a1): QContextMenuEvent(a0,a1), sipPySelf(0)
{
}

sipQContextMenuEvent::sipQContextMenuEvent(const QContextMenuEvent& a0): QContextMenuEvent(a0), sipPySelf(0)
{
}

sipQContextMenuEvent::~sipQContextMenuEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QContextMenuEvent_x, "QContextMenuEvent.x() -> int");

extern "C" {static PyObject *meth_QContextMenuEvent_x(PyObject *, PyObject *);}
static PyObject *meth_QContextMenuEvent_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QContextMenuEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QContextMenuEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->x();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QContextMenuEvent, sipName_x, doc_QContextMenuEvent_x);

    return NULL;
}


PyDoc_STRVAR(doc_QContextMenuEvent_y, "QContextMenuEvent.y() -> int");

extern "C" {static PyObject *meth_QContextMenuEvent_y(PyObject *, PyObject *);}
static PyObject *meth_QContextMenuEvent_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QContextMenuEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QContextMenuEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->y();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QContextMenuEvent, sipName_y, doc_QContextMenuEvent_y);

    return NULL;
}


PyDoc_STRVAR(doc_QContextMenuEvent_globalX, "QContextMenuEvent.globalX() -> int");

extern "C" {static PyObject *meth_QContextMenuEvent_globalX(PyObject *, PyObject *);}
static PyObject *meth_QContextMenuEvent_globalX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QContextMenuEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QContextMenuEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QContextMenuEvent, sipName_globalX, doc_QContextMenuEvent_globalX);

    return NULL;
}


PyDoc_STRVAR(doc_QContextMenuEvent_globalY, "QContextMenuEvent.globalY() -> int");

extern "C" {static PyObject *meth_QContextMenuEvent_globalY(PyObject *, PyObject *);}
static PyObject *meth_QContextMenuEvent_globalY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QContextMenuEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QContextMenuEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalY();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QContextMenuEvent, sipName_globalY, doc_QContextMenuEvent_globalY);

    return NULL;
}


PyDoc_STRVAR(doc_QContextMenuEvent_pos, "QContextMenuEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QContextMenuEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QContextMenuEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QContextMenuEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QContextMenuEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QContextMenuEvent, sipName_pos, doc_QContextMenuEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QContextMenuEvent_globalPos, "QContextMenuEvent.globalPos() -> QPoint");

extern "C" {static PyObject *meth_QContextMenuEvent_globalPos(PyObject *, PyObject *);}
static PyObject *meth_QContextMenuEvent_globalPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QContextMenuEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QContextMenuEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->globalPos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QContextMenuEvent, sipName_globalPos, doc_QContextMenuEvent_globalPos);

    return NULL;
}


PyDoc_STRVAR(doc_QContextMenuEvent_reason, "QContextMenuEvent.reason() -> QContextMenuEvent.Reason");

extern "C" {static PyObject *meth_QContextMenuEvent_reason(PyObject *, PyObject *);}
static PyObject *meth_QContextMenuEvent_reason(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QContextMenuEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QContextMenuEvent, &sipCpp))
        {
            QContextMenuEvent::Reason sipRes;

            sipRes = sipCpp->reason();

            return sipConvertFromEnum(sipRes,sipType_QContextMenuEvent_Reason);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QContextMenuEvent, sipName_reason, doc_QContextMenuEvent_reason);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QContextMenuEvent(void *, const sipTypeDef *);}
static void *cast_QContextMenuEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QContextMenuEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QInputEvent)->ctd_cast((QInputEvent *)(QContextMenuEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QContextMenuEvent(void *, int);}
static void release_QContextMenuEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQContextMenuEvent *>(sipCppV);
    else
        delete reinterpret_cast<QContextMenuEvent *>(sipCppV);
}


extern "C" {static void dealloc_QContextMenuEvent(sipSimpleWrapper *);}
static void dealloc_QContextMenuEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQContextMenuEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QContextMenuEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QContextMenuEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QContextMenuEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQContextMenuEvent *sipCpp = 0;

    {
        QContextMenuEvent::Reason a0;
        const QPoint* a1;
        const QPoint* a2;
        Qt::KeyboardModifiers* a3;
        int a3State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ9J9J1", sipType_QContextMenuEvent_Reason, &a0, sipType_QPoint, &a1, sipType_QPoint, &a2, sipType_Qt_KeyboardModifiers, &a3, &a3State))
        {
            sipCpp = new sipQContextMenuEvent(a0,*a1,*a2,*a3);
            sipReleaseType(a3,sipType_Qt_KeyboardModifiers,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QContextMenuEvent::Reason a0;
        const QPoint* a1;
        const QPoint* a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ9J9", sipType_QContextMenuEvent_Reason, &a0, sipType_QPoint, &a1, sipType_QPoint, &a2))
        {
            sipCpp = new sipQContextMenuEvent(a0,*a1,*a2);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QContextMenuEvent::Reason a0;
        const QPoint* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ9", sipType_QContextMenuEvent_Reason, &a0, sipType_QPoint, &a1))
        {
            sipCpp = new sipQContextMenuEvent(a0,*a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QContextMenuEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QContextMenuEvent, &a0))
        {
            sipCpp = new sipQContextMenuEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QContextMenuEvent[] = {{73, 255, 1}};


static PyMethodDef methods_QContextMenuEvent[] = {
    {SIP_MLNAME_CAST(sipName_globalPos), meth_QContextMenuEvent_globalPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QContextMenuEvent_globalPos)},
    {SIP_MLNAME_CAST(sipName_globalX), meth_QContextMenuEvent_globalX, METH_VARARGS, SIP_MLDOC_CAST(doc_QContextMenuEvent_globalX)},
    {SIP_MLNAME_CAST(sipName_globalY), meth_QContextMenuEvent_globalY, METH_VARARGS, SIP_MLDOC_CAST(doc_QContextMenuEvent_globalY)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QContextMenuEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QContextMenuEvent_pos)},
    {SIP_MLNAME_CAST(sipName_reason), meth_QContextMenuEvent_reason, METH_VARARGS, SIP_MLDOC_CAST(doc_QContextMenuEvent_reason)},
    {SIP_MLNAME_CAST(sipName_x), meth_QContextMenuEvent_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QContextMenuEvent_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QContextMenuEvent_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QContextMenuEvent_y)}
};

static sipEnumMemberDef enummembers_QContextMenuEvent[] = {
    {sipName_Keyboard, static_cast<int>(QContextMenuEvent::Keyboard), 17},
    {sipName_Mouse, static_cast<int>(QContextMenuEvent::Mouse), 17},
    {sipName_Other, static_cast<int>(QContextMenuEvent::Other), 17},
};

PyDoc_STRVAR(doc_QContextMenuEvent, "\1QContextMenuEvent(QContextMenuEvent.Reason, QPoint, QPoint, Qt.KeyboardModifiers)\n"
    "QContextMenuEvent(QContextMenuEvent.Reason, QPoint, QPoint)\n"
    "QContextMenuEvent(QContextMenuEvent.Reason, QPoint)\n"
    "QContextMenuEvent(QContextMenuEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QContextMenuEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QContextMenuEvent,
        {0}
    },
    {
        sipNameNr_QContextMenuEvent,
        {0, 0, 1},
        7, methods_QContextMenuEvent,
        3, enummembers_QContextMenuEvent,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QContextMenuEvent,
    -1,
    -1,
    supers_QContextMenuEvent,
    0,
    init_type_QContextMenuEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QContextMenuEvent,
    0,
    0,
    0,
    release_QContextMenuEvent,
    cast_QContextMenuEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 441 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 168889 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 168893 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQHideEvent : public QHideEvent
{
public:
    sipQHideEvent();
    sipQHideEvent(const QHideEvent&);
    ~sipQHideEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQHideEvent(const sipQHideEvent &);
    sipQHideEvent &operator = (const sipQHideEvent &);
};

sipQHideEvent::sipQHideEvent(): QHideEvent(), sipPySelf(0)
{
}

sipQHideEvent::sipQHideEvent(const QHideEvent& a0): QHideEvent(a0), sipPySelf(0)
{
}

sipQHideEvent::~sipQHideEvent()
{
    sipCommonDtor(sipPySelf);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHideEvent(void *, const sipTypeDef *);}
static void *cast_QHideEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QHideEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QHideEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHideEvent(void *, int);}
static void release_QHideEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQHideEvent *>(sipCppV);
    else
        delete reinterpret_cast<QHideEvent *>(sipCppV);
}


extern "C" {static void assign_QHideEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_QHideEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QHideEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QHideEvent *>(sipSrc);
}


extern "C" {static void *array_QHideEvent(SIP_SSIZE_T);}
static void *array_QHideEvent(SIP_SSIZE_T sipNrElem)
{
    return new QHideEvent[sipNrElem];
}


extern "C" {static void *copy_QHideEvent(const void *, SIP_SSIZE_T);}
static void *copy_QHideEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QHideEvent(reinterpret_cast<const QHideEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QHideEvent(sipSimpleWrapper *);}
static void dealloc_QHideEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQHideEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QHideEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QHideEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHideEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQHideEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQHideEvent();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QHideEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QHideEvent, &a0))
        {
            sipCpp = new sipQHideEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QHideEvent[] = {{53, 0, 1}};

PyDoc_STRVAR(doc_QHideEvent, "\1QHideEvent()\n"
    "QHideEvent(QHideEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QHideEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QHideEvent,
        {0}
    },
    {
        sipNameNr_QHideEvent,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHideEvent,
    -1,
    -1,
    supers_QHideEvent,
    0,
    init_type_QHideEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHideEvent,
    assign_QHideEvent,
    array_QHideEvent,
    copy_QHideEvent,
    release_QHideEvent,
    cast_QHideEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 430 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 169083 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 169087 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQShowEvent : public QShowEvent
{
public:
    sipQShowEvent();
    sipQShowEvent(const QShowEvent&);
    ~sipQShowEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQShowEvent(const sipQShowEvent &);
    sipQShowEvent &operator = (const sipQShowEvent &);
};

sipQShowEvent::sipQShowEvent(): QShowEvent(), sipPySelf(0)
{
}

sipQShowEvent::sipQShowEvent(const QShowEvent& a0): QShowEvent(a0), sipPySelf(0)
{
}

sipQShowEvent::~sipQShowEvent()
{
    sipCommonDtor(sipPySelf);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QShowEvent(void *, const sipTypeDef *);}
static void *cast_QShowEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QShowEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QShowEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QShowEvent(void *, int);}
static void release_QShowEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQShowEvent *>(sipCppV);
    else
        delete reinterpret_cast<QShowEvent *>(sipCppV);
}


extern "C" {static void assign_QShowEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_QShowEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QShowEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QShowEvent *>(sipSrc);
}


extern "C" {static void *array_QShowEvent(SIP_SSIZE_T);}
static void *array_QShowEvent(SIP_SSIZE_T sipNrElem)
{
    return new QShowEvent[sipNrElem];
}


extern "C" {static void *copy_QShowEvent(const void *, SIP_SSIZE_T);}
static void *copy_QShowEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QShowEvent(reinterpret_cast<const QShowEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QShowEvent(sipSimpleWrapper *);}
static void dealloc_QShowEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQShowEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QShowEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QShowEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QShowEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQShowEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQShowEvent();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QShowEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QShowEvent, &a0))
        {
            sipCpp = new sipQShowEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QShowEvent[] = {{53, 0, 1}};

PyDoc_STRVAR(doc_QShowEvent, "\1QShowEvent()\n"
    "QShowEvent(QShowEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QShowEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QShowEvent,
        {0}
    },
    {
        sipNameNr_QShowEvent,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QShowEvent,
    -1,
    -1,
    supers_QShowEvent,
    0,
    init_type_QShowEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QShowEvent,
    assign_QShowEvent,
    array_QShowEvent,
    copy_QShowEvent,
    release_QShowEvent,
    cast_QShowEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 419 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 169277 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 169281 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQIconDragEvent : public QIconDragEvent
{
public:
    sipQIconDragEvent();
    sipQIconDragEvent(const QIconDragEvent&);
    ~sipQIconDragEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQIconDragEvent(const sipQIconDragEvent &);
    sipQIconDragEvent &operator = (const sipQIconDragEvent &);
};

sipQIconDragEvent::sipQIconDragEvent(): QIconDragEvent(), sipPySelf(0)
{
}

sipQIconDragEvent::sipQIconDragEvent(const QIconDragEvent& a0): QIconDragEvent(a0), sipPySelf(0)
{
}

sipQIconDragEvent::~sipQIconDragEvent()
{
    sipCommonDtor(sipPySelf);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QIconDragEvent(void *, const sipTypeDef *);}
static void *cast_QIconDragEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QIconDragEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QIconDragEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QIconDragEvent(void *, int);}
static void release_QIconDragEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQIconDragEvent *>(sipCppV);
    else
        delete reinterpret_cast<QIconDragEvent *>(sipCppV);
}


extern "C" {static void assign_QIconDragEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_QIconDragEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QIconDragEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QIconDragEvent *>(sipSrc);
}


extern "C" {static void *array_QIconDragEvent(SIP_SSIZE_T);}
static void *array_QIconDragEvent(SIP_SSIZE_T sipNrElem)
{
    return new QIconDragEvent[sipNrElem];
}


extern "C" {static void *copy_QIconDragEvent(const void *, SIP_SSIZE_T);}
static void *copy_QIconDragEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QIconDragEvent(reinterpret_cast<const QIconDragEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QIconDragEvent(sipSimpleWrapper *);}
static void dealloc_QIconDragEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQIconDragEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QIconDragEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QIconDragEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QIconDragEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQIconDragEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQIconDragEvent();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QIconDragEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QIconDragEvent, &a0))
        {
            sipCpp = new sipQIconDragEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QIconDragEvent[] = {{53, 0, 1}};

PyDoc_STRVAR(doc_QIconDragEvent, "\1QIconDragEvent()\n"
    "QIconDragEvent(QIconDragEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QIconDragEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QIconDragEvent,
        {0}
    },
    {
        sipNameNr_QIconDragEvent,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QIconDragEvent,
    -1,
    -1,
    supers_QIconDragEvent,
    0,
    init_type_QIconDragEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QIconDragEvent,
    assign_QIconDragEvent,
    array_QIconDragEvent,
    copy_QIconDragEvent,
    release_QIconDragEvent,
    cast_QIconDragEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 408 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 169471 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 169475 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQCloseEvent : public QCloseEvent
{
public:
    sipQCloseEvent();
    sipQCloseEvent(const QCloseEvent&);
    ~sipQCloseEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQCloseEvent(const sipQCloseEvent &);
    sipQCloseEvent &operator = (const sipQCloseEvent &);
};

sipQCloseEvent::sipQCloseEvent(): QCloseEvent(), sipPySelf(0)
{
}

sipQCloseEvent::sipQCloseEvent(const QCloseEvent& a0): QCloseEvent(a0), sipPySelf(0)
{
}

sipQCloseEvent::~sipQCloseEvent()
{
    sipCommonDtor(sipPySelf);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QCloseEvent(void *, const sipTypeDef *);}
static void *cast_QCloseEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QCloseEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QCloseEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QCloseEvent(void *, int);}
static void release_QCloseEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQCloseEvent *>(sipCppV);
    else
        delete reinterpret_cast<QCloseEvent *>(sipCppV);
}


extern "C" {static void assign_QCloseEvent(void *, SIP_SSIZE_T, const void *);}
static void assign_QCloseEvent(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QCloseEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QCloseEvent *>(sipSrc);
}


extern "C" {static void *array_QCloseEvent(SIP_SSIZE_T);}
static void *array_QCloseEvent(SIP_SSIZE_T sipNrElem)
{
    return new QCloseEvent[sipNrElem];
}


extern "C" {static void *copy_QCloseEvent(const void *, SIP_SSIZE_T);}
static void *copy_QCloseEvent(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QCloseEvent(reinterpret_cast<const QCloseEvent *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QCloseEvent(sipSimpleWrapper *);}
static void dealloc_QCloseEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQCloseEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QCloseEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QCloseEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QCloseEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQCloseEvent *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQCloseEvent();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QCloseEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QCloseEvent, &a0))
        {
            sipCpp = new sipQCloseEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QCloseEvent[] = {{53, 0, 1}};

PyDoc_STRVAR(doc_QCloseEvent, "\1QCloseEvent()\n"
    "QCloseEvent(QCloseEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QCloseEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QCloseEvent,
        {0}
    },
    {
        sipNameNr_QCloseEvent,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QCloseEvent,
    -1,
    -1,
    supers_QCloseEvent,
    0,
    init_type_QCloseEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QCloseEvent,
    assign_QCloseEvent,
    array_QCloseEvent,
    copy_QCloseEvent,
    release_QCloseEvent,
    cast_QCloseEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 395 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 169665 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 169669 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 169672 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQResizeEvent : public QResizeEvent
{
public:
    sipQResizeEvent(const QSize&,const QSize&);
    sipQResizeEvent(const QResizeEvent&);
    ~sipQResizeEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQResizeEvent(const sipQResizeEvent &);
    sipQResizeEvent &operator = (const sipQResizeEvent &);
};

sipQResizeEvent::sipQResizeEvent(const QSize& a0,const QSize& a1): QResizeEvent(a0,a1), sipPySelf(0)
{
}

sipQResizeEvent::sipQResizeEvent(const QResizeEvent& a0): QResizeEvent(a0), sipPySelf(0)
{
}

sipQResizeEvent::~sipQResizeEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QResizeEvent_size, "QResizeEvent.size() -> QSize");

extern "C" {static PyObject *meth_QResizeEvent_size(PyObject *, PyObject *);}
static PyObject *meth_QResizeEvent_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QResizeEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QResizeEvent, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QResizeEvent, sipName_size, doc_QResizeEvent_size);

    return NULL;
}


PyDoc_STRVAR(doc_QResizeEvent_oldSize, "QResizeEvent.oldSize() -> QSize");

extern "C" {static PyObject *meth_QResizeEvent_oldSize(PyObject *, PyObject *);}
static PyObject *meth_QResizeEvent_oldSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QResizeEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QResizeEvent, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->oldSize());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QResizeEvent, sipName_oldSize, doc_QResizeEvent_oldSize);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QResizeEvent(void *, const sipTypeDef *);}
static void *cast_QResizeEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QResizeEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QResizeEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QResizeEvent(void *, int);}
static void release_QResizeEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQResizeEvent *>(sipCppV);
    else
        delete reinterpret_cast<QResizeEvent *>(sipCppV);
}


extern "C" {static void dealloc_QResizeEvent(sipSimpleWrapper *);}
static void dealloc_QResizeEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQResizeEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QResizeEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QResizeEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QResizeEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQResizeEvent *sipCpp = 0;

    {
        const QSize* a0;
        const QSize* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9", sipType_QSize, &a0, sipType_QSize, &a1))
        {
            sipCpp = new sipQResizeEvent(*a0,*a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QResizeEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QResizeEvent, &a0))
        {
            sipCpp = new sipQResizeEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QResizeEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QResizeEvent[] = {
    {SIP_MLNAME_CAST(sipName_oldSize), meth_QResizeEvent_oldSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QResizeEvent_oldSize)},
    {SIP_MLNAME_CAST(sipName_size), meth_QResizeEvent_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QResizeEvent_size)}
};

PyDoc_STRVAR(doc_QResizeEvent, "\1QResizeEvent(QSize, QSize)\n"
    "QResizeEvent(QResizeEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QResizeEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QResizeEvent,
        {0}
    },
    {
        sipNameNr_QResizeEvent,
        {0, 0, 1},
        2, methods_QResizeEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QResizeEvent,
    -1,
    -1,
    supers_QResizeEvent,
    0,
    init_type_QResizeEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QResizeEvent,
    0,
    0,
    0,
    release_QResizeEvent,
    cast_QResizeEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 382 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 169904 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 169908 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 169911 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQMoveEvent : public QMoveEvent
{
public:
    sipQMoveEvent(const QPoint&,const QPoint&);
    sipQMoveEvent(const QMoveEvent&);
    ~sipQMoveEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQMoveEvent(const sipQMoveEvent &);
    sipQMoveEvent &operator = (const sipQMoveEvent &);
};

sipQMoveEvent::sipQMoveEvent(const QPoint& a0,const QPoint& a1): QMoveEvent(a0,a1), sipPySelf(0)
{
}

sipQMoveEvent::sipQMoveEvent(const QMoveEvent& a0): QMoveEvent(a0), sipPySelf(0)
{
}

sipQMoveEvent::~sipQMoveEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QMoveEvent_pos, "QMoveEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QMoveEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QMoveEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMoveEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMoveEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMoveEvent, sipName_pos, doc_QMoveEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QMoveEvent_oldPos, "QMoveEvent.oldPos() -> QPoint");

extern "C" {static PyObject *meth_QMoveEvent_oldPos(PyObject *, PyObject *);}
static PyObject *meth_QMoveEvent_oldPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMoveEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMoveEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->oldPos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMoveEvent, sipName_oldPos, doc_QMoveEvent_oldPos);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMoveEvent(void *, const sipTypeDef *);}
static void *cast_QMoveEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QMoveEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QMoveEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMoveEvent(void *, int);}
static void release_QMoveEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQMoveEvent *>(sipCppV);
    else
        delete reinterpret_cast<QMoveEvent *>(sipCppV);
}


extern "C" {static void dealloc_QMoveEvent(sipSimpleWrapper *);}
static void dealloc_QMoveEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQMoveEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QMoveEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QMoveEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMoveEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQMoveEvent *sipCpp = 0;

    {
        const QPoint* a0;
        const QPoint* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J9", sipType_QPoint, &a0, sipType_QPoint, &a1))
        {
            sipCpp = new sipQMoveEvent(*a0,*a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QMoveEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMoveEvent, &a0))
        {
            sipCpp = new sipQMoveEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QMoveEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QMoveEvent[] = {
    {SIP_MLNAME_CAST(sipName_oldPos), meth_QMoveEvent_oldPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QMoveEvent_oldPos)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QMoveEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QMoveEvent_pos)}
};

PyDoc_STRVAR(doc_QMoveEvent, "\1QMoveEvent(QPoint, QPoint)\n"
    "QMoveEvent(QMoveEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMoveEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMoveEvent,
        {0}
    },
    {
        sipNameNr_QMoveEvent,
        {0, 0, 1},
        2, methods_QMoveEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMoveEvent,
    -1,
    -1,
    supers_QMoveEvent,
    0,
    init_type_QMoveEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMoveEvent,
    0,
    0,
    0,
    release_QMoveEvent,
    cast_QMoveEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 368 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 170143 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 170147 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 170150 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 170153 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQPaintEvent : public QPaintEvent
{
public:
    sipQPaintEvent(const QRegion&);
    sipQPaintEvent(const QRect&);
    sipQPaintEvent(const QPaintEvent&);
    ~sipQPaintEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPaintEvent(const sipQPaintEvent &);
    sipQPaintEvent &operator = (const sipQPaintEvent &);
};

sipQPaintEvent::sipQPaintEvent(const QRegion& a0): QPaintEvent(a0), sipPySelf(0)
{
}

sipQPaintEvent::sipQPaintEvent(const QRect& a0): QPaintEvent(a0), sipPySelf(0)
{
}

sipQPaintEvent::sipQPaintEvent(const QPaintEvent& a0): QPaintEvent(a0), sipPySelf(0)
{
}

sipQPaintEvent::~sipQPaintEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QPaintEvent_rect, "QPaintEvent.rect() -> QRect");

extern "C" {static PyObject *meth_QPaintEvent_rect(PyObject *, PyObject *);}
static PyObject *meth_QPaintEvent_rect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEvent, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->rect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEvent, sipName_rect, doc_QPaintEvent_rect);

    return NULL;
}


PyDoc_STRVAR(doc_QPaintEvent_region, "QPaintEvent.region() -> QRegion");

extern "C" {static PyObject *meth_QPaintEvent_region(PyObject *, PyObject *);}
static PyObject *meth_QPaintEvent_region(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPaintEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPaintEvent, &sipCpp))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->region());

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPaintEvent, sipName_region, doc_QPaintEvent_region);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPaintEvent(void *, const sipTypeDef *);}
static void *cast_QPaintEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPaintEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QPaintEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPaintEvent(void *, int);}
static void release_QPaintEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQPaintEvent *>(sipCppV);
    else
        delete reinterpret_cast<QPaintEvent *>(sipCppV);
}


extern "C" {static void dealloc_QPaintEvent(sipSimpleWrapper *);}
static void dealloc_QPaintEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPaintEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPaintEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPaintEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPaintEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQPaintEvent *sipCpp = 0;

    {
        const QRegion* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QRegion, &a0))
        {
            sipCpp = new sipQPaintEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QRect* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QRect, &a0))
        {
            sipCpp = new sipQPaintEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QPaintEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPaintEvent, &a0))
        {
            sipCpp = new sipQPaintEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPaintEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QPaintEvent[] = {
    {SIP_MLNAME_CAST(sipName_rect), meth_QPaintEvent_rect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEvent_rect)},
    {SIP_MLNAME_CAST(sipName_region), meth_QPaintEvent_region, METH_VARARGS, SIP_MLDOC_CAST(doc_QPaintEvent_region)}
};

PyDoc_STRVAR(doc_QPaintEvent, "\1QPaintEvent(QRegion)\n"
    "QPaintEvent(QRect)\n"
    "QPaintEvent(QPaintEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPaintEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPaintEvent,
        {0}
    },
    {
        sipNameNr_QPaintEvent,
        {0, 0, 1},
        2, methods_QPaintEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPaintEvent,
    -1,
    -1,
    supers_QPaintEvent,
    0,
    init_type_QPaintEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPaintEvent,
    0,
    0,
    0,
    release_QPaintEvent,
    cast_QPaintEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 354 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 170403 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 170407 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 170410 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQFocusEvent : public QFocusEvent
{
public:
    sipQFocusEvent(QEvent::Type,Qt::FocusReason);
    sipQFocusEvent(const QFocusEvent&);
    ~sipQFocusEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQFocusEvent(const sipQFocusEvent &);
    sipQFocusEvent &operator = (const sipQFocusEvent &);
};

sipQFocusEvent::sipQFocusEvent(QEvent::Type a0,Qt::FocusReason a1): QFocusEvent(a0,a1), sipPySelf(0)
{
}

sipQFocusEvent::sipQFocusEvent(const QFocusEvent& a0): QFocusEvent(a0), sipPySelf(0)
{
}

sipQFocusEvent::~sipQFocusEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QFocusEvent_gotFocus, "QFocusEvent.gotFocus() -> bool");

extern "C" {static PyObject *meth_QFocusEvent_gotFocus(PyObject *, PyObject *);}
static PyObject *meth_QFocusEvent_gotFocus(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFocusEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFocusEvent, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->gotFocus();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFocusEvent, sipName_gotFocus, doc_QFocusEvent_gotFocus);

    return NULL;
}


PyDoc_STRVAR(doc_QFocusEvent_lostFocus, "QFocusEvent.lostFocus() -> bool");

extern "C" {static PyObject *meth_QFocusEvent_lostFocus(PyObject *, PyObject *);}
static PyObject *meth_QFocusEvent_lostFocus(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFocusEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFocusEvent, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->lostFocus();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFocusEvent, sipName_lostFocus, doc_QFocusEvent_lostFocus);

    return NULL;
}


PyDoc_STRVAR(doc_QFocusEvent_reason, "QFocusEvent.reason() -> Qt.FocusReason");

extern "C" {static PyObject *meth_QFocusEvent_reason(PyObject *, PyObject *);}
static PyObject *meth_QFocusEvent_reason(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QFocusEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QFocusEvent, &sipCpp))
        {
            Qt::FocusReason sipRes;

            sipRes = sipCpp->reason();

            return sipConvertFromEnum(sipRes,sipType_Qt_FocusReason);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QFocusEvent, sipName_reason, doc_QFocusEvent_reason);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QFocusEvent(void *, const sipTypeDef *);}
static void *cast_QFocusEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QFocusEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QFocusEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QFocusEvent(void *, int);}
static void release_QFocusEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQFocusEvent *>(sipCppV);
    else
        delete reinterpret_cast<QFocusEvent *>(sipCppV);
}


extern "C" {static void dealloc_QFocusEvent(sipSimpleWrapper *);}
static void dealloc_QFocusEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQFocusEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QFocusEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QFocusEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QFocusEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQFocusEvent *sipCpp = 0;

    {
        QEvent::Type a0;
        Qt::FocusReason a1 = Qt::OtherFocusReason;

        static const char *sipKwdList[] = {
            NULL,
            sipName_reason,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "E|E", sipType_QEvent_Type, &a0, sipType_Qt_FocusReason, &a1))
        {
            sipCpp = new sipQFocusEvent(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QFocusEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QFocusEvent, &a0))
        {
            sipCpp = new sipQFocusEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QFocusEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QFocusEvent[] = {
    {SIP_MLNAME_CAST(sipName_gotFocus), meth_QFocusEvent_gotFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_QFocusEvent_gotFocus)},
    {SIP_MLNAME_CAST(sipName_lostFocus), meth_QFocusEvent_lostFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_QFocusEvent_lostFocus)},
    {SIP_MLNAME_CAST(sipName_reason), meth_QFocusEvent_reason, METH_VARARGS, SIP_MLDOC_CAST(doc_QFocusEvent_reason)}
};

PyDoc_STRVAR(doc_QFocusEvent, "\1QFocusEvent(QEvent.Type, Qt.FocusReason reason=Qt.OtherFocusReason)\n"
    "QFocusEvent(QFocusEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QFocusEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QFocusEvent,
        {0}
    },
    {
        sipNameNr_QFocusEvent,
        {0, 0, 1},
        3, methods_QFocusEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QFocusEvent,
    -1,
    -1,
    supers_QFocusEvent,
    0,
    init_type_QFocusEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QFocusEvent,
    0,
    0,
    0,
    release_QFocusEvent,
    cast_QFocusEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 333 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 170675 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 170679 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 170682 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 170685 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 170688 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQKeyEvent : public QKeyEvent
{
public:
    sipQKeyEvent(QEvent::Type,int,Qt::KeyboardModifiers,quint32,quint32,quint32,const QString&,bool,ushort);
    sipQKeyEvent(QEvent::Type,int,Qt::KeyboardModifiers,const QString&,bool,ushort);
    sipQKeyEvent(const QKeyEvent&);
    ~sipQKeyEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQKeyEvent(const sipQKeyEvent &);
    sipQKeyEvent &operator = (const sipQKeyEvent &);
};

sipQKeyEvent::sipQKeyEvent(QEvent::Type a0,int a1,Qt::KeyboardModifiers a2,quint32 a3,quint32 a4,quint32 a5,const QString& a6,bool a7,ushort a8): QKeyEvent(a0,a1,a2,a3,a4,a5,a6,a7,a8), sipPySelf(0)
{
}

sipQKeyEvent::sipQKeyEvent(QEvent::Type a0,int a1,Qt::KeyboardModifiers a2,const QString& a3,bool a4,ushort a5): QKeyEvent(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
}

sipQKeyEvent::sipQKeyEvent(const QKeyEvent& a0): QKeyEvent(a0), sipPySelf(0)
{
}

sipQKeyEvent::~sipQKeyEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QKeyEvent_key, "QKeyEvent.key() -> int");

extern "C" {static PyObject *meth_QKeyEvent_key(PyObject *, PyObject *);}
static PyObject *meth_QKeyEvent_key(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeyEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeyEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->key();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeyEvent, sipName_key, doc_QKeyEvent_key);

    return NULL;
}


PyDoc_STRVAR(doc_QKeyEvent_modifiers, "QKeyEvent.modifiers() -> Qt.KeyboardModifiers");

extern "C" {static PyObject *meth_QKeyEvent_modifiers(PyObject *, PyObject *);}
static PyObject *meth_QKeyEvent_modifiers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeyEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeyEvent, &sipCpp))
        {
            Qt::KeyboardModifiers*sipRes;

            sipRes = new Qt::KeyboardModifiers(sipCpp->modifiers());

            return sipConvertFromNewType(sipRes,sipType_Qt_KeyboardModifiers,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeyEvent, sipName_modifiers, doc_QKeyEvent_modifiers);

    return NULL;
}


PyDoc_STRVAR(doc_QKeyEvent_text, "QKeyEvent.text() -> str");

extern "C" {static PyObject *meth_QKeyEvent_text(PyObject *, PyObject *);}
static PyObject *meth_QKeyEvent_text(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeyEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeyEvent, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeyEvent, sipName_text, doc_QKeyEvent_text);

    return NULL;
}


PyDoc_STRVAR(doc_QKeyEvent_isAutoRepeat, "QKeyEvent.isAutoRepeat() -> bool");

extern "C" {static PyObject *meth_QKeyEvent_isAutoRepeat(PyObject *, PyObject *);}
static PyObject *meth_QKeyEvent_isAutoRepeat(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeyEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeyEvent, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAutoRepeat();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeyEvent, sipName_isAutoRepeat, doc_QKeyEvent_isAutoRepeat);

    return NULL;
}


PyDoc_STRVAR(doc_QKeyEvent_count, "QKeyEvent.count() -> int");

extern "C" {static PyObject *meth_QKeyEvent_count(PyObject *, PyObject *);}
static PyObject *meth_QKeyEvent_count(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeyEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeyEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->count();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeyEvent, sipName_count, doc_QKeyEvent_count);

    return NULL;
}


PyDoc_STRVAR(doc_QKeyEvent_matches, "QKeyEvent.matches(QKeySequence.StandardKey) -> bool");

extern "C" {static PyObject *meth_QKeyEvent_matches(PyObject *, PyObject *);}
static PyObject *meth_QKeyEvent_matches(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QKeySequence::StandardKey a0;
        const QKeyEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QKeyEvent, &sipCpp, sipType_QKeySequence_StandardKey, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->matches(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeyEvent, sipName_matches, doc_QKeyEvent_matches);

    return NULL;
}


PyDoc_STRVAR(doc_QKeyEvent_nativeModifiers, "QKeyEvent.nativeModifiers() -> int");

extern "C" {static PyObject *meth_QKeyEvent_nativeModifiers(PyObject *, PyObject *);}
static PyObject *meth_QKeyEvent_nativeModifiers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeyEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeyEvent, &sipCpp))
        {
            quint32 sipRes;

            sipRes = sipCpp->nativeModifiers();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeyEvent, sipName_nativeModifiers, doc_QKeyEvent_nativeModifiers);

    return NULL;
}


PyDoc_STRVAR(doc_QKeyEvent_nativeScanCode, "QKeyEvent.nativeScanCode() -> int");

extern "C" {static PyObject *meth_QKeyEvent_nativeScanCode(PyObject *, PyObject *);}
static PyObject *meth_QKeyEvent_nativeScanCode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeyEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeyEvent, &sipCpp))
        {
            quint32 sipRes;

            sipRes = sipCpp->nativeScanCode();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeyEvent, sipName_nativeScanCode, doc_QKeyEvent_nativeScanCode);

    return NULL;
}


PyDoc_STRVAR(doc_QKeyEvent_nativeVirtualKey, "QKeyEvent.nativeVirtualKey() -> int");

extern "C" {static PyObject *meth_QKeyEvent_nativeVirtualKey(PyObject *, PyObject *);}
static PyObject *meth_QKeyEvent_nativeVirtualKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QKeyEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QKeyEvent, &sipCpp))
        {
            quint32 sipRes;

            sipRes = sipCpp->nativeVirtualKey();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QKeyEvent, sipName_nativeVirtualKey, doc_QKeyEvent_nativeVirtualKey);

    return NULL;
}


extern "C" {static PyObject *slot_QKeyEvent___ne__(PyObject *,PyObject *);}
static PyObject *slot_QKeyEvent___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeyEvent *sipCpp = reinterpret_cast<QKeyEvent *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeyEvent));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QKeySequence::StandardKey a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1E", sipType_QKeySequence_StandardKey, &a0))
        {
            bool sipRes;

            sipRes = !operator==(sipCpp, a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QKeyEvent,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QKeyEvent___eq__(PyObject *,PyObject *);}
static PyObject *slot_QKeyEvent___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QKeyEvent *sipCpp = reinterpret_cast<QKeyEvent *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeyEvent));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QKeySequence::StandardKey a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1E", sipType_QKeySequence_StandardKey, &a0))
        {
            bool sipRes;

            sipRes = operator==(sipCpp, a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QKeyEvent,sipSelf,sipArg);
}


extern "C" {static SIP_SSIZE_T slot_QKeyEvent___len__(PyObject *);}
static SIP_SSIZE_T slot_QKeyEvent___len__(PyObject *sipSelf)
{
    QKeyEvent *sipCpp = reinterpret_cast<QKeyEvent *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QKeyEvent));

    if (!sipCpp)
        return 0;


    {
        {
            SIP_SSIZE_T sipRes = 0;

#line 1 "Auto-generated"
            sipRes = (SIP_SSIZE_T)sipCpp->count();
#line 171048 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipRes;
        }
    }

    return 0;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QKeyEvent(void *, const sipTypeDef *);}
static void *cast_QKeyEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QKeyEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QInputEvent)->ctd_cast((QInputEvent *)(QKeyEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QKeyEvent(void *, int);}
static void release_QKeyEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQKeyEvent *>(sipCppV);
    else
        delete reinterpret_cast<QKeyEvent *>(sipCppV);
}


extern "C" {static void dealloc_QKeyEvent(sipSimpleWrapper *);}
static void dealloc_QKeyEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQKeyEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QKeyEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QKeyEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QKeyEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQKeyEvent *sipCpp = 0;

    {
        QEvent::Type a0;
        int a1;
        Qt::KeyboardModifiers* a2;
        int a2State = 0;
        quint32 a3;
        quint32 a4;
        quint32 a5;
        const QString& a6def = QString();
        const QString* a6 = &a6def;
        int a6State = 0;
        bool a7 = 0;
        ushort a8 = 1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_text,
            sipName_autorep,
            sipName_count,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "EiJ1uuu|J1bt", sipType_QEvent_Type, &a0, &a1, sipType_Qt_KeyboardModifiers, &a2, &a2State, &a3, &a4, &a5, sipType_QString,&a6, &a6State, &a7, &a8))
        {
            sipCpp = new sipQKeyEvent(a0,a1,*a2,a3,a4,a5,*a6,a7,a8);
            sipReleaseType(a2,sipType_Qt_KeyboardModifiers,a2State);
            sipReleaseType(const_cast<QString *>(a6),sipType_QString,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QEvent::Type a0;
        int a1;
        Qt::KeyboardModifiers* a2;
        int a2State = 0;
        const QString& a3def = QString();
        const QString* a3 = &a3def;
        int a3State = 0;
        bool a4 = 0;
        ushort a5 = 1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_text,
            sipName_autorep,
            sipName_count,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "EiJ1|J1bt", sipType_QEvent_Type, &a0, &a1, sipType_Qt_KeyboardModifiers, &a2, &a2State, sipType_QString,&a3, &a3State, &a4, &a5))
        {
            sipCpp = new sipQKeyEvent(a0,a1,*a2,*a3,a4,a5);
            sipReleaseType(a2,sipType_Qt_KeyboardModifiers,a2State);
            sipReleaseType(const_cast<QString *>(a3),sipType_QString,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QKeyEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QKeyEvent, &a0))
        {
            sipCpp = new sipQKeyEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QKeyEvent[] = {{73, 255, 1}};


/* Define this type's Python slots. */
static sipPySlotDef slots_QKeyEvent[] = {
    {(void *)slot_QKeyEvent___ne__, ne_slot},
    {(void *)slot_QKeyEvent___eq__, eq_slot},
    {(void *)slot_QKeyEvent___len__, len_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QKeyEvent[] = {
    {SIP_MLNAME_CAST(sipName_count), meth_QKeyEvent_count, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeyEvent_count)},
    {SIP_MLNAME_CAST(sipName_isAutoRepeat), meth_QKeyEvent_isAutoRepeat, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeyEvent_isAutoRepeat)},
    {SIP_MLNAME_CAST(sipName_key), meth_QKeyEvent_key, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeyEvent_key)},
    {SIP_MLNAME_CAST(sipName_matches), meth_QKeyEvent_matches, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeyEvent_matches)},
    {SIP_MLNAME_CAST(sipName_modifiers), meth_QKeyEvent_modifiers, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeyEvent_modifiers)},
    {SIP_MLNAME_CAST(sipName_nativeModifiers), meth_QKeyEvent_nativeModifiers, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeyEvent_nativeModifiers)},
    {SIP_MLNAME_CAST(sipName_nativeScanCode), meth_QKeyEvent_nativeScanCode, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeyEvent_nativeScanCode)},
    {SIP_MLNAME_CAST(sipName_nativeVirtualKey), meth_QKeyEvent_nativeVirtualKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeyEvent_nativeVirtualKey)},
    {SIP_MLNAME_CAST(sipName_text), meth_QKeyEvent_text, METH_VARARGS, SIP_MLDOC_CAST(doc_QKeyEvent_text)}
};

PyDoc_STRVAR(doc_QKeyEvent, "\1QKeyEvent(QEvent.Type, int, Qt.KeyboardModifiers, int, int, int, str text=QString(), bool autorep=False, int count=1)\n"
    "QKeyEvent(QEvent.Type, int, Qt.KeyboardModifiers, str text='', bool autorep=False, int count=1)\n"
    "QKeyEvent(QKeyEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QKeyEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QKeyEvent,
        {0}
    },
    {
        sipNameNr_QKeyEvent,
        {0, 0, 1},
        9, methods_QKeyEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QKeyEvent,
    -1,
    -1,
    supers_QKeyEvent,
    slots_QKeyEvent,
    init_type_QKeyEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QKeyEvent,
    0,
    0,
    0,
    release_QKeyEvent,
    cast_QKeyEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 171277 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 171281 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 171284 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 171287 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 171290 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 171293 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 171296 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQTabletEvent : public QTabletEvent
{
public:
    sipQTabletEvent(QEvent::Type,const QPointF&,const QPointF&,int,int,qreal,int,int,qreal,qreal,int,Qt::KeyboardModifiers,qint64,Qt::MouseButton,Qt::MouseButtons);
    sipQTabletEvent(QEvent::Type,const QPointF&,const QPointF&,int,int,qreal,int,int,qreal,qreal,int,Qt::KeyboardModifiers,qint64);
    sipQTabletEvent(const QTabletEvent&);
    ~sipQTabletEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTabletEvent(const sipQTabletEvent &);
    sipQTabletEvent &operator = (const sipQTabletEvent &);
};

sipQTabletEvent::sipQTabletEvent(QEvent::Type a0,const QPointF& a1,const QPointF& a2,int a3,int a4,qreal a5,int a6,int a7,qreal a8,qreal a9,int a10,Qt::KeyboardModifiers a11,qint64 a12,Qt::MouseButton a13,Qt::MouseButtons a14): QTabletEvent(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14), sipPySelf(0)
{
}

sipQTabletEvent::sipQTabletEvent(QEvent::Type a0,const QPointF& a1,const QPointF& a2,int a3,int a4,qreal a5,int a6,int a7,qreal a8,qreal a9,int a10,Qt::KeyboardModifiers a11,qint64 a12): QTabletEvent(a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12), sipPySelf(0)
{
}

sipQTabletEvent::sipQTabletEvent(const QTabletEvent& a0): QTabletEvent(a0), sipPySelf(0)
{
}

sipQTabletEvent::~sipQTabletEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QTabletEvent_pos, "QTabletEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QTabletEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_pos, doc_QTabletEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_globalPos, "QTabletEvent.globalPos() -> QPoint");

extern "C" {static PyObject *meth_QTabletEvent_globalPos(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_globalPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->globalPos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_globalPos, doc_QTabletEvent_globalPos);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_x, "QTabletEvent.x() -> int");

extern "C" {static PyObject *meth_QTabletEvent_x(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->x();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_x, doc_QTabletEvent_x);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_y, "QTabletEvent.y() -> int");

extern "C" {static PyObject *meth_QTabletEvent_y(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->y();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_y, doc_QTabletEvent_y);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_globalX, "QTabletEvent.globalX() -> int");

extern "C" {static PyObject *meth_QTabletEvent_globalX(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_globalX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_globalX, doc_QTabletEvent_globalX);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_globalY, "QTabletEvent.globalY() -> int");

extern "C" {static PyObject *meth_QTabletEvent_globalY(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_globalY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalY();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_globalY, doc_QTabletEvent_globalY);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_hiResGlobalX, "QTabletEvent.hiResGlobalX() -> float");

extern "C" {static PyObject *meth_QTabletEvent_hiResGlobalX(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_hiResGlobalX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->hiResGlobalX();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_hiResGlobalX, doc_QTabletEvent_hiResGlobalX);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_hiResGlobalY, "QTabletEvent.hiResGlobalY() -> float");

extern "C" {static PyObject *meth_QTabletEvent_hiResGlobalY(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_hiResGlobalY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->hiResGlobalY();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_hiResGlobalY, doc_QTabletEvent_hiResGlobalY);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_device, "QTabletEvent.device() -> QTabletEvent.TabletDevice");

extern "C" {static PyObject *meth_QTabletEvent_device(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_device(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            QTabletEvent::TabletDevice sipRes;

            sipRes = sipCpp->device();

            return sipConvertFromEnum(sipRes,sipType_QTabletEvent_TabletDevice);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_device, doc_QTabletEvent_device);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_pointerType, "QTabletEvent.pointerType() -> QTabletEvent.PointerType");

extern "C" {static PyObject *meth_QTabletEvent_pointerType(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_pointerType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            QTabletEvent::PointerType sipRes;

            sipRes = sipCpp->pointerType();

            return sipConvertFromEnum(sipRes,sipType_QTabletEvent_PointerType);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_pointerType, doc_QTabletEvent_pointerType);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_uniqueId, "QTabletEvent.uniqueId() -> int");

extern "C" {static PyObject *meth_QTabletEvent_uniqueId(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_uniqueId(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            qint64 sipRes;

            sipRes = sipCpp->uniqueId();

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_uniqueId, doc_QTabletEvent_uniqueId);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_pressure, "QTabletEvent.pressure() -> float");

extern "C" {static PyObject *meth_QTabletEvent_pressure(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_pressure(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->pressure();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_pressure, doc_QTabletEvent_pressure);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_z, "QTabletEvent.z() -> int");

extern "C" {static PyObject *meth_QTabletEvent_z(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_z(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->z();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_z, doc_QTabletEvent_z);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_tangentialPressure, "QTabletEvent.tangentialPressure() -> float");

extern "C" {static PyObject *meth_QTabletEvent_tangentialPressure(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_tangentialPressure(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->tangentialPressure();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_tangentialPressure, doc_QTabletEvent_tangentialPressure);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_rotation, "QTabletEvent.rotation() -> float");

extern "C" {static PyObject *meth_QTabletEvent_rotation(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_rotation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->rotation();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_rotation, doc_QTabletEvent_rotation);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_xTilt, "QTabletEvent.xTilt() -> int");

extern "C" {static PyObject *meth_QTabletEvent_xTilt(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_xTilt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->xTilt();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_xTilt, doc_QTabletEvent_xTilt);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_yTilt, "QTabletEvent.yTilt() -> int");

extern "C" {static PyObject *meth_QTabletEvent_yTilt(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_yTilt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->yTilt();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_yTilt, doc_QTabletEvent_yTilt);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_posF, "QTabletEvent.posF() -> QPointF");

extern "C" {static PyObject *meth_QTabletEvent_posF(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_posF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->posF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_posF, doc_QTabletEvent_posF);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_globalPosF, "QTabletEvent.globalPosF() -> QPointF");

extern "C" {static PyObject *meth_QTabletEvent_globalPosF(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_globalPosF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->globalPosF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_globalPosF, doc_QTabletEvent_globalPosF);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_button, "QTabletEvent.button() -> Qt.MouseButton");

extern "C" {static PyObject *meth_QTabletEvent_button(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_button(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            Qt::MouseButton sipRes;

            sipRes = sipCpp->button();

            return sipConvertFromEnum(sipRes,sipType_Qt_MouseButton);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_button, doc_QTabletEvent_button);

    return NULL;
}


PyDoc_STRVAR(doc_QTabletEvent_buttons, "QTabletEvent.buttons() -> Qt.MouseButtons");

extern "C" {static PyObject *meth_QTabletEvent_buttons(PyObject *, PyObject *);}
static PyObject *meth_QTabletEvent_buttons(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTabletEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTabletEvent, &sipCpp))
        {
            Qt::MouseButtons*sipRes;

            sipRes = new Qt::MouseButtons(sipCpp->buttons());

            return sipConvertFromNewType(sipRes,sipType_Qt_MouseButtons,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTabletEvent, sipName_buttons, doc_QTabletEvent_buttons);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTabletEvent(void *, const sipTypeDef *);}
static void *cast_QTabletEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QTabletEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QInputEvent)->ctd_cast((QInputEvent *)(QTabletEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTabletEvent(void *, int);}
static void release_QTabletEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQTabletEvent *>(sipCppV);
    else
        delete reinterpret_cast<QTabletEvent *>(sipCppV);
}


extern "C" {static void dealloc_QTabletEvent(sipSimpleWrapper *);}
static void dealloc_QTabletEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTabletEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTabletEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTabletEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTabletEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQTabletEvent *sipCpp = 0;

    {
        QEvent::Type a0;
        const QPointF* a1;
        int a1State = 0;
        const QPointF* a2;
        int a2State = 0;
        int a3;
        int a4;
        qreal a5;
        int a6;
        int a7;
        qreal a8;
        qreal a9;
        int a10;
        Qt::KeyboardModifiers* a11;
        int a11State = 0;
        qint64 a12;
        Qt::MouseButton a13;
        Qt::MouseButtons* a14;
        int a14State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ1J1iidiiddiJ1nEJ1", sipType_QEvent_Type, &a0, sipType_QPointF, &a1, &a1State, sipType_QPointF, &a2, &a2State, &a3, &a4, &a5, &a6, &a7, &a8, &a9, &a10, sipType_Qt_KeyboardModifiers, &a11, &a11State, &a12, sipType_Qt_MouseButton, &a13, sipType_Qt_MouseButtons, &a14, &a14State))
        {
            sipCpp = new sipQTabletEvent(a0,*a1,*a2,a3,a4,a5,a6,a7,a8,a9,a10,*a11,a12,a13,*a14);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);
            sipReleaseType(a11,sipType_Qt_KeyboardModifiers,a11State);
            sipReleaseType(a14,sipType_Qt_MouseButtons,a14State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QEvent::Type a0;
        const QPointF* a1;
        int a1State = 0;
        const QPointF* a2;
        int a2State = 0;
        int a3;
        int a4;
        qreal a5;
        int a6;
        int a7;
        qreal a8;
        qreal a9;
        int a10;
        Qt::KeyboardModifiers* a11;
        int a11State = 0;
        qint64 a12;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ1J1iidiiddiJ1n", sipType_QEvent_Type, &a0, sipType_QPointF, &a1, &a1State, sipType_QPointF, &a2, &a2State, &a3, &a4, &a5, &a6, &a7, &a8, &a9, &a10, sipType_Qt_KeyboardModifiers, &a11, &a11State, &a12))
        {
            sipCpp = new sipQTabletEvent(a0,*a1,*a2,a3,a4,a5,a6,a7,a8,a9,a10,*a11,a12);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);
            sipReleaseType(a11,sipType_Qt_KeyboardModifiers,a11State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QTabletEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTabletEvent, &a0))
        {
            sipCpp = new sipQTabletEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QTabletEvent[] = {{73, 255, 1}};


static PyMethodDef methods_QTabletEvent[] = {
    {SIP_MLNAME_CAST(sipName_button), meth_QTabletEvent_button, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_button)},
    {SIP_MLNAME_CAST(sipName_buttons), meth_QTabletEvent_buttons, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_buttons)},
    {SIP_MLNAME_CAST(sipName_device), meth_QTabletEvent_device, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_device)},
    {SIP_MLNAME_CAST(sipName_globalPos), meth_QTabletEvent_globalPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_globalPos)},
    {SIP_MLNAME_CAST(sipName_globalPosF), meth_QTabletEvent_globalPosF, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_globalPosF)},
    {SIP_MLNAME_CAST(sipName_globalX), meth_QTabletEvent_globalX, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_globalX)},
    {SIP_MLNAME_CAST(sipName_globalY), meth_QTabletEvent_globalY, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_globalY)},
    {SIP_MLNAME_CAST(sipName_hiResGlobalX), meth_QTabletEvent_hiResGlobalX, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_hiResGlobalX)},
    {SIP_MLNAME_CAST(sipName_hiResGlobalY), meth_QTabletEvent_hiResGlobalY, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_hiResGlobalY)},
    {SIP_MLNAME_CAST(sipName_pointerType), meth_QTabletEvent_pointerType, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_pointerType)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QTabletEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_pos)},
    {SIP_MLNAME_CAST(sipName_posF), meth_QTabletEvent_posF, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_posF)},
    {SIP_MLNAME_CAST(sipName_pressure), meth_QTabletEvent_pressure, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_pressure)},
    {SIP_MLNAME_CAST(sipName_rotation), meth_QTabletEvent_rotation, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_rotation)},
    {SIP_MLNAME_CAST(sipName_tangentialPressure), meth_QTabletEvent_tangentialPressure, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_tangentialPressure)},
    {SIP_MLNAME_CAST(sipName_uniqueId), meth_QTabletEvent_uniqueId, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_uniqueId)},
    {SIP_MLNAME_CAST(sipName_x), meth_QTabletEvent_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_x)},
    {SIP_MLNAME_CAST(sipName_xTilt), meth_QTabletEvent_xTilt, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_xTilt)},
    {SIP_MLNAME_CAST(sipName_y), meth_QTabletEvent_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_y)},
    {SIP_MLNAME_CAST(sipName_yTilt), meth_QTabletEvent_yTilt, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_yTilt)},
    {SIP_MLNAME_CAST(sipName_z), meth_QTabletEvent_z, METH_VARARGS, SIP_MLDOC_CAST(doc_QTabletEvent_z)}
};

static sipEnumMemberDef enummembers_QTabletEvent[] = {
    {sipName_Airbrush, static_cast<int>(QTabletEvent::Airbrush), 268},
    {sipName_Cursor, static_cast<int>(QTabletEvent::Cursor), 267},
    {sipName_Eraser, static_cast<int>(QTabletEvent::Eraser), 267},
    {sipName_FourDMouse, static_cast<int>(QTabletEvent::FourDMouse), 268},
    {sipName_NoDevice, static_cast<int>(QTabletEvent::NoDevice), 268},
    {sipName_Pen, static_cast<int>(QTabletEvent::Pen), 267},
    {sipName_Puck, static_cast<int>(QTabletEvent::Puck), 268},
    {sipName_RotationStylus, static_cast<int>(QTabletEvent::RotationStylus), 268},
    {sipName_Stylus, static_cast<int>(QTabletEvent::Stylus), 268},
    {sipName_UnknownPointer, static_cast<int>(QTabletEvent::UnknownPointer), 267},
    {sipName_XFreeEraser, static_cast<int>(QTabletEvent::XFreeEraser), 268},
};

PyDoc_STRVAR(doc_QTabletEvent, "\1QTabletEvent(QEvent.Type, QPointF, QPointF, int, int, float, int, int, float, float, int, Qt.KeyboardModifiers, int, Qt.MouseButton, Qt.MouseButtons)\n"
    "QTabletEvent(QEvent.Type, QPointF, QPointF, int, int, float, int, int, float, float, int, Qt.KeyboardModifiers, int)\n"
    "QTabletEvent(QTabletEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTabletEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTabletEvent,
        {0}
    },
    {
        sipNameNr_QTabletEvent,
        {0, 0, 1},
        21, methods_QTabletEvent,
        11, enummembers_QTabletEvent,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTabletEvent,
    -1,
    -1,
    supers_QTabletEvent,
    0,
    init_type_QTabletEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTabletEvent,
    0,
    0,
    0,
    release_QTabletEvent,
    cast_QTabletEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 247 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 172132 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 172136 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 172139 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 172142 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 172145 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 172148 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 172151 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQWheelEvent : public QWheelEvent
{
public:
    sipQWheelEvent(const QPointF&,const QPointF&,QPoint,QPoint,int,Qt::Orientation,Qt::MouseButtons,Qt::KeyboardModifiers);
    sipQWheelEvent(const QPointF&,const QPointF&,QPoint,QPoint,int,Qt::Orientation,Qt::MouseButtons,Qt::KeyboardModifiers,Qt::ScrollPhase);
    sipQWheelEvent(const QWheelEvent&);
    ~sipQWheelEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQWheelEvent(const sipQWheelEvent &);
    sipQWheelEvent &operator = (const sipQWheelEvent &);
};

sipQWheelEvent::sipQWheelEvent(const QPointF& a0,const QPointF& a1,QPoint a2,QPoint a3,int a4,Qt::Orientation a5,Qt::MouseButtons a6,Qt::KeyboardModifiers a7): QWheelEvent(a0,a1,a2,a3,a4,a5,a6,a7), sipPySelf(0)
{
}

sipQWheelEvent::sipQWheelEvent(const QPointF& a0,const QPointF& a1,QPoint a2,QPoint a3,int a4,Qt::Orientation a5,Qt::MouseButtons a6,Qt::KeyboardModifiers a7,Qt::ScrollPhase a8): QWheelEvent(a0,a1,a2,a3,a4,a5,a6,a7,a8), sipPySelf(0)
{
}

sipQWheelEvent::sipQWheelEvent(const QWheelEvent& a0): QWheelEvent(a0), sipPySelf(0)
{
}

sipQWheelEvent::~sipQWheelEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QWheelEvent_pos, "QWheelEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QWheelEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_pos, doc_QWheelEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_globalPos, "QWheelEvent.globalPos() -> QPoint");

extern "C" {static PyObject *meth_QWheelEvent_globalPos(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_globalPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->globalPos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_globalPos, doc_QWheelEvent_globalPos);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_x, "QWheelEvent.x() -> int");

extern "C" {static PyObject *meth_QWheelEvent_x(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->x();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_x, doc_QWheelEvent_x);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_y, "QWheelEvent.y() -> int");

extern "C" {static PyObject *meth_QWheelEvent_y(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->y();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_y, doc_QWheelEvent_y);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_globalX, "QWheelEvent.globalX() -> int");

extern "C" {static PyObject *meth_QWheelEvent_globalX(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_globalX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_globalX, doc_QWheelEvent_globalX);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_globalY, "QWheelEvent.globalY() -> int");

extern "C" {static PyObject *meth_QWheelEvent_globalY(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_globalY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalY();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_globalY, doc_QWheelEvent_globalY);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_buttons, "QWheelEvent.buttons() -> Qt.MouseButtons");

extern "C" {static PyObject *meth_QWheelEvent_buttons(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_buttons(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            Qt::MouseButtons*sipRes;

            sipRes = new Qt::MouseButtons(sipCpp->buttons());

            return sipConvertFromNewType(sipRes,sipType_Qt_MouseButtons,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_buttons, doc_QWheelEvent_buttons);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_pixelDelta, "QWheelEvent.pixelDelta() -> QPoint");

extern "C" {static PyObject *meth_QWheelEvent_pixelDelta(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_pixelDelta(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pixelDelta());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_pixelDelta, doc_QWheelEvent_pixelDelta);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_angleDelta, "QWheelEvent.angleDelta() -> QPoint");

extern "C" {static PyObject *meth_QWheelEvent_angleDelta(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_angleDelta(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->angleDelta());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_angleDelta, doc_QWheelEvent_angleDelta);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_posF, "QWheelEvent.posF() -> QPointF");

extern "C" {static PyObject *meth_QWheelEvent_posF(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_posF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->posF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_posF, doc_QWheelEvent_posF);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_globalPosF, "QWheelEvent.globalPosF() -> QPointF");

extern "C" {static PyObject *meth_QWheelEvent_globalPosF(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_globalPosF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->globalPosF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_globalPosF, doc_QWheelEvent_globalPosF);

    return NULL;
}


PyDoc_STRVAR(doc_QWheelEvent_phase, "QWheelEvent.phase() -> Qt.ScrollPhase");

extern "C" {static PyObject *meth_QWheelEvent_phase(PyObject *, PyObject *);}
static PyObject *meth_QWheelEvent_phase(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QWheelEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QWheelEvent, &sipCpp))
        {
            Qt::ScrollPhase sipRes;

            sipRes = sipCpp->phase();

            return sipConvertFromEnum(sipRes,sipType_Qt_ScrollPhase);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QWheelEvent, sipName_phase, doc_QWheelEvent_phase);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QWheelEvent(void *, const sipTypeDef *);}
static void *cast_QWheelEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QWheelEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QInputEvent)->ctd_cast((QInputEvent *)(QWheelEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QWheelEvent(void *, int);}
static void release_QWheelEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQWheelEvent *>(sipCppV);
    else
        delete reinterpret_cast<QWheelEvent *>(sipCppV);
}


extern "C" {static void dealloc_QWheelEvent(sipSimpleWrapper *);}
static void dealloc_QWheelEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQWheelEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QWheelEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QWheelEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QWheelEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQWheelEvent *sipCpp = 0;

    {
        const QPointF* a0;
        int a0State = 0;
        const QPointF* a1;
        int a1State = 0;
        QPoint* a2;
        QPoint* a3;
        int a4;
        Qt::Orientation a5;
        Qt::MouseButtons* a6;
        int a6State = 0;
        Qt::KeyboardModifiers* a7;
        int a7State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J9J9iEJ1J1", sipType_QPointF, &a0, &a0State, sipType_QPointF, &a1, &a1State, sipType_QPoint, &a2, sipType_QPoint, &a3, &a4, sipType_Qt_Orientation, &a5, sipType_Qt_MouseButtons, &a6, &a6State, sipType_Qt_KeyboardModifiers, &a7, &a7State))
        {
            sipCpp = new sipQWheelEvent(*a0,*a1,*a2,*a3,a4,a5,*a6,*a7);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(a6,sipType_Qt_MouseButtons,a6State);
            sipReleaseType(a7,sipType_Qt_KeyboardModifiers,a7State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QPointF* a1;
        int a1State = 0;
        QPoint* a2;
        QPoint* a3;
        int a4;
        Qt::Orientation a5;
        Qt::MouseButtons* a6;
        int a6State = 0;
        Qt::KeyboardModifiers* a7;
        int a7State = 0;
        Qt::ScrollPhase a8;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1J9J9iEJ1J1E", sipType_QPointF, &a0, &a0State, sipType_QPointF, &a1, &a1State, sipType_QPoint, &a2, sipType_QPoint, &a3, &a4, sipType_Qt_Orientation, &a5, sipType_Qt_MouseButtons, &a6, &a6State, sipType_Qt_KeyboardModifiers, &a7, &a7State, sipType_Qt_ScrollPhase, &a8))
        {
            sipCpp = new sipQWheelEvent(*a0,*a1,*a2,*a3,a4,a5,*a6,*a7,a8);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(a6,sipType_Qt_MouseButtons,a6State);
            sipReleaseType(a7,sipType_Qt_KeyboardModifiers,a7State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QWheelEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QWheelEvent, &a0))
        {
            sipCpp = new sipQWheelEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QWheelEvent[] = {{73, 255, 1}};


static PyMethodDef methods_QWheelEvent[] = {
    {SIP_MLNAME_CAST(sipName_angleDelta), meth_QWheelEvent_angleDelta, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_angleDelta)},
    {SIP_MLNAME_CAST(sipName_buttons), meth_QWheelEvent_buttons, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_buttons)},
    {SIP_MLNAME_CAST(sipName_globalPos), meth_QWheelEvent_globalPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_globalPos)},
    {SIP_MLNAME_CAST(sipName_globalPosF), meth_QWheelEvent_globalPosF, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_globalPosF)},
    {SIP_MLNAME_CAST(sipName_globalX), meth_QWheelEvent_globalX, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_globalX)},
    {SIP_MLNAME_CAST(sipName_globalY), meth_QWheelEvent_globalY, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_globalY)},
    {SIP_MLNAME_CAST(sipName_phase), meth_QWheelEvent_phase, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_phase)},
    {SIP_MLNAME_CAST(sipName_pixelDelta), meth_QWheelEvent_pixelDelta, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_pixelDelta)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QWheelEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_pos)},
    {SIP_MLNAME_CAST(sipName_posF), meth_QWheelEvent_posF, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_posF)},
    {SIP_MLNAME_CAST(sipName_x), meth_QWheelEvent_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QWheelEvent_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QWheelEvent_y)}
};

PyDoc_STRVAR(doc_QWheelEvent, "\1QWheelEvent(QPointF, QPointF, QPoint, QPoint, int, Qt.Orientation, Qt.MouseButtons, Qt.KeyboardModifiers)\n"
    "QWheelEvent(QPointF, QPointF, QPoint, QPoint, int, Qt.Orientation, Qt.MouseButtons, Qt.KeyboardModifiers, Qt.ScrollPhase)\n"
    "QWheelEvent(QWheelEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QWheelEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QWheelEvent,
        {0}
    },
    {
        sipNameNr_QWheelEvent,
        {0, 0, 1},
        12, methods_QWheelEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QWheelEvent,
    -1,
    -1,
    supers_QWheelEvent,
    0,
    init_type_QWheelEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QWheelEvent,
    0,
    0,
    0,
    release_QWheelEvent,
    cast_QWheelEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 232 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 172712 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 172716 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 172719 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 172722 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 172725 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQHoverEvent : public QHoverEvent
{
public:
    sipQHoverEvent(QEvent::Type,const QPointF&,const QPointF&,Qt::KeyboardModifiers);
    sipQHoverEvent(const QHoverEvent&);
    ~sipQHoverEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQHoverEvent(const sipQHoverEvent &);
    sipQHoverEvent &operator = (const sipQHoverEvent &);
};

sipQHoverEvent::sipQHoverEvent(QEvent::Type a0,const QPointF& a1,const QPointF& a2,Qt::KeyboardModifiers a3): QHoverEvent(a0,a1,a2,a3), sipPySelf(0)
{
}

sipQHoverEvent::sipQHoverEvent(const QHoverEvent& a0): QHoverEvent(a0), sipPySelf(0)
{
}

sipQHoverEvent::~sipQHoverEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QHoverEvent_pos, "QHoverEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QHoverEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QHoverEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHoverEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHoverEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHoverEvent, sipName_pos, doc_QHoverEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QHoverEvent_oldPos, "QHoverEvent.oldPos() -> QPoint");

extern "C" {static PyObject *meth_QHoverEvent_oldPos(PyObject *, PyObject *);}
static PyObject *meth_QHoverEvent_oldPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHoverEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHoverEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->oldPos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHoverEvent, sipName_oldPos, doc_QHoverEvent_oldPos);

    return NULL;
}


PyDoc_STRVAR(doc_QHoverEvent_posF, "QHoverEvent.posF() -> QPointF");

extern "C" {static PyObject *meth_QHoverEvent_posF(PyObject *, PyObject *);}
static PyObject *meth_QHoverEvent_posF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHoverEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHoverEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->posF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHoverEvent, sipName_posF, doc_QHoverEvent_posF);

    return NULL;
}


PyDoc_STRVAR(doc_QHoverEvent_oldPosF, "QHoverEvent.oldPosF() -> QPointF");

extern "C" {static PyObject *meth_QHoverEvent_oldPosF(PyObject *, PyObject *);}
static PyObject *meth_QHoverEvent_oldPosF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QHoverEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QHoverEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->oldPosF());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QHoverEvent, sipName_oldPosF, doc_QHoverEvent_oldPosF);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QHoverEvent(void *, const sipTypeDef *);}
static void *cast_QHoverEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QHoverEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QInputEvent)->ctd_cast((QInputEvent *)(QHoverEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHoverEvent(void *, int);}
static void release_QHoverEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQHoverEvent *>(sipCppV);
    else
        delete reinterpret_cast<QHoverEvent *>(sipCppV);
}


extern "C" {static void dealloc_QHoverEvent(sipSimpleWrapper *);}
static void dealloc_QHoverEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQHoverEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QHoverEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QHoverEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QHoverEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQHoverEvent *sipCpp = 0;

    {
        QEvent::Type a0;
        const QPointF* a1;
        int a1State = 0;
        const QPointF* a2;
        int a2State = 0;
        Qt::KeyboardModifiers a3def = Qt::NoModifier;
        Qt::KeyboardModifiers* a3 = &a3def;
        int a3State = 0;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_modifiers,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "EJ1J1|J1", sipType_QEvent_Type, &a0, sipType_QPointF, &a1, &a1State, sipType_QPointF, &a2, &a2State, sipType_Qt_KeyboardModifiers, &a3, &a3State))
        {
            sipCpp = new sipQHoverEvent(a0,*a1,*a2,*a3);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);
            sipReleaseType(a3,sipType_Qt_KeyboardModifiers,a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QHoverEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QHoverEvent, &a0))
        {
            sipCpp = new sipQHoverEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QHoverEvent[] = {{73, 255, 1}};


static PyMethodDef methods_QHoverEvent[] = {
    {SIP_MLNAME_CAST(sipName_oldPos), meth_QHoverEvent_oldPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QHoverEvent_oldPos)},
    {SIP_MLNAME_CAST(sipName_oldPosF), meth_QHoverEvent_oldPosF, METH_VARARGS, SIP_MLDOC_CAST(doc_QHoverEvent_oldPosF)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QHoverEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QHoverEvent_pos)},
    {SIP_MLNAME_CAST(sipName_posF), meth_QHoverEvent_posF, METH_VARARGS, SIP_MLDOC_CAST(doc_QHoverEvent_posF)}
};

PyDoc_STRVAR(doc_QHoverEvent, "\1QHoverEvent(QEvent.Type, QPointF, QPointF, Qt.KeyboardModifiers modifiers=Qt.NoModifier)\n"
    "QHoverEvent(QHoverEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QHoverEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QHoverEvent,
        {0}
    },
    {
        sipNameNr_QHoverEvent,
        {0, 0, 1},
        4, methods_QHoverEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QHoverEvent,
    -1,
    -1,
    supers_QHoverEvent,
    0,
    init_type_QHoverEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QHoverEvent,
    0,
    0,
    0,
    release_QHoverEvent,
    cast_QHoverEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 202 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 173029 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 173033 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 173036 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173039 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173042 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173045 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173048 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 173051 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQMouseEvent : public QMouseEvent
{
public:
    sipQMouseEvent(QEvent::Type,const QPointF&,Qt::MouseButton,Qt::MouseButtons,Qt::KeyboardModifiers);
    sipQMouseEvent(QEvent::Type,const QPointF&,const QPointF&,Qt::MouseButton,Qt::MouseButtons,Qt::KeyboardModifiers);
    sipQMouseEvent(QEvent::Type,const QPointF&,const QPointF&,const QPointF&,Qt::MouseButton,Qt::MouseButtons,Qt::KeyboardModifiers);
    sipQMouseEvent(const QMouseEvent&);
    ~sipQMouseEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQMouseEvent(const sipQMouseEvent &);
    sipQMouseEvent &operator = (const sipQMouseEvent &);
};

sipQMouseEvent::sipQMouseEvent(QEvent::Type a0,const QPointF& a1,Qt::MouseButton a2,Qt::MouseButtons a3,Qt::KeyboardModifiers a4): QMouseEvent(a0,a1,a2,a3,a4), sipPySelf(0)
{
}

sipQMouseEvent::sipQMouseEvent(QEvent::Type a0,const QPointF& a1,const QPointF& a2,Qt::MouseButton a3,Qt::MouseButtons a4,Qt::KeyboardModifiers a5): QMouseEvent(a0,a1,a2,a3,a4,a5), sipPySelf(0)
{
}

sipQMouseEvent::sipQMouseEvent(QEvent::Type a0,const QPointF& a1,const QPointF& a2,const QPointF& a3,Qt::MouseButton a4,Qt::MouseButtons a5,Qt::KeyboardModifiers a6): QMouseEvent(a0,a1,a2,a3,a4,a5,a6), sipPySelf(0)
{
}

sipQMouseEvent::sipQMouseEvent(const QMouseEvent& a0): QMouseEvent(a0), sipPySelf(0)
{
}

sipQMouseEvent::~sipQMouseEvent()
{
    sipCommonDtor(sipPySelf);
}


PyDoc_STRVAR(doc_QMouseEvent_pos, "QMouseEvent.pos() -> QPoint");

extern "C" {static PyObject *meth_QMouseEvent_pos(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_pos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_pos, doc_QMouseEvent_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_globalPos, "QMouseEvent.globalPos() -> QPoint");

extern "C" {static PyObject *meth_QMouseEvent_globalPos(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_globalPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->globalPos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_globalPos, doc_QMouseEvent_globalPos);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_x, "QMouseEvent.x() -> int");

extern "C" {static PyObject *meth_QMouseEvent_x(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_x(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->x();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_x, doc_QMouseEvent_x);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_y, "QMouseEvent.y() -> int");

extern "C" {static PyObject *meth_QMouseEvent_y(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_y(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->y();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_y, doc_QMouseEvent_y);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_globalX, "QMouseEvent.globalX() -> int");

extern "C" {static PyObject *meth_QMouseEvent_globalX(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_globalX(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalX();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_globalX, doc_QMouseEvent_globalX);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_globalY, "QMouseEvent.globalY() -> int");

extern "C" {static PyObject *meth_QMouseEvent_globalY(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_globalY(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->globalY();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_globalY, doc_QMouseEvent_globalY);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_button, "QMouseEvent.button() -> Qt.MouseButton");

extern "C" {static PyObject *meth_QMouseEvent_button(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_button(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            Qt::MouseButton sipRes;

            sipRes = sipCpp->button();

            return sipConvertFromEnum(sipRes,sipType_Qt_MouseButton);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_button, doc_QMouseEvent_button);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_buttons, "QMouseEvent.buttons() -> Qt.MouseButtons");

extern "C" {static PyObject *meth_QMouseEvent_buttons(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_buttons(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            Qt::MouseButtons*sipRes;

            sipRes = new Qt::MouseButtons(sipCpp->buttons());

            return sipConvertFromNewType(sipRes,sipType_Qt_MouseButtons,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_buttons, doc_QMouseEvent_buttons);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_localPos, "QMouseEvent.localPos() -> QPointF");

extern "C" {static PyObject *meth_QMouseEvent_localPos(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_localPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->localPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_localPos, doc_QMouseEvent_localPos);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_windowPos, "QMouseEvent.windowPos() -> QPointF");

extern "C" {static PyObject *meth_QMouseEvent_windowPos(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_windowPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->windowPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_windowPos, doc_QMouseEvent_windowPos);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_screenPos, "QMouseEvent.screenPos() -> QPointF");

extern "C" {static PyObject *meth_QMouseEvent_screenPos(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_screenPos(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->screenPos());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_screenPos, doc_QMouseEvent_screenPos);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_source, "QMouseEvent.source() -> Qt.MouseEventSource");

extern "C" {static PyObject *meth_QMouseEvent_source(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_source(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            Qt::MouseEventSource sipRes;

            sipRes = sipCpp->source();

            return sipConvertFromEnum(sipRes,sipType_Qt_MouseEventSource);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_source, doc_QMouseEvent_source);

    return NULL;
}


PyDoc_STRVAR(doc_QMouseEvent_flags, "QMouseEvent.flags() -> Qt.MouseEventFlags");

extern "C" {static PyObject *meth_QMouseEvent_flags(PyObject *, PyObject *);}
static PyObject *meth_QMouseEvent_flags(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QMouseEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QMouseEvent, &sipCpp))
        {
            Qt::MouseEventFlags*sipRes;

            sipRes = new Qt::MouseEventFlags(sipCpp->flags());

            return sipConvertFromNewType(sipRes,sipType_Qt_MouseEventFlags,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QMouseEvent, sipName_flags, doc_QMouseEvent_flags);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QMouseEvent(void *, const sipTypeDef *);}
static void *cast_QMouseEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QMouseEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QInputEvent)->ctd_cast((QInputEvent *)(QMouseEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QMouseEvent(void *, int);}
static void release_QMouseEvent(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQMouseEvent *>(sipCppV);
    else
        delete reinterpret_cast<QMouseEvent *>(sipCppV);
}


extern "C" {static void dealloc_QMouseEvent(sipSimpleWrapper *);}
static void dealloc_QMouseEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQMouseEvent *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QMouseEvent(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QMouseEvent(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QMouseEvent(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQMouseEvent *sipCpp = 0;

    {
        QEvent::Type a0;
        const QPointF* a1;
        int a1State = 0;
        Qt::MouseButton a2;
        Qt::MouseButtons* a3;
        int a3State = 0;
        Qt::KeyboardModifiers* a4;
        int a4State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ1EJ1J1", sipType_QEvent_Type, &a0, sipType_QPointF, &a1, &a1State, sipType_Qt_MouseButton, &a2, sipType_Qt_MouseButtons, &a3, &a3State, sipType_Qt_KeyboardModifiers, &a4, &a4State))
        {
            sipCpp = new sipQMouseEvent(a0,*a1,a2,*a3,*a4);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(a3,sipType_Qt_MouseButtons,a3State);
            sipReleaseType(a4,sipType_Qt_KeyboardModifiers,a4State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QEvent::Type a0;
        const QPointF* a1;
        int a1State = 0;
        const QPointF* a2;
        int a2State = 0;
        Qt::MouseButton a3;
        Qt::MouseButtons* a4;
        int a4State = 0;
        Qt::KeyboardModifiers* a5;
        int a5State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ1J1EJ1J1", sipType_QEvent_Type, &a0, sipType_QPointF, &a1, &a1State, sipType_QPointF, &a2, &a2State, sipType_Qt_MouseButton, &a3, sipType_Qt_MouseButtons, &a4, &a4State, sipType_Qt_KeyboardModifiers, &a5, &a5State))
        {
            sipCpp = new sipQMouseEvent(a0,*a1,*a2,a3,*a4,*a5);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);
            sipReleaseType(a4,sipType_Qt_MouseButtons,a4State);
            sipReleaseType(a5,sipType_Qt_KeyboardModifiers,a5State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        QEvent::Type a0;
        const QPointF* a1;
        int a1State = 0;
        const QPointF* a2;
        int a2State = 0;
        const QPointF* a3;
        int a3State = 0;
        Qt::MouseButton a4;
        Qt::MouseButtons* a5;
        int a5State = 0;
        Qt::KeyboardModifiers* a6;
        int a6State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ1J1J1EJ1J1", sipType_QEvent_Type, &a0, sipType_QPointF, &a1, &a1State, sipType_QPointF, &a2, &a2State, sipType_QPointF, &a3, &a3State, sipType_Qt_MouseButton, &a4, sipType_Qt_MouseButtons, &a5, &a5State, sipType_Qt_KeyboardModifiers, &a6, &a6State))
        {
            sipCpp = new sipQMouseEvent(a0,*a1,*a2,*a3,a4,*a5,*a6);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);
            sipReleaseType(const_cast<QPointF *>(a3),sipType_QPointF,a3State);
            sipReleaseType(a5,sipType_Qt_MouseButtons,a5State);
            sipReleaseType(a6,sipType_Qt_KeyboardModifiers,a6State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QMouseEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QMouseEvent, &a0))
        {
            sipCpp = new sipQMouseEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QMouseEvent[] = {{73, 255, 1}};


static PyMethodDef methods_QMouseEvent[] = {
    {SIP_MLNAME_CAST(sipName_button), meth_QMouseEvent_button, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_button)},
    {SIP_MLNAME_CAST(sipName_buttons), meth_QMouseEvent_buttons, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_buttons)},
    {SIP_MLNAME_CAST(sipName_flags), meth_QMouseEvent_flags, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_flags)},
    {SIP_MLNAME_CAST(sipName_globalPos), meth_QMouseEvent_globalPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_globalPos)},
    {SIP_MLNAME_CAST(sipName_globalX), meth_QMouseEvent_globalX, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_globalX)},
    {SIP_MLNAME_CAST(sipName_globalY), meth_QMouseEvent_globalY, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_globalY)},
    {SIP_MLNAME_CAST(sipName_localPos), meth_QMouseEvent_localPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_localPos)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QMouseEvent_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_pos)},
    {SIP_MLNAME_CAST(sipName_screenPos), meth_QMouseEvent_screenPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_screenPos)},
    {SIP_MLNAME_CAST(sipName_source), meth_QMouseEvent_source, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_source)},
    {SIP_MLNAME_CAST(sipName_windowPos), meth_QMouseEvent_windowPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_windowPos)},
    {SIP_MLNAME_CAST(sipName_x), meth_QMouseEvent_x, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_x)},
    {SIP_MLNAME_CAST(sipName_y), meth_QMouseEvent_y, METH_VARARGS, SIP_MLDOC_CAST(doc_QMouseEvent_y)}
};

PyDoc_STRVAR(doc_QMouseEvent, "\1QMouseEvent(QEvent.Type, QPointF, Qt.MouseButton, Qt.MouseButtons, Qt.KeyboardModifiers)\n"
    "QMouseEvent(QEvent.Type, QPointF, QPointF, Qt.MouseButton, Qt.MouseButtons, Qt.KeyboardModifiers)\n"
    "QMouseEvent(QEvent.Type, QPointF, QPointF, QPointF, Qt.MouseButton, Qt.MouseButtons, Qt.KeyboardModifiers)\n"
    "QMouseEvent(QMouseEvent)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QMouseEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QMouseEvent,
        {0}
    },
    {
        sipNameNr_QMouseEvent,
        {0, 0, 1},
        13, methods_QMouseEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QMouseEvent,
    -1,
    -1,
    supers_QMouseEvent,
    0,
    init_type_QMouseEvent,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QMouseEvent,
    0,
    0,
    0,
    release_QMouseEvent,
    cast_QMouseEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 173667 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173671 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 173674 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QInputEvent_modifiers, "QInputEvent.modifiers() -> Qt.KeyboardModifiers");

extern "C" {static PyObject *meth_QInputEvent_modifiers(PyObject *, PyObject *);}
static PyObject *meth_QInputEvent_modifiers(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputEvent, &sipCpp))
        {
            Qt::KeyboardModifiers*sipRes;

            sipRes = new Qt::KeyboardModifiers(sipCpp->modifiers());

            return sipConvertFromNewType(sipRes,sipType_Qt_KeyboardModifiers,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputEvent, sipName_modifiers, doc_QInputEvent_modifiers);

    return NULL;
}


PyDoc_STRVAR(doc_QInputEvent_timestamp, "QInputEvent.timestamp() -> int");

extern "C" {static PyObject *meth_QInputEvent_timestamp(PyObject *, PyObject *);}
static PyObject *meth_QInputEvent_timestamp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QInputEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QInputEvent, &sipCpp))
        {
            ulong sipRes;

            sipRes = sipCpp->timestamp();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputEvent, sipName_timestamp, doc_QInputEvent_timestamp);

    return NULL;
}


PyDoc_STRVAR(doc_QInputEvent_setTimestamp, "QInputEvent.setTimestamp(int)");

extern "C" {static PyObject *meth_QInputEvent_setTimestamp(PyObject *, PyObject *);}
static PyObject *meth_QInputEvent_setTimestamp(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        ulong a0;
        QInputEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bm", &sipSelf, sipType_QInputEvent, &sipCpp, &a0))
        {
            sipCpp->setTimestamp(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QInputEvent, sipName_setTimestamp, doc_QInputEvent_setTimestamp);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QInputEvent(void *, const sipTypeDef *);}
static void *cast_QInputEvent(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QInputEvent)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QEvent)->ctd_cast((QEvent *)(QInputEvent *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QInputEvent(void *, int);}
static void release_QInputEvent(void *sipCppV,int)
{
    delete reinterpret_cast<QInputEvent *>(sipCppV);
}


extern "C" {static void dealloc_QInputEvent(sipSimpleWrapper *);}
static void dealloc_QInputEvent(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QInputEvent(sipGetAddress(sipSelf),0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QInputEvent[] = {{53, 0, 1}};


static PyMethodDef methods_QInputEvent[] = {
    {SIP_MLNAME_CAST(sipName_modifiers), meth_QInputEvent_modifiers, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputEvent_modifiers)},
    {SIP_MLNAME_CAST(sipName_setTimestamp), meth_QInputEvent_setTimestamp, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputEvent_setTimestamp)},
    {SIP_MLNAME_CAST(sipName_timestamp), meth_QInputEvent_timestamp, METH_VARARGS, SIP_MLDOC_CAST(doc_QInputEvent_timestamp)}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QInputEvent = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QInputEvent,
        {0}
    },
    {
        sipNameNr_QInputEvent,
        {0, 0, 1},
        3, methods_QInputEvent,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QInputEvent,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QInputEvent,
    0,
    0,
    0,
    release_QInputEvent,
    cast_QInputEvent,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qdrag.sip"
#include <qdrag.h>
#line 173859 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 173863 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173866 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173869 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 173872 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 173875 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 173878 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 173881 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 173884 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 173887 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 173890 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 173893 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 173896 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 173899 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 173902 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 173905 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 173908 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 173911 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 173914 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 173917 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 173920 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQDrag : public QDrag
{
public:
    sipQDrag(QObject*);
    virtual ~sipQDrag();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQDrag(const sipQDrag &);
    sipQDrag &operator = (const sipQDrag &);

    char sipPyMethods[7];
};

sipQDrag::sipQDrag(QObject*a0): QDrag(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQDrag::~sipQDrag()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQDrag::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QDrag);
}

int sipQDrag::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QDrag::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QDrag,_c,_id,_a);

    return _id;
}

void *sipQDrag::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QDrag, _clname, &sipCpp) ? sipCpp : QDrag::qt_metacast(_clname));
}

void sipQDrag::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QDrag::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDrag::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QDrag::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDrag::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QDrag::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDrag::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QDrag::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQDrag::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QDrag::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQDrag::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QDrag::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQDrag::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QDrag::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QObject* sipQDrag::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQDrag::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQDrag::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQDrag::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQDrag::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQDrag::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQDrag::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQDrag::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQDrag::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}


PyDoc_STRVAR(doc_QDrag_sender, "QDrag.sender() -> QObject");

extern "C" {static PyObject *meth_QDrag_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDrag, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 174208 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_sender, doc_QDrag_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_receivers, "QDrag.receivers(signal) -> int");

extern "C" {static PyObject *meth_QDrag_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QDrag, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 174267 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_receivers, doc_QDrag_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_timerEvent, "QDrag.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QDrag_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDrag, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_timerEvent, doc_QDrag_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_childEvent, "QDrag.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QDrag_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDrag, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_childEvent, doc_QDrag_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_customEvent, "QDrag.customEvent(QEvent)");

extern "C" {static PyObject *meth_QDrag_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QDrag, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_customEvent, doc_QDrag_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_connectNotify, "QDrag.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QDrag_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QDrag, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_connectNotify, doc_QDrag_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_disconnectNotify, "QDrag.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QDrag_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QDrag, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_disconnectNotify, doc_QDrag_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_senderSignalIndex, "QDrag.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QDrag_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QDrag, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_senderSignalIndex, doc_QDrag_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_isSignalConnected, "QDrag.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QDrag_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QDrag, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_isSignalConnected, doc_QDrag_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_exec_, "QDrag.exec_(Qt.DropActions supportedActions=Qt.MoveAction) -> Qt.DropAction\n"
    "QDrag.exec_(Qt.DropActions, Qt.DropAction) -> Qt.DropAction");

extern "C" {static PyObject *meth_QDrag_exec_(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_exec_(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::DropActions a0def = Qt::MoveAction;
        Qt::DropActions* a0 = &a0def;
        int a0State = 0;
        QDrag *sipCpp;

        static const char *sipKwdList[] = {
            sipName_supportedActions,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QDrag, &sipCpp, sipType_Qt_DropActions, &a0, &a0State))
        {
            Qt::DropAction sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exec(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);

            return sipConvertFromEnum(sipRes,sipType_Qt_DropAction);
        }
    }

    {
        Qt::DropActions* a0;
        int a0State = 0;
        Qt::DropAction a1;
        QDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1E", &sipSelf, sipType_QDrag, &sipCpp, sipType_Qt_DropActions, &a0, &a0State, sipType_Qt_DropAction, &a1))
        {
            Qt::DropAction sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exec(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);

            return sipConvertFromEnum(sipRes,sipType_Qt_DropAction);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_exec_, doc_QDrag_exec_);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_exec, "QDrag.exec(Qt.DropActions supportedActions=Qt.MoveAction) -> Qt.DropAction\n"
    "QDrag.exec(Qt.DropActions, Qt.DropAction) -> Qt.DropAction");

extern "C" {static PyObject *meth_QDrag_exec(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QDrag_exec(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::DropActions a0def = Qt::MoveAction;
        Qt::DropActions* a0 = &a0def;
        int a0State = 0;
        QDrag *sipCpp;

        static const char *sipKwdList[] = {
            sipName_supportedActions,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QDrag, &sipCpp, sipType_Qt_DropActions, &a0, &a0State))
        {
            Qt::DropAction sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exec(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);

            return sipConvertFromEnum(sipRes,sipType_Qt_DropAction);
        }
    }

    {
        Qt::DropActions* a0;
        int a0State = 0;
        Qt::DropAction a1;
        QDrag *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1E", &sipSelf, sipType_QDrag, &sipCpp, sipType_Qt_DropActions, &a0, &a0State, sipType_Qt_DropAction, &a1))
        {
            Qt::DropAction sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->exec(*a0,a1);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_Qt_DropActions,a0State);

            return sipConvertFromEnum(sipRes,sipType_Qt_DropAction);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_exec, doc_QDrag_exec);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_setMimeData, "QDrag.setMimeData(QMimeData)");

extern "C" {static PyObject *meth_QDrag_setMimeData(PyObject *, PyObject *);}
static PyObject *meth_QDrag_setMimeData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QMimeData* a0;
        QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ:", &sipSelf, sipType_QDrag, &sipCpp, sipType_QMimeData, &a0))
        {
            sipCpp->setMimeData(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_setMimeData, doc_QDrag_setMimeData);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_mimeData, "QDrag.mimeData() -> QMimeData");

extern "C" {static PyObject *meth_QDrag_mimeData(PyObject *, PyObject *);}
static PyObject *meth_QDrag_mimeData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDrag, &sipCpp))
        {
            QMimeData*sipRes;

            sipRes = sipCpp->mimeData();

            return sipConvertFromType(sipRes,sipType_QMimeData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_mimeData, doc_QDrag_mimeData);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_setPixmap, "QDrag.setPixmap(QPixmap)");

extern "C" {static PyObject *meth_QDrag_setPixmap(PyObject *, PyObject *);}
static PyObject *meth_QDrag_setPixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap* a0;
        QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QDrag, &sipCpp, sipType_QPixmap, &a0))
        {
            sipCpp->setPixmap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_setPixmap, doc_QDrag_setPixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_pixmap, "QDrag.pixmap() -> QPixmap");

extern "C" {static PyObject *meth_QDrag_pixmap(PyObject *, PyObject *);}
static PyObject *meth_QDrag_pixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDrag, &sipCpp))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->pixmap());

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_pixmap, doc_QDrag_pixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_setHotSpot, "QDrag.setHotSpot(QPoint)");

extern "C" {static PyObject *meth_QDrag_setHotSpot(PyObject *, PyObject *);}
static PyObject *meth_QDrag_setHotSpot(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPoint* a0;
        QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QDrag, &sipCpp, sipType_QPoint, &a0))
        {
            sipCpp->setHotSpot(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_setHotSpot, doc_QDrag_setHotSpot);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_hotSpot, "QDrag.hotSpot() -> QPoint");

extern "C" {static PyObject *meth_QDrag_hotSpot(PyObject *, PyObject *);}
static PyObject *meth_QDrag_hotSpot(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDrag, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->hotSpot());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_hotSpot, doc_QDrag_hotSpot);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_source, "QDrag.source() -> QObject");

extern "C" {static PyObject *meth_QDrag_source(PyObject *, PyObject *);}
static PyObject *meth_QDrag_source(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDrag, &sipCpp))
        {
            QObject*sipRes;

            sipRes = sipCpp->source();

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_source, doc_QDrag_source);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_target, "QDrag.target() -> QObject");

extern "C" {static PyObject *meth_QDrag_target(PyObject *, PyObject *);}
static PyObject *meth_QDrag_target(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDrag, &sipCpp))
        {
            QObject*sipRes;

            sipRes = sipCpp->target();

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_target, doc_QDrag_target);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_setDragCursor, "QDrag.setDragCursor(QPixmap, Qt.DropAction)");

extern "C" {static PyObject *meth_QDrag_setDragCursor(PyObject *, PyObject *);}
static PyObject *meth_QDrag_setDragCursor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap* a0;
        Qt::DropAction a1;
        QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9E", &sipSelf, sipType_QDrag, &sipCpp, sipType_QPixmap, &a0, sipType_Qt_DropAction, &a1))
        {
            sipCpp->setDragCursor(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_setDragCursor, doc_QDrag_setDragCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_dragCursor, "QDrag.dragCursor(Qt.DropAction) -> QPixmap");

extern "C" {static PyObject *meth_QDrag_dragCursor(PyObject *, PyObject *);}
static PyObject *meth_QDrag_dragCursor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::DropAction a0;
        const QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QDrag, &sipCpp, sipType_Qt_DropAction, &a0))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->dragCursor(a0));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_dragCursor, doc_QDrag_dragCursor);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_supportedActions, "QDrag.supportedActions() -> Qt.DropActions");

extern "C" {static PyObject *meth_QDrag_supportedActions(PyObject *, PyObject *);}
static PyObject *meth_QDrag_supportedActions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDrag, &sipCpp))
        {
            Qt::DropActions*sipRes;

            sipRes = new Qt::DropActions(sipCpp->supportedActions());

            return sipConvertFromNewType(sipRes,sipType_Qt_DropActions,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_supportedActions, doc_QDrag_supportedActions);

    return NULL;
}


PyDoc_STRVAR(doc_QDrag_defaultAction, "QDrag.defaultAction() -> Qt.DropAction");

extern "C" {static PyObject *meth_QDrag_defaultAction(PyObject *, PyObject *);}
static PyObject *meth_QDrag_defaultAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QDrag *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDrag, &sipCpp))
        {
            Qt::DropAction sipRes;

            sipRes = sipCpp->defaultAction();

            return sipConvertFromEnum(sipRes,sipType_Qt_DropAction);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDrag, sipName_defaultAction, doc_QDrag_defaultAction);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QDrag(void *, const sipTypeDef *);}
static void *cast_QDrag(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QDrag)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QDrag *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDrag(void *, int);}
static void release_QDrag(void *sipCppV,int)
{
    QDrag *sipCpp = reinterpret_cast<QDrag *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QDrag(sipSimpleWrapper *);}
static void dealloc_QDrag(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQDrag *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QDrag(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QDrag(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDrag(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQDrag *sipCpp = 0;

    {
        QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQDrag(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QDrag[] = {{162, 0, 1}};


static PyMethodDef methods_QDrag[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QDrag_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QDrag_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QDrag_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_defaultAction), meth_QDrag_defaultAction, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_defaultAction)},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QDrag_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_dragCursor), meth_QDrag_dragCursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_dragCursor)},
    {SIP_MLNAME_CAST(sipName_exec), (PyCFunction)meth_QDrag_exec, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDrag_exec)},
    {SIP_MLNAME_CAST(sipName_exec_), (PyCFunction)meth_QDrag_exec_, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QDrag_exec_)},
    {SIP_MLNAME_CAST(sipName_hotSpot), meth_QDrag_hotSpot, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_hotSpot)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QDrag_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mimeData), meth_QDrag_mimeData, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_mimeData)},
    {SIP_MLNAME_CAST(sipName_pixmap), meth_QDrag_pixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_pixmap)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QDrag_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QDrag_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QDrag_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setDragCursor), meth_QDrag_setDragCursor, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_setDragCursor)},
    {SIP_MLNAME_CAST(sipName_setHotSpot), meth_QDrag_setHotSpot, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_setHotSpot)},
    {SIP_MLNAME_CAST(sipName_setMimeData), meth_QDrag_setMimeData, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_setMimeData)},
    {SIP_MLNAME_CAST(sipName_setPixmap), meth_QDrag_setPixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_setPixmap)},
    {SIP_MLNAME_CAST(sipName_source), meth_QDrag_source, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_source)},
    {SIP_MLNAME_CAST(sipName_supportedActions), meth_QDrag_supportedActions, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_supportedActions)},
    {SIP_MLNAME_CAST(sipName_target), meth_QDrag_target, METH_VARARGS, SIP_MLDOC_CAST(doc_QDrag_target)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QDrag_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QDrag[] = {
    {"targetChanged(QObject*)", "\1QDrag.targetChanged[QObject]", 0, 0},
    {"actionChanged(Qt::DropAction)", "\1QDrag.actionChanged[Qt.DropAction]", 0, 0},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QDrag, "\1QDrag(QObject)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QDrag = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QDrag,
        {0}
    },
    {
        sipNameNr_QDrag,
        {0, 0, 1},
        23, methods_QDrag,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDrag,
    -1,
    -1,
    supers_QDrag,
    0,
    init_type_QDrag,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDrag,
    0,
    0,
    0,
    release_QDrag,
    cast_QDrag,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QDrag::staticMetaObject,
    0,
    signals_QDrag,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qdesktopservices.sip"
#include <qdesktopservices.h>
#line 175085 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 175089 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 175092 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 100 "sip/QtCore/qurl.sip"
#include <qurl.h>
#line 175095 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QDesktopServices_openUrl, "QDesktopServices.openUrl(QUrl) -> bool");

extern "C" {static PyObject *meth_QDesktopServices_openUrl(PyObject *, PyObject *);}
static PyObject *meth_QDesktopServices_openUrl(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QUrl* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QUrl, &a0))
        {
            bool sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = QDesktopServices::openUrl(*a0);
            Py_END_ALLOW_THREADS

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDesktopServices, sipName_openUrl, doc_QDesktopServices_openUrl);

    return NULL;
}


PyDoc_STRVAR(doc_QDesktopServices_setUrlHandler, "QDesktopServices.setUrlHandler(str, QObject, str)\n"
    "QDesktopServices.setUrlHandler(str, callable)");

extern "C" {static PyObject *meth_QDesktopServices_setUrlHandler(PyObject *, PyObject *);}
static PyObject *meth_QDesktopServices_setUrlHandler(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QObject* a1;
        const char* a2;
        PyObject *a2Keep;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1J8AA", sipType_QString,&a0, &a0State, sipType_QObject, &a1, &a2Keep, &a2))
        {
            QDesktopServices::setUrlHandler(*a0,a1,a2);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_DECREF(a2Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        PyObject * a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1F", sipType_QString,&a0, &a0State, &a1))
        {
#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qdesktopservices.sip"
        // Allow a callable that must be a slot of a QObject, although we never tell
        // the user if it isn't.
        if (PyMethod_Check(a1))
        {
            PyObject *self = PyMethod_GET_SELF(a1);
            PyObject *func = PyMethod_GET_FUNCTION(a1);
        
            int iserr = 0;
            QObject *receiver = reinterpret_cast<QObject *>(sipForceConvertToType(
                    self, sipType_QObject, NULL, SIP_NOT_NONE, NULL, &iserr));
        
            if (!iserr && PyFunction_Check(func))
            {
                PyObject *ascii_obj = ((PyFunctionObject *)func)->func_name;
                const char *ascii = sipString_AsASCIIString(&ascii_obj);
        
                if (ascii)
                {
                    QDesktopServices::setUrlHandler(*a0, receiver, ascii);
        
                    Py_DECREF(ascii_obj);
                }
            }
        }
#line 175185 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDesktopServices, sipName_setUrlHandler, doc_QDesktopServices_setUrlHandler);

    return NULL;
}


PyDoc_STRVAR(doc_QDesktopServices_unsetUrlHandler, "QDesktopServices.unsetUrlHandler(str)");

extern "C" {static PyObject *meth_QDesktopServices_unsetUrlHandler(PyObject *, PyObject *);}
static PyObject *meth_QDesktopServices_unsetUrlHandler(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            QDesktopServices::unsetUrlHandler(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QDesktopServices, sipName_unsetUrlHandler, doc_QDesktopServices_unsetUrlHandler);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QDesktopServices(void *, const sipTypeDef *);}
static void *cast_QDesktopServices(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QDesktopServices)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QDesktopServices(void *, int);}
static void release_QDesktopServices(void *sipCppV,int)
{
    delete reinterpret_cast<QDesktopServices *>(sipCppV);
}


extern "C" {static void assign_QDesktopServices(void *, SIP_SSIZE_T, const void *);}
static void assign_QDesktopServices(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QDesktopServices *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QDesktopServices *>(sipSrc);
}


extern "C" {static void *array_QDesktopServices(SIP_SSIZE_T);}
static void *array_QDesktopServices(SIP_SSIZE_T sipNrElem)
{
    return new QDesktopServices[sipNrElem];
}


extern "C" {static void *copy_QDesktopServices(const void *, SIP_SSIZE_T);}
static void *copy_QDesktopServices(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QDesktopServices(reinterpret_cast<const QDesktopServices *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QDesktopServices(sipSimpleWrapper *);}
static void dealloc_QDesktopServices(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QDesktopServices(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QDesktopServices(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QDesktopServices(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QDesktopServices *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QDesktopServices();

            return sipCpp;
        }
    }

    {
        const QDesktopServices* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QDesktopServices, &a0))
        {
            sipCpp = new QDesktopServices(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QDesktopServices[] = {
    {SIP_MLNAME_CAST(sipName_openUrl), meth_QDesktopServices_openUrl, METH_VARARGS, SIP_MLDOC_CAST(doc_QDesktopServices_openUrl)},
    {SIP_MLNAME_CAST(sipName_setUrlHandler), meth_QDesktopServices_setUrlHandler, METH_VARARGS, SIP_MLDOC_CAST(doc_QDesktopServices_setUrlHandler)},
    {SIP_MLNAME_CAST(sipName_unsetUrlHandler), meth_QDesktopServices_unsetUrlHandler, METH_VARARGS, SIP_MLDOC_CAST(doc_QDesktopServices_unsetUrlHandler)}
};

PyDoc_STRVAR(doc_QDesktopServices, "\1QDesktopServices()\n"
    "QDesktopServices(QDesktopServices)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QDesktopServices = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QDesktopServices,
        {0}
    },
    {
        sipNameNr_QDesktopServices,
        {0, 0, 1},
        3, methods_QDesktopServices,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QDesktopServices,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QDesktopServices,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QDesktopServices,
    assign_QDesktopServices,
    array_QDesktopServices,
    copy_QDesktopServices,
    release_QDesktopServices,
    cast_QDesktopServices,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
#include <qcursor.h>
#line 175374 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175378 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 175381 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 175384 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 175387 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 175390 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QCursor_shape, "QCursor.shape() -> Qt.CursorShape");

extern "C" {static PyObject *meth_QCursor_shape(PyObject *, PyObject *);}
static PyObject *meth_QCursor_shape(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QCursor, &sipCpp))
        {
            Qt::CursorShape sipRes;

            sipRes = sipCpp->shape();

            return sipConvertFromEnum(sipRes,sipType_Qt_CursorShape);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QCursor, sipName_shape, doc_QCursor_shape);

    return NULL;
}


PyDoc_STRVAR(doc_QCursor_setShape, "QCursor.setShape(Qt.CursorShape)");

extern "C" {static PyObject *meth_QCursor_setShape(PyObject *, PyObject *);}
static PyObject *meth_QCursor_setShape(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::CursorShape a0;
        QCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QCursor, &sipCpp, sipType_Qt_CursorShape, &a0))
        {
            sipCpp->setShape(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QCursor, sipName_setShape, doc_QCursor_setShape);

    return NULL;
}


PyDoc_STRVAR(doc_QCursor_bitmap, "QCursor.bitmap() -> QBitmap");

extern "C" {static PyObject *meth_QCursor_bitmap(PyObject *, PyObject *);}
static PyObject *meth_QCursor_bitmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QCursor, &sipCpp))
        {
            const QBitmap*sipRes;

            sipRes = sipCpp->bitmap();

            return sipConvertFromType(const_cast<QBitmap *>(sipRes),sipType_QBitmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QCursor, sipName_bitmap, doc_QCursor_bitmap);

    return NULL;
}


PyDoc_STRVAR(doc_QCursor_mask, "QCursor.mask() -> QBitmap");

extern "C" {static PyObject *meth_QCursor_mask(PyObject *, PyObject *);}
static PyObject *meth_QCursor_mask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QCursor, &sipCpp))
        {
            const QBitmap*sipRes;

            sipRes = sipCpp->mask();

            return sipConvertFromType(const_cast<QBitmap *>(sipRes),sipType_QBitmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QCursor, sipName_mask, doc_QCursor_mask);

    return NULL;
}


PyDoc_STRVAR(doc_QCursor_pixmap, "QCursor.pixmap() -> QPixmap");

extern "C" {static PyObject *meth_QCursor_pixmap(PyObject *, PyObject *);}
static PyObject *meth_QCursor_pixmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QCursor, &sipCpp))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->pixmap());

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QCursor, sipName_pixmap, doc_QCursor_pixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QCursor_hotSpot, "QCursor.hotSpot() -> QPoint");

extern "C" {static PyObject *meth_QCursor_hotSpot(PyObject *, PyObject *);}
static PyObject *meth_QCursor_hotSpot(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QCursor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QCursor, &sipCpp))
        {
            QPoint*sipRes;

            sipRes = new QPoint(sipCpp->hotSpot());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QCursor, sipName_hotSpot, doc_QCursor_hotSpot);

    return NULL;
}


PyDoc_STRVAR(doc_QCursor_pos, "QCursor.pos() -> QPoint");

extern "C" {static PyObject *meth_QCursor_pos(PyObject *, PyObject *);}
static PyObject *meth_QCursor_pos(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QPoint*sipRes;

            sipRes = new QPoint(QCursor::pos());

            return sipConvertFromNewType(sipRes,sipType_QPoint,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QCursor, sipName_pos, doc_QCursor_pos);

    return NULL;
}


PyDoc_STRVAR(doc_QCursor_setPos, "QCursor.setPos(int, int)\n"
    "QCursor.setPos(QPoint)");

extern "C" {static PyObject *meth_QCursor_setPos(PyObject *, PyObject *);}
static PyObject *meth_QCursor_setPos(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;

        if (sipParseArgs(&sipParseErr, sipArgs, "ii", &a0, &a1))
        {
            QCursor::setPos(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const QPoint* a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9", sipType_QPoint, &a0))
        {
            QCursor::setPos(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QCursor, sipName_setPos, doc_QCursor_setPos);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QCursor(void *, const sipTypeDef *);}
static void *cast_QCursor(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QCursor)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QCursor(void *, int);}
static void release_QCursor(void *sipCppV,int)
{
    delete reinterpret_cast<QCursor *>(sipCppV);
}


extern "C" {static void assign_QCursor(void *, SIP_SSIZE_T, const void *);}
static void assign_QCursor(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QCursor *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QCursor *>(sipSrc);
}


extern "C" {static void *array_QCursor(SIP_SSIZE_T);}
static void *array_QCursor(SIP_SSIZE_T sipNrElem)
{
    return new QCursor[sipNrElem];
}


extern "C" {static void *copy_QCursor(const void *, SIP_SSIZE_T);}
static void *copy_QCursor(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QCursor(reinterpret_cast<const QCursor *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QCursor(sipSimpleWrapper *);}
static void dealloc_QCursor(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QCursor(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QCursor(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QCursor(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QCursor *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QCursor();

            return sipCpp;
        }
    }

    {
        Qt::CursorShape a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_Qt_CursorShape, &a0))
        {
            sipCpp = new QCursor(a0);

            return sipCpp;
        }
    }

    {
        const QBitmap* a0;
        const QBitmap* a1;
        int a2 = -1;
        int a3 = -1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_hotX,
            sipName_hotY,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9J9|ii", sipType_QBitmap, &a0, sipType_QBitmap, &a1, &a2, &a3))
        {
            sipCpp = new QCursor(*a0,*a1,a2,a3);

            return sipCpp;
        }
    }

    {
        const QPixmap* a0;
        int a1 = -1;
        int a2 = -1;

        static const char *sipKwdList[] = {
            NULL,
            sipName_hotX,
            sipName_hotY,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9|ii", sipType_QPixmap, &a0, &a1, &a2))
        {
            sipCpp = new QCursor(*a0,a1,a2);

            return sipCpp;
        }
    }

    {
        const QCursor* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QCursor, &a0, &a0State))
        {
            sipCpp = new QCursor(*a0);
            sipReleaseType(const_cast<QCursor *>(a0),sipType_QCursor,a0State);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 61 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
        if (a0->canConvert<QCursor>())
            sipCpp = new QCursor(a0->value<QCursor>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 175762 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QCursor(PyObject *, void **, int *, PyObject *);}
static int convertTo_QCursor(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QCursor **sipCppPtr = reinterpret_cast<QCursor **>(sipCppPtrV);

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcursor.sip"
// SIP doesn't support automatic type convertors so we explicitly allow a
// Qt::CursorShape to be used whenever a QCursor is expected.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Qt_CursorShape)) ||
            sipCanConvertToType(sipPy, sipType_QCursor, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Qt_CursorShape)))
{
    *sipCppPtr = new QCursor((Qt::CursorShape)SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QCursor *>(sipConvertToType(sipPy, sipType_QCursor, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 175807 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


static PyMethodDef methods_QCursor[] = {
    {SIP_MLNAME_CAST(sipName_bitmap), meth_QCursor_bitmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QCursor_bitmap)},
    {SIP_MLNAME_CAST(sipName_hotSpot), meth_QCursor_hotSpot, METH_VARARGS, SIP_MLDOC_CAST(doc_QCursor_hotSpot)},
    {SIP_MLNAME_CAST(sipName_mask), meth_QCursor_mask, METH_VARARGS, SIP_MLDOC_CAST(doc_QCursor_mask)},
    {SIP_MLNAME_CAST(sipName_pixmap), meth_QCursor_pixmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QCursor_pixmap)},
    {SIP_MLNAME_CAST(sipName_pos), meth_QCursor_pos, METH_VARARGS, SIP_MLDOC_CAST(doc_QCursor_pos)},
    {SIP_MLNAME_CAST(sipName_setPos), meth_QCursor_setPos, METH_VARARGS, SIP_MLDOC_CAST(doc_QCursor_setPos)},
    {SIP_MLNAME_CAST(sipName_setShape), meth_QCursor_setShape, METH_VARARGS, SIP_MLDOC_CAST(doc_QCursor_setShape)},
    {SIP_MLNAME_CAST(sipName_shape), meth_QCursor_shape, METH_VARARGS, SIP_MLDOC_CAST(doc_QCursor_shape)}
};

PyDoc_STRVAR(doc_QCursor, "\1QCursor()\n"
    "QCursor(Qt.CursorShape)\n"
    "QCursor(QBitmap, QBitmap, int hotX=-1, int hotY=-1)\n"
    "QCursor(QPixmap, int hotX=-1, int hotY=-1)\n"
    "QCursor(QCursor)\n"
    "QCursor(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QCursor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QCursor,
        {0}
    },
    {
        sipNameNr_QCursor,
        {0, 0, 1},
        8, methods_QCursor,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QCursor,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QCursor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QCursor,
    assign_QCursor,
    array_QCursor,
    copy_QCursor,
    release_QCursor,
    cast_QCursor,
    convertTo_QCursor,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qclipboard.sip"
#include <qclipboard.h>
#line 175887 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 175891 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 175894 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 175897 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qmimedata.sip"
#include <qmimedata.h>
#line 175900 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 175903 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 175906 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 175909 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 175912 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 175915 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 175918 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 175921 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 175924 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 175927 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175930 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 175933 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 175936 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 175939 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 175942 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 175945 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QClipboard_clear, "QClipboard.clear(QClipboard.Mode mode=QClipboard.Clipboard)");

extern "C" {static PyObject *meth_QClipboard_clear(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QClipboard_clear(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QClipboard::Mode a0 = QClipboard::Clipboard;
        QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QClipboard, &sipCpp, sipType_QClipboard_Mode, &a0))
        {
            sipCpp->clear(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_clear, doc_QClipboard_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_supportsFindBuffer, "QClipboard.supportsFindBuffer() -> bool");

extern "C" {static PyObject *meth_QClipboard_supportsFindBuffer(PyObject *, PyObject *);}
static PyObject *meth_QClipboard_supportsFindBuffer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QClipboard *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QClipboard, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->supportsFindBuffer();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_supportsFindBuffer, doc_QClipboard_supportsFindBuffer);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_supportsSelection, "QClipboard.supportsSelection() -> bool");

extern "C" {static PyObject *meth_QClipboard_supportsSelection(PyObject *, PyObject *);}
static PyObject *meth_QClipboard_supportsSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QClipboard *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QClipboard, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->supportsSelection();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_supportsSelection, doc_QClipboard_supportsSelection);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_ownsClipboard, "QClipboard.ownsClipboard() -> bool");

extern "C" {static PyObject *meth_QClipboard_ownsClipboard(PyObject *, PyObject *);}
static PyObject *meth_QClipboard_ownsClipboard(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QClipboard *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QClipboard, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->ownsClipboard();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_ownsClipboard, doc_QClipboard_ownsClipboard);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_ownsFindBuffer, "QClipboard.ownsFindBuffer() -> bool");

extern "C" {static PyObject *meth_QClipboard_ownsFindBuffer(PyObject *, PyObject *);}
static PyObject *meth_QClipboard_ownsFindBuffer(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QClipboard *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QClipboard, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->ownsFindBuffer();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_ownsFindBuffer, doc_QClipboard_ownsFindBuffer);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_ownsSelection, "QClipboard.ownsSelection() -> bool");

extern "C" {static PyObject *meth_QClipboard_ownsSelection(PyObject *, PyObject *);}
static PyObject *meth_QClipboard_ownsSelection(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QClipboard *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QClipboard, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->ownsSelection();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_ownsSelection, doc_QClipboard_ownsSelection);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_text, "QClipboard.text(QClipboard.Mode mode=QClipboard.Clipboard) -> str\n"
    "QClipboard.text(str, QClipboard.Mode mode=QClipboard.Clipboard) -> (str, str)");

extern "C" {static PyObject *meth_QClipboard_text(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QClipboard_text(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QClipboard::Mode a0 = QClipboard::Clipboard;
        const QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QClipboard, &sipCpp, sipType_QClipboard_Mode, &a0))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->text(a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        QClipboard::Mode a1 = QClipboard::Clipboard;
        const QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|E", &sipSelf, sipType_QClipboard, &sipCpp, sipType_QString,&a0, &a0State, sipType_QClipboard_Mode, &a1))
        {
            PyObject * sipRes = 0;

#line 49 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qclipboard.sip"
        QString *text;
        QString *subtype = new QString(*a0);
        
        Py_BEGIN_ALLOW_THREADS
        text = new QString(sipCpp->text(*subtype, a1));
        Py_END_ALLOW_THREADS
        
        PyObject *text_obj = sipConvertFromNewType(text, sipType_QString, NULL);
        PyObject *subtype_obj = sipConvertFromNewType(subtype, sipType_QString, NULL);
        
        if (text_obj && subtype_obj)
            sipRes = PyTuple_Pack(2, text_obj, subtype_obj);
        
        Py_XDECREF(text_obj);
        Py_XDECREF(subtype_obj);
#line 176171 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipRes;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_text, doc_QClipboard_text);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_setText, "QClipboard.setText(str, QClipboard.Mode mode=QClipboard.Clipboard)");

extern "C" {static PyObject *meth_QClipboard_setText(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QClipboard_setText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QClipboard::Mode a1 = QClipboard::Clipboard;
        QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|E", &sipSelf, sipType_QClipboard, &sipCpp, sipType_QString,&a0, &a0State, sipType_QClipboard_Mode, &a1))
        {
            sipCpp->setText(*a0,a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_setText, doc_QClipboard_setText);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_mimeData, "QClipboard.mimeData(QClipboard.Mode mode=QClipboard.Clipboard) -> QMimeData");

extern "C" {static PyObject *meth_QClipboard_mimeData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QClipboard_mimeData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QClipboard::Mode a0 = QClipboard::Clipboard;
        const QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QClipboard, &sipCpp, sipType_QClipboard_Mode, &a0))
        {
            const QMimeData*sipRes;

            sipRes = sipCpp->mimeData(a0);

            return sipConvertFromType(const_cast<QMimeData *>(sipRes),sipType_QMimeData,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_mimeData, doc_QClipboard_mimeData);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_setMimeData, "QClipboard.setMimeData(QMimeData, QClipboard.Mode mode=QClipboard.Clipboard)");

extern "C" {static PyObject *meth_QClipboard_setMimeData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QClipboard_setMimeData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QMimeData* a0;
        PyObject *a0Wrapper;
        QClipboard::Mode a1 = QClipboard::Clipboard;
        QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B@J8|E", &sipSelf, sipType_QClipboard, &sipCpp, &a0Wrapper, sipType_QMimeData, &a0, sipType_QClipboard_Mode, &a1))
        {
#line 70 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qclipboard.sip"
        Py_BEGIN_ALLOW_THREADS
        sipCpp->setMimeData(a0, a1);
        Py_END_ALLOW_THREADS
        
        // Transfer ownership to C++ and make sure the Python object stays alive by
        // giving it a reference to itself.  The cycle will be broken by QMimeData's
        // virtual dtor.  The reason we don't do the obvious and just use /Transfer/ is
        // that the QClipboard Python object we would transfer ownership to is likely
        // to be garbage collected immediately afterwards.
        sipTransferTo(a0Wrapper, a0Wrapper);
#line 176283 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_setMimeData, doc_QClipboard_setMimeData);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_image, "QClipboard.image(QClipboard.Mode mode=QClipboard.Clipboard) -> QImage");

extern "C" {static PyObject *meth_QClipboard_image(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QClipboard_image(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QClipboard::Mode a0 = QClipboard::Clipboard;
        const QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QClipboard, &sipCpp, sipType_QClipboard_Mode, &a0))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->image(a0));

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_image, doc_QClipboard_image);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_pixmap, "QClipboard.pixmap(QClipboard.Mode mode=QClipboard.Clipboard) -> QPixmap");

extern "C" {static PyObject *meth_QClipboard_pixmap(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QClipboard_pixmap(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QClipboard::Mode a0 = QClipboard::Clipboard;
        const QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|E", &sipSelf, sipType_QClipboard, &sipCpp, sipType_QClipboard_Mode, &a0))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->pixmap(a0));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_pixmap, doc_QClipboard_pixmap);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_setImage, "QClipboard.setImage(QImage, QClipboard.Mode mode=QClipboard.Clipboard)");

extern "C" {static PyObject *meth_QClipboard_setImage(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QClipboard_setImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage* a0;
        QClipboard::Mode a1 = QClipboard::Clipboard;
        QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QClipboard, &sipCpp, sipType_QImage, &a0, sipType_QClipboard_Mode, &a1))
        {
            sipCpp->setImage(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_setImage, doc_QClipboard_setImage);

    return NULL;
}


PyDoc_STRVAR(doc_QClipboard_setPixmap, "QClipboard.setPixmap(QPixmap, QClipboard.Mode mode=QClipboard.Clipboard)");

extern "C" {static PyObject *meth_QClipboard_setPixmap(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QClipboard_setPixmap(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap* a0;
        QClipboard::Mode a1 = QClipboard::Clipboard;
        QClipboard *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QClipboard, &sipCpp, sipType_QPixmap, &a0, sipType_QClipboard_Mode, &a1))
        {
            sipCpp->setPixmap(*a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QClipboard, sipName_setPixmap, doc_QClipboard_setPixmap);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QClipboard(void *, const sipTypeDef *);}
static void *cast_QClipboard(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QClipboard)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QClipboard *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QClipboard(void *, int);}
static void release_QClipboard(void *,int)
{
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QClipboard[] = {{162, 0, 1}};


static PyMethodDef methods_QClipboard[] = {
    {SIP_MLNAME_CAST(sipName_clear), (PyCFunction)meth_QClipboard_clear, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QClipboard_clear)},
    {SIP_MLNAME_CAST(sipName_image), (PyCFunction)meth_QClipboard_image, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QClipboard_image)},
    {SIP_MLNAME_CAST(sipName_mimeData), (PyCFunction)meth_QClipboard_mimeData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QClipboard_mimeData)},
    {SIP_MLNAME_CAST(sipName_ownsClipboard), meth_QClipboard_ownsClipboard, METH_VARARGS, SIP_MLDOC_CAST(doc_QClipboard_ownsClipboard)},
    {SIP_MLNAME_CAST(sipName_ownsFindBuffer), meth_QClipboard_ownsFindBuffer, METH_VARARGS, SIP_MLDOC_CAST(doc_QClipboard_ownsFindBuffer)},
    {SIP_MLNAME_CAST(sipName_ownsSelection), meth_QClipboard_ownsSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_QClipboard_ownsSelection)},
    {SIP_MLNAME_CAST(sipName_pixmap), (PyCFunction)meth_QClipboard_pixmap, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QClipboard_pixmap)},
    {SIP_MLNAME_CAST(sipName_setImage), (PyCFunction)meth_QClipboard_setImage, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QClipboard_setImage)},
    {SIP_MLNAME_CAST(sipName_setMimeData), (PyCFunction)meth_QClipboard_setMimeData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QClipboard_setMimeData)},
    {SIP_MLNAME_CAST(sipName_setPixmap), (PyCFunction)meth_QClipboard_setPixmap, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QClipboard_setPixmap)},
    {SIP_MLNAME_CAST(sipName_setText), (PyCFunction)meth_QClipboard_setText, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QClipboard_setText)},
    {SIP_MLNAME_CAST(sipName_supportsFindBuffer), meth_QClipboard_supportsFindBuffer, METH_VARARGS, SIP_MLDOC_CAST(doc_QClipboard_supportsFindBuffer)},
    {SIP_MLNAME_CAST(sipName_supportsSelection), meth_QClipboard_supportsSelection, METH_VARARGS, SIP_MLDOC_CAST(doc_QClipboard_supportsSelection)},
    {SIP_MLNAME_CAST(sipName_text), (PyCFunction)meth_QClipboard_text, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QClipboard_text)}
};

static sipEnumMemberDef enummembers_QClipboard[] = {
    {sipName_Clipboard, static_cast<int>(QClipboard::Clipboard), 10},
    {sipName_FindBuffer, static_cast<int>(QClipboard::FindBuffer), 10},
    {sipName_Selection, static_cast<int>(QClipboard::Selection), 10},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_QClipboard[] = {
    {"selectionChanged()", "\1QClipboard.selectionChanged", 0, 0},
    {"findBufferChanged()", "\1QClipboard.findBufferChanged", 0, 0},
    {"dataChanged()", "\1QClipboard.dataChanged", 0, 0},
    {"changed(QClipboard::Mode)", "\1QClipboard.changed[QClipboard.Mode]", 0, 0},
    {0, 0, 0, 0}
};


pyqt5ClassTypeDef sipTypeDef_QtGui_QClipboard = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QClipboard,
        {0}
    },
    {
        sipNameNr_QClipboard,
        {0, 0, 1},
        14, methods_QClipboard,
        3, enummembers_QClipboard,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_QClipboard,
    0,
    0,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    0,
    0,
    0,
    0,
    release_QClipboard,
    cast_QClipboard,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QClipboard::staticMetaObject,
    0,
    signals_QClipboard,
    0
};

#line 218 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 176544 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 176548 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 130 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 176551 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 135 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 176555 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 176558 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QConicalGradient_center, "QConicalGradient.center() -> QPointF");

extern "C" {static PyObject *meth_QConicalGradient_center(PyObject *, PyObject *);}
static PyObject *meth_QConicalGradient_center(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QConicalGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QConicalGradient, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->center());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QConicalGradient, sipName_center, doc_QConicalGradient_center);

    return NULL;
}


PyDoc_STRVAR(doc_QConicalGradient_angle, "QConicalGradient.angle() -> float");

extern "C" {static PyObject *meth_QConicalGradient_angle(PyObject *, PyObject *);}
static PyObject *meth_QConicalGradient_angle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QConicalGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QConicalGradient, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->angle();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QConicalGradient, sipName_angle, doc_QConicalGradient_angle);

    return NULL;
}


PyDoc_STRVAR(doc_QConicalGradient_setCenter, "QConicalGradient.setCenter(QPointF)\n"
    "QConicalGradient.setCenter(float, float)");

extern "C" {static PyObject *meth_QConicalGradient_setCenter(PyObject *, PyObject *);}
static PyObject *meth_QConicalGradient_setCenter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QConicalGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QConicalGradient, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->setCenter(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        QConicalGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QConicalGradient, &sipCpp, &a0, &a1))
        {
            sipCpp->setCenter(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QConicalGradient, sipName_setCenter, doc_QConicalGradient_setCenter);

    return NULL;
}


PyDoc_STRVAR(doc_QConicalGradient_setAngle, "QConicalGradient.setAngle(float)");

extern "C" {static PyObject *meth_QConicalGradient_setAngle(PyObject *, PyObject *);}
static PyObject *meth_QConicalGradient_setAngle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QConicalGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QConicalGradient, &sipCpp, &a0))
        {
            sipCpp->setAngle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QConicalGradient, sipName_setAngle, doc_QConicalGradient_setAngle);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QConicalGradient(void *, const sipTypeDef *);}
static void *cast_QConicalGradient(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QConicalGradient)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QGradient)->ctd_cast((QGradient *)(QConicalGradient *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QConicalGradient(void *, int);}
static void release_QConicalGradient(void *sipCppV,int)
{
    delete reinterpret_cast<QConicalGradient *>(sipCppV);
}


extern "C" {static void assign_QConicalGradient(void *, SIP_SSIZE_T, const void *);}
static void assign_QConicalGradient(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QConicalGradient *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QConicalGradient *>(sipSrc);
}


extern "C" {static void *array_QConicalGradient(SIP_SSIZE_T);}
static void *array_QConicalGradient(SIP_SSIZE_T sipNrElem)
{
    return new QConicalGradient[sipNrElem];
}


extern "C" {static void *copy_QConicalGradient(const void *, SIP_SSIZE_T);}
static void *copy_QConicalGradient(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QConicalGradient(reinterpret_cast<const QConicalGradient *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QConicalGradient(sipSimpleWrapper *);}
static void dealloc_QConicalGradient(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QConicalGradient(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QConicalGradient(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QConicalGradient(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QConicalGradient *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QConicalGradient();

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        qreal a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1d", sipType_QPointF, &a0, &a0State, &a1))
        {
            sipCpp = new QConicalGradient(*a0,a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipCpp;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ddd", &a0, &a1, &a2))
        {
            sipCpp = new QConicalGradient(a0,a1,a2);

            return sipCpp;
        }
    }

    {
        const QConicalGradient* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QConicalGradient, &a0))
        {
            sipCpp = new QConicalGradient(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QConicalGradient[] = {{49, 255, 1}};


static PyMethodDef methods_QConicalGradient[] = {
    {SIP_MLNAME_CAST(sipName_angle), meth_QConicalGradient_angle, METH_VARARGS, SIP_MLDOC_CAST(doc_QConicalGradient_angle)},
    {SIP_MLNAME_CAST(sipName_center), meth_QConicalGradient_center, METH_VARARGS, SIP_MLDOC_CAST(doc_QConicalGradient_center)},
    {SIP_MLNAME_CAST(sipName_setAngle), meth_QConicalGradient_setAngle, METH_VARARGS, SIP_MLDOC_CAST(doc_QConicalGradient_setAngle)},
    {SIP_MLNAME_CAST(sipName_setCenter), meth_QConicalGradient_setCenter, METH_VARARGS, SIP_MLDOC_CAST(doc_QConicalGradient_setCenter)}
};

PyDoc_STRVAR(doc_QConicalGradient, "\1QConicalGradient()\n"
    "QConicalGradient(QPointF, float)\n"
    "QConicalGradient(float, float, float)\n"
    "QConicalGradient(QConicalGradient)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QConicalGradient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QConicalGradient,
        {0}
    },
    {
        sipNameNr_QConicalGradient,
        {0, 0, 1},
        4, methods_QConicalGradient,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QConicalGradient,
    -1,
    -1,
    supers_QConicalGradient,
    0,
    init_type_QConicalGradient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QConicalGradient,
    assign_QConicalGradient,
    array_QConicalGradient,
    copy_QConicalGradient,
    release_QConicalGradient,
    cast_QConicalGradient,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 190 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 176871 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 176875 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 130 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 176878 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 135 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 176882 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 176885 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QRadialGradient_center, "QRadialGradient.center() -> QPointF");

extern "C" {static PyObject *meth_QRadialGradient_center(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_center(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRadialGradient, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->center());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_center, doc_QRadialGradient_center);

    return NULL;
}


PyDoc_STRVAR(doc_QRadialGradient_focalPoint, "QRadialGradient.focalPoint() -> QPointF");

extern "C" {static PyObject *meth_QRadialGradient_focalPoint(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_focalPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRadialGradient, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->focalPoint());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_focalPoint, doc_QRadialGradient_focalPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QRadialGradient_radius, "QRadialGradient.radius() -> float");

extern "C" {static PyObject *meth_QRadialGradient_radius(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_radius(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRadialGradient, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->radius();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_radius, doc_QRadialGradient_radius);

    return NULL;
}


PyDoc_STRVAR(doc_QRadialGradient_setCenter, "QRadialGradient.setCenter(QPointF)\n"
    "QRadialGradient.setCenter(float, float)");

extern "C" {static PyObject *meth_QRadialGradient_setCenter(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_setCenter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QRadialGradient, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->setCenter(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QRadialGradient, &sipCpp, &a0, &a1))
        {
            sipCpp->setCenter(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_setCenter, doc_QRadialGradient_setCenter);

    return NULL;
}


PyDoc_STRVAR(doc_QRadialGradient_setFocalPoint, "QRadialGradient.setFocalPoint(QPointF)\n"
    "QRadialGradient.setFocalPoint(float, float)");

extern "C" {static PyObject *meth_QRadialGradient_setFocalPoint(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_setFocalPoint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QRadialGradient, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->setFocalPoint(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QRadialGradient, &sipCpp, &a0, &a1))
        {
            sipCpp->setFocalPoint(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_setFocalPoint, doc_QRadialGradient_setFocalPoint);

    return NULL;
}


PyDoc_STRVAR(doc_QRadialGradient_setRadius, "QRadialGradient.setRadius(float)");

extern "C" {static PyObject *meth_QRadialGradient_setRadius(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_setRadius(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QRadialGradient, &sipCpp, &a0))
        {
            sipCpp->setRadius(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_setRadius, doc_QRadialGradient_setRadius);

    return NULL;
}


PyDoc_STRVAR(doc_QRadialGradient_centerRadius, "QRadialGradient.centerRadius() -> float");

extern "C" {static PyObject *meth_QRadialGradient_centerRadius(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_centerRadius(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRadialGradient, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->centerRadius();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_centerRadius, doc_QRadialGradient_centerRadius);

    return NULL;
}


PyDoc_STRVAR(doc_QRadialGradient_setCenterRadius, "QRadialGradient.setCenterRadius(float)");

extern "C" {static PyObject *meth_QRadialGradient_setCenterRadius(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_setCenterRadius(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QRadialGradient, &sipCpp, &a0))
        {
            sipCpp->setCenterRadius(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_setCenterRadius, doc_QRadialGradient_setCenterRadius);

    return NULL;
}


PyDoc_STRVAR(doc_QRadialGradient_focalRadius, "QRadialGradient.focalRadius() -> float");

extern "C" {static PyObject *meth_QRadialGradient_focalRadius(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_focalRadius(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QRadialGradient, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->focalRadius();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_focalRadius, doc_QRadialGradient_focalRadius);

    return NULL;
}


PyDoc_STRVAR(doc_QRadialGradient_setFocalRadius, "QRadialGradient.setFocalRadius(float)");

extern "C" {static PyObject *meth_QRadialGradient_setFocalRadius(PyObject *, PyObject *);}
static PyObject *meth_QRadialGradient_setFocalRadius(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QRadialGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QRadialGradient, &sipCpp, &a0))
        {
            sipCpp->setFocalRadius(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QRadialGradient, sipName_setFocalRadius, doc_QRadialGradient_setFocalRadius);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QRadialGradient(void *, const sipTypeDef *);}
static void *cast_QRadialGradient(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QRadialGradient)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QGradient)->ctd_cast((QGradient *)(QRadialGradient *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QRadialGradient(void *, int);}
static void release_QRadialGradient(void *sipCppV,int)
{
    delete reinterpret_cast<QRadialGradient *>(sipCppV);
}


extern "C" {static void assign_QRadialGradient(void *, SIP_SSIZE_T, const void *);}
static void assign_QRadialGradient(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QRadialGradient *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QRadialGradient *>(sipSrc);
}


extern "C" {static void *array_QRadialGradient(SIP_SSIZE_T);}
static void *array_QRadialGradient(SIP_SSIZE_T sipNrElem)
{
    return new QRadialGradient[sipNrElem];
}


extern "C" {static void *copy_QRadialGradient(const void *, SIP_SSIZE_T);}
static void *copy_QRadialGradient(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QRadialGradient(reinterpret_cast<const QRadialGradient *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QRadialGradient(sipSimpleWrapper *);}
static void dealloc_QRadialGradient(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QRadialGradient(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QRadialGradient(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QRadialGradient(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QRadialGradient *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QRadialGradient();

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        qreal a1;
        const QPointF* a2;
        int a2State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1dJ1", sipType_QPointF, &a0, &a0State, &a1, sipType_QPointF, &a2, &a2State))
        {
            sipCpp = new QRadialGradient(*a0,a1,*a2);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        qreal a1;
        const QPointF* a2;
        int a2State = 0;
        qreal a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1dJ1d", sipType_QPointF, &a0, &a0State, &a1, sipType_QPointF, &a2, &a2State, &a3))
        {
            sipCpp = new QRadialGradient(*a0,a1,*a2,a3);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a2),sipType_QPointF,a2State);

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        qreal a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1d", sipType_QPointF, &a0, &a0State, &a1))
        {
            sipCpp = new QRadialGradient(*a0,a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipCpp;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ddddd", &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp = new QRadialGradient(a0,a1,a2,a3,a4);

            return sipCpp;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;
        qreal a5;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "dddddd", &a0, &a1, &a2, &a3, &a4, &a5))
        {
            sipCpp = new QRadialGradient(a0,a1,a2,a3,a4,a5);

            return sipCpp;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ddd", &a0, &a1, &a2))
        {
            sipCpp = new QRadialGradient(a0,a1,a2);

            return sipCpp;
        }
    }

    {
        const QRadialGradient* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QRadialGradient, &a0))
        {
            sipCpp = new QRadialGradient(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QRadialGradient[] = {{49, 255, 1}};


static PyMethodDef methods_QRadialGradient[] = {
    {SIP_MLNAME_CAST(sipName_center), meth_QRadialGradient_center, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_center)},
    {SIP_MLNAME_CAST(sipName_centerRadius), meth_QRadialGradient_centerRadius, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_centerRadius)},
    {SIP_MLNAME_CAST(sipName_focalPoint), meth_QRadialGradient_focalPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_focalPoint)},
    {SIP_MLNAME_CAST(sipName_focalRadius), meth_QRadialGradient_focalRadius, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_focalRadius)},
    {SIP_MLNAME_CAST(sipName_radius), meth_QRadialGradient_radius, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_radius)},
    {SIP_MLNAME_CAST(sipName_setCenter), meth_QRadialGradient_setCenter, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_setCenter)},
    {SIP_MLNAME_CAST(sipName_setCenterRadius), meth_QRadialGradient_setCenterRadius, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_setCenterRadius)},
    {SIP_MLNAME_CAST(sipName_setFocalPoint), meth_QRadialGradient_setFocalPoint, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_setFocalPoint)},
    {SIP_MLNAME_CAST(sipName_setFocalRadius), meth_QRadialGradient_setFocalRadius, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_setFocalRadius)},
    {SIP_MLNAME_CAST(sipName_setRadius), meth_QRadialGradient_setRadius, METH_VARARGS, SIP_MLDOC_CAST(doc_QRadialGradient_setRadius)}
};

PyDoc_STRVAR(doc_QRadialGradient, "\1QRadialGradient()\n"
    "QRadialGradient(QPointF, float, QPointF)\n"
    "QRadialGradient(QPointF, float, QPointF, float)\n"
    "QRadialGradient(QPointF, float)\n"
    "QRadialGradient(float, float, float, float, float)\n"
    "QRadialGradient(float, float, float, float, float, float)\n"
    "QRadialGradient(float, float, float)\n"
    "QRadialGradient(QRadialGradient)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QRadialGradient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QRadialGradient,
        {0}
    },
    {
        sipNameNr_QRadialGradient,
        {0, 0, 1},
        10, methods_QRadialGradient,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QRadialGradient,
    -1,
    -1,
    supers_QRadialGradient,
    0,
    init_type_QRadialGradient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QRadialGradient,
    assign_QRadialGradient,
    array_QRadialGradient,
    copy_QRadialGradient,
    release_QRadialGradient,
    cast_QRadialGradient,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 172 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 177453 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 177457 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 130 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 177460 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 135 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 177464 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 177467 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QLinearGradient_start, "QLinearGradient.start() -> QPointF");

extern "C" {static PyObject *meth_QLinearGradient_start(PyObject *, PyObject *);}
static PyObject *meth_QLinearGradient_start(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLinearGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLinearGradient, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->start());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLinearGradient, sipName_start, doc_QLinearGradient_start);

    return NULL;
}


PyDoc_STRVAR(doc_QLinearGradient_finalStop, "QLinearGradient.finalStop() -> QPointF");

extern "C" {static PyObject *meth_QLinearGradient_finalStop(PyObject *, PyObject *);}
static PyObject *meth_QLinearGradient_finalStop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QLinearGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLinearGradient, &sipCpp))
        {
            QPointF*sipRes;

            sipRes = new QPointF(sipCpp->finalStop());

            return sipConvertFromNewType(sipRes,sipType_QPointF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLinearGradient, sipName_finalStop, doc_QLinearGradient_finalStop);

    return NULL;
}


PyDoc_STRVAR(doc_QLinearGradient_setStart, "QLinearGradient.setStart(QPointF)\n"
    "QLinearGradient.setStart(float, float)");

extern "C" {static PyObject *meth_QLinearGradient_setStart(PyObject *, PyObject *);}
static PyObject *meth_QLinearGradient_setStart(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QLinearGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QLinearGradient, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->setStart(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        QLinearGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QLinearGradient, &sipCpp, &a0, &a1))
        {
            sipCpp->setStart(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLinearGradient, sipName_setStart, doc_QLinearGradient_setStart);

    return NULL;
}


PyDoc_STRVAR(doc_QLinearGradient_setFinalStop, "QLinearGradient.setFinalStop(QPointF)\n"
    "QLinearGradient.setFinalStop(float, float)");

extern "C" {static PyObject *meth_QLinearGradient_setFinalStop(PyObject *, PyObject *);}
static PyObject *meth_QLinearGradient_setFinalStop(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        QLinearGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QLinearGradient, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            sipCpp->setFinalStop(*a0);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        qreal a0;
        qreal a1;
        QLinearGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QLinearGradient, &sipCpp, &a0, &a1))
        {
            sipCpp->setFinalStop(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QLinearGradient, sipName_setFinalStop, doc_QLinearGradient_setFinalStop);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QLinearGradient(void *, const sipTypeDef *);}
static void *cast_QLinearGradient(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QLinearGradient)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QGradient)->ctd_cast((QGradient *)(QLinearGradient *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QLinearGradient(void *, int);}
static void release_QLinearGradient(void *sipCppV,int)
{
    delete reinterpret_cast<QLinearGradient *>(sipCppV);
}


extern "C" {static void assign_QLinearGradient(void *, SIP_SSIZE_T, const void *);}
static void assign_QLinearGradient(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QLinearGradient *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QLinearGradient *>(sipSrc);
}


extern "C" {static void *array_QLinearGradient(SIP_SSIZE_T);}
static void *array_QLinearGradient(SIP_SSIZE_T sipNrElem)
{
    return new QLinearGradient[sipNrElem];
}


extern "C" {static void *copy_QLinearGradient(const void *, SIP_SSIZE_T);}
static void *copy_QLinearGradient(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QLinearGradient(reinterpret_cast<const QLinearGradient *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QLinearGradient(sipSimpleWrapper *);}
static void dealloc_QLinearGradient(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QLinearGradient(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QLinearGradient(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QLinearGradient(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QLinearGradient *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QLinearGradient();

            return sipCpp;
        }
    }

    {
        const QPointF* a0;
        int a0State = 0;
        const QPointF* a1;
        int a1State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J1", sipType_QPointF, &a0, &a0State, sipType_QPointF, &a1, &a1State))
        {
            sipCpp = new QLinearGradient(*a0,*a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);
            sipReleaseType(const_cast<QPointF *>(a1),sipType_QPointF,a1State);

            return sipCpp;
        }
    }

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "dddd", &a0, &a1, &a2, &a3))
        {
            sipCpp = new QLinearGradient(a0,a1,a2,a3);

            return sipCpp;
        }
    }

    {
        const QLinearGradient* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QLinearGradient, &a0))
        {
            sipCpp = new QLinearGradient(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QLinearGradient[] = {{49, 255, 1}};


static PyMethodDef methods_QLinearGradient[] = {
    {SIP_MLNAME_CAST(sipName_finalStop), meth_QLinearGradient_finalStop, METH_VARARGS, SIP_MLDOC_CAST(doc_QLinearGradient_finalStop)},
    {SIP_MLNAME_CAST(sipName_setFinalStop), meth_QLinearGradient_setFinalStop, METH_VARARGS, SIP_MLDOC_CAST(doc_QLinearGradient_setFinalStop)},
    {SIP_MLNAME_CAST(sipName_setStart), meth_QLinearGradient_setStart, METH_VARARGS, SIP_MLDOC_CAST(doc_QLinearGradient_setStart)},
    {SIP_MLNAME_CAST(sipName_start), meth_QLinearGradient_start, METH_VARARGS, SIP_MLDOC_CAST(doc_QLinearGradient_start)}
};

PyDoc_STRVAR(doc_QLinearGradient, "\1QLinearGradient()\n"
    "QLinearGradient(QPointF, QPointF)\n"
    "QLinearGradient(float, float, float, float)\n"
    "QLinearGradient(QLinearGradient)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QLinearGradient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QLinearGradient,
        {0}
    },
    {
        sipNameNr_QLinearGradient,
        {0, 0, 1},
        4, methods_QLinearGradient,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QLinearGradient,
    -1,
    -1,
    supers_QLinearGradient,
    0,
    init_type_QLinearGradient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QLinearGradient,
    assign_QLinearGradient,
    array_QLinearGradient,
    copy_QLinearGradient,
    release_QLinearGradient,
    cast_QLinearGradient,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 130 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 177800 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 135 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#include <qpair.h>
#line 177805 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 177808 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QGradient_type, "QGradient.type() -> QGradient.Type");

extern "C" {static PyObject *meth_QGradient_type(PyObject *, PyObject *);}
static PyObject *meth_QGradient_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGradient, &sipCpp))
        {
            QGradient::Type sipRes;

            sipRes = sipCpp->type();

            return sipConvertFromEnum(sipRes,sipType_QGradient_Type);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGradient, sipName_type, doc_QGradient_type);

    return NULL;
}


PyDoc_STRVAR(doc_QGradient_spread, "QGradient.spread() -> QGradient.Spread");

extern "C" {static PyObject *meth_QGradient_spread(PyObject *, PyObject *);}
static PyObject *meth_QGradient_spread(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGradient, &sipCpp))
        {
            QGradient::Spread sipRes;

            sipRes = sipCpp->spread();

            return sipConvertFromEnum(sipRes,sipType_QGradient_Spread);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGradient, sipName_spread, doc_QGradient_spread);

    return NULL;
}


PyDoc_STRVAR(doc_QGradient_setColorAt, "QGradient.setColorAt(float, QColor)");

extern "C" {static PyObject *meth_QGradient_setColorAt(PyObject *, PyObject *);}
static PyObject *meth_QGradient_setColorAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        const QColor* a1;
        int a1State = 0;
        QGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BdJ1", &sipSelf, sipType_QGradient, &sipCpp, &a0, sipType_QColor, &a1, &a1State))
        {
            sipCpp->setColorAt(a0,*a1);
            sipReleaseType(const_cast<QColor *>(a1),sipType_QColor,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGradient, sipName_setColorAt, doc_QGradient_setColorAt);

    return NULL;
}


PyDoc_STRVAR(doc_QGradient_setStops, "QGradient.setStops(list-of-tuple-of-float-QColor)");

extern "C" {static PyObject *meth_QGradient_setStops(PyObject *, PyObject *);}
static PyObject *meth_QGradient_setStops(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGradientStops* a0;
        int a0State = 0;
        QGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QGradient, &sipCpp, sipType_QVector_0600QPair_2400_0100QColor,&a0, &a0State))
        {
            sipCpp->setStops(*a0);
            sipReleaseType(const_cast<QGradientStops *>(a0),sipType_QVector_0600QPair_2400_0100QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGradient, sipName_setStops, doc_QGradient_setStops);

    return NULL;
}


PyDoc_STRVAR(doc_QGradient_stops, "QGradient.stops() -> list-of-tuple-of-float-QColor");

extern "C" {static PyObject *meth_QGradient_stops(PyObject *, PyObject *);}
static PyObject *meth_QGradient_stops(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGradient, &sipCpp))
        {
            QGradientStops*sipRes;

            sipRes = new QGradientStops(sipCpp->stops());

            return sipConvertFromNewType(sipRes,sipType_QVector_0600QPair_2400_0100QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGradient, sipName_stops, doc_QGradient_stops);

    return NULL;
}


PyDoc_STRVAR(doc_QGradient_setSpread, "QGradient.setSpread(QGradient.Spread)");

extern "C" {static PyObject *meth_QGradient_setSpread(PyObject *, PyObject *);}
static PyObject *meth_QGradient_setSpread(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QGradient::Spread a0;
        QGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QGradient, &sipCpp, sipType_QGradient_Spread, &a0))
        {
            sipCpp->setSpread(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGradient, sipName_setSpread, doc_QGradient_setSpread);

    return NULL;
}


PyDoc_STRVAR(doc_QGradient_coordinateMode, "QGradient.coordinateMode() -> QGradient.CoordinateMode");

extern "C" {static PyObject *meth_QGradient_coordinateMode(PyObject *, PyObject *);}
static PyObject *meth_QGradient_coordinateMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGradient, &sipCpp))
        {
            QGradient::CoordinateMode sipRes;

            sipRes = sipCpp->coordinateMode();

            return sipConvertFromEnum(sipRes,sipType_QGradient_CoordinateMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGradient, sipName_coordinateMode, doc_QGradient_coordinateMode);

    return NULL;
}


PyDoc_STRVAR(doc_QGradient_setCoordinateMode, "QGradient.setCoordinateMode(QGradient.CoordinateMode)");

extern "C" {static PyObject *meth_QGradient_setCoordinateMode(PyObject *, PyObject *);}
static PyObject *meth_QGradient_setCoordinateMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QGradient::CoordinateMode a0;
        QGradient *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QGradient, &sipCpp, sipType_QGradient_CoordinateMode, &a0))
        {
            sipCpp->setCoordinateMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QGradient, sipName_setCoordinateMode, doc_QGradient_setCoordinateMode);

    return NULL;
}


extern "C" {static PyObject *slot_QGradient___ne__(PyObject *,PyObject *);}
static PyObject *slot_QGradient___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QGradient *sipCpp = reinterpret_cast<QGradient *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGradient));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QGradient* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QGradient, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QGradient::operator!=(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QGradient,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QGradient___eq__(PyObject *,PyObject *);}
static PyObject *slot_QGradient___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QGradient *sipCpp = reinterpret_cast<QGradient *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QGradient));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QGradient* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QGradient, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->QGradient::operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QGradient,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QGradient(void *, const sipTypeDef *);}
static void *cast_QGradient(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QGradient)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QGradient(void *, int);}
static void release_QGradient(void *sipCppV,int)
{
    delete reinterpret_cast<QGradient *>(sipCppV);
}


extern "C" {static void assign_QGradient(void *, SIP_SSIZE_T, const void *);}
static void assign_QGradient(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QGradient *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QGradient *>(sipSrc);
}


extern "C" {static void *array_QGradient(SIP_SSIZE_T);}
static void *array_QGradient(SIP_SSIZE_T sipNrElem)
{
    return new QGradient[sipNrElem];
}


extern "C" {static void *copy_QGradient(const void *, SIP_SSIZE_T);}
static void *copy_QGradient(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QGradient(reinterpret_cast<const QGradient *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QGradient(sipSimpleWrapper *);}
static void dealloc_QGradient(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QGradient(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QGradient(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QGradient(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QGradient *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QGradient();

            return sipCpp;
        }
    }

    {
        const QGradient* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QGradient, &a0))
        {
            sipCpp = new QGradient(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QGradient[] = {
    {(void *)slot_QGradient___ne__, ne_slot},
    {(void *)slot_QGradient___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QGradient[] = {
    {SIP_MLNAME_CAST(sipName_coordinateMode), meth_QGradient_coordinateMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QGradient_coordinateMode)},
    {SIP_MLNAME_CAST(sipName_setColorAt), meth_QGradient_setColorAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QGradient_setColorAt)},
    {SIP_MLNAME_CAST(sipName_setCoordinateMode), meth_QGradient_setCoordinateMode, METH_VARARGS, SIP_MLDOC_CAST(doc_QGradient_setCoordinateMode)},
    {SIP_MLNAME_CAST(sipName_setSpread), meth_QGradient_setSpread, METH_VARARGS, SIP_MLDOC_CAST(doc_QGradient_setSpread)},
    {SIP_MLNAME_CAST(sipName_setStops), meth_QGradient_setStops, METH_VARARGS, SIP_MLDOC_CAST(doc_QGradient_setStops)},
    {SIP_MLNAME_CAST(sipName_spread), meth_QGradient_spread, METH_VARARGS, SIP_MLDOC_CAST(doc_QGradient_spread)},
    {SIP_MLNAME_CAST(sipName_stops), meth_QGradient_stops, METH_VARARGS, SIP_MLDOC_CAST(doc_QGradient_stops)},
    {SIP_MLNAME_CAST(sipName_type), meth_QGradient_type, METH_VARARGS, SIP_MLDOC_CAST(doc_QGradient_type)}
};

static sipEnumMemberDef enummembers_QGradient[] = {
    {sipName_ConicalGradient, static_cast<int>(QGradient::ConicalGradient), 52},
    {sipName_LinearGradient, static_cast<int>(QGradient::LinearGradient), 52},
    {sipName_LogicalMode, static_cast<int>(QGradient::LogicalMode), 50},
    {sipName_NoGradient, static_cast<int>(QGradient::NoGradient), 52},
    {sipName_ObjectBoundingMode, static_cast<int>(QGradient::ObjectBoundingMode), 50},
    {sipName_PadSpread, static_cast<int>(QGradient::PadSpread), 51},
    {sipName_RadialGradient, static_cast<int>(QGradient::RadialGradient), 52},
    {sipName_ReflectSpread, static_cast<int>(QGradient::ReflectSpread), 51},
    {sipName_RepeatSpread, static_cast<int>(QGradient::RepeatSpread), 51},
    {sipName_StretchToDeviceMode, static_cast<int>(QGradient::StretchToDeviceMode), 50},
};

PyDoc_STRVAR(doc_QGradient, "\1QGradient()\n"
    "QGradient(QGradient)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QGradient = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QGradient,
        {0}
    },
    {
        sipNameNr_QGradient,
        {0, 0, 1},
        8, methods_QGradient,
        10, enummembers_QGradient,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QGradient,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QGradient,
    init_type_QGradient,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QGradient,
    assign_QGradient,
    array_QGradient,
    copy_QGradient,
    release_QGradient,
    cast_QGradient,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 178268 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 178272 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 178275 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 178278 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 178281 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 130 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 178284 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 178287 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 178290 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QBrush_setStyle, "QBrush.setStyle(Qt.BrushStyle)");

extern "C" {static PyObject *meth_QBrush_setStyle(PyObject *, PyObject *);}
static PyObject *meth_QBrush_setStyle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        Qt::BrushStyle a0;
        QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QBrush, &sipCpp, sipType_Qt_BrushStyle, &a0))
        {
            sipCpp->setStyle(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_setStyle, doc_QBrush_setStyle);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_texture, "QBrush.texture() -> QPixmap");

extern "C" {static PyObject *meth_QBrush_texture(PyObject *, PyObject *);}
static PyObject *meth_QBrush_texture(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBrush, &sipCpp))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->texture());

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_texture, doc_QBrush_texture);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_setTexture, "QBrush.setTexture(QPixmap)");

extern "C" {static PyObject *meth_QBrush_setTexture(PyObject *, PyObject *);}
static PyObject *meth_QBrush_setTexture(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap* a0;
        QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBrush, &sipCpp, sipType_QPixmap, &a0))
        {
            sipCpp->setTexture(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_setTexture, doc_QBrush_setTexture);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_setColor, "QBrush.setColor(QColor)\n"
    "QBrush.setColor(Qt.GlobalColor)");

extern "C" {static PyObject *meth_QBrush_setColor(PyObject *, PyObject *);}
static PyObject *meth_QBrush_setColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;
        QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBrush, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setColor(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        Qt::GlobalColor a0;
        QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QBrush, &sipCpp, sipType_Qt_GlobalColor, &a0))
        {
            sipCpp->setColor(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_setColor, doc_QBrush_setColor);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_gradient, "QBrush.gradient() -> QGradient");

extern "C" {static PyObject *meth_QBrush_gradient(PyObject *, PyObject *);}
static PyObject *meth_QBrush_gradient(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBrush, &sipCpp))
        {
            const QGradient*sipRes;

            sipRes = sipCpp->gradient();

            return sipConvertFromType(const_cast<QGradient *>(sipRes),sipType_QGradient,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_gradient, doc_QBrush_gradient);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_isOpaque, "QBrush.isOpaque() -> bool");

extern "C" {static PyObject *meth_QBrush_isOpaque(PyObject *, PyObject *);}
static PyObject *meth_QBrush_isOpaque(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBrush, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isOpaque();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_isOpaque, doc_QBrush_isOpaque);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_style, "QBrush.style() -> Qt.BrushStyle");

extern "C" {static PyObject *meth_QBrush_style(PyObject *, PyObject *);}
static PyObject *meth_QBrush_style(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBrush, &sipCpp))
        {
            Qt::BrushStyle sipRes;

            sipRes = sipCpp->style();

            return sipConvertFromEnum(sipRes,sipType_Qt_BrushStyle);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_style, doc_QBrush_style);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_color, "QBrush.color() -> QColor");

extern "C" {static PyObject *meth_QBrush_color(PyObject *, PyObject *);}
static PyObject *meth_QBrush_color(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBrush, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->color());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_color, doc_QBrush_color);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_setTextureImage, "QBrush.setTextureImage(QImage)");

extern "C" {static PyObject *meth_QBrush_setTextureImage(PyObject *, PyObject *);}
static PyObject *meth_QBrush_setTextureImage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage* a0;
        QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBrush, &sipCpp, sipType_QImage, &a0))
        {
            sipCpp->setTextureImage(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_setTextureImage, doc_QBrush_setTextureImage);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_textureImage, "QBrush.textureImage() -> QImage");

extern "C" {static PyObject *meth_QBrush_textureImage(PyObject *, PyObject *);}
static PyObject *meth_QBrush_textureImage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBrush, &sipCpp))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->textureImage());

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_textureImage, doc_QBrush_textureImage);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_setTransform, "QBrush.setTransform(QTransform)");

extern "C" {static PyObject *meth_QBrush_setTransform(PyObject *, PyObject *);}
static PyObject *meth_QBrush_setTransform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBrush, &sipCpp, sipType_QTransform, &a0))
        {
            sipCpp->setTransform(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_setTransform, doc_QBrush_setTransform);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_transform, "QBrush.transform() -> QTransform");

extern "C" {static PyObject *meth_QBrush_transform(PyObject *, PyObject *);}
static PyObject *meth_QBrush_transform(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBrush, &sipCpp))
        {
            QTransform*sipRes;

            sipRes = new QTransform(sipCpp->transform());

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_transform, doc_QBrush_transform);

    return NULL;
}


PyDoc_STRVAR(doc_QBrush_swap, "QBrush.swap(QBrush)");

extern "C" {static PyObject *meth_QBrush_swap(PyObject *, PyObject *);}
static PyObject *meth_QBrush_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QBrush* a0;
        int a0State = 0;
        QBrush *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBrush, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->swap(*a0);
            sipReleaseType(a0,sipType_QBrush,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBrush, sipName_swap, doc_QBrush_swap);

    return NULL;
}


extern "C" {static PyObject *slot_QBrush___ne__(PyObject *,PyObject *);}
static PyObject *slot_QBrush___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QBrush *sipCpp = reinterpret_cast<QBrush *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QBrush));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QBrush, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QBrush::operator!=(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QBrush,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QBrush___eq__(PyObject *,PyObject *);}
static PyObject *slot_QBrush___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QBrush *sipCpp = reinterpret_cast<QBrush *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QBrush));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QBrush* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QBrush, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QBrush::operator==(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QBrush,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QBrush(void *, const sipTypeDef *);}
static void *cast_QBrush(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QBrush)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QBrush(void *, int);}
static void release_QBrush(void *sipCppV,int)
{
    delete reinterpret_cast<QBrush *>(sipCppV);
}


extern "C" {static void assign_QBrush(void *, SIP_SSIZE_T, const void *);}
static void assign_QBrush(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QBrush *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QBrush *>(sipSrc);
}


extern "C" {static void *array_QBrush(SIP_SSIZE_T);}
static void *array_QBrush(SIP_SSIZE_T sipNrElem)
{
    return new QBrush[sipNrElem];
}


extern "C" {static void *copy_QBrush(const void *, SIP_SSIZE_T);}
static void *copy_QBrush(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QBrush(reinterpret_cast<const QBrush *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QBrush(sipSimpleWrapper *);}
static void dealloc_QBrush(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QBrush(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QBrush(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QBrush(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QBrush *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QBrush();

            return sipCpp;
        }
    }

    {
        Qt::BrushStyle a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "E", sipType_Qt_BrushStyle, &a0))
        {
            sipCpp = new QBrush(a0);

            return sipCpp;
        }
    }

    {
        const QColor* a0;
        int a0State = 0;
        Qt::BrushStyle a1 = Qt::SolidPattern;

        static const char *sipKwdList[] = {
            NULL,
            sipName_style,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|E", sipType_QColor, &a0, &a0State, sipType_Qt_BrushStyle, &a1))
        {
            sipCpp = new QBrush(*a0,a1);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            return sipCpp;
        }
    }

    {
        Qt::GlobalColor a0;
        Qt::BrushStyle a1 = Qt::SolidPattern;

        static const char *sipKwdList[] = {
            NULL,
            sipName_style,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "E|E", sipType_Qt_GlobalColor, &a0, sipType_Qt_BrushStyle, &a1))
        {
            sipCpp = new QBrush(a0,a1);

            return sipCpp;
        }
    }

    {
        const QColor* a0;
        int a0State = 0;
        const QPixmap* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1J9", sipType_QColor, &a0, &a0State, sipType_QPixmap, &a1))
        {
            sipCpp = new QBrush(*a0,*a1);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            return sipCpp;
        }
    }

    {
        Qt::GlobalColor a0;
        const QPixmap* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "EJ9", sipType_Qt_GlobalColor, &a0, sipType_QPixmap, &a1))
        {
            sipCpp = new QBrush(a0,*a1);

            return sipCpp;
        }
    }

    {
        const QPixmap* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPixmap, &a0))
        {
            sipCpp = new QBrush(*a0);

            return sipCpp;
        }
    }

    {
        const QImage* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QImage, &a0))
        {
            sipCpp = new QBrush(*a0);

            return sipCpp;
        }
    }

    {
        const QGradient* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QGradient, &a0))
        {
            sipCpp = new QBrush(*a0);

            return sipCpp;
        }
    }

    {
        const QBrush* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QBrush, &a0, &a0State))
        {
            sipCpp = new QBrush(*a0);
            sipReleaseType(const_cast<QBrush *>(a0),sipType_QBrush,a0State);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 98 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
        if (a0->canConvert<QBrush>())
            sipCpp = new QBrush(a0->value<QBrush>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 178927 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QBrush(PyObject *, void **, int *, PyObject *);}
static int convertTo_QBrush(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QBrush **sipCppPtr = reinterpret_cast<QBrush **>(sipCppPtrV);

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbrush.sip"
// SIP doesn't support automatic type convertors so we explicitly allow a
// QColor or a QGradient to be used whenever a QBrush is expected.  Note that
// SIP must process QColor before QBrush so that the former's QVariant cast
// operator is applied before the latter's.

if (sipIsErr == NULL)
    return (sipCanConvertToType(sipPy, sipType_QBrush, SIP_NO_CONVERTORS) ||
            sipCanConvertToType(sipPy, sipType_QColor, 0) ||
            sipCanConvertToType(sipPy, sipType_QGradient, 0));

if (sipCanConvertToType(sipPy, sipType_QBrush, SIP_NO_CONVERTORS))
{
    *sipCppPtr = reinterpret_cast<QBrush *>(sipConvertToType(sipPy, sipType_QBrush, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

    return 0;
}

int state;

if (sipCanConvertToType(sipPy, sipType_QColor, 0))
{
    QColor *c = reinterpret_cast<QColor *>(sipConvertToType(sipPy, sipType_QColor, 0, 0, &state, sipIsErr));

    if (*sipIsErr)
    {
        sipReleaseType(c, sipType_QColor, state);
        return 0;
    }

    *sipCppPtr = new QBrush(*c);

    sipReleaseType(c, sipType_QColor, state);

    return sipGetState(sipTransferObj);
}

QGradient *g = reinterpret_cast<QGradient *>(sipConvertToType(sipPy, sipType_QGradient, 0, 0, &state, sipIsErr));

if (*sipIsErr)
{
    sipReleaseType(g, sipType_QGradient, state);
    return 0;
}

*sipCppPtr = new QBrush(*g);

sipReleaseType(g, sipType_QGradient, state);

return sipGetState(sipTransferObj);
#line 179004 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QBrush[] = {
    {(void *)slot_QBrush___ne__, ne_slot},
    {(void *)slot_QBrush___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QBrush[] = {
    {SIP_MLNAME_CAST(sipName_color), meth_QBrush_color, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_color)},
    {SIP_MLNAME_CAST(sipName_gradient), meth_QBrush_gradient, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_gradient)},
    {SIP_MLNAME_CAST(sipName_isOpaque), meth_QBrush_isOpaque, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_isOpaque)},
    {SIP_MLNAME_CAST(sipName_setColor), meth_QBrush_setColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_setColor)},
    {SIP_MLNAME_CAST(sipName_setStyle), meth_QBrush_setStyle, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_setStyle)},
    {SIP_MLNAME_CAST(sipName_setTexture), meth_QBrush_setTexture, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_setTexture)},
    {SIP_MLNAME_CAST(sipName_setTextureImage), meth_QBrush_setTextureImage, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_setTextureImage)},
    {SIP_MLNAME_CAST(sipName_setTransform), meth_QBrush_setTransform, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_setTransform)},
    {SIP_MLNAME_CAST(sipName_style), meth_QBrush_style, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_style)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QBrush_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_swap)},
    {SIP_MLNAME_CAST(sipName_texture), meth_QBrush_texture, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_texture)},
    {SIP_MLNAME_CAST(sipName_textureImage), meth_QBrush_textureImage, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_textureImage)},
    {SIP_MLNAME_CAST(sipName_transform), meth_QBrush_transform, METH_VARARGS, SIP_MLDOC_CAST(doc_QBrush_transform)}
};

PyDoc_STRVAR(doc_QBrush, "\1QBrush()\n"
    "QBrush(Qt.BrushStyle)\n"
    "QBrush(QColor, Qt.BrushStyle style=Qt.SolidPattern)\n"
    "QBrush(Qt.GlobalColor, Qt.BrushStyle style=Qt.SolidPattern)\n"
    "QBrush(QColor, QPixmap)\n"
    "QBrush(Qt.GlobalColor, QPixmap)\n"
    "QBrush(QPixmap)\n"
    "QBrush(QImage)\n"
    "QBrush(QGradient)\n"
    "QBrush(QBrush)\n"
    "QBrush(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QBrush = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QBrush,
        {0}
    },
    {
        sipNameNr_QBrush,
        {0, 0, 1},
        13, methods_QBrush,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QBrush,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QBrush,
    init_type_QBrush,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QBrush,
    assign_QBrush,
    array_QBrush,
    copy_QBrush,
    release_QBrush,
    cast_QBrush,
    convertTo_QBrush,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 179102 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 179106 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 179109 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 179112 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 34 "sip/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 179115 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QColor_name, "QColor.name() -> str\n"
    "QColor.name(QColor.NameFormat) -> str");

extern "C" {static PyObject *meth_QColor_name(PyObject *, PyObject *);}
static PyObject *meth_QColor_name(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->name());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    {
        QColor::NameFormat a0;
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QColor, &sipCpp, sipType_QColor_NameFormat, &a0))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->name(a0));

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_name, doc_QColor_name);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setNamedColor, "QColor.setNamedColor(str)");

extern "C" {static PyObject *meth_QColor_setNamedColor(PyObject *, PyObject *);}
static PyObject *meth_QColor_setNamedColor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QColor, &sipCpp, sipType_QString,&a0, &a0State))
        {
            sipCpp->setNamedColor(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setNamedColor, doc_QColor_setNamedColor);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_colorNames, "QColor.colorNames() -> list-of-str");

extern "C" {static PyObject *meth_QColor_colorNames(PyObject *, PyObject *);}
static PyObject *meth_QColor_colorNames(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            QStringList*sipRes;

            sipRes = new QStringList(QColor::colorNames());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_colorNames, doc_QColor_colorNames);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_spec, "QColor.spec() -> QColor.Spec");

extern "C" {static PyObject *meth_QColor_spec(PyObject *, PyObject *);}
static PyObject *meth_QColor_spec(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            QColor::Spec sipRes;

            sipRes = sipCpp->spec();

            return sipConvertFromEnum(sipRes,sipType_QColor_Spec);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_spec, doc_QColor_spec);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_alpha, "QColor.alpha() -> int");

extern "C" {static PyObject *meth_QColor_alpha(PyObject *, PyObject *);}
static PyObject *meth_QColor_alpha(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->alpha();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_alpha, doc_QColor_alpha);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setAlpha, "QColor.setAlpha(int)");

extern "C" {static PyObject *meth_QColor_setAlpha(PyObject *, PyObject *);}
static PyObject *meth_QColor_setAlpha(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setAlpha(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setAlpha, doc_QColor_setAlpha);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_alphaF, "QColor.alphaF() -> float");

extern "C" {static PyObject *meth_QColor_alphaF(PyObject *, PyObject *);}
static PyObject *meth_QColor_alphaF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->alphaF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_alphaF, doc_QColor_alphaF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setAlphaF, "QColor.setAlphaF(float)");

extern "C" {static PyObject *meth_QColor_setAlphaF(PyObject *, PyObject *);}
static PyObject *meth_QColor_setAlphaF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setAlphaF(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setAlphaF, doc_QColor_setAlphaF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_red, "QColor.red() -> int");

extern "C" {static PyObject *meth_QColor_red(PyObject *, PyObject *);}
static PyObject *meth_QColor_red(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->red();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_red, doc_QColor_red);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_green, "QColor.green() -> int");

extern "C" {static PyObject *meth_QColor_green(PyObject *, PyObject *);}
static PyObject *meth_QColor_green(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->green();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_green, doc_QColor_green);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_blue, "QColor.blue() -> int");

extern "C" {static PyObject *meth_QColor_blue(PyObject *, PyObject *);}
static PyObject *meth_QColor_blue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->blue();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_blue, doc_QColor_blue);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setRed, "QColor.setRed(int)");

extern "C" {static PyObject *meth_QColor_setRed(PyObject *, PyObject *);}
static PyObject *meth_QColor_setRed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setRed(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setRed, doc_QColor_setRed);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setGreen, "QColor.setGreen(int)");

extern "C" {static PyObject *meth_QColor_setGreen(PyObject *, PyObject *);}
static PyObject *meth_QColor_setGreen(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setGreen(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setGreen, doc_QColor_setGreen);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setBlue, "QColor.setBlue(int)");

extern "C" {static PyObject *meth_QColor_setBlue(PyObject *, PyObject *);}
static PyObject *meth_QColor_setBlue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setBlue(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setBlue, doc_QColor_setBlue);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_redF, "QColor.redF() -> float");

extern "C" {static PyObject *meth_QColor_redF(PyObject *, PyObject *);}
static PyObject *meth_QColor_redF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->redF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_redF, doc_QColor_redF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_greenF, "QColor.greenF() -> float");

extern "C" {static PyObject *meth_QColor_greenF(PyObject *, PyObject *);}
static PyObject *meth_QColor_greenF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->greenF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_greenF, doc_QColor_greenF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_blueF, "QColor.blueF() -> float");

extern "C" {static PyObject *meth_QColor_blueF(PyObject *, PyObject *);}
static PyObject *meth_QColor_blueF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->blueF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_blueF, doc_QColor_blueF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setRedF, "QColor.setRedF(float)");

extern "C" {static PyObject *meth_QColor_setRedF(PyObject *, PyObject *);}
static PyObject *meth_QColor_setRedF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setRedF(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setRedF, doc_QColor_setRedF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setGreenF, "QColor.setGreenF(float)");

extern "C" {static PyObject *meth_QColor_setGreenF(PyObject *, PyObject *);}
static PyObject *meth_QColor_setGreenF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setGreenF(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setGreenF, doc_QColor_setGreenF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setBlueF, "QColor.setBlueF(float)");

extern "C" {static PyObject *meth_QColor_setBlueF(PyObject *, PyObject *);}
static PyObject *meth_QColor_setBlueF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setBlueF(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setBlueF, doc_QColor_setBlueF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_getRgb, "QColor.getRgb() -> (int, int, int, int)");

extern "C" {static PyObject *meth_QColor_getRgb(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_getRgb(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QColor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            sipCpp->getRgb(&a0,&a1,&a2,&a3);

            return sipBuildResult(0,"(iiii)",a0,a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_getRgb, doc_QColor_getRgb);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setRgb, "QColor.setRgb(int, int, int, int alpha=255)\n"
    "QColor.setRgb(int)");

extern "C" {static PyObject *meth_QColor_setRgb(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_setRgb(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3 = 255;
        QColor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biii|i", &sipSelf, sipType_QColor, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setRgb(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        QRgb a0;
        QColor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bu", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setRgb(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setRgb, doc_QColor_setRgb);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_getRgbF, "QColor.getRgbF() -> (float, float, float, float)");

extern "C" {static PyObject *meth_QColor_getRgbF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_getRgbF(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        const QColor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            sipCpp->getRgbF(&a0,&a1,&a2,&a3);

            return sipBuildResult(0,"(dddd)",a0,a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_getRgbF, doc_QColor_getRgbF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setRgbF, "QColor.setRgbF(float, float, float, float alpha=1)");

extern "C" {static PyObject *meth_QColor_setRgbF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_setRgbF(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3 = 1;
        QColor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bddd|d", &sipSelf, sipType_QColor, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setRgbF(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setRgbF, doc_QColor_setRgbF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_rgba, "QColor.rgba() -> int");

extern "C" {static PyObject *meth_QColor_rgba(PyObject *, PyObject *);}
static PyObject *meth_QColor_rgba(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            QRgb sipRes;

            sipRes = sipCpp->rgba();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_rgba, doc_QColor_rgba);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setRgba, "QColor.setRgba(int)");

extern "C" {static PyObject *meth_QColor_setRgba(PyObject *, PyObject *);}
static PyObject *meth_QColor_setRgba(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;
        QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bu", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            sipCpp->setRgba(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setRgba, doc_QColor_setRgba);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_rgb, "QColor.rgb() -> int");

extern "C" {static PyObject *meth_QColor_rgb(PyObject *, PyObject *);}
static PyObject *meth_QColor_rgb(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            QRgb sipRes;

            sipRes = sipCpp->rgb();

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_rgb, doc_QColor_rgb);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hue, "QColor.hue() -> int");

extern "C" {static PyObject *meth_QColor_hue(PyObject *, PyObject *);}
static PyObject *meth_QColor_hue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->hue();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hue, doc_QColor_hue);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_saturation, "QColor.saturation() -> int");

extern "C" {static PyObject *meth_QColor_saturation(PyObject *, PyObject *);}
static PyObject *meth_QColor_saturation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->saturation();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_saturation, doc_QColor_saturation);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_value, "QColor.value() -> int");

extern "C" {static PyObject *meth_QColor_value(PyObject *, PyObject *);}
static PyObject *meth_QColor_value(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->value();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_value, doc_QColor_value);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hueF, "QColor.hueF() -> float");

extern "C" {static PyObject *meth_QColor_hueF(PyObject *, PyObject *);}
static PyObject *meth_QColor_hueF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->hueF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hueF, doc_QColor_hueF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_saturationF, "QColor.saturationF() -> float");

extern "C" {static PyObject *meth_QColor_saturationF(PyObject *, PyObject *);}
static PyObject *meth_QColor_saturationF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->saturationF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_saturationF, doc_QColor_saturationF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_valueF, "QColor.valueF() -> float");

extern "C" {static PyObject *meth_QColor_valueF(PyObject *, PyObject *);}
static PyObject *meth_QColor_valueF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->valueF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_valueF, doc_QColor_valueF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_getHsv, "QColor.getHsv() -> (int, int, int, int)");

extern "C" {static PyObject *meth_QColor_getHsv(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_getHsv(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QColor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            sipCpp->getHsv(&a0,&a1,&a2,&a3);

            return sipBuildResult(0,"(iiii)",a0,a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_getHsv, doc_QColor_getHsv);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setHsv, "QColor.setHsv(int, int, int, int alpha=255)");

extern "C" {static PyObject *meth_QColor_setHsv(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_setHsv(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3 = 255;
        QColor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biii|i", &sipSelf, sipType_QColor, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setHsv(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setHsv, doc_QColor_setHsv);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_getHsvF, "QColor.getHsvF() -> (float, float, float, float)");

extern "C" {static PyObject *meth_QColor_getHsvF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_getHsvF(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        const QColor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            sipCpp->getHsvF(&a0,&a1,&a2,&a3);

            return sipBuildResult(0,"(dddd)",a0,a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_getHsvF, doc_QColor_getHsvF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setHsvF, "QColor.setHsvF(float, float, float, float alpha=1)");

extern "C" {static PyObject *meth_QColor_setHsvF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_setHsvF(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3 = 1;
        QColor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bddd|d", &sipSelf, sipType_QColor, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setHsvF(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setHsvF, doc_QColor_setHsvF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_cyan, "QColor.cyan() -> int");

extern "C" {static PyObject *meth_QColor_cyan(PyObject *, PyObject *);}
static PyObject *meth_QColor_cyan(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->cyan();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_cyan, doc_QColor_cyan);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_magenta, "QColor.magenta() -> int");

extern "C" {static PyObject *meth_QColor_magenta(PyObject *, PyObject *);}
static PyObject *meth_QColor_magenta(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->magenta();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_magenta, doc_QColor_magenta);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_yellow, "QColor.yellow() -> int");

extern "C" {static PyObject *meth_QColor_yellow(PyObject *, PyObject *);}
static PyObject *meth_QColor_yellow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->yellow();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_yellow, doc_QColor_yellow);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_black, "QColor.black() -> int");

extern "C" {static PyObject *meth_QColor_black(PyObject *, PyObject *);}
static PyObject *meth_QColor_black(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->black();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_black, doc_QColor_black);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_cyanF, "QColor.cyanF() -> float");

extern "C" {static PyObject *meth_QColor_cyanF(PyObject *, PyObject *);}
static PyObject *meth_QColor_cyanF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->cyanF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_cyanF, doc_QColor_cyanF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_magentaF, "QColor.magentaF() -> float");

extern "C" {static PyObject *meth_QColor_magentaF(PyObject *, PyObject *);}
static PyObject *meth_QColor_magentaF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->magentaF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_magentaF, doc_QColor_magentaF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_yellowF, "QColor.yellowF() -> float");

extern "C" {static PyObject *meth_QColor_yellowF(PyObject *, PyObject *);}
static PyObject *meth_QColor_yellowF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->yellowF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_yellowF, doc_QColor_yellowF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_blackF, "QColor.blackF() -> float");

extern "C" {static PyObject *meth_QColor_blackF(PyObject *, PyObject *);}
static PyObject *meth_QColor_blackF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->blackF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_blackF, doc_QColor_blackF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_getCmyk, "QColor.getCmyk() -> (int, int, int, int, int)");

extern "C" {static PyObject *meth_QColor_getCmyk(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_getCmyk(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4;
        QColor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            sipCpp->getCmyk(&a0,&a1,&a2,&a3,&a4);

            return sipBuildResult(0,"(iiiii)",a0,a1,a2,a3,a4);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_getCmyk, doc_QColor_getCmyk);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setCmyk, "QColor.setCmyk(int, int, int, int, int alpha=255)");

extern "C" {static PyObject *meth_QColor_setCmyk(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_setCmyk(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4 = 255;
        QColor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biiii|i", &sipSelf, sipType_QColor, &sipCpp, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setCmyk(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setCmyk, doc_QColor_setCmyk);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_getCmykF, "QColor.getCmykF() -> (float, float, float, float, float)");

extern "C" {static PyObject *meth_QColor_getCmykF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_getCmykF(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4;
        QColor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            sipCpp->getCmykF(&a0,&a1,&a2,&a3,&a4);

            return sipBuildResult(0,"(ddddd)",a0,a1,a2,a3,a4);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_getCmykF, doc_QColor_getCmykF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setCmykF, "QColor.setCmykF(float, float, float, float, float alpha=1)");

extern "C" {static PyObject *meth_QColor_setCmykF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_setCmykF(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4 = 1;
        QColor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bdddd|d", &sipSelf, sipType_QColor, &sipCpp, &a0, &a1, &a2, &a3, &a4))
        {
            sipCpp->setCmykF(a0,a1,a2,a3,a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setCmykF, doc_QColor_setCmykF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_toRgb, "QColor.toRgb() -> QColor");

extern "C" {static PyObject *meth_QColor_toRgb(PyObject *, PyObject *);}
static PyObject *meth_QColor_toRgb(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->toRgb());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_toRgb, doc_QColor_toRgb);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_toHsv, "QColor.toHsv() -> QColor");

extern "C" {static PyObject *meth_QColor_toHsv(PyObject *, PyObject *);}
static PyObject *meth_QColor_toHsv(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->toHsv());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_toHsv, doc_QColor_toHsv);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_toCmyk, "QColor.toCmyk() -> QColor");

extern "C" {static PyObject *meth_QColor_toCmyk(PyObject *, PyObject *);}
static PyObject *meth_QColor_toCmyk(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->toCmyk());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_toCmyk, doc_QColor_toCmyk);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_convertTo, "QColor.convertTo(QColor.Spec) -> QColor");

extern "C" {static PyObject *meth_QColor_convertTo(PyObject *, PyObject *);}
static PyObject *meth_QColor_convertTo(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QColor::Spec a0;
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QColor, &sipCpp, sipType_QColor_Spec, &a0))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->convertTo(a0));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_convertTo, doc_QColor_convertTo);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromRgb, "QColor.fromRgb(int) -> QColor\n"
    "QColor.fromRgb(int, int, int, int alpha=255) -> QColor");

extern "C" {static PyObject *meth_QColor_fromRgb(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_fromRgb(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "u", &a0))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromRgb(a0));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3 = 255;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "iii|i", &a0, &a1, &a2, &a3))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromRgb(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromRgb, doc_QColor_fromRgb);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromRgba, "QColor.fromRgba(int) -> QColor");

extern "C" {static PyObject *meth_QColor_fromRgba(PyObject *, PyObject *);}
static PyObject *meth_QColor_fromRgba(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QRgb a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "u", &a0))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromRgba(a0));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromRgba, doc_QColor_fromRgba);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromRgbF, "QColor.fromRgbF(float, float, float, float alpha=1) -> QColor");

extern "C" {static PyObject *meth_QColor_fromRgbF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_fromRgbF(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3 = 1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "ddd|d", &a0, &a1, &a2, &a3))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromRgbF(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromRgbF, doc_QColor_fromRgbF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromHsv, "QColor.fromHsv(int, int, int, int alpha=255) -> QColor");

extern "C" {static PyObject *meth_QColor_fromHsv(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_fromHsv(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3 = 255;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "iii|i", &a0, &a1, &a2, &a3))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromHsv(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromHsv, doc_QColor_fromHsv);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromHsvF, "QColor.fromHsvF(float, float, float, float alpha=1) -> QColor");

extern "C" {static PyObject *meth_QColor_fromHsvF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_fromHsvF(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3 = 1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "ddd|d", &a0, &a1, &a2, &a3))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromHsvF(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromHsvF, doc_QColor_fromHsvF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromCmyk, "QColor.fromCmyk(int, int, int, int, int alpha=255) -> QColor");

extern "C" {static PyObject *meth_QColor_fromCmyk(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_fromCmyk(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4 = 255;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "iiii|i", &a0, &a1, &a2, &a3, &a4))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromCmyk(a0,a1,a2,a3,a4));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromCmyk, doc_QColor_fromCmyk);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromCmykF, "QColor.fromCmykF(float, float, float, float, float alpha=1) -> QColor");

extern "C" {static PyObject *meth_QColor_fromCmykF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_fromCmykF(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        qreal a4 = 1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "dddd|d", &a0, &a1, &a2, &a3, &a4))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromCmykF(a0,a1,a2,a3,a4));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromCmykF, doc_QColor_fromCmykF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_isValid, "QColor.isValid() -> bool");

extern "C" {static PyObject *meth_QColor_isValid(PyObject *, PyObject *);}
static PyObject *meth_QColor_isValid(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_isValid, doc_QColor_isValid);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_lighter, "QColor.lighter(int factor=150) -> QColor");

extern "C" {static PyObject *meth_QColor_lighter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_lighter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 150;
        const QColor *sipCpp;

        static const char *sipKwdList[] = {
            sipName_factor,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->lighter(a0));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_lighter, doc_QColor_lighter);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_darker, "QColor.darker(int factor=200) -> QColor");

extern "C" {static PyObject *meth_QColor_darker(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_darker(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0 = 200;
        const QColor *sipCpp;

        static const char *sipKwdList[] = {
            sipName_factor,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|i", &sipSelf, sipType_QColor, &sipCpp, &a0))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->darker(a0));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_darker, doc_QColor_darker);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hsvHue, "QColor.hsvHue() -> int");

extern "C" {static PyObject *meth_QColor_hsvHue(PyObject *, PyObject *);}
static PyObject *meth_QColor_hsvHue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->hsvHue();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hsvHue, doc_QColor_hsvHue);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hsvSaturation, "QColor.hsvSaturation() -> int");

extern "C" {static PyObject *meth_QColor_hsvSaturation(PyObject *, PyObject *);}
static PyObject *meth_QColor_hsvSaturation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->hsvSaturation();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hsvSaturation, doc_QColor_hsvSaturation);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hsvHueF, "QColor.hsvHueF() -> float");

extern "C" {static PyObject *meth_QColor_hsvHueF(PyObject *, PyObject *);}
static PyObject *meth_QColor_hsvHueF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->hsvHueF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hsvHueF, doc_QColor_hsvHueF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hsvSaturationF, "QColor.hsvSaturationF() -> float");

extern "C" {static PyObject *meth_QColor_hsvSaturationF(PyObject *, PyObject *);}
static PyObject *meth_QColor_hsvSaturationF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->hsvSaturationF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hsvSaturationF, doc_QColor_hsvSaturationF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hslHue, "QColor.hslHue() -> int");

extern "C" {static PyObject *meth_QColor_hslHue(PyObject *, PyObject *);}
static PyObject *meth_QColor_hslHue(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->hslHue();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hslHue, doc_QColor_hslHue);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hslSaturation, "QColor.hslSaturation() -> int");

extern "C" {static PyObject *meth_QColor_hslSaturation(PyObject *, PyObject *);}
static PyObject *meth_QColor_hslSaturation(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->hslSaturation();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hslSaturation, doc_QColor_hslSaturation);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_lightness, "QColor.lightness() -> int");

extern "C" {static PyObject *meth_QColor_lightness(PyObject *, PyObject *);}
static PyObject *meth_QColor_lightness(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->lightness();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_lightness, doc_QColor_lightness);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hslHueF, "QColor.hslHueF() -> float");

extern "C" {static PyObject *meth_QColor_hslHueF(PyObject *, PyObject *);}
static PyObject *meth_QColor_hslHueF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->hslHueF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hslHueF, doc_QColor_hslHueF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_hslSaturationF, "QColor.hslSaturationF() -> float");

extern "C" {static PyObject *meth_QColor_hslSaturationF(PyObject *, PyObject *);}
static PyObject *meth_QColor_hslSaturationF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->hslSaturationF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_hslSaturationF, doc_QColor_hslSaturationF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_lightnessF, "QColor.lightnessF() -> float");

extern "C" {static PyObject *meth_QColor_lightnessF(PyObject *, PyObject *);}
static PyObject *meth_QColor_lightnessF(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->lightnessF();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_lightnessF, doc_QColor_lightnessF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_getHsl, "QColor.getHsl() -> (int, int, int, int)");

extern "C" {static PyObject *meth_QColor_getHsl(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_getHsl(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QColor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            sipCpp->getHsl(&a0,&a1,&a2,&a3);

            return sipBuildResult(0,"(iiii)",a0,a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_getHsl, doc_QColor_getHsl);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setHsl, "QColor.setHsl(int, int, int, int alpha=255)");

extern "C" {static PyObject *meth_QColor_setHsl(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_setHsl(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3 = 255;
        QColor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biii|i", &sipSelf, sipType_QColor, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setHsl(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setHsl, doc_QColor_setHsl);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_getHslF, "QColor.getHslF() -> (float, float, float, float)");

extern "C" {static PyObject *meth_QColor_getHslF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_getHslF(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3;
        const QColor *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            sipCpp->getHslF(&a0,&a1,&a2,&a3);

            return sipBuildResult(0,"(dddd)",a0,a1,a2,a3);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_getHslF, doc_QColor_getHslF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_setHslF, "QColor.setHslF(float, float, float, float alpha=1)");

extern "C" {static PyObject *meth_QColor_setHslF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_setHslF(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3 = 1;
        QColor *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bddd|d", &sipSelf, sipType_QColor, &sipCpp, &a0, &a1, &a2, &a3))
        {
            sipCpp->setHslF(a0,a1,a2,a3);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_setHslF, doc_QColor_setHslF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_toHsl, "QColor.toHsl() -> QColor");

extern "C" {static PyObject *meth_QColor_toHsl(PyObject *, PyObject *);}
static PyObject *meth_QColor_toHsl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QColor, &sipCpp))
        {
            QColor*sipRes;

            sipRes = new QColor(sipCpp->toHsl());

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_toHsl, doc_QColor_toHsl);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromHsl, "QColor.fromHsl(int, int, int, int alpha=255) -> QColor");

extern "C" {static PyObject *meth_QColor_fromHsl(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_fromHsl(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        int a2;
        int a3 = 255;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "iii|i", &a0, &a1, &a2, &a3))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromHsl(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromHsl, doc_QColor_fromHsl);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_fromHslF, "QColor.fromHslF(float, float, float, float alpha=1) -> QColor");

extern "C" {static PyObject *meth_QColor_fromHslF(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QColor_fromHslF(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        qreal a1;
        qreal a2;
        qreal a3 = 1;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "ddd|d", &a0, &a1, &a2, &a3))
        {
            QColor*sipRes;

            sipRes = new QColor(QColor::fromHslF(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QColor,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_fromHslF, doc_QColor_fromHslF);

    return NULL;
}


PyDoc_STRVAR(doc_QColor_isValidColor, "QColor.isValidColor(str) -> bool");

extern "C" {static PyObject *meth_QColor_isValidColor(PyObject *, PyObject *);}
static PyObject *meth_QColor_isValidColor(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArgs, "J1", sipType_QString,&a0, &a0State))
        {
            bool sipRes;

            sipRes = QColor::isValidColor(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QColor, sipName_isValidColor, doc_QColor_isValidColor);

    return NULL;
}


extern "C" {static PyObject *slot_QColor___ne__(PyObject *,PyObject *);}
static PyObject *slot_QColor___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QColor *sipCpp = reinterpret_cast<QColor *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QColor));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QColor, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QColor::operator!=(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,ne_slot,sipType_QColor,sipSelf,sipArg);
}


extern "C" {static PyObject *slot_QColor___eq__(PyObject *,PyObject *);}
static PyObject *slot_QColor___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QColor *sipCpp = reinterpret_cast<QColor *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QColor));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QColor, &a0, &a0State))
        {
            bool sipRes;

            sipRes = sipCpp->QColor::operator==(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui,eq_slot,sipType_QColor,sipSelf,sipArg);
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QColor(void *, const sipTypeDef *);}
static void *cast_QColor(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QColor)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QColor(void *, int);}
static void release_QColor(void *sipCppV,int)
{
    delete reinterpret_cast<QColor *>(sipCppV);
}


extern "C" {static PyObject *pickle_QColor(void *);}
static PyObject *pickle_QColor(void *sipCppV)
{
    QColor *sipCpp = reinterpret_cast<QColor *>(sipCppV);
    PyObject *sipRes;

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
    sipRes = Py_BuildValue((char *)"iiii", sipCpp->red(), sipCpp->green(), sipCpp->blue(), sipCpp->alpha());
#line 181642 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

    return sipRes;
}


extern "C" {static void assign_QColor(void *, SIP_SSIZE_T, const void *);}
static void assign_QColor(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QColor *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QColor *>(sipSrc);
}


extern "C" {static void *array_QColor(SIP_SSIZE_T);}
static void *array_QColor(SIP_SSIZE_T sipNrElem)
{
    return new QColor[sipNrElem];
}


extern "C" {static void *copy_QColor(const void *, SIP_SSIZE_T);}
static void *copy_QColor(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QColor(reinterpret_cast<const QColor *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QColor(sipSimpleWrapper *);}
static void dealloc_QColor(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QColor(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QColor(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QColor(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QColor *sipCpp = 0;

    {
        Qt::GlobalColor a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "XE", sipType_Qt_GlobalColor, &a0))
        {
            sipCpp = new QColor(a0);

            return sipCpp;
        }
    }

    {
        QRgb a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "u", &a0))
        {
            sipCpp = new QColor(a0);

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 73 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
        if (a0->canConvert<QColor>())
            sipCpp = new QColor(a0->value<QColor>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 181720 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
                return sipCpp;

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QColor();

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3 = 255;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            sipName_alpha,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "iii|i", &a0, &a1, &a2, &a3))
        {
            sipCpp = new QColor(a0,a1,a2,a3);

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QString,&a0, &a0State))
        {
            sipCpp = new QColor(*a0);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);

            return sipCpp;
        }
    }

    {
        const QColor* a0;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1", sipType_QColor, &a0, &a0State))
        {
            sipCpp = new QColor(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static int convertTo_QColor(PyObject *, void **, int *, PyObject *);}
static int convertTo_QColor(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
    QColor **sipCppPtr = reinterpret_cast<QColor **>(sipCppPtrV);

#line 34 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
// SIP doesn't support automatic type convertors so we explicitly allow a
// Qt::GlobalColor to be used whenever a QColor is expected.  Note that SIP
// must process QColor before QBrush so that the former's QVariant cast
// operator is applied before the latter's.

if (sipIsErr == NULL)
    return (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Qt_GlobalColor)) ||
            sipCanConvertToType(sipPy, sipType_QColor, SIP_NO_CONVERTORS));

if (PyObject_TypeCheck(sipPy, sipTypeAsPyTypeObject(sipType_Qt_GlobalColor)))
{
    *sipCppPtr = new QColor((Qt::GlobalColor)SIPLong_AsLong(sipPy));

    return sipGetState(sipTransferObj);
}

*sipCppPtr = reinterpret_cast<QColor *>(sipConvertToType(sipPy, sipType_QColor, sipTransferObj, SIP_NO_CONVERTORS, 0, sipIsErr));

return 0;
#line 181823 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QColor[] = {
    {(void *)slot_QColor___ne__, ne_slot},
    {(void *)slot_QColor___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QColor[] = {
    {SIP_MLNAME_CAST(sipName_alpha), meth_QColor_alpha, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_alpha)},
    {SIP_MLNAME_CAST(sipName_alphaF), meth_QColor_alphaF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_alphaF)},
    {SIP_MLNAME_CAST(sipName_black), meth_QColor_black, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_black)},
    {SIP_MLNAME_CAST(sipName_blackF), meth_QColor_blackF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_blackF)},
    {SIP_MLNAME_CAST(sipName_blue), meth_QColor_blue, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_blue)},
    {SIP_MLNAME_CAST(sipName_blueF), meth_QColor_blueF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_blueF)},
    {SIP_MLNAME_CAST(sipName_colorNames), meth_QColor_colorNames, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_colorNames)},
    {SIP_MLNAME_CAST(sipName_convertTo), meth_QColor_convertTo, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_convertTo)},
    {SIP_MLNAME_CAST(sipName_cyan), meth_QColor_cyan, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_cyan)},
    {SIP_MLNAME_CAST(sipName_cyanF), meth_QColor_cyanF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_cyanF)},
    {SIP_MLNAME_CAST(sipName_darker), (PyCFunction)meth_QColor_darker, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_darker)},
    {SIP_MLNAME_CAST(sipName_fromCmyk), (PyCFunction)meth_QColor_fromCmyk, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_fromCmyk)},
    {SIP_MLNAME_CAST(sipName_fromCmykF), (PyCFunction)meth_QColor_fromCmykF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_fromCmykF)},
    {SIP_MLNAME_CAST(sipName_fromHsl), (PyCFunction)meth_QColor_fromHsl, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_fromHsl)},
    {SIP_MLNAME_CAST(sipName_fromHslF), (PyCFunction)meth_QColor_fromHslF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_fromHslF)},
    {SIP_MLNAME_CAST(sipName_fromHsv), (PyCFunction)meth_QColor_fromHsv, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_fromHsv)},
    {SIP_MLNAME_CAST(sipName_fromHsvF), (PyCFunction)meth_QColor_fromHsvF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_fromHsvF)},
    {SIP_MLNAME_CAST(sipName_fromRgb), (PyCFunction)meth_QColor_fromRgb, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_fromRgb)},
    {SIP_MLNAME_CAST(sipName_fromRgbF), (PyCFunction)meth_QColor_fromRgbF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_fromRgbF)},
    {SIP_MLNAME_CAST(sipName_fromRgba), meth_QColor_fromRgba, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_fromRgba)},
    {SIP_MLNAME_CAST(sipName_getCmyk), (PyCFunction)meth_QColor_getCmyk, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_getCmyk)},
    {SIP_MLNAME_CAST(sipName_getCmykF), (PyCFunction)meth_QColor_getCmykF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_getCmykF)},
    {SIP_MLNAME_CAST(sipName_getHsl), (PyCFunction)meth_QColor_getHsl, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_getHsl)},
    {SIP_MLNAME_CAST(sipName_getHslF), (PyCFunction)meth_QColor_getHslF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_getHslF)},
    {SIP_MLNAME_CAST(sipName_getHsv), (PyCFunction)meth_QColor_getHsv, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_getHsv)},
    {SIP_MLNAME_CAST(sipName_getHsvF), (PyCFunction)meth_QColor_getHsvF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_getHsvF)},
    {SIP_MLNAME_CAST(sipName_getRgb), (PyCFunction)meth_QColor_getRgb, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_getRgb)},
    {SIP_MLNAME_CAST(sipName_getRgbF), (PyCFunction)meth_QColor_getRgbF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_getRgbF)},
    {SIP_MLNAME_CAST(sipName_green), meth_QColor_green, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_green)},
    {SIP_MLNAME_CAST(sipName_greenF), meth_QColor_greenF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_greenF)},
    {SIP_MLNAME_CAST(sipName_hslHue), meth_QColor_hslHue, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hslHue)},
    {SIP_MLNAME_CAST(sipName_hslHueF), meth_QColor_hslHueF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hslHueF)},
    {SIP_MLNAME_CAST(sipName_hslSaturation), meth_QColor_hslSaturation, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hslSaturation)},
    {SIP_MLNAME_CAST(sipName_hslSaturationF), meth_QColor_hslSaturationF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hslSaturationF)},
    {SIP_MLNAME_CAST(sipName_hsvHue), meth_QColor_hsvHue, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hsvHue)},
    {SIP_MLNAME_CAST(sipName_hsvHueF), meth_QColor_hsvHueF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hsvHueF)},
    {SIP_MLNAME_CAST(sipName_hsvSaturation), meth_QColor_hsvSaturation, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hsvSaturation)},
    {SIP_MLNAME_CAST(sipName_hsvSaturationF), meth_QColor_hsvSaturationF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hsvSaturationF)},
    {SIP_MLNAME_CAST(sipName_hue), meth_QColor_hue, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hue)},
    {SIP_MLNAME_CAST(sipName_hueF), meth_QColor_hueF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_hueF)},
    {SIP_MLNAME_CAST(sipName_isValid), meth_QColor_isValid, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_isValid)},
    {SIP_MLNAME_CAST(sipName_isValidColor), meth_QColor_isValidColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_isValidColor)},
    {SIP_MLNAME_CAST(sipName_lighter), (PyCFunction)meth_QColor_lighter, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_lighter)},
    {SIP_MLNAME_CAST(sipName_lightness), meth_QColor_lightness, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_lightness)},
    {SIP_MLNAME_CAST(sipName_lightnessF), meth_QColor_lightnessF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_lightnessF)},
    {SIP_MLNAME_CAST(sipName_magenta), meth_QColor_magenta, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_magenta)},
    {SIP_MLNAME_CAST(sipName_magentaF), meth_QColor_magentaF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_magentaF)},
    {SIP_MLNAME_CAST(sipName_name), meth_QColor_name, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_name)},
    {SIP_MLNAME_CAST(sipName_red), meth_QColor_red, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_red)},
    {SIP_MLNAME_CAST(sipName_redF), meth_QColor_redF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_redF)},
    {SIP_MLNAME_CAST(sipName_rgb), meth_QColor_rgb, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_rgb)},
    {SIP_MLNAME_CAST(sipName_rgba), meth_QColor_rgba, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_rgba)},
    {SIP_MLNAME_CAST(sipName_saturation), meth_QColor_saturation, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_saturation)},
    {SIP_MLNAME_CAST(sipName_saturationF), meth_QColor_saturationF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_saturationF)},
    {SIP_MLNAME_CAST(sipName_setAlpha), meth_QColor_setAlpha, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setAlpha)},
    {SIP_MLNAME_CAST(sipName_setAlphaF), meth_QColor_setAlphaF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setAlphaF)},
    {SIP_MLNAME_CAST(sipName_setBlue), meth_QColor_setBlue, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setBlue)},
    {SIP_MLNAME_CAST(sipName_setBlueF), meth_QColor_setBlueF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setBlueF)},
    {SIP_MLNAME_CAST(sipName_setCmyk), (PyCFunction)meth_QColor_setCmyk, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_setCmyk)},
    {SIP_MLNAME_CAST(sipName_setCmykF), (PyCFunction)meth_QColor_setCmykF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_setCmykF)},
    {SIP_MLNAME_CAST(sipName_setGreen), meth_QColor_setGreen, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setGreen)},
    {SIP_MLNAME_CAST(sipName_setGreenF), meth_QColor_setGreenF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setGreenF)},
    {SIP_MLNAME_CAST(sipName_setHsl), (PyCFunction)meth_QColor_setHsl, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_setHsl)},
    {SIP_MLNAME_CAST(sipName_setHslF), (PyCFunction)meth_QColor_setHslF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_setHslF)},
    {SIP_MLNAME_CAST(sipName_setHsv), (PyCFunction)meth_QColor_setHsv, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_setHsv)},
    {SIP_MLNAME_CAST(sipName_setHsvF), (PyCFunction)meth_QColor_setHsvF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_setHsvF)},
    {SIP_MLNAME_CAST(sipName_setNamedColor), meth_QColor_setNamedColor, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setNamedColor)},
    {SIP_MLNAME_CAST(sipName_setRed), meth_QColor_setRed, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setRed)},
    {SIP_MLNAME_CAST(sipName_setRedF), meth_QColor_setRedF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setRedF)},
    {SIP_MLNAME_CAST(sipName_setRgb), (PyCFunction)meth_QColor_setRgb, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_setRgb)},
    {SIP_MLNAME_CAST(sipName_setRgbF), (PyCFunction)meth_QColor_setRgbF, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QColor_setRgbF)},
    {SIP_MLNAME_CAST(sipName_setRgba), meth_QColor_setRgba, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_setRgba)},
    {SIP_MLNAME_CAST(sipName_spec), meth_QColor_spec, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_spec)},
    {SIP_MLNAME_CAST(sipName_toCmyk), meth_QColor_toCmyk, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_toCmyk)},
    {SIP_MLNAME_CAST(sipName_toHsl), meth_QColor_toHsl, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_toHsl)},
    {SIP_MLNAME_CAST(sipName_toHsv), meth_QColor_toHsv, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_toHsv)},
    {SIP_MLNAME_CAST(sipName_toRgb), meth_QColor_toRgb, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_toRgb)},
    {SIP_MLNAME_CAST(sipName_value), meth_QColor_value, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_value)},
    {SIP_MLNAME_CAST(sipName_valueF), meth_QColor_valueF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_valueF)},
    {SIP_MLNAME_CAST(sipName_yellow), meth_QColor_yellow, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_yellow)},
    {SIP_MLNAME_CAST(sipName_yellowF), meth_QColor_yellowF, METH_VARARGS, SIP_MLDOC_CAST(doc_QColor_yellowF)}
};

static sipEnumMemberDef enummembers_QColor[] = {
    {sipName_Cmyk, static_cast<int>(QColor::Cmyk), 14},
    {sipName_HexArgb, static_cast<int>(QColor::HexArgb), 13},
    {sipName_HexRgb, static_cast<int>(QColor::HexRgb), 13},
    {sipName_Hsl, static_cast<int>(QColor::Hsl), 14},
    {sipName_Hsv, static_cast<int>(QColor::Hsv), 14},
    {sipName_Invalid, static_cast<int>(QColor::Invalid), 14},
    {sipName_Rgb, static_cast<int>(QColor::Rgb), 14},
};

PyDoc_STRVAR(doc_QColor, "\1QColor(Qt.GlobalColor)\n"
    "QColor(int)\n"
    "QColor(QVariant)\n"
    "QColor()\n"
    "QColor(int, int, int, int alpha=255)\n"
    "QColor(str)\n"
    "QColor(QColor)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QColor = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QColor,
        {0}
    },
    {
        sipNameNr_QColor,
        {0, 0, 1},
        81, methods_QColor,
        7, enummembers_QColor,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QColor,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    slots_QColor,
    init_type_QColor,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QColor,
    assign_QColor,
    array_QColor,
    copy_QColor,
    release_QColor,
    cast_QColor,
    convertTo_QColor,
    0,
    0,
    pickle_QColor,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 181995 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 181999 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 182002 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 182005 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 182008 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 182011 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 182014 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 182017 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 182020 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 182023 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 182026 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 182029 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 182032 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 182035 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimagereader.sip"
#include <qimagereader.h>
#line 182038 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 182041 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 182044 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQBitmap : public QBitmap
{
public:
    sipQBitmap();
    sipQBitmap(const QPixmap&);
    sipQBitmap(int,int);
    sipQBitmap(const QSize&);
    sipQBitmap(const QString&,const char*);
    sipQBitmap(const QBitmap&);
    virtual ~sipQBitmap();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int metric(QPaintDevice::PaintDeviceMetric) const;
    QPaintEngine* paintEngine() const;
    int devType() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQBitmap(const sipQBitmap &);
    sipQBitmap &operator = (const sipQBitmap &);

    char sipPyMethods[3];
};

sipQBitmap::sipQBitmap(): QBitmap(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQBitmap::sipQBitmap(const QPixmap& a0): QBitmap(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQBitmap::sipQBitmap(int a0,int a1): QBitmap(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQBitmap::sipQBitmap(const QSize& a0): QBitmap(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQBitmap::sipQBitmap(const QString& a0,const char*a1): QBitmap(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQBitmap::sipQBitmap(const QBitmap& a0): QBitmap(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQBitmap::~sipQBitmap()
{
    sipCommonDtor(sipPySelf);
}

int sipQBitmap::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QBitmap::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQBitmap::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QBitmap::paintEngine();

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQBitmap::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return QBitmap::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQBitmap::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QPixmap::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QBitmap_metric, "QBitmap.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QBitmap_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QBitmap_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQBitmap *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QBitmap, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBitmap, sipName_metric, doc_QBitmap_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QBitmap_clear, "QBitmap.clear()");

extern "C" {static PyObject *meth_QBitmap_clear(PyObject *, PyObject *);}
static PyObject *meth_QBitmap_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QBitmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBitmap, &sipCpp))
        {
            sipCpp->clear();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBitmap, sipName_clear, doc_QBitmap_clear);

    return NULL;
}


PyDoc_STRVAR(doc_QBitmap_fromImage, "QBitmap.fromImage(QImage, Qt.ImageConversionFlags flags=Qt.AutoColor) -> QBitmap");

extern "C" {static PyObject *meth_QBitmap_fromImage(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QBitmap_fromImage(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage* a0;
        Qt::ImageConversionFlags a1def = Qt::AutoColor;
        Qt::ImageConversionFlags* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J9|J1", sipType_QImage, &a0, sipType_Qt_ImageConversionFlags, &a1, &a1State))
        {
            QBitmap*sipRes;

            sipRes = new QBitmap(QBitmap::fromImage(*a0,*a1));
            sipReleaseType(a1,sipType_Qt_ImageConversionFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QBitmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBitmap, sipName_fromImage, doc_QBitmap_fromImage);

    return NULL;
}


PyDoc_STRVAR(doc_QBitmap_fromData, "QBitmap.fromData(QSize, str, QImage.Format format=QImage.Format_MonoLSB) -> QBitmap");

extern "C" {static PyObject *meth_QBitmap_fromData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QBitmap_fromData(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        const uchar* a1;
        QImage::Format a2 = QImage::Format_MonoLSB;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J9s|E", sipType_QSize, &a0, &a1, sipType_QImage_Format, &a2))
        {
            QBitmap*sipRes;

            sipRes = new QBitmap(QBitmap::fromData(*a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QBitmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBitmap, sipName_fromData, doc_QBitmap_fromData);

    return NULL;
}


PyDoc_STRVAR(doc_QBitmap_transformed, "QBitmap.transformed(QTransform) -> QBitmap");

extern "C" {static PyObject *meth_QBitmap_transformed(PyObject *, PyObject *);}
static PyObject *meth_QBitmap_transformed(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        const QBitmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBitmap, &sipCpp, sipType_QTransform, &a0))
        {
            QBitmap*sipRes;

            sipRes = new QBitmap(sipCpp->transformed(*a0));

            return sipConvertFromNewType(sipRes,sipType_QBitmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBitmap, sipName_transformed, doc_QBitmap_transformed);

    return NULL;
}


PyDoc_STRVAR(doc_QBitmap_swap, "QBitmap.swap(QBitmap)");

extern "C" {static PyObject *meth_QBitmap_swap(PyObject *, PyObject *);}
static PyObject *meth_QBitmap_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QBitmap* a0;
        QBitmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBitmap, &sipCpp, sipType_QBitmap, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBitmap, sipName_swap, doc_QBitmap_swap);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QBitmap(void *, const sipTypeDef *);}
static void *cast_QBitmap(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QBitmap)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPixmap)->ctd_cast((QPixmap *)(QBitmap *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QBitmap(void *, int);}
static void release_QBitmap(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQBitmap *>(sipCppV);
    else
        delete reinterpret_cast<QBitmap *>(sipCppV);
}


extern "C" {static void assign_QBitmap(void *, SIP_SSIZE_T, const void *);}
static void assign_QBitmap(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QBitmap *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QBitmap *>(sipSrc);
}


extern "C" {static void *array_QBitmap(SIP_SSIZE_T);}
static void *array_QBitmap(SIP_SSIZE_T sipNrElem)
{
    return new QBitmap[sipNrElem];
}


extern "C" {static void *copy_QBitmap(const void *, SIP_SSIZE_T);}
static void *copy_QBitmap(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QBitmap(reinterpret_cast<const QBitmap *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QBitmap(sipSimpleWrapper *);}
static void dealloc_QBitmap(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQBitmap *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QBitmap(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QBitmap(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QBitmap(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQBitmap *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQBitmap();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QPixmap* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPixmap, &a0))
        {
            sipCpp = new sipQBitmap(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ii", &a0, &a1))
        {
            sipCpp = new sipQBitmap(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QSize* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSize, &a0))
        {
            sipCpp = new sipQBitmap(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|AA", sipType_QString,&a0, &a0State, &a1Keep, &a1))
        {
            sipCpp = new sipQBitmap(*a0,a1);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 37 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbitmap.sip"
        if (a0->canConvert<QBitmap>())
            sipCpp = new sipQBitmap(a0->value<QBitmap>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 182504 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
            {
                sipCpp->sipPySelf = sipSelf;

                return sipCpp;
            }

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    {
        const QBitmap* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QBitmap, &a0))
        {
            sipCpp = new sipQBitmap(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QBitmap[] = {{223, 255, 1}};


static PyMethodDef methods_QBitmap[] = {
    {SIP_MLNAME_CAST(sipName_clear), meth_QBitmap_clear, METH_VARARGS, SIP_MLDOC_CAST(doc_QBitmap_clear)},
    {SIP_MLNAME_CAST(sipName_fromData), (PyCFunction)meth_QBitmap_fromData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QBitmap_fromData)},
    {SIP_MLNAME_CAST(sipName_fromImage), (PyCFunction)meth_QBitmap_fromImage, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QBitmap_fromImage)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QBitmap_metric, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_swap), meth_QBitmap_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QBitmap_swap)},
    {SIP_MLNAME_CAST(sipName_transformed), meth_QBitmap_transformed, METH_VARARGS, SIP_MLDOC_CAST(doc_QBitmap_transformed)}
};

PyDoc_STRVAR(doc_QBitmap, "\1QBitmap()\n"
    "QBitmap(QPixmap)\n"
    "QBitmap(int, int)\n"
    "QBitmap(QSize)\n"
    "QBitmap(str, str format=None)\n"
    "QBitmap(QVariant)\n"
    "QBitmap(QBitmap)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QBitmap = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QBitmap,
        {0}
    },
    {
        sipNameNr_QBitmap,
        {0, 0, 1},
        6, methods_QBitmap,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QBitmap,
    -1,
    -1,
    supers_QBitmap,
    0,
    init_type_QBitmap,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QBitmap,
    assign_QBitmap,
    array_QBitmap,
    copy_QBitmap,
    release_QBitmap,
    cast_QBitmap,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 182622 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 182626 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 182629 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 182632 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 182635 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 182638 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 182641 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtransform.sip"
#include <qtransform.h>
#line 182644 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 182647 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 182650 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintengine.sip"
#include <qpaintengine.h>
#line 182653 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qiodevice.sip"
#include <qiodevice.h>
#line 182656 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 182659 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimage.sip"
#include <qimage.h>
#line 182662 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qimagereader.sip"
#include <qimagereader.h>
#line 182665 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbitmap.sip"
#include <qbitmap.h>
#line 182668 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qcolor.sip"
#include <qcolor.h>
#line 182671 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQPixmap : public QPixmap
{
public:
    sipQPixmap();
    sipQPixmap(int,int);
    sipQPixmap(const QSize&);
    sipQPixmap(const QString&,const char*,Qt::ImageConversionFlags);
    sipQPixmap(const char**);
    sipQPixmap(const QPixmap&);
    virtual ~sipQPixmap();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    int sipProtectVirt_metric(bool,QPaintDevice::PaintDeviceMetric) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    int metric(QPaintDevice::PaintDeviceMetric) const;
    QPaintEngine* paintEngine() const;
    int devType() const;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQPixmap(const sipQPixmap &);
    sipQPixmap &operator = (const sipQPixmap &);

    char sipPyMethods[3];
};

sipQPixmap::sipQPixmap(): QPixmap(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPixmap::sipQPixmap(int a0,int a1): QPixmap(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPixmap::sipQPixmap(const QSize& a0): QPixmap(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPixmap::sipQPixmap(const QString& a0,const char*a1,Qt::ImageConversionFlags a2): QPixmap(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPixmap::sipQPixmap(const char**a0): QPixmap(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPixmap::sipQPixmap(const QPixmap& a0): QPixmap(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQPixmap::~sipQPixmap()
{
    sipCommonDtor(sipPySelf);
}

int sipQPixmap::metric(QPaintDevice::PaintDeviceMetric a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,NULL,sipName_metric);

    if (!sipMeth)
        return QPixmap::metric(a0);

    extern int sipVH_QtGui_28(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPaintDevice::PaintDeviceMetric);

    return sipVH_QtGui_28(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QPaintEngine* sipQPixmap::paintEngine() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,NULL,sipName_paintEngine);

    if (!sipMeth)
        return QPixmap::paintEngine();

    extern QPaintEngine* sipVH_QtGui_29(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_29(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPixmap::devType() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[2]),sipPySelf,NULL,sipName_devType);

    if (!sipMeth)
        return QPixmap::devType();

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQPixmap::sipProtectVirt_metric(bool sipSelfWasArg,QPaintDevice::PaintDeviceMetric a0) const
{
    return (sipSelfWasArg ? QPixmap::metric(a0) : metric(a0));
}


PyDoc_STRVAR(doc_QPixmap_isNull, "QPixmap.isNull() -> bool");

extern "C" {static PyObject *meth_QPixmap_isNull(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_isNull(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isNull();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_isNull, doc_QPixmap_isNull);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_devType, "QPixmap.devType() -> int");

extern "C" {static PyObject *meth_QPixmap_devType(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_devType(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QPixmap::devType() : sipCpp->devType());

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_devType, doc_QPixmap_devType);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_width, "QPixmap.width() -> int");

extern "C" {static PyObject *meth_QPixmap_width(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_width(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->width();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_width, doc_QPixmap_width);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_height, "QPixmap.height() -> int");

extern "C" {static PyObject *meth_QPixmap_height(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_height(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->height();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_height, doc_QPixmap_height);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_size, "QPixmap.size() -> QSize");

extern "C" {static PyObject *meth_QPixmap_size(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_size, doc_QPixmap_size);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_rect, "QPixmap.rect() -> QRect");

extern "C" {static PyObject *meth_QPixmap_rect(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_rect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            QRect*sipRes;

            sipRes = new QRect(sipCpp->rect());

            return sipConvertFromNewType(sipRes,sipType_QRect,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_rect, doc_QPixmap_rect);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_depth, "QPixmap.depth() -> int");

extern "C" {static PyObject *meth_QPixmap_depth(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_depth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->depth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_depth, doc_QPixmap_depth);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_defaultDepth, "QPixmap.defaultDepth() -> int");

extern "C" {static PyObject *meth_QPixmap_defaultDepth(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_defaultDepth(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            int sipRes;

            sipRes = QPixmap::defaultDepth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_defaultDepth, doc_QPixmap_defaultDepth);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_fill, "QPixmap.fill(QColor color=Qt.white)");

extern "C" {static PyObject *meth_QPixmap_fill(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_fill(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor& a0def = Qt::white;
        const QColor* a0 = &a0def;
        int a0State = 0;
        QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            sipName_color,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J1", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->fill(*a0);
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_fill, doc_QPixmap_fill);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_mask, "QPixmap.mask() -> QBitmap");

extern "C" {static PyObject *meth_QPixmap_mask(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_mask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            QBitmap*sipRes;

            sipRes = new QBitmap(sipCpp->mask());

            return sipConvertFromNewType(sipRes,sipType_QBitmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_mask, doc_QPixmap_mask);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_setMask, "QPixmap.setMask(QBitmap)");

extern "C" {static PyObject *meth_QPixmap_setMask(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_setMask(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBitmap* a0;
        QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QBitmap, &a0))
        {
            sipCpp->setMask(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_setMask, doc_QPixmap_setMask);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_hasAlpha, "QPixmap.hasAlpha() -> bool");

extern "C" {static PyObject *meth_QPixmap_hasAlpha(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_hasAlpha(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasAlpha();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_hasAlpha, doc_QPixmap_hasAlpha);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_hasAlphaChannel, "QPixmap.hasAlphaChannel() -> bool");

extern "C" {static PyObject *meth_QPixmap_hasAlphaChannel(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_hasAlphaChannel(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasAlphaChannel();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_hasAlphaChannel, doc_QPixmap_hasAlphaChannel);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_createHeuristicMask, "QPixmap.createHeuristicMask(bool clipTight=True) -> QBitmap");

extern "C" {static PyObject *meth_QPixmap_createHeuristicMask(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_createHeuristicMask(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0 = 1;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            sipName_clipTight,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|b", &sipSelf, sipType_QPixmap, &sipCpp, &a0))
        {
            QBitmap*sipRes;

            sipRes = new QBitmap(sipCpp->createHeuristicMask(a0));

            return sipConvertFromNewType(sipRes,sipType_QBitmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_createHeuristicMask, doc_QPixmap_createHeuristicMask);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_createMaskFromColor, "QPixmap.createMaskFromColor(QColor, Qt.MaskMode mode=Qt.MaskInColor) -> QBitmap");

extern "C" {static PyObject *meth_QPixmap_createMaskFromColor(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_createMaskFromColor(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QColor* a0;
        int a0State = 0;
        Qt::MaskMode a1 = Qt::MaskInColor;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|E", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QColor, &a0, &a0State, sipType_Qt_MaskMode, &a1))
        {
            QBitmap*sipRes;

            sipRes = new QBitmap(sipCpp->createMaskFromColor(*a0,a1));
            sipReleaseType(const_cast<QColor *>(a0),sipType_QColor,a0State);

            return sipConvertFromNewType(sipRes,sipType_QBitmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_createMaskFromColor, doc_QPixmap_createMaskFromColor);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_scaled, "QPixmap.scaled(int, int, Qt.AspectRatioMode aspectRatioMode=Qt.IgnoreAspectRatio, Qt.TransformationMode transformMode=Qt.FastTransformation) -> QPixmap\n"
    "QPixmap.scaled(QSize, Qt.AspectRatioMode aspectRatioMode=Qt.IgnoreAspectRatio, Qt.TransformationMode transformMode=Qt.FastTransformation) -> QPixmap");

extern "C" {static PyObject *meth_QPixmap_scaled(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_scaled(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        Qt::AspectRatioMode a2 = Qt::IgnoreAspectRatio;
        Qt::TransformationMode a3 = Qt::FastTransformation;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_aspectRatioMode,
            sipName_transformMode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bii|EE", &sipSelf, sipType_QPixmap, &sipCpp, &a0, &a1, sipType_Qt_AspectRatioMode, &a2, sipType_Qt_TransformationMode, &a3))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->scaled(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    {
        const QSize* a0;
        Qt::AspectRatioMode a1 = Qt::IgnoreAspectRatio;
        Qt::TransformationMode a2 = Qt::FastTransformation;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_aspectRatioMode,
            sipName_transformMode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|EE", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QSize, &a0, sipType_Qt_AspectRatioMode, &a1, sipType_Qt_TransformationMode, &a2))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->scaled(*a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_scaled, doc_QPixmap_scaled);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_scaledToWidth, "QPixmap.scaledToWidth(int, Qt.TransformationMode mode=Qt.FastTransformation) -> QPixmap");

extern "C" {static PyObject *meth_QPixmap_scaledToWidth(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_scaledToWidth(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        Qt::TransformationMode a1 = Qt::FastTransformation;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QPixmap, &sipCpp, &a0, sipType_Qt_TransformationMode, &a1))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->scaledToWidth(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_scaledToWidth, doc_QPixmap_scaledToWidth);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_scaledToHeight, "QPixmap.scaledToHeight(int, Qt.TransformationMode mode=Qt.FastTransformation) -> QPixmap");

extern "C" {static PyObject *meth_QPixmap_scaledToHeight(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_scaledToHeight(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        Qt::TransformationMode a1 = Qt::FastTransformation;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|E", &sipSelf, sipType_QPixmap, &sipCpp, &a0, sipType_Qt_TransformationMode, &a1))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->scaledToHeight(a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_scaledToHeight, doc_QPixmap_scaledToHeight);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_toImage, "QPixmap.toImage() -> QImage");

extern "C" {static PyObject *meth_QPixmap_toImage(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_toImage(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            QImage*sipRes;

            sipRes = new QImage(sipCpp->toImage());

            return sipConvertFromNewType(sipRes,sipType_QImage,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_toImage, doc_QPixmap_toImage);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_fromImage, "QPixmap.fromImage(QImage, Qt.ImageConversionFlags flags=Qt.AutoColor) -> QPixmap");

extern "C" {static PyObject *meth_QPixmap_fromImage(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_fromImage(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage* a0;
        Qt::ImageConversionFlags a1def = Qt::AutoColor;
        Qt::ImageConversionFlags* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J9|J1", sipType_QImage, &a0, sipType_Qt_ImageConversionFlags, &a1, &a1State))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(QPixmap::fromImage(*a0,*a1));
            sipReleaseType(a1,sipType_Qt_ImageConversionFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_fromImage, doc_QPixmap_fromImage);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_fromImageReader, "QPixmap.fromImageReader(QImageReader, Qt.ImageConversionFlags flags=Qt.AutoColor) -> QPixmap");

extern "C" {static PyObject *meth_QPixmap_fromImageReader(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_fromImageReader(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        QImageReader* a0;
        Qt::ImageConversionFlags a1def = Qt::AutoColor;
        Qt::ImageConversionFlags* a1 = &a1def;
        int a1State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "J8|J1", sipType_QImageReader, &a0, sipType_Qt_ImageConversionFlags, &a1, &a1State))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(QPixmap::fromImageReader(a0,*a1));
            sipReleaseType(a1,sipType_Qt_ImageConversionFlags,a1State);

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_fromImageReader, doc_QPixmap_fromImageReader);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_convertFromImage, "QPixmap.convertFromImage(QImage, Qt.ImageConversionFlags flags=Qt.AutoColor) -> bool");

extern "C" {static PyObject *meth_QPixmap_convertFromImage(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_convertFromImage(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QImage* a0;
        Qt::ImageConversionFlags a1def = Qt::AutoColor;
        Qt::ImageConversionFlags* a1 = &a1def;
        int a1State = 0;
        QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|J1", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QImage, &a0, sipType_Qt_ImageConversionFlags, &a1, &a1State))
        {
            bool sipRes;

            sipRes = sipCpp->convertFromImage(*a0,*a1);
            sipReleaseType(a1,sipType_Qt_ImageConversionFlags,a1State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_convertFromImage, doc_QPixmap_convertFromImage);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_load, "QPixmap.load(str, str format=None, Qt.ImageConversionFlags flags=Qt.AutoColor) -> bool");

extern "C" {static PyObject *meth_QPixmap_load(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_load(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        Qt::ImageConversionFlags a2def = Qt::AutoColor;
        Qt::ImageConversionFlags* a2 = &a2def;
        int a2State = 0;
        QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|AAJ1", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QString,&a0, &a0State, &a1Keep, &a1, sipType_Qt_ImageConversionFlags, &a2, &a2State))
        {
            bool sipRes;

            sipRes = sipCpp->load(*a0,a1,*a2);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);
            sipReleaseType(a2,sipType_Qt_ImageConversionFlags,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_load, doc_QPixmap_load);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_loadFromData, "QPixmap.loadFromData(str, str format=None, Qt.ImageConversionFlags flags=Qt.AutoColor) -> bool\n"
    "QPixmap.loadFromData(QByteArray, str format=None, Qt.ImageConversionFlags flags=Qt.AutoColor) -> bool");

extern "C" {static PyObject *meth_QPixmap_loadFromData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_loadFromData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const uchar* a0;
        SIP_SSIZE_T a1;
        const char* a2 = 0;
        PyObject *a2Keep = 0;
        Qt::ImageConversionFlags a3def = Qt::AutoColor;
        Qt::ImageConversionFlags* a3 = &a3def;
        int a3State = 0;
        QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            sipName_format,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bk|AAJ1", &sipSelf, sipType_QPixmap, &sipCpp, &a0, &a1, &a2Keep, &a2, sipType_Qt_ImageConversionFlags, &a3, &a3State))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(a0,(uint)a1,a2,*a3);
            Py_XDECREF(a2Keep);
            sipReleaseType(a3,sipType_Qt_ImageConversionFlags,a3State);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const QByteArray* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        Qt::ImageConversionFlags a2def = Qt::AutoColor;
        Qt::ImageConversionFlags* a2 = &a2def;
        int a2State = 0;
        QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
            sipName_flags,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|AAJ1", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QByteArray, &a0, &a0State, &a1Keep, &a1, sipType_Qt_ImageConversionFlags, &a2, &a2State))
        {
            bool sipRes;

            sipRes = sipCpp->loadFromData(*a0,a1,*a2);
            sipReleaseType(const_cast<QByteArray *>(a0),sipType_QByteArray,a0State);
            Py_XDECREF(a1Keep);
            sipReleaseType(a2,sipType_Qt_ImageConversionFlags,a2State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_loadFromData, doc_QPixmap_loadFromData);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_save, "QPixmap.save(str, str format=None, int quality=-1) -> bool\n"
    "QPixmap.save(QIODevice, str format=None, int quality=-1) -> bool");

extern "C" {static PyObject *meth_QPixmap_save(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_save(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        int a2 = -1;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
            sipName_quality,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|AAi", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QString,&a0, &a0State, &a1Keep, &a1, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->save(*a0,a1,a2);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        QIODevice* a0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        int a2 = -1;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
            sipName_quality,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ8|AAi", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QIODevice, &a0, &a1Keep, &a1, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->save(a0,a1,a2);
            Py_XDECREF(a1Keep);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_save, doc_QPixmap_save);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_copy, "QPixmap.copy(QRect rect=QRect()) -> QPixmap\n"
    "QPixmap.copy(int, int, int, int) -> QPixmap");

extern "C" {static PyObject *meth_QPixmap_copy(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_copy(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRect& a0def = QRect();
        const QRect* a0 = &a0def;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            sipName_rect,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QRect, &a0))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->copy(*a0));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        const QPixmap *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Biiii", &sipSelf, sipType_QPixmap, &sipCpp, &a0, &a1, &a2, &a3))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->copy(a0,a1,a2,a3));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_copy, doc_QPixmap_copy);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_detach, "QPixmap.detach()");

extern "C" {static PyObject *meth_QPixmap_detach(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_detach(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            sipCpp->detach();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_detach, doc_QPixmap_detach);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_isQBitmap, "QPixmap.isQBitmap() -> bool");

extern "C" {static PyObject *meth_QPixmap_isQBitmap(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_isQBitmap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isQBitmap();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_isQBitmap, doc_QPixmap_isQBitmap);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_paintEngine, "QPixmap.paintEngine() -> QPaintEngine");

extern "C" {static PyObject *meth_QPixmap_paintEngine(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_paintEngine(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            QPaintEngine*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->QPixmap::paintEngine() : sipCpp->paintEngine());

            return sipConvertFromType(sipRes,sipType_QPaintEngine,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_paintEngine, doc_QPixmap_paintEngine);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_metric, "QPixmap.metric(QPaintDevice.PaintDeviceMetric) -> int");

extern "C" {static PyObject *meth_QPixmap_metric(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_metric(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPaintDevice::PaintDeviceMetric a0;
        const sipQPixmap *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BE", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QPaintDevice_PaintDeviceMetric, &a0))
        {
            int sipRes;

            sipRes = sipCpp->sipProtectVirt_metric(sipSelfWasArg,a0);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_metric, doc_QPixmap_metric);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_transformed, "QPixmap.transformed(QTransform, Qt.TransformationMode mode=Qt.FastTransformation) -> QPixmap");

extern "C" {static PyObject *meth_QPixmap_transformed(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_transformed(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        Qt::TransformationMode a1 = Qt::FastTransformation;
        const QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_mode,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|E", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QTransform, &a0, sipType_Qt_TransformationMode, &a1))
        {
            QPixmap*sipRes;

            sipRes = new QPixmap(sipCpp->transformed(*a0,a1));

            return sipConvertFromNewType(sipRes,sipType_QPixmap,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_transformed, doc_QPixmap_transformed);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_trueMatrix, "QPixmap.trueMatrix(QTransform, int, int) -> QTransform");

extern "C" {static PyObject *meth_QPixmap_trueMatrix(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_trueMatrix(PyObject *, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QTransform* a0;
        int a1;
        int a2;

        if (sipParseArgs(&sipParseErr, sipArgs, "J9ii", sipType_QTransform, &a0, &a1, &a2))
        {
            QTransform*sipRes;

            sipRes = new QTransform(QPixmap::trueMatrix(*a0,a1,a2));

            return sipConvertFromNewType(sipRes,sipType_QTransform,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_trueMatrix, doc_QPixmap_trueMatrix);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_cacheKey, "QPixmap.cacheKey() -> int");

extern "C" {static PyObject *meth_QPixmap_cacheKey(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_cacheKey(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            qint64 sipRes;

            sipRes = sipCpp->cacheKey();

            return PyLong_FromLongLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_cacheKey, doc_QPixmap_cacheKey);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_scroll, "QPixmap.scroll(int, int, QRect) -> QRegion\n"
    "QPixmap.scroll(int, int, int, int, int, int) -> QRegion");

extern "C" {static PyObject *meth_QPixmap_scroll(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QPixmap_scroll(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        int a1;
        const QRect* a2;
        QRegion* a3;
        QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BiiJ9", &sipSelf, sipType_QPixmap, &sipCpp, &a0, &a1, sipType_QRect, &a2))
        {
            a3 = new QRegion();

            sipCpp->scroll(a0,a1,*a2,a3);

            return sipConvertFromNewType(a3,sipType_QRegion,NULL);
        }
    }

    {
        int a0;
        int a1;
        int a2;
        int a3;
        int a4;
        int a5;
        QRegion* a6;
        QPixmap *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Biiiiii", &sipSelf, sipType_QPixmap, &sipCpp, &a0, &a1, &a2, &a3, &a4, &a5))
        {
            a6 = new QRegion();

            sipCpp->scroll(a0,a1,a2,a3,a4,a5,a6);

            return sipConvertFromNewType(a6,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_scroll, doc_QPixmap_scroll);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_swap, "QPixmap.swap(QPixmap)");

extern "C" {static PyObject *meth_QPixmap_swap(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_swap(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPixmap* a0;
        QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QPixmap, &sipCpp, sipType_QPixmap, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_swap, doc_QPixmap_swap);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_devicePixelRatio, "QPixmap.devicePixelRatio() -> float");

extern "C" {static PyObject *meth_QPixmap_devicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_devicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QPixmap, &sipCpp))
        {
            qreal sipRes;

            sipRes = sipCpp->devicePixelRatio();

            return PyFloat_FromDouble(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_devicePixelRatio, doc_QPixmap_devicePixelRatio);

    return NULL;
}


PyDoc_STRVAR(doc_QPixmap_setDevicePixelRatio, "QPixmap.setDevicePixelRatio(float)");

extern "C" {static PyObject *meth_QPixmap_setDevicePixelRatio(PyObject *, PyObject *);}
static PyObject *meth_QPixmap_setDevicePixelRatio(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        qreal a0;
        QPixmap *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QPixmap, &sipCpp, &a0))
        {
            sipCpp->setDevicePixelRatio(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QPixmap, sipName_setDevicePixelRatio, doc_QPixmap_setDevicePixelRatio);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QPixmap(void *, const sipTypeDef *);}
static void *cast_QPixmap(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QPixmap)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QPaintDevice)->ctd_cast((QPaintDevice *)(QPixmap *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QPixmap(void *, int);}
static void release_QPixmap(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQPixmap *>(sipCppV);
    else
        delete reinterpret_cast<QPixmap *>(sipCppV);
}


extern "C" {static void assign_QPixmap(void *, SIP_SSIZE_T, const void *);}
static void assign_QPixmap(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QPixmap *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QPixmap *>(sipSrc);
}


extern "C" {static void *array_QPixmap(SIP_SSIZE_T);}
static void *array_QPixmap(SIP_SSIZE_T sipNrElem)
{
    return new QPixmap[sipNrElem];
}


extern "C" {static void *copy_QPixmap(const void *, SIP_SSIZE_T);}
static void *copy_QPixmap(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QPixmap(reinterpret_cast<const QPixmap *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QPixmap(sipSimpleWrapper *);}
static void dealloc_QPixmap(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQPixmap *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QPixmap(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QPixmap(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QPixmap(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQPixmap *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQPixmap();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        int a0;
        int a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "ii", &a0, &a1))
        {
            sipCpp = new sipQPixmap(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QSize* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QSize, &a0))
        {
            sipCpp = new sipQPixmap(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QString* a0;
        int a0State = 0;
        const char* a1 = 0;
        PyObject *a1Keep = 0;
        Qt::ImageConversionFlags a2def = Qt::AutoColor;
        Qt::ImageConversionFlags* a2 = &a2def;
        int a2State = 0;

        static const char *sipKwdList[] = {
            NULL,
            sipName_format,
            sipName_flags,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|AAJ1", sipType_QString,&a0, &a0State, &a1Keep, &a1, sipType_Qt_ImageConversionFlags, &a2, &a2State))
        {
            sipCpp = new sipQPixmap(*a0,a1,*a2);
            sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State);
            Py_XDECREF(a1Keep);
            sipReleaseType(a2,sipType_Qt_ImageConversionFlags,a2State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        PyObject * a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "T", &PyList_Type, &a0))
        {
            int sipIsErr = 0;

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
        // The Python interface is a list of strings that make up the image.
        
        const char **str = QtGui_ListToArray(a0);
        
        if (str)
        {
            sipCpp = new sipQPixmap(str);
            QtGui_DeleteArray(str);
        }
        else
            sipIsErr = 1;
#line 184217 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipIsErr)
            {
                if (sipUnused)
                {
                    Py_XDECREF(*sipUnused);
                }

                sipAddException(sipErrorFail, sipParseErr);
                return NULL;
            }

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QPixmap* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QPixmap, &a0))
        {
            sipCpp = new sipQPixmap(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QVariant* a0;
        PyObject *a0Wrapper;
        int a0State = 0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "@J1", &a0Wrapper, sipType_QVariant, &a0, &a0State))
        {
            sipErrorState sipError = sipErrorNone;

#line 56 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpixmap.sip"
        if (a0->canConvert<QPixmap>())
            sipCpp = new sipQPixmap(a0->value<QPixmap>());
        else
            sipError = sipBadCallableArg(0, a0Wrapper);
#line 184263 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
            sipReleaseType(const_cast<QVariant *>(a0),sipType_QVariant,a0State);

            if (sipError == sipErrorNone)
            {
                sipCpp->sipPySelf = sipSelf;

                return sipCpp;
            }

            if (sipUnused)
            {
                Py_XDECREF(*sipUnused);
            }

            sipAddException(sipError, sipParseErr);

            if (sipError == sipErrorFail)
                return NULL;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QPixmap[] = {{183, 255, 1}};


static PyMethodDef methods_QPixmap[] = {
    {SIP_MLNAME_CAST(sipName_cacheKey), meth_QPixmap_cacheKey, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_cacheKey)},
    {SIP_MLNAME_CAST(sipName_convertFromImage), (PyCFunction)meth_QPixmap_convertFromImage, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_convertFromImage)},
    {SIP_MLNAME_CAST(sipName_copy), (PyCFunction)meth_QPixmap_copy, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_copy)},
    {SIP_MLNAME_CAST(sipName_createHeuristicMask), (PyCFunction)meth_QPixmap_createHeuristicMask, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_createHeuristicMask)},
    {SIP_MLNAME_CAST(sipName_createMaskFromColor), (PyCFunction)meth_QPixmap_createMaskFromColor, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_createMaskFromColor)},
    {SIP_MLNAME_CAST(sipName_defaultDepth), meth_QPixmap_defaultDepth, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_defaultDepth)},
    {SIP_MLNAME_CAST(sipName_depth), meth_QPixmap_depth, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_depth)},
    {SIP_MLNAME_CAST(sipName_detach), meth_QPixmap_detach, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_detach)},
    {SIP_MLNAME_CAST(sipName_devType), meth_QPixmap_devType, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_devType)},
    {SIP_MLNAME_CAST(sipName_devicePixelRatio), meth_QPixmap_devicePixelRatio, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_devicePixelRatio)},
    {SIP_MLNAME_CAST(sipName_fill), (PyCFunction)meth_QPixmap_fill, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_fill)},
    {SIP_MLNAME_CAST(sipName_fromImage), (PyCFunction)meth_QPixmap_fromImage, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_fromImage)},
    {SIP_MLNAME_CAST(sipName_fromImageReader), (PyCFunction)meth_QPixmap_fromImageReader, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_fromImageReader)},
    {SIP_MLNAME_CAST(sipName_hasAlpha), meth_QPixmap_hasAlpha, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_hasAlpha)},
    {SIP_MLNAME_CAST(sipName_hasAlphaChannel), meth_QPixmap_hasAlphaChannel, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_hasAlphaChannel)},
    {SIP_MLNAME_CAST(sipName_height), meth_QPixmap_height, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_height)},
    {SIP_MLNAME_CAST(sipName_isNull), meth_QPixmap_isNull, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_isNull)},
    {SIP_MLNAME_CAST(sipName_isQBitmap), meth_QPixmap_isQBitmap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_isQBitmap)},
    {SIP_MLNAME_CAST(sipName_load), (PyCFunction)meth_QPixmap_load, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_load)},
    {SIP_MLNAME_CAST(sipName_loadFromData), (PyCFunction)meth_QPixmap_loadFromData, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_loadFromData)},
    {SIP_MLNAME_CAST(sipName_mask), meth_QPixmap_mask, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_mask)},
    {SIP_MLNAME_CAST(sipName_metric), (PyCFunction)meth_QPixmap_metric, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_metric)},
    {SIP_MLNAME_CAST(sipName_paintEngine), meth_QPixmap_paintEngine, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_paintEngine)},
    {SIP_MLNAME_CAST(sipName_rect), meth_QPixmap_rect, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_rect)},
    {SIP_MLNAME_CAST(sipName_save), (PyCFunction)meth_QPixmap_save, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_save)},
    {SIP_MLNAME_CAST(sipName_scaled), (PyCFunction)meth_QPixmap_scaled, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_scaled)},
    {SIP_MLNAME_CAST(sipName_scaledToHeight), (PyCFunction)meth_QPixmap_scaledToHeight, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_scaledToHeight)},
    {SIP_MLNAME_CAST(sipName_scaledToWidth), (PyCFunction)meth_QPixmap_scaledToWidth, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_scaledToWidth)},
    {SIP_MLNAME_CAST(sipName_scroll), (PyCFunction)meth_QPixmap_scroll, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_scroll)},
    {SIP_MLNAME_CAST(sipName_setDevicePixelRatio), meth_QPixmap_setDevicePixelRatio, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_setDevicePixelRatio)},
    {SIP_MLNAME_CAST(sipName_setMask), meth_QPixmap_setMask, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_setMask)},
    {SIP_MLNAME_CAST(sipName_size), meth_QPixmap_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_size)},
    {SIP_MLNAME_CAST(sipName_swap), meth_QPixmap_swap, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_swap)},
    {SIP_MLNAME_CAST(sipName_toImage), meth_QPixmap_toImage, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_toImage)},
    {SIP_MLNAME_CAST(sipName_transformed), (PyCFunction)meth_QPixmap_transformed, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QPixmap_transformed)},
    {SIP_MLNAME_CAST(sipName_trueMatrix), meth_QPixmap_trueMatrix, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_trueMatrix)},
    {SIP_MLNAME_CAST(sipName_width), meth_QPixmap_width, METH_VARARGS, SIP_MLDOC_CAST(doc_QPixmap_width)}
};

PyDoc_STRVAR(doc_QPixmap, "\1QPixmap()\n"
    "QPixmap(int, int)\n"
    "QPixmap(QSize)\n"
    "QPixmap(str, str format=None, Qt.ImageConversionFlags flags=Qt.AutoColor)\n"
    "QPixmap(list-of-str)\n"
    "QPixmap(QPixmap)\n"
    "QPixmap(QVariant)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QPixmap = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QPixmap,
        {0}
    },
    {
        sipNameNr_QPixmap,
        {0, 0, 1},
        37, methods_QPixmap,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QPixmap,
    -1,
    -1,
    supers_QPixmap,
    0,
    init_type_QPixmap,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QPixmap,
    assign_QPixmap,
    array_QPixmap,
    copy_QPixmap,
    release_QPixmap,
    cast_QPixmap,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qbackingstore.sip"
#include <qbackingstore.h>
#line 184399 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qwindow.sip"
#include <qwindow.h>
#line 184403 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 184406 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 184409 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 184412 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 184415 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


PyDoc_STRVAR(doc_QBackingStore_window, "QBackingStore.window() -> QWindow");

extern "C" {static PyObject *meth_QBackingStore_window(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_window(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBackingStore, &sipCpp))
        {
            QWindow*sipRes;

            sipRes = sipCpp->window();

            return sipConvertFromType(sipRes,sipType_QWindow,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_window, doc_QBackingStore_window);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_paintDevice, "QBackingStore.paintDevice() -> QPaintDevice");

extern "C" {static PyObject *meth_QBackingStore_paintDevice(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_paintDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBackingStore, &sipCpp))
        {
            QPaintDevice*sipRes;

            sipRes = sipCpp->paintDevice();

            return sipConvertFromType(sipRes,sipType_QPaintDevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_paintDevice, doc_QBackingStore_paintDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_flush, "QBackingStore.flush(QRegion, QWindow window=None, QPoint offset=QPoint())");

extern "C" {static PyObject *meth_QBackingStore_flush(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_flush(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        QWindow* a1 = 0;
        const QPoint& a2def = QPoint();
        const QPoint* a2 = &a2def;
        QBackingStore *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_window,
            sipName_offset,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ9|J8J9", &sipSelf, sipType_QBackingStore, &sipCpp, sipType_QRegion, &a0, sipType_QWindow, &a1, sipType_QPoint, &a2))
        {
            sipCpp->flush(*a0,a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_flush, doc_QBackingStore_flush);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_resize, "QBackingStore.resize(QSize)");

extern "C" {static PyObject *meth_QBackingStore_resize(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_resize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QSize* a0;
        QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBackingStore, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->resize(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_resize, doc_QBackingStore_resize);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_size, "QBackingStore.size() -> QSize");

extern "C" {static PyObject *meth_QBackingStore_size(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_size(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBackingStore, &sipCpp))
        {
            QSize*sipRes;

            sipRes = new QSize(sipCpp->size());

            return sipConvertFromNewType(sipRes,sipType_QSize,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_size, doc_QBackingStore_size);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_scroll, "QBackingStore.scroll(QRegion, int, int) -> bool");

extern "C" {static PyObject *meth_QBackingStore_scroll(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_scroll(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        int a1;
        int a2;
        QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9ii", &sipSelf, sipType_QBackingStore, &sipCpp, sipType_QRegion, &a0, &a1, &a2))
        {
            bool sipRes;

            sipRes = sipCpp->scroll(*a0,a1,a2);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_scroll, doc_QBackingStore_scroll);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_beginPaint, "QBackingStore.beginPaint(QRegion)");

extern "C" {static PyObject *meth_QBackingStore_beginPaint(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_beginPaint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBackingStore, &sipCpp, sipType_QRegion, &a0))
        {
            sipCpp->beginPaint(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_beginPaint, doc_QBackingStore_beginPaint);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_endPaint, "QBackingStore.endPaint()");

extern "C" {static PyObject *meth_QBackingStore_endPaint(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_endPaint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBackingStore, &sipCpp))
        {
            sipCpp->endPaint();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_endPaint, doc_QBackingStore_endPaint);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_setStaticContents, "QBackingStore.setStaticContents(QRegion)");

extern "C" {static PyObject *meth_QBackingStore_setStaticContents(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_setStaticContents(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QRegion* a0;
        QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBackingStore, &sipCpp, sipType_QRegion, &a0))
        {
            sipCpp->setStaticContents(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_setStaticContents, doc_QBackingStore_setStaticContents);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_staticContents, "QBackingStore.staticContents() -> QRegion");

extern "C" {static PyObject *meth_QBackingStore_staticContents(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_staticContents(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBackingStore, &sipCpp))
        {
            QRegion*sipRes;

            sipRes = new QRegion(sipCpp->staticContents());

            return sipConvertFromNewType(sipRes,sipType_QRegion,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_staticContents, doc_QBackingStore_staticContents);

    return NULL;
}


PyDoc_STRVAR(doc_QBackingStore_hasStaticContents, "QBackingStore.hasStaticContents() -> bool");

extern "C" {static PyObject *meth_QBackingStore_hasStaticContents(PyObject *, PyObject *);}
static PyObject *meth_QBackingStore_hasStaticContents(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QBackingStore *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBackingStore, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->hasStaticContents();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QBackingStore, sipName_hasStaticContents, doc_QBackingStore_hasStaticContents);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QBackingStore(void *, const sipTypeDef *);}
static void *cast_QBackingStore(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QBackingStore)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QBackingStore(void *, int);}
static void release_QBackingStore(void *sipCppV,int)
{
    delete reinterpret_cast<QBackingStore *>(sipCppV);
}


extern "C" {static void dealloc_QBackingStore(sipSimpleWrapper *);}
static void dealloc_QBackingStore(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QBackingStore(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QBackingStore(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QBackingStore(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QBackingStore *sipCpp = 0;

    {
        QWindow* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QWindow, &a0))
        {
            sipCpp = new QBackingStore(a0);

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QBackingStore[] = {
    {SIP_MLNAME_CAST(sipName_beginPaint), meth_QBackingStore_beginPaint, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_beginPaint)},
    {SIP_MLNAME_CAST(sipName_endPaint), meth_QBackingStore_endPaint, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_endPaint)},
    {SIP_MLNAME_CAST(sipName_flush), (PyCFunction)meth_QBackingStore_flush, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QBackingStore_flush)},
    {SIP_MLNAME_CAST(sipName_hasStaticContents), meth_QBackingStore_hasStaticContents, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_hasStaticContents)},
    {SIP_MLNAME_CAST(sipName_paintDevice), meth_QBackingStore_paintDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_paintDevice)},
    {SIP_MLNAME_CAST(sipName_resize), meth_QBackingStore_resize, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_resize)},
    {SIP_MLNAME_CAST(sipName_scroll), meth_QBackingStore_scroll, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_scroll)},
    {SIP_MLNAME_CAST(sipName_setStaticContents), meth_QBackingStore_setStaticContents, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_setStaticContents)},
    {SIP_MLNAME_CAST(sipName_size), meth_QBackingStore_size, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_size)},
    {SIP_MLNAME_CAST(sipName_staticContents), meth_QBackingStore_staticContents, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_staticContents)},
    {SIP_MLNAME_CAST(sipName_window), meth_QBackingStore_window, METH_VARARGS, SIP_MLDOC_CAST(doc_QBackingStore_window)}
};

PyDoc_STRVAR(doc_QBackingStore, "\1QBackingStore(QWindow)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QBackingStore = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QBackingStore,
        {0}
    },
    {
        sipNameNr_QBackingStore,
        {0, 0, 1},
        11, methods_QBackingStore,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QBackingStore,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QBackingStore,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QBackingStore,
    0,
    0,
    0,
    release_QBackingStore,
    cast_QBackingStore,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 89 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 184849 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 184853 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 184856 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 184859 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 184862 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 184865 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQTextObjectInterface : public QTextObjectInterface
{
public:
    sipQTextObjectInterface();
    sipQTextObjectInterface(const QTextObjectInterface&);
    virtual ~sipQTextObjectInterface();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void drawObject(QPainter*,const QRectF&,QTextDocument*,int,const QTextFormat&);
    QSizeF intrinsicSize(QTextDocument*,int,const QTextFormat&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQTextObjectInterface(const sipQTextObjectInterface &);
    sipQTextObjectInterface &operator = (const sipQTextObjectInterface &);

    char sipPyMethods[2];
};

sipQTextObjectInterface::sipQTextObjectInterface(): QTextObjectInterface(), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQTextObjectInterface::sipQTextObjectInterface(const QTextObjectInterface& a0): QTextObjectInterface(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQTextObjectInterface::~sipQTextObjectInterface()
{
    sipCommonDtor(sipPySelf);
}

void sipQTextObjectInterface::drawObject(QPainter*a0,const QRectF& a1,QTextDocument*a2,int a3,const QTextFormat& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,sipName_QTextObjectInterface,sipName_drawObject);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_67(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QRectF&,QTextDocument*,int,const QTextFormat&);

    sipVH_QtGui_67(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

QSizeF sipQTextObjectInterface::intrinsicSize(QTextDocument*a0,int a1,const QTextFormat& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,sipName_QTextObjectInterface,sipName_intrinsicSize);

    if (!sipMeth)
        return QSizeF();

    extern QSizeF sipVH_QtGui_68(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTextDocument*,int,const QTextFormat&);

    return sipVH_QtGui_68(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}


PyDoc_STRVAR(doc_QTextObjectInterface_intrinsicSize, "QTextObjectInterface.intrinsicSize(QTextDocument, int, QTextFormat) -> QSizeF");

extern "C" {static PyObject *meth_QTextObjectInterface_intrinsicSize(PyObject *, PyObject *);}
static PyObject *meth_QTextObjectInterface_intrinsicSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QTextDocument* a0;
        int a1;
        const QTextFormat* a2;
        QTextObjectInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8iJ9", &sipSelf, sipType_QTextObjectInterface, &sipCpp, sipType_QTextDocument, &a0, &a1, sipType_QTextFormat, &a2))
        {
            QSizeF*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QTextObjectInterface, sipName_intrinsicSize);
                return NULL;
            }

            sipRes = new QSizeF(sipCpp->intrinsicSize(a0,a1,*a2));

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObjectInterface, sipName_intrinsicSize, doc_QTextObjectInterface_intrinsicSize);

    return NULL;
}


PyDoc_STRVAR(doc_QTextObjectInterface_drawObject, "QTextObjectInterface.drawObject(QPainter, QRectF, QTextDocument, int, QTextFormat)");

extern "C" {static PyObject *meth_QTextObjectInterface_drawObject(PyObject *, PyObject *);}
static PyObject *meth_QTextObjectInterface_drawObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPainter* a0;
        const QRectF* a1;
        QTextDocument* a2;
        int a3;
        const QTextFormat* a4;
        QTextObjectInterface *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9J8iJ9", &sipSelf, sipType_QTextObjectInterface, &sipCpp, sipType_QPainter, &a0, sipType_QRectF, &a1, sipType_QTextDocument, &a2, &a3, sipType_QTextFormat, &a4))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QTextObjectInterface, sipName_drawObject);
                return NULL;
            }

            sipCpp->drawObject(a0,*a1,a2,a3,*a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QTextObjectInterface, sipName_drawObject, doc_QTextObjectInterface_drawObject);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QTextObjectInterface(void *, const sipTypeDef *);}
static void *cast_QTextObjectInterface(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QTextObjectInterface)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QTextObjectInterface(void *, int);}
static void release_QTextObjectInterface(void *sipCppV,int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQTextObjectInterface *>(sipCppV);
    else
        delete reinterpret_cast<QTextObjectInterface *>(sipCppV);
}


extern "C" {static int mixin_QTextObjectInterface(PyObject *, PyObject *, PyObject *);}
static int mixin_QTextObjectInterface(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    return sipInitMixin(sipSelf, sipArgs, sipKwds, (sipClassTypeDef *)&sipTypeDef_QtGui_QTextObjectInterface);
}


extern "C" {static void dealloc_QTextObjectInterface(sipSimpleWrapper *);}
static void dealloc_QTextObjectInterface(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQTextObjectInterface *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QTextObjectInterface(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QTextObjectInterface(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QTextObjectInterface(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQTextObjectInterface *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new sipQTextObjectInterface();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const QTextObjectInterface* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QTextObjectInterface, &a0))
        {
            sipCpp = new sipQTextObjectInterface(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


static PyMethodDef methods_QTextObjectInterface[] = {
    {SIP_MLNAME_CAST(sipName_drawObject), meth_QTextObjectInterface_drawObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextObjectInterface_drawObject)},
    {SIP_MLNAME_CAST(sipName_intrinsicSize), meth_QTextObjectInterface_intrinsicSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QTextObjectInterface_intrinsicSize)}
};

PyDoc_STRVAR(doc_QTextObjectInterface, "\1QTextObjectInterface()\n"
    "QTextObjectInterface(QTextObjectInterface)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QTextObjectInterface = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QTextObjectInterface,
        {0}
    },
    {
        sipNameNr_QTextObjectInterface,
        {0, 0, 1},
        2, methods_QTextObjectInterface,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QTextObjectInterface,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QTextObjectInterface,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QTextObjectInterface,
    0,
    0,
    0,
    release_QTextObjectInterface,
    cast_QTextObjectInterface,
    0,
    0,
    0,
    0,
    0,
    mixin_QTextObjectInterface
},
    0,
    0,
    0,
    "org.qt-project.Qt.QTextObjectInterface"
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 46 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 185157 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 185161 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpalette.sip"
#include <qpalette.h>
#line 185164 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qpycore_qvector.sip"
#include <qvector.h>
#line 185167 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 36 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 185172 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QAbstractTextDocumentLayout_PaintContext(void *, const sipTypeDef *);}
static void *cast_QAbstractTextDocumentLayout_PaintContext(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QAbstractTextDocumentLayout_PaintContext)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAbstractTextDocumentLayout_PaintContext(void *, int);}
static void release_QAbstractTextDocumentLayout_PaintContext(void *sipCppV,int)
{
    delete reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipCppV);
}


extern "C" {static void assign_QAbstractTextDocumentLayout_PaintContext(void *, SIP_SSIZE_T, const void *);}
static void assign_QAbstractTextDocumentLayout_PaintContext(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QAbstractTextDocumentLayout::PaintContext *>(sipSrc);
}


extern "C" {static void *array_QAbstractTextDocumentLayout_PaintContext(SIP_SSIZE_T);}
static void *array_QAbstractTextDocumentLayout_PaintContext(SIP_SSIZE_T sipNrElem)
{
    return new QAbstractTextDocumentLayout::PaintContext[sipNrElem];
}


extern "C" {static void *copy_QAbstractTextDocumentLayout_PaintContext(const void *, SIP_SSIZE_T);}
static void *copy_QAbstractTextDocumentLayout_PaintContext(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QAbstractTextDocumentLayout::PaintContext(reinterpret_cast<const QAbstractTextDocumentLayout::PaintContext *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QAbstractTextDocumentLayout_PaintContext(sipSimpleWrapper *);}
static void dealloc_QAbstractTextDocumentLayout_PaintContext(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QAbstractTextDocumentLayout_PaintContext(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QAbstractTextDocumentLayout_PaintContext(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QAbstractTextDocumentLayout_PaintContext(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QAbstractTextDocumentLayout::PaintContext *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QAbstractTextDocumentLayout::PaintContext();

            return sipCpp;
        }
    }

    {
        const QAbstractTextDocumentLayout::PaintContext* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QAbstractTextDocumentLayout_PaintContext, &a0))
        {
            sipCpp = new QAbstractTextDocumentLayout::PaintContext(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_QAbstractTextDocumentLayout_PaintContext_clip(void *, PyObject *, PyObject *);}
static PyObject *varget_QAbstractTextDocumentLayout_PaintContext_clip(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QRectF*sipVal;
    QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    sipVal = &sipCpp->clip;

    sipPy = sipGetReference(sipPySelf, -9);
    if (sipPy)
        return sipPy;

    sipPy = sipConvertFromType(sipVal, sipType_QRectF, NULL);
    sipKeepReference(sipPySelf, -9, sipPy);

    return sipPy;
}


extern "C" {static int varset_QAbstractTextDocumentLayout_PaintContext_clip(void *, PyObject *, PyObject *);}
static int varset_QAbstractTextDocumentLayout_PaintContext_clip(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QRectF*sipVal;
    QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    int sipIsErr = 0;

    sipVal = reinterpret_cast<QRectF *>(sipForceConvertToType(sipPy,sipType_QRectF,NULL,SIP_NOT_NONE,NULL,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->clip = *sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QAbstractTextDocumentLayout_PaintContext_cursorPosition(void *, PyObject *, PyObject *);}
static PyObject *varget_QAbstractTextDocumentLayout_PaintContext_cursorPosition(void *sipSelf, PyObject *, PyObject *)
{
    int sipVal;
    QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    sipVal = sipCpp->cursorPosition;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static int varset_QAbstractTextDocumentLayout_PaintContext_cursorPosition(void *, PyObject *, PyObject *);}
static int varset_QAbstractTextDocumentLayout_PaintContext_cursorPosition(void *sipSelf, PyObject *sipPy, PyObject *)
{
    int sipVal;
    QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    sipVal = (int)SIPLong_AsLong(sipPy);

    if (PyErr_Occurred() != NULL)
        return -1;

    sipCpp->cursorPosition = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QAbstractTextDocumentLayout_PaintContext_palette(void *, PyObject *, PyObject *);}
static PyObject *varget_QAbstractTextDocumentLayout_PaintContext_palette(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QPalette*sipVal;
    QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    sipVal = &sipCpp->palette;

    sipPy = sipGetReference(sipPySelf, -10);
    if (sipPy)
        return sipPy;

    sipPy = sipConvertFromType(sipVal, sipType_QPalette, NULL);
    sipKeepReference(sipPySelf, -10, sipPy);

    return sipPy;
}


extern "C" {static int varset_QAbstractTextDocumentLayout_PaintContext_palette(void *, PyObject *, PyObject *);}
static int varset_QAbstractTextDocumentLayout_PaintContext_palette(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QPalette*sipVal;
    QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    int sipIsErr = 0;

    sipVal = reinterpret_cast<QPalette *>(sipForceConvertToType(sipPy,sipType_QPalette,NULL,SIP_NOT_NONE,NULL,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->palette = *sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QAbstractTextDocumentLayout_PaintContext_selections(void *, PyObject *, PyObject *);}
static PyObject *varget_QAbstractTextDocumentLayout_PaintContext_selections(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QVector<QAbstractTextDocumentLayout::Selection>*sipVal;
    QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    sipVal = &sipCpp->selections;

    sipPy = sipGetReference(sipPySelf, -11);
    if (sipPy)
        return sipPy;

    sipPy = sipConvertFromType(sipVal, sipType_QVector_0100QAbstractTextDocumentLayout_Selection, NULL);
    sipKeepReference(sipPySelf, -11, sipPy);

    return sipPy;
}


extern "C" {static int varset_QAbstractTextDocumentLayout_PaintContext_selections(void *, PyObject *, PyObject *);}
static int varset_QAbstractTextDocumentLayout_PaintContext_selections(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QVector<QAbstractTextDocumentLayout::Selection>*sipVal;
    QAbstractTextDocumentLayout::PaintContext *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::PaintContext *>(sipSelf);

    int sipValState;
    int sipIsErr = 0;

    sipVal = reinterpret_cast<QVector<QAbstractTextDocumentLayout::Selection> *>(sipForceConvertToType(sipPy,sipType_QVector_0100QAbstractTextDocumentLayout_Selection,NULL,SIP_NOT_NONE,&sipValState,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->selections = *sipVal;

    sipReleaseType(sipVal, sipType_QVector_0100QAbstractTextDocumentLayout_Selection, sipValState);

    return 0;
}

sipVariableDef variables_QAbstractTextDocumentLayout_PaintContext[] = {
    {InstanceVariable, sipName_clip, (PyMethodDef *)varget_QAbstractTextDocumentLayout_PaintContext_clip, (PyMethodDef *)varset_QAbstractTextDocumentLayout_PaintContext_clip, NULL, NULL},
    {InstanceVariable, sipName_cursorPosition, (PyMethodDef *)varget_QAbstractTextDocumentLayout_PaintContext_cursorPosition, (PyMethodDef *)varset_QAbstractTextDocumentLayout_PaintContext_cursorPosition, NULL, NULL},
    {InstanceVariable, sipName_palette, (PyMethodDef *)varget_QAbstractTextDocumentLayout_PaintContext_palette, (PyMethodDef *)varset_QAbstractTextDocumentLayout_PaintContext_palette, NULL, NULL},
    {InstanceVariable, sipName_selections, (PyMethodDef *)varget_QAbstractTextDocumentLayout_PaintContext_selections, (PyMethodDef *)varset_QAbstractTextDocumentLayout_PaintContext_selections, NULL, NULL},
};

PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_PaintContext, "\1QAbstractTextDocumentLayout.PaintContext()\n"
    "QAbstractTextDocumentLayout.PaintContext(QAbstractTextDocumentLayout.PaintContext)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QAbstractTextDocumentLayout_PaintContext = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QAbstractTextDocumentLayout__PaintContext,
        {0}
    },
    {
        sipNameNr_PaintContext,
        {1, 255, 0},
        0, 0,
        0, 0,
        4, variables_QAbstractTextDocumentLayout_PaintContext,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QAbstractTextDocumentLayout_PaintContext,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QAbstractTextDocumentLayout_PaintContext,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QAbstractTextDocumentLayout_PaintContext,
    assign_QAbstractTextDocumentLayout_PaintContext,
    array_QAbstractTextDocumentLayout_PaintContext,
    copy_QAbstractTextDocumentLayout_PaintContext,
    release_QAbstractTextDocumentLayout_PaintContext,
    cast_QAbstractTextDocumentLayout_PaintContext,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 36 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 185472 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextcursor.sip"
#include <qtextcursor.h>
#line 185476 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 185479 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QAbstractTextDocumentLayout_Selection(void *, const sipTypeDef *);}
static void *cast_QAbstractTextDocumentLayout_Selection(void *ptr, const sipTypeDef *targetType)
{
    if (targetType == sipType_QAbstractTextDocumentLayout_Selection)
        return ptr;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAbstractTextDocumentLayout_Selection(void *, int);}
static void release_QAbstractTextDocumentLayout_Selection(void *sipCppV,int)
{
    delete reinterpret_cast<QAbstractTextDocumentLayout::Selection *>(sipCppV);
}


extern "C" {static void assign_QAbstractTextDocumentLayout_Selection(void *, SIP_SSIZE_T, const void *);}
static void assign_QAbstractTextDocumentLayout_Selection(void *sipDst, SIP_SSIZE_T sipDstIdx, const void *sipSrc)
{
    reinterpret_cast<QAbstractTextDocumentLayout::Selection *>(sipDst)[sipDstIdx] = *reinterpret_cast<const QAbstractTextDocumentLayout::Selection *>(sipSrc);
}


extern "C" {static void *array_QAbstractTextDocumentLayout_Selection(SIP_SSIZE_T);}
static void *array_QAbstractTextDocumentLayout_Selection(SIP_SSIZE_T sipNrElem)
{
    return new QAbstractTextDocumentLayout::Selection[sipNrElem];
}


extern "C" {static void *copy_QAbstractTextDocumentLayout_Selection(const void *, SIP_SSIZE_T);}
static void *copy_QAbstractTextDocumentLayout_Selection(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new QAbstractTextDocumentLayout::Selection(reinterpret_cast<const QAbstractTextDocumentLayout::Selection *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_QAbstractTextDocumentLayout_Selection(sipSimpleWrapper *);}
static void dealloc_QAbstractTextDocumentLayout_Selection(sipSimpleWrapper *sipSelf)
{
    if (sipIsPyOwned(sipSelf))
    {
        release_QAbstractTextDocumentLayout_Selection(sipGetAddress(sipSelf),0);
    }
}


extern "C" {static void *init_type_QAbstractTextDocumentLayout_Selection(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QAbstractTextDocumentLayout_Selection(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    QAbstractTextDocumentLayout::Selection *sipCpp = 0;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, ""))
        {
            sipCpp = new QAbstractTextDocumentLayout::Selection();

            return sipCpp;
        }
    }

    {
        const QAbstractTextDocumentLayout::Selection* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9", sipType_QAbstractTextDocumentLayout_Selection, &a0))
        {
            sipCpp = new QAbstractTextDocumentLayout::Selection(*a0);

            return sipCpp;
        }
    }

    return NULL;
}


extern "C" {static PyObject *varget_QAbstractTextDocumentLayout_Selection_cursor(void *, PyObject *, PyObject *);}
static PyObject *varget_QAbstractTextDocumentLayout_Selection_cursor(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QTextCursor*sipVal;
    QAbstractTextDocumentLayout::Selection *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::Selection *>(sipSelf);

    sipVal = &sipCpp->cursor;

    sipPy = sipGetReference(sipPySelf, -12);
    if (sipPy)
        return sipPy;

    sipPy = sipConvertFromType(sipVal, sipType_QTextCursor, NULL);
    sipKeepReference(sipPySelf, -12, sipPy);

    return sipPy;
}


extern "C" {static int varset_QAbstractTextDocumentLayout_Selection_cursor(void *, PyObject *, PyObject *);}
static int varset_QAbstractTextDocumentLayout_Selection_cursor(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QTextCursor*sipVal;
    QAbstractTextDocumentLayout::Selection *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::Selection *>(sipSelf);

    int sipIsErr = 0;

    sipVal = reinterpret_cast<QTextCursor *>(sipForceConvertToType(sipPy,sipType_QTextCursor,NULL,SIP_NOT_NONE,NULL,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->cursor = *sipVal;

    return 0;
}


extern "C" {static PyObject *varget_QAbstractTextDocumentLayout_Selection_format(void *, PyObject *, PyObject *);}
static PyObject *varget_QAbstractTextDocumentLayout_Selection_format(void *sipSelf, PyObject *sipPySelf, PyObject *)
{
    PyObject *sipPy;
    QTextCharFormat*sipVal;
    QAbstractTextDocumentLayout::Selection *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::Selection *>(sipSelf);

    sipVal = &sipCpp->format;

    sipPy = sipGetReference(sipPySelf, -13);
    if (sipPy)
        return sipPy;

    sipPy = sipConvertFromType(sipVal, sipType_QTextCharFormat, NULL);
    sipKeepReference(sipPySelf, -13, sipPy);

    return sipPy;
}


extern "C" {static int varset_QAbstractTextDocumentLayout_Selection_format(void *, PyObject *, PyObject *);}
static int varset_QAbstractTextDocumentLayout_Selection_format(void *sipSelf, PyObject *sipPy, PyObject *)
{
    QTextCharFormat*sipVal;
    QAbstractTextDocumentLayout::Selection *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout::Selection *>(sipSelf);

    int sipIsErr = 0;

    sipVal = reinterpret_cast<QTextCharFormat *>(sipForceConvertToType(sipPy,sipType_QTextCharFormat,NULL,SIP_NOT_NONE,NULL,&sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->format = *sipVal;

    return 0;
}

sipVariableDef variables_QAbstractTextDocumentLayout_Selection[] = {
    {InstanceVariable, sipName_cursor, (PyMethodDef *)varget_QAbstractTextDocumentLayout_Selection_cursor, (PyMethodDef *)varset_QAbstractTextDocumentLayout_Selection_cursor, NULL, NULL},
    {InstanceVariable, sipName_format, (PyMethodDef *)varget_QAbstractTextDocumentLayout_Selection_format, (PyMethodDef *)varset_QAbstractTextDocumentLayout_Selection_format, NULL, NULL},
};

PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_Selection, "\1QAbstractTextDocumentLayout.Selection()\n"
    "QAbstractTextDocumentLayout.Selection(QAbstractTextDocumentLayout.Selection)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QAbstractTextDocumentLayout_Selection = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QAbstractTextDocumentLayout__Selection,
        {0}
    },
    {
        sipNameNr_Selection,
        {1, 255, 0},
        0, 0,
        0, 0,
        2, variables_QAbstractTextDocumentLayout_Selection,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QAbstractTextDocumentLayout_Selection,
    sipNameNr_PyQt5_QtCore_pyqtWrapperType,
    sipNameNr_sip_simplewrapper,
    0,
    0,
    init_type_QAbstractTextDocumentLayout_Selection,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QAbstractTextDocumentLayout_Selection,
    assign_QAbstractTextDocumentLayout_Selection,
    array_QAbstractTextDocumentLayout_Selection,
    copy_QAbstractTextDocumentLayout_Selection,
    release_QAbstractTextDocumentLayout_Selection,
    cast_QAbstractTextDocumentLayout_Selection,
    0,
    0,
    0,
    0,
    0,
    0
},
    0,
    0,
    0,
    0
};

#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 185704 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

#line 40 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextdocument.sip"
#include <qtextdocument.h>
#line 185708 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 253 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 185711 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 185714 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 165 "sip/QtCore/qrect.sip"
#include <qrect.h>
#line 185717 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextlayout.sip"
#include <qtextlayout.h>
#line 185720 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 63 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextformat.sip"
#include <qtextformat.h>
#line 185723 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 129 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 185726 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 101 "sip/QtCore/qsize.sip"
#include <qsize.h>
#line 185729 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 89 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 185732 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 28 "sip/QtCore/qobject.sip"
#include <qobject.h>
#line 185735 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qpaintdevice.sip"
#include <qpaintdevice.h>
#line 185738 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 65 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 185741 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 27 "sip/QtCore/qstring.sip"
#include <qstring.h>
#line 185744 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 99 "sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 185747 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 185750 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 46 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/sip/QtGui/qabstracttextdocumentlayout.sip"
#include <qabstracttextdocumentlayout.h>
#line 185755 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 185758 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 185761 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 241 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 185764 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 229 "sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 185767 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 185770 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 36 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 185773 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 32 "sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 185776 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 144 "sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 185779 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qthread.sip"
#include <qthread.h>
#line 185782 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 185785 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregexp.sip"
#include <qregexp.h>
#line 185788 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 30 "sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 185791 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"
#line 26 "sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 185794 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"


class sipQAbstractTextDocumentLayout : public QAbstractTextDocumentLayout
{
public:
    sipQAbstractTextDocumentLayout(QTextDocument*);
    virtual ~sipQAbstractTextDocumentLayout();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool,QTimerEvent*);
    void sipProtectVirt_childEvent(bool,QChildEvent*);
    void sipProtectVirt_customEvent(bool,QEvent*);
    void sipProtectVirt_connectNotify(bool,const QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const QMetaMethod&) const;
    void sipProtect_documentChanged(int,int,int);
    void sipProtectVirt_resizeInlineObject(bool,QTextInlineObject,int,const QTextFormat&);
    void sipProtectVirt_positionInlineObject(bool,QTextInlineObject,int,const QTextFormat&);
    void sipProtectVirt_drawInlineObject(bool,QPainter*,const QRectF&,QTextInlineObject,int,const QTextFormat&);
    QTextCharFormat sipProtect_format(int);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const QMetaMethod&);
    void connectNotify(const QMetaMethod&);
    void customEvent(QEvent*);
    void childEvent(QChildEvent*);
    void timerEvent(QTimerEvent*);
    bool eventFilter(QObject*,QEvent*);
    bool event(QEvent*);
    void drawInlineObject(QPainter*,const QRectF&,QTextInlineObject,int,const QTextFormat&);
    void positionInlineObject(QTextInlineObject,int,const QTextFormat&);
    void resizeInlineObject(QTextInlineObject,int,const QTextFormat&);
    void documentChanged(int,int,int);
    QRectF blockBoundingRect(const QTextBlock&) const;
    QRectF frameBoundingRect(QTextFrame*) const;
    QSizeF documentSize() const;
    int pageCount() const;
    int hitTest(const QPointF&,Qt::HitTestAccuracy) const;
    void draw(QPainter*,const QAbstractTextDocumentLayout::PaintContext&);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQAbstractTextDocumentLayout(const sipQAbstractTextDocumentLayout &);
    sipQAbstractTextDocumentLayout &operator = (const sipQAbstractTextDocumentLayout &);

    char sipPyMethods[17];
};

sipQAbstractTextDocumentLayout::sipQAbstractTextDocumentLayout(QTextDocument*a0): QAbstractTextDocumentLayout(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQAbstractTextDocumentLayout::~sipQAbstractTextDocumentLayout()
{
    sipCommonDtor(sipPySelf);
}

const QMetaObject *sipQAbstractTextDocumentLayout::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtGui_qt_metaobject(sipPySelf,sipType_QAbstractTextDocumentLayout);
}

int sipQAbstractTextDocumentLayout::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id = QAbstractTextDocumentLayout::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_QtGui_qt_metacall(sipPySelf,sipType_QAbstractTextDocumentLayout,_c,_id,_a);

    return _id;
}

void *sipQAbstractTextDocumentLayout::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtGui_qt_metacast(sipPySelf, sipType_QAbstractTextDocumentLayout, _clname, &sipCpp) ? sipCpp : QAbstractTextDocumentLayout::qt_metacast(_clname));
}

void sipQAbstractTextDocumentLayout::disconnectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
        QAbstractTextDocumentLayout::disconnectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractTextDocumentLayout::connectNotify(const QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
        QAbstractTextDocumentLayout::connectNotify(a0);
        return;
    }

    typedef void (*sipVH_QtCore_46)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QMetaMethod&);

    ((sipVH_QtCore_46)(sipModuleAPI_QtGui_QtCore->em_virthandlers[46]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractTextDocumentLayout::customEvent(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
        QAbstractTextDocumentLayout::customEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_25)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    ((sipVH_QtCore_25)(sipModuleAPI_QtGui_QtCore->em_virthandlers[25]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractTextDocumentLayout::childEvent(QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
        QAbstractTextDocumentLayout::childEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_47)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QChildEvent*);

    ((sipVH_QtCore_47)(sipModuleAPI_QtGui_QtCore->em_virthandlers[47]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractTextDocumentLayout::timerEvent(QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
        QAbstractTextDocumentLayout::timerEvent(a0);
        return;
    }

    typedef void (*sipVH_QtCore_9)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTimerEvent*);

    ((sipVH_QtCore_9)(sipModuleAPI_QtGui_QtCore->em_virthandlers[9]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

bool sipQAbstractTextDocumentLayout::eventFilter(QObject*a0,QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return QAbstractTextDocumentLayout::eventFilter(a0,a1);

    typedef bool (*sipVH_QtCore_26)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QObject*,QEvent*);

    return ((sipVH_QtCore_26)(sipModuleAPI_QtGui_QtCore->em_virthandlers[26]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

bool sipQAbstractTextDocumentLayout::event(QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return QAbstractTextDocumentLayout::event(a0);

    typedef bool (*sipVH_QtCore_5)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QEvent*);

    return ((sipVH_QtCore_5)(sipModuleAPI_QtGui_QtCore->em_virthandlers[5]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

void sipQAbstractTextDocumentLayout::drawInlineObject(QPainter*a0,const QRectF& a1,QTextInlineObject a2,int a3,const QTextFormat& a4)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_drawInlineObject);

    if (!sipMeth)
    {
        QAbstractTextDocumentLayout::drawInlineObject(a0,a1,a2,a3,a4);
        return;
    }

    extern void sipVH_QtGui_69(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QRectF&,QTextInlineObject,int,const QTextFormat&);

    sipVH_QtGui_69(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2, a3, a4);
}

void sipQAbstractTextDocumentLayout::positionInlineObject(QTextInlineObject a0,int a1,const QTextFormat& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_positionInlineObject);

    if (!sipMeth)
    {
        QAbstractTextDocumentLayout::positionInlineObject(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_70(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTextInlineObject,int,const QTextFormat&);

    sipVH_QtGui_70(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

void sipQAbstractTextDocumentLayout::resizeInlineObject(QTextInlineObject a0,int a1,const QTextFormat& a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_resizeInlineObject);

    if (!sipMeth)
    {
        QAbstractTextDocumentLayout::resizeInlineObject(a0,a1,a2);
        return;
    }

    extern void sipVH_QtGui_70(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTextInlineObject,int,const QTextFormat&);

    sipVH_QtGui_70(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

void sipQAbstractTextDocumentLayout::documentChanged(int a0,int a1,int a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_documentChanged);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_71(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);

    sipVH_QtGui_71(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1, a2);
}

QRectF sipQAbstractTextDocumentLayout::blockBoundingRect(const QTextBlock& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[11]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_blockBoundingRect);

    if (!sipMeth)
        return QRectF();

    extern QRectF sipVH_QtGui_72(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QTextBlock&);

    return sipVH_QtGui_72(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QRectF sipQAbstractTextDocumentLayout::frameBoundingRect(QTextFrame*a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_frameBoundingRect);

    if (!sipMeth)
        return QRectF();

    extern QRectF sipVH_QtGui_73(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QTextFrame*);

    return sipVH_QtGui_73(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0);
}

QSizeF sipQAbstractTextDocumentLayout::documentSize() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_documentSize);

    if (!sipMeth)
        return QSizeF();

    extern QSizeF sipVH_QtGui_74(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_74(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQAbstractTextDocumentLayout::pageCount() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_pageCount);

    if (!sipMeth)
        return 0;

    typedef int (*sipVH_QtCore_6)(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return ((sipVH_QtCore_6)(sipModuleAPI_QtGui_QtCore->em_virthandlers[6]))(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth);
}

int sipQAbstractTextDocumentLayout::hitTest(const QPointF& a0,Qt::HitTestAccuracy a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[15]),sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_hitTest);

    if (!sipMeth)
        return 0;

    extern int sipVH_QtGui_75(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QPointF&,Qt::HitTestAccuracy);

    return sipVH_QtGui_75(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

void sipQAbstractTextDocumentLayout::draw(QPainter*a0,const QAbstractTextDocumentLayout::PaintContext& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,sipName_QAbstractTextDocumentLayout,sipName_draw);

    if (!sipMeth)
        return;

    extern void sipVH_QtGui_76(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, QPainter*,const QAbstractTextDocumentLayout::PaintContext&);

    sipVH_QtGui_76(sipGILState, sipModuleAPI_QtGui_QtCore->em_virterrorhandlers[0], sipPySelf, sipMeth, a0, a1);
}

QObject* sipQAbstractTextDocumentLayout::sipProtect_sender() const
{
    return QObject::sender();
}

int sipQAbstractTextDocumentLayout::sipProtect_receivers(const char*a0) const
{
    return QObject::receivers(a0);
}

void sipQAbstractTextDocumentLayout::sipProtectVirt_timerEvent(bool sipSelfWasArg,QTimerEvent*a0)
{
    (sipSelfWasArg ? QObject::timerEvent(a0) : timerEvent(a0));
}

void sipQAbstractTextDocumentLayout::sipProtectVirt_childEvent(bool sipSelfWasArg,QChildEvent*a0)
{
    (sipSelfWasArg ? QObject::childEvent(a0) : childEvent(a0));
}

void sipQAbstractTextDocumentLayout::sipProtectVirt_customEvent(bool sipSelfWasArg,QEvent*a0)
{
    (sipSelfWasArg ? QObject::customEvent(a0) : customEvent(a0));
}

void sipQAbstractTextDocumentLayout::sipProtectVirt_connectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::connectNotify(a0) : connectNotify(a0));
}

void sipQAbstractTextDocumentLayout::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const QMetaMethod& a0)
{
    (sipSelfWasArg ? QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipQAbstractTextDocumentLayout::sipProtect_senderSignalIndex() const
{
    return QObject::senderSignalIndex();
}

bool sipQAbstractTextDocumentLayout::sipProtect_isSignalConnected(const QMetaMethod& a0) const
{
    return QObject::isSignalConnected(a0);
}

void sipQAbstractTextDocumentLayout::sipProtect_documentChanged(int a0,int a1,int a2)
{
    documentChanged(a0,a1,a2);
}

void sipQAbstractTextDocumentLayout::sipProtectVirt_resizeInlineObject(bool sipSelfWasArg,QTextInlineObject a0,int a1,const QTextFormat& a2)
{
    (sipSelfWasArg ? QAbstractTextDocumentLayout::resizeInlineObject(a0,a1,a2) : resizeInlineObject(a0,a1,a2));
}

void sipQAbstractTextDocumentLayout::sipProtectVirt_positionInlineObject(bool sipSelfWasArg,QTextInlineObject a0,int a1,const QTextFormat& a2)
{
    (sipSelfWasArg ? QAbstractTextDocumentLayout::positionInlineObject(a0,a1,a2) : positionInlineObject(a0,a1,a2));
}

void sipQAbstractTextDocumentLayout::sipProtectVirt_drawInlineObject(bool sipSelfWasArg,QPainter*a0,const QRectF& a1,QTextInlineObject a2,int a3,const QTextFormat& a4)
{
    (sipSelfWasArg ? QAbstractTextDocumentLayout::drawInlineObject(a0,a1,a2,a3,a4) : drawInlineObject(a0,a1,a2,a3,a4));
}

QTextCharFormat sipQAbstractTextDocumentLayout::sipProtect_format(int a0)
{
    return QAbstractTextDocumentLayout::format(a0);
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_sender, "QAbstractTextDocumentLayout.sender() -> QObject");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp))
        {
            QObject*sipRes = 0;

#line 546 "sip/QtCore/qobject.sip"
        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
        
            if (qtcore_qobject_sender)
                sipRes = qtcore_qobject_sender();
        }
#line 186281 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_sender, doc_QAbstractTextDocumentLayout_sender);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_receivers, "QAbstractTextDocumentLayout.receivers(signal) -> int");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

#line 575 "sip/QtCore/qobject.sip"
        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
        
        if (pyqt5_get_signal_signature)
        {
            QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
            if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->receivers(signal_signature.constData());
            }
        #else
            if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
            {
                sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
            }
        #endif
            else if (sipError == sipErrorContinue)
            {
                sipError = sipBadCallableArg(0, a0);
            }
        }
#line 186340 "/usr/src/ports/python3-pyqt5/python3-pyqt5-5.4.2-1.i686/build/QtGui/sipQtGuipart0.cpp"

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_receivers, doc_QAbstractTextDocumentLayout_receivers);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_timerEvent, "QAbstractTextDocumentLayout.timerEvent(QTimerEvent)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTimerEvent* a0;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_timerEvent, doc_QAbstractTextDocumentLayout_timerEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_childEvent, "QAbstractTextDocumentLayout.childEvent(QChildEvent)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QChildEvent* a0;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_childEvent, doc_QAbstractTextDocumentLayout_childEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_customEvent, "QAbstractTextDocumentLayout.customEvent(QEvent)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QEvent* a0;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_customEvent, doc_QAbstractTextDocumentLayout_customEvent);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_connectNotify, "QAbstractTextDocumentLayout.connectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_connectNotify, doc_QAbstractTextDocumentLayout_connectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_disconnectNotify, "QAbstractTextDocumentLayout.disconnectNotify(QMetaMethod)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        const QMetaMethod* a0;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_disconnectNotify, doc_QAbstractTextDocumentLayout_disconnectNotify);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_senderSignalIndex, "QAbstractTextDocumentLayout.senderSignalIndex() -> int");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_senderSignalIndex, doc_QAbstractTextDocumentLayout_senderSignalIndex);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_isSignalConnected, "QAbstractTextDocumentLayout.isSignalConnected(QMetaMethod) -> bool");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const QMetaMethod* a0;
        const sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_isSignalConnected, doc_QAbstractTextDocumentLayout_isSignalConnected);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_draw, "QAbstractTextDocumentLayout.draw(QPainter, QAbstractTextDocumentLayout.PaintContext)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_draw(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_draw(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QPainter* a0;
        const QAbstractTextDocumentLayout::PaintContext* a1;
        QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QPainter, &a0, sipType_QAbstractTextDocumentLayout_PaintContext, &a1))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractTextDocumentLayout, sipName_draw);
                return NULL;
            }

            sipCpp->draw(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_draw, doc_QAbstractTextDocumentLayout_draw);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_hitTest, "QAbstractTextDocumentLayout.hitTest(QPointF, Qt.HitTestAccuracy) -> int");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_hitTest(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_hitTest(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QPointF* a0;
        int a0State = 0;
        Qt::HitTestAccuracy a1;
        const QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_Qt_HitTestAccuracy, &a1))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractTextDocumentLayout, sipName_hitTest);
                return NULL;
            }

            sipRes = sipCpp->hitTest(*a0,a1);
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_hitTest, doc_QAbstractTextDocumentLayout_hitTest);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_anchorAt, "QAbstractTextDocumentLayout.anchorAt(QPointF) -> str");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_anchorAt(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_anchorAt(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QPointF* a0;
        int a0State = 0;
        const QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QPointF, &a0, &a0State))
        {
            QString*sipRes;

            sipRes = new QString(sipCpp->anchorAt(*a0));
            sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State);

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_anchorAt, doc_QAbstractTextDocumentLayout_anchorAt);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_pageCount, "QAbstractTextDocumentLayout.pageCount() -> int");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_pageCount(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_pageCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp))
        {
            int sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractTextDocumentLayout, sipName_pageCount);
                return NULL;
            }

            sipRes = sipCpp->pageCount();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_pageCount, doc_QAbstractTextDocumentLayout_pageCount);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_documentSize, "QAbstractTextDocumentLayout.documentSize() -> QSizeF");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_documentSize(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_documentSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp))
        {
            QSizeF*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractTextDocumentLayout, sipName_documentSize);
                return NULL;
            }

            sipRes = new QSizeF(sipCpp->documentSize());

            return sipConvertFromNewType(sipRes,sipType_QSizeF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_documentSize, doc_QAbstractTextDocumentLayout_documentSize);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_frameBoundingRect, "QAbstractTextDocumentLayout.frameBoundingRect(QTextFrame) -> QRectF");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_frameBoundingRect(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_frameBoundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        QTextFrame* a0;
        const QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QTextFrame, &a0))
        {
            QRectF*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractTextDocumentLayout, sipName_frameBoundingRect);
                return NULL;
            }

            sipRes = new QRectF(sipCpp->frameBoundingRect(a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_frameBoundingRect, doc_QAbstractTextDocumentLayout_frameBoundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_blockBoundingRect, "QAbstractTextDocumentLayout.blockBoundingRect(QTextBlock) -> QRectF");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_blockBoundingRect(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_blockBoundingRect(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        const QTextBlock* a0;
        const QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QTextBlock, &a0))
        {
            QRectF*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractTextDocumentLayout, sipName_blockBoundingRect);
                return NULL;
            }

            sipRes = new QRectF(sipCpp->blockBoundingRect(*a0));

            return sipConvertFromNewType(sipRes,sipType_QRectF,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_blockBoundingRect, doc_QAbstractTextDocumentLayout_blockBoundingRect);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_setPaintDevice, "QAbstractTextDocumentLayout.setPaintDevice(QPaintDevice)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_setPaintDevice(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_setPaintDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        QPaintDevice* a0;
        QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QPaintDevice, &a0))
        {
            sipCpp->setPaintDevice(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_setPaintDevice, doc_QAbstractTextDocumentLayout_setPaintDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_paintDevice, "QAbstractTextDocumentLayout.paintDevice() -> QPaintDevice");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_paintDevice(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_paintDevice(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp))
        {
            QPaintDevice*sipRes;

            sipRes = sipCpp->paintDevice();

            return sipConvertFromType(sipRes,sipType_QPaintDevice,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_paintDevice, doc_QAbstractTextDocumentLayout_paintDevice);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_document, "QAbstractTextDocumentLayout.document() -> QTextDocument");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_document(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_document(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp))
        {
            QTextDocument*sipRes;

            sipRes = sipCpp->document();

            return sipConvertFromType(sipRes,sipType_QTextDocument,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_document, doc_QAbstractTextDocumentLayout_document);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_registerHandler, "QAbstractTextDocumentLayout.registerHandler(int, QObject)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_registerHandler(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_registerHandler(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QObject* a1;
        QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ8", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, &a0, sipType_QObject, &a1))
        {
            sipCpp->registerHandler(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_registerHandler, doc_QAbstractTextDocumentLayout_registerHandler);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_unregisterHandler, "QAbstractTextDocumentLayout.unregisterHandler(int, QObject component=None)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_unregisterHandler(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_unregisterHandler(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        QObject* a1 = 0;
        QAbstractTextDocumentLayout *sipCpp;

        static const char *sipKwdList[] = {
            NULL,
            sipName_component,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "Bi|J8", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, &a0, sipType_QObject, &a1))
        {
            sipCpp->unregisterHandler(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_unregisterHandler, doc_QAbstractTextDocumentLayout_unregisterHandler);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_handlerForObject, "QAbstractTextDocumentLayout.handlerForObject(int) -> QTextObjectInterface");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_handlerForObject(PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_handlerForObject(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const QAbstractTextDocumentLayout *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, &a0))
        {
            QTextObjectInterface*sipRes;

            sipRes = sipCpp->handlerForObject(a0);

            return sipConvertFromType(sipRes,sipType_QTextObjectInterface,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_handlerForObject, doc_QAbstractTextDocumentLayout_handlerForObject);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_documentChanged, "QAbstractTextDocumentLayout.documentChanged(int, int, int)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_documentChanged(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_documentChanged(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    PyObject *sipOrigSelf = sipSelf;

    {
        int a0;
        int a1;
        int a2;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Biii", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, &a0, &a1, &a2))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QAbstractTextDocumentLayout, sipName_documentChanged);
                return NULL;
            }

            sipCpp->sipProtect_documentChanged(a0,a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_documentChanged, doc_QAbstractTextDocumentLayout_documentChanged);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_resizeInlineObject, "QAbstractTextDocumentLayout.resizeInlineObject(QTextInlineObject, int, QTextFormat)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_resizeInlineObject(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_resizeInlineObject(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTextInlineObject* a0;
        int a1;
        const QTextFormat* a2;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9iJ9", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QTextInlineObject, &a0, &a1, sipType_QTextFormat, &a2))
        {
            sipCpp->sipProtectVirt_resizeInlineObject(sipSelfWasArg,*a0,a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_resizeInlineObject, doc_QAbstractTextDocumentLayout_resizeInlineObject);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_positionInlineObject, "QAbstractTextDocumentLayout.positionInlineObject(QTextInlineObject, int, QTextFormat)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_positionInlineObject(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_positionInlineObject(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QTextInlineObject* a0;
        int a1;
        const QTextFormat* a2;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9iJ9", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QTextInlineObject, &a0, &a1, sipType_QTextFormat, &a2))
        {
            sipCpp->sipProtectVirt_positionInlineObject(sipSelfWasArg,*a0,a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_positionInlineObject, doc_QAbstractTextDocumentLayout_positionInlineObject);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_drawInlineObject, "QAbstractTextDocumentLayout.drawInlineObject(QPainter, QRectF, QTextInlineObject, int, QTextFormat)");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_drawInlineObject(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_drawInlineObject(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf));

    {
        QPainter* a0;
        const QRectF* a1;
        QTextInlineObject* a2;
        int a3;
        const QTextFormat* a4;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J9J9iJ9", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QPainter, &a0, sipType_QRectF, &a1, sipType_QTextInlineObject, &a2, &a3, sipType_QTextFormat, &a4))
        {
            sipCpp->sipProtectVirt_drawInlineObject(sipSelfWasArg,a0,*a1,*a2,a3,*a4);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_drawInlineObject, doc_QAbstractTextDocumentLayout_drawInlineObject);

    return NULL;
}


PyDoc_STRVAR(doc_QAbstractTextDocumentLayout_format, "QAbstractTextDocumentLayout.format(int) -> QTextCharFormat");

extern "C" {static PyObject *meth_QAbstractTextDocumentLayout_format(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_QAbstractTextDocumentLayout_format(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        sipQAbstractTextDocumentLayout *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bi", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, &a0))
        {
            QTextCharFormat*sipRes;

            sipRes = new QTextCharFormat(sipCpp->sipProtect_format(a0));

            return sipConvertFromNewType(sipRes,sipType_QTextCharFormat,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_format, doc_QAbstractTextDocumentLayout_format);

    return NULL;
}


/* Cast a pointer to a type somewhere in its superclass hierarchy. */
extern "C" {static void *cast_QAbstractTextDocumentLayout(void *, const sipTypeDef *);}
static void *cast_QAbstractTextDocumentLayout(void *ptr, const sipTypeDef *targetType)
{
    void *res;

    if (targetType == sipType_QAbstractTextDocumentLayout)
        return ptr;

    if ((res = ((const sipClassTypeDef *)sipType_QObject)->ctd_cast((QObject *)(QAbstractTextDocumentLayout *)ptr,targetType)) != NULL)
        return res;

    return NULL;
}


/* Call the instance's destructor. */
extern "C" {static void release_QAbstractTextDocumentLayout(void *, int);}
static void release_QAbstractTextDocumentLayout(void *sipCppV,int)
{
    QAbstractTextDocumentLayout *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_QAbstractTextDocumentLayout(sipSimpleWrapper *);}
static void dealloc_QAbstractTextDocumentLayout(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerived(sipSelf))
        reinterpret_cast<sipQAbstractTextDocumentLayout *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsPyOwned(sipSelf))
    {
        release_QAbstractTextDocumentLayout(sipGetAddress(sipSelf),sipSelf->flags);
    }
}


extern "C" {static void *init_type_QAbstractTextDocumentLayout(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QAbstractTextDocumentLayout(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQAbstractTextDocumentLayout *sipCpp = 0;

    {
        QTextDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_QTextDocument, &a0))
        {
            sipCpp = new sipQAbstractTextDocumentLayout(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QAbstractTextDocumentLayout[] = {{162, 0, 1}};


static PyMethodDef methods_QAbstractTextDocumentLayout[] = {
    {SIP_MLNAME_CAST(sipName_anchorAt), meth_QAbstractTextDocumentLayout_anchorAt, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_anchorAt)},
    {SIP_MLNAME_CAST(sipName_blockBoundingRect), meth_QAbstractTextDocumentLayout_blockBoundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_blockBoundingRect)},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_QAbstractTextDocumentLayout_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_QAbstractTextDocumentLayout_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_QAbstractTextDocumentLayout_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_QAbstractTextDocumentLayout_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_document), meth_QAbstractTextDocumentLayout_document, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_document)},
    {SIP_MLNAME_CAST(sipName_documentChanged), (PyCFunction)meth_QAbstractTextDocumentLayout_documentChanged, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_documentChanged)},
    {SIP_MLNAME_CAST(sipName_documentSize), meth_QAbstractTextDocumentLayout_documentSize, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_documentSize)},
    {SIP_MLNAME_CAST(sipName_draw), meth_QAbstractTextDocumentLayout_draw, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_draw)},
    {SIP_MLNAME_CAST(sipName_drawInlineObject), (PyCFunction)meth_QAbstractTextDocumentLayout_drawInlineObject, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_drawInlineObject)},
    {SIP_MLNAME_CAST(sipName_format), (PyCFunction)meth_QAbstractTextDocumentLayout_format, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_format)},
    {SIP_MLNAME_CAST(sipName_frameBoundingRect), meth_QAbstractTextDocumentLayout_frameBoundingRect, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_frameBoundingRect)},
    {SIP_MLNAME_CAST(sipName_handlerForObject), meth_QAbstractTextDocumentLayout_handlerForObject, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_handlerForObject)},
    {SIP_MLNAME_CAST(sipName_hitTest), meth_QAbstractTextDocumentLayout_hitTest, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_hitTest)},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_QAbstractTextDocumentLayout_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_pageCount), meth_QAbstractTextDocumentLayout_pageCount, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_pageCount)},
    {SIP_MLNAME_CAST(sipName_paintDevice), meth_QAbstractTextDocumentLayout_paintDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_paintDevice)},
    {SIP_MLNAME_CAST(sipName_positionInlineObject), (PyCFunction)meth_QAbstractTextDocumentLayout_positionInlineObject, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_positionInlineObject)},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_QAbstractTextDocumentLayout_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_registerHandler), meth_QAbstractTextDocumentLayout_registerHandler, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_registerHandler)},
    {SIP_MLNAME_CAST(sipName_resizeInlineObject), (PyCFunction)meth_QAbstractTextDocumentLayout_resizeInlineObject, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_resizeInlineObject)},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_QAbstractTextDocumentLayout_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_QAbstractTextDocumentLayout_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setPaintDevice), meth_QAbstractTextDocumentLayout_setPaintDevice, METH_VARARGS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_setPaintDevice)},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_QAbstractTextDocumentLayout_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_unregisterHandler), (PyCFunction)meth_QAbstractTextDocumentLayout_unregisterHandler, METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_QAbstractTextDocumentLayout_unregisterHandler)}
};


extern "C" {static int emit_QAbstractTextDocumentLayout_update(void *, PyObject *);}

static int emit_QAbstractTextDocumentLayout_update(void *sipCppV, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    QAbstractTextDocumentLayout *sipCpp = reinterpret_cast<QAbstractTextDocumentLayout *>(sipCppV);

    {
        const QRectF& a0def = QRectF(0,0,1e+09,1e+09);
        const QRectF* a0 = &a0def;

        if (sipParseArgs(&sipParseErr, sipArgs, "|J9", sipType_QRectF, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->update(*a0);
            Py_END_ALLOW_THREADS


            return 0;
        }
    }

    sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_update, NULL);

    return -1;
}


/* Define this type's signals. */
static const pyqt5QtSignal signals_QAbstractTextDocumentLayout[] = {
    {"updateBlock(QTextBlock)", "\1QAbstractTextDocumentLayout.updateBlock[QTextBlock]", 0, 0},
    {"pageCountChanged(int)", "\1QAbstractTextDocumentLayout.pageCountChanged[int]", 0, 0},
    {"documentSizeChanged(QSizeF)", "\1QAbstractTextDocumentLayout.documentSizeChanged[QSizeF]", 0, 0},
    {"update(QRectF)", "\1QAbstractTextDocumentLayout.update[QRectF]", 0, emit_QAbstractTextDocumentLayout_update},
    {0, 0, 0, 0}
};

PyDoc_STRVAR(doc_QAbstractTextDocumentLayout, "\1QAbstractTextDocumentLayout(QTextDocument)");


pyqt5ClassTypeDef sipTypeDef_QtGui_QAbstractTextDocumentLayout = {
{
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_QAbstractTextDocumentLayout,
        {0}
    },
    {
        sipNameNr_QAbstractTextDocumentLayout,
        {0, 0, 1},
        27, methods_QAbstractTextDocumentLayout,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    doc_QAbstractTextDocumentLayout,
    -1,
    -1,
    supers_QAbstractTextDocumentLayout,
    0,
    init_type_QAbstractTextDocumentLayout,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_QAbstractTextDocumentLayout,
    0,
    0,
    0,
    release_QAbstractTextDocumentLayout,
    cast_QAbstractTextDocumentLayout,
    0,
    0,
    0,
    0,
    0,
    0
},
    &QAbstractTextDocumentLayout::staticMetaObject,
    0,
    signals_QAbstractTextDocumentLayout,
    0
};
